{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Syntax.tokens (cyclomatic 61): Syntax.tokens has cyclomatic complexity 61 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 2 other methods here (Syntax.tokens::lineKey, Syntax.tokens::blockScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfdcf6f212274aee9374a88e2506071cc7790635c2be91cac9eb779ba13e320"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.parse (cyclomatic 57): Markdown.parse has cyclomatic complexity 57 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Markdown.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81ebd85702b54baa1314a19a9ecc9dde49f290b2279e3c4de23938d23ae9e85"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteBridge.run (cyclomatic 50): RemoteBridge.run has cyclomatic complexity 50 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509eeb0933d4356b78c8f0924079659bbed392fd97d9e60f95fb1701bf81bb8"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeNames.code (cyclomatic 44): CodeNames.code has cyclomatic complexity 44 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a616140f8bab9987fefff70ca9a440090894361276f384a231213a27c5eae7d"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewModel.refresh (cyclomatic 42): ReviewModel.refresh has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f256db3125489939ab73be192fa64b0aa36d3757b192f47a7a2f85ea558fbe1"}},{"ruleId":"D1","level":"warning","message":{"text":"MainWindowController.init (cyclomatic 40): MainWindowController.init has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c49c33fb04a53669c15a0b32808890c9abe3c85546dbd56df5acfe325ba38ad"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.markupTokens::attributes (cyclomatic 38): Syntax.markupTokens::attributes has cyclomatic complexity 38 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: one other method here (Syntax.markupTokens) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd4d5cc8b32fb9aef88eac59ebbe6bc97e35452fcb299a7c5c3493db97e8e79"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteBridge.tick (cyclomatic 37): RemoteBridge.tick has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"120d02ddfab3a7146735e39244b623771673576728789a805e60324082ad85f0"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffTextView.drawBackground (cyclomatic 29): DiffTextView.drawBackground has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/DiffTextView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"482d7b7adb045a354856a97c2105444ad24c236f0971db1fe78fc7bec73cbb0c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewModel.rebuild (cyclomatic 28): ReviewModel.rebuild has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cd06026954893ea5658f39967c59293f4bcf9e372d6d5ef9c72ed88910afc1"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerHeader.body (cyclomatic 28): ServerHeader.body has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0254bcf4b91fcf4dc251ede466dc5636199050b4ff96e0f66dc7efdc9923da49"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalRequest.init (cyclomatic 28): TerminalRequest.init has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalRequest.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0945896577ffa36529f4c1a1ad93ca7fe3572d7ebcdbc52f8242dbc9e82760d4"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalView.handle (cyclomatic 28): TerminalView.handle has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a660add7d8e0ebc786d5eecc2444b1c89fc1a50aa38f0da890c3b73c463b688e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRenderer.render (cyclomatic 27): MarkdownRenderer.render has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MarkdownView.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aedc515c9c17c4704eaadd474f67f89c835862efcbcd28b89ce90eb99e197c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewPanel.body (cyclomatic 27): ReviewPanel.body has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0a173f1b0d70e4790f33c3524c4d42fec5552e684793656ebb1f827d7330e2"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.language (cyclomatic 27): Syntax.language has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cfcb066e6683ab42fdcece000c3bf9e41f04f4ba5d840d93ce388f73395363"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.tokens::blockScalar (cyclomatic 27): Syntax.tokens::blockScalar has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: 2 other methods here (Syntax.tokens, Syntax.tokens::lineKey) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdadc53c703c319cc0308619dfbcee8847b17483772d98e63de5c0b454ffec6a"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewModel.ship (cyclomatic 26): ReviewModel.ship has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cab0c32a548dc9f219775e0f09690e24982bed79c656fe0620b45ee8ab97517"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeLog.messages (cyclomatic 24): ClaudeLog.messages has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"42aa8b03a2b42feb0891e6a37d6d149fc00c3784b8b40ad4994a85ac354d3a19"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeNames.uses (cyclomatic 24): CodeNames.uses has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"44841a0fc2b1d5c32e807e4e083356578c143fb54f34b38c02051da3fa1c56f4"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeEditorController.load (cyclomatic 22): MergeEditorController.load has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"815701c6350845ada8cae47751a037a12e1ff1666e6160dfe1b769b87fb8eca3"}},{"ruleId":"D1","level":"warning","message":{"text":"NewTaskSheet.body (cyclomatic 22): NewTaskSheet.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"820b00fa5450d0345847647aa0e4e7be186e7e53e771d4bbe9b8628cf19a264b"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.markupTokens (cyclomatic 22): Syntax.markupTokens has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (Syntax.markupTokens::attributes) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f259c603f4d02e821edeb6f622c00b0efe0f9adfd31f3e88c1baba1d5f96468"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeEditor.rebuild (cyclomatic 21): MergeEditor.rebuild has cyclomatic complexity 21 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bab8991c92a0d51225535fedca03f467ef4f65454080debfca56807e4ecbe23"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteBridge.pumpStreams (cyclomatic 21): RemoteBridge.pumpStreams has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a2c446184656ce667e1841bdd1efc55f24baea1d81068bffbdd87cf3e7ad19"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 21): main.swift.top-level code has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCLI/main.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c0f93298b1cdbcfedd292fbc2adfbdb9d19b76162d9171dc4a0f59127dd76"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.tokens::lineKey (cyclomatic 21): Syntax.tokens::lineKey has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 2 other methods here (Syntax.tokens, Syntax.tokens::blockScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c2d26365cb991dd31ee572028ebc1b75799dc86a25b37282113e7c193206fa"}},{"ruleId":"D1","level":"warning","message":{"text":"Syntax.markdownTokens (cyclomatic 21): Syntax.markdownTokens has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf336774d1195330c9fc6a990702a8bb5a60482a1768ed97b3aa76a09b9f6af4"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffTextView.show (cyclomatic 20): DiffTextView.show has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/DiffTextView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ae24410cbd3d131a31277d25bcb8749cb24ebf1c131b45f9709d845c8a6b72"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeEditor.textStorage (cyclomatic 20): MergeEditor.textStorage has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea861238a604f02355bee7fe43217802fdb24e2594c9e9d9d792eee1cf2f57ee"}},{"ruleId":"D1","level":"warning","message":{"text":"BranchRow.body (cyclomatic 19): BranchRow.body has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"4712126048e2f6e496c0624150b6828eddc90581465dec4357940a8c0a7a9b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.remoteSection (cyclomatic 19): SettingsPage.remoteSection has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b34cdca6d96d4c5dc5df577d706362d00bcd4ccd3e443f5d604a38efd8b9da"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlCommand.parse (cyclomatic 19): ControlCommand.parse has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentControl.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c109a593c89e411a93147865512ce0a6dedfc543390c5e4ece774d2310756"}},{"ruleId":"D1","level":"warning","message":{"text":"History.graph (cyclomatic 19): History.graph has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f710c96cdd327d923bb752a42778403fade29670eddea22605c0a6629cde5147"}},{"ruleId":"D1","level":"warning","message":{"text":"Merge.testCommand (cyclomatic 19): Merge.testCommand has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e563c6ce579090049b8cbbe9bac57decc5046fc9a413bd70e5b3429be2ec26"}},{"ruleId":"D1","level":"warning","message":{"text":"FileIcon.symbol (cyclomatic 18): FileIcon.symbol has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileIcon.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e89c6b8b61123e6cab93f39b36a0a09a9862aaa18752b0cda2a9c4e382279c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Session.refreshGit (cyclomatic 18): Session.refreshGit has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f987ca2a6b65aecd3df4919494cd9edfcc12e0c96754416f41e66f4ce14e0c77"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexLog.read (cyclomatic 18): CodexLog.read has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/CodexLog.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a0d5e921c2b00258a53d1b859e04f0d90331e56946bcfbe3093a81977e2203"}},{"ruleId":"D1","level":"warning","message":{"text":"Diff.parse (cyclomatic 18): Diff.parse has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Diff.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c352090cf5dcd0c82422d26a3560ac405fdfd5ad5a78585c350b5c68f820c11a"}},{"ruleId":"D1","level":"warning","message":{"text":"FileTabs.open (cyclomatic 17): FileTabs.open has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileTabs.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b91149991001485d1b78f07c317279081d03b8ee4b4ebe50a17868531dff243"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageServerMenu.make (cyclomatic 17): LanguageServerMenu.make has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/LanguageServerMenu.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8f9c0d4ea6835d838456272d8a831b76cb30a90c8d753147a002e50097d37d"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeEditor.applyInlineHighlights (cyclomatic 17): MergeEditor.applyInlineHighlights has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c844a9a59f7dd60230b639541f2fbf0b1e7dc362e48db46cc1bdd1ce6b2fe76"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeGutter.draw (cyclomatic 17): MergeGutter.draw has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5300714ff10013d5bbbce0afc2d7ec8b156cf945c7bdcd7a1b162f22195c62ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewModel.sendComment (cyclomatic 17): ReviewModel.sendComment has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"38271c91b67c80b3da3e833bc0d0692be1133555c013274758b61fe78754e793"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPage.body (cyclomatic 17): SettingsPage.body has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b8d4dece58e4c85eb8816e68a5430dab937f258d339b013a506c9d551eb4ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeLog.read (cyclomatic 17): ClaudeLog.read has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4303ad478b852677cdf5413aed4c983942799df1366fc691066de5180343ac4f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeLog.stopped (cyclomatic 17): ClaudeLog.stopped has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"806ab6738693a4b1f431ea9cee1fb41ec4007e1f58c7f0987528b2d5498447d6"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineDiff.compare (cyclomatic 17): InlineDiff.compare has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/InlineDiff.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18184c6e8605d3cc1886f2b42229ea31d772d86758acb3daf03a3e2195ee02a"}},{"ruleId":"D1","level":"warning","message":{"text":"Merge.parseStatus (cyclomatic 17): Merge.parseStatus has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2774e3f40c4cc406b4c9148132726d221dd32a367198a69cb7625b35e6994635"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewNotes.anchor (cyclomatic 17): ReviewNotes.anchor has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ReviewNotes.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9738deeda168de9d726d753516db4b064f4f159a792dd2e14a6bb8a54c3ac759"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalRuntime.init (cyclomatic 17): TerminalRuntime.init has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalRuntime.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9cc725f38495962a98c4a6e895a824a708707be6acd269a323426760ba3eae"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentControl.handle (cyclomatic 16): AgentControl.handle has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AgentControl.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bb9a445dfd09520b2b21379176b2a81da56210efe21d0cee1cf08d8c940309"}},{"ruleId":"D1","level":"warning","message":{"text":"MergeEditor.recolor (cyclomatic 16): MergeEditor.recolor has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b9a6ffa1f3264de3cbdb97b4b19b1b1582561fe5f968f1bbd8767f76a2e97d"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestSheet.body (cyclomatic 16): RequestSheet.body has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RequestSheet.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c422581e69455ddc368198b30f623bdddea49799ee6668a988a474d8c64f5b7"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStore.wire (cyclomatic 16): SessionStore.wire has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d454396737e48c0c0a76ea9a8cc4e9c04245c107542fb5d14a46929acde3af2"}},{"ruleId":"D1","level":"warning","message":{"text":"Control.run (cyclomatic 16): Control.run has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCLI/Control.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"501dd74106ffde394862281ab74caedc1a204dfcb0b7fc4b861421efac7b120f"}},{"ruleId":"D1","level":"warning","message":{"text":"Forge.init (cyclomatic 16): Forge.init has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a85a4e7974d2e7d2758642d7aca85aa844be38372f8bf4edfda36c2df749d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Merge.rerereImage (cyclomatic 16): Merge.rerereImage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"feebcfa4a59aa717f380b2c8dfc84e8fb1b3a4aac3036a20660776f75215288a"}},{"ruleId":"D1","level":"warning","message":{"text":"Schedule.minutes (cyclomatic 16): Schedule.minutes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Schedule.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8896096510aaf86338ea42dd7c691c61f6ae834ad7ef6dd0a3e6891115a42d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.parse (cognitive 115): Markdown.parse has cognitive complexity 115 (threshold 15). Drivers by points: if/else 24 (59 pts), loops 9 (29 pts), boolean chains 25, ternaries 1 (2 pts) (nesting depth added 56). Of this number, 114 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Markdown.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd12c30763eaa05bb95b7a09acbab06d90466bcff40b0ca9d1b209483437faa"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.tokens (cognitive 90): Syntax.tokens has cognitive complexity 90 (threshold 15). Drivers by points: boolean chains 89, if/else 41 (58 pts), loops 25 (41 pts), ternaries 4 (7 pts) (nesting depth added 36). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 2 other methods here (Syntax.tokens::lineKey, Syntax.tokens::blockScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3368c93d381abcd7d1f3286eec33ebabdcdeb87a454a0c033a89ab84d2211306"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeNames.code (cognitive 89): CodeNames.code has cognitive complexity 89 (threshold 15). Drivers by points: if/else 16 (49 pts), boolean chains 20, loops 3 (9 pts), ternaries 3 (9 pts), match/switch 1 (2 pts) (nesting depth added 46). Of this number, 87 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"126c8ff45cc45ccf08e6a689c05af40ff192801912e9fc77f5b5ab83dfac8c92"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRenderer.render (cognitive 59): MarkdownRenderer.render has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 8 (29 pts), if/else 5 (17 pts), loops 3 (7 pts), match/switch 2 (6 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MarkdownView.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d7ee95190ac82081f216f6cd95561386a9f6c873d898c07d0a131dfb6a8f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.markupTokens::attributes (cognitive 59): Syntax.markupTokens::attributes has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 21, if/else 11 (21 pts), loops 7 (17 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (Syntax.markupTokens, Syntax.markupTokens::closingBrace) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff7922b4644e47272f88ffef26fd6eeb847fdd698d2eaa0045b7b707f4ff092"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.tick (cognitive 56): RemoteBridge.tick has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 22, ternaries 2 (7 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc6e8500034f31ebd38a0dab95b28c738188d72cd3595565d1dd090160f4e51"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewModel.refresh (cognitive 54): ReviewModel.refresh has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 17, ternaries 5 (7 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"90df02f5e825ab0ba96dc429ec17bc4d0264ca50b465dae392f83821a79e59a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewModel.rebuild (cognitive 45): ReviewModel.rebuild has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (8 pts), boolean chains 7, ternaries 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"54911e046f9090c151cd95941af834b9eff9d2c5a922eb40ca957ecc195d73c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewPanel.body (cognitive 42): ReviewPanel.body has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b56e9535cc118586d916853c709c0d7bb5ceb6e085ae8c70812a45e307074d"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindowController.init (cognitive 40): MainWindowController.init has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20, boolean chains 10, loops 5 (6 pts), ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"279fc68867120523027e17025279a3262479fd3820b73978733a9fd648a80107"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffTextView.drawBackground (cognitive 38): DiffTextView.drawBackground has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 12, ternaries 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/DiffTextView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6785363c8130719910cddb717431388632d3bfb33e5ac0b1bf281e6902595a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.run (cognitive 36): RemoteBridge.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 12, ternaries 1 (2 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"bade693e8550ef2a5635e91dcb19baafcc608099fa541ee584e67683c0f711c1"}},{"ruleId":"D2","level":"warning","message":{"text":"History.graph (cognitive 35): History.graph has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (7 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d87475d5fb9ec6bf2e751160c7599c9295da6812de0bda285fc6eb82a3f23cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.markupTokens (cognitive 34): Syntax.markupTokens has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26 (44 pts), boolean chains 37, loops 12 (26 pts), ternaries 6 (14 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (Syntax.markupTokens::closingBrace, Syntax.markupTokens::attributes) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbea75dead0bf66c89aa2caa70f2c8fffebba47eee84fd28f7175aeb1a9e95a"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerHeader.body (cognitive 33): ServerHeader.body has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 13 (18 pts), if/else 8, boolean chains 7 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1605f103d590ce0fac522f583436f57eeaefa33bd78930662d334f4fa6d9d80e"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffTextView.show (cognitive 32): DiffTextView.show has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (9 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/DiffTextView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9332ade90cc575e117a4e2435ecbb82814b3e6cac4598c86d0ace79ce1a606c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRenderer.inline (cognitive 32): MarkdownRenderer.inline has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 1 (4 pts), loops 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MarkdownView.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"463be26f488176eee623f3b76a510a6a610f8f1e879f41a8c68f3a0b771a4cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.rebuild (cognitive 31): MergeEditor.rebuild has cognitive complexity 31 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 6 (9 pts), boolean chains 7 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b073a1862c342d6b4f625670546a4b0fd72898a869267b9250c2f65e354b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewModel.ship (cognitive 31): ReviewModel.ship has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 7, error handling 3 (4 pts), ternaries 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"c188a6c55a45c20538019d3a47fe13d031248ddd8175028da74fa27cdcec8752"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeGutter.draw (cognitive 30): MergeGutter.draw has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 5 (9 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccf6dfb47496e5b23f591eb54403835e281c7e84f74bdba5e69967aa0e27226"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPage.remoteSection (cognitive 30): SettingsPage.remoteSection has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 9 (12 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2035b910ad463196e05304c95e647669eb73615fcec67b88b1295fc7be9fb96d"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.tokens::blockScalar (cognitive 30): Syntax.tokens::blockScalar has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 13, loops 8 (10 pts), if/else 5 (7 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (Syntax.tokens, Syntax.tokens::lineKey) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bd2d471bfdd5048cc086973929045cdaa60cf7ae40eb313c00cc8a1d618dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.pumpStreams (cognitive 29): RemoteBridge.pumpStreams has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 3 (5 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f83e92ec3227b9cbe435ed6de4d9cd750b97321b1f69013ccd5d58003ca890"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeNames.uses (cognitive 29): CodeNames.uses has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (12 pts), loops 1 (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffa73651b2e2cb16c2283f4fee19114971333c1a590d9ffb161a5f0c97f0afb"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRow.labels (cognitive 27): SessionRow.labels has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SidebarView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6338785528b969fe5574bcf16af104eb59783574de6a6a7375c75e28359061a"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditorController.load (cognitive 26): MergeEditorController.load has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 10, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"074acca770ad5cba886417e10e876a7e4a3d7c84967e81af66e30d8706e6403b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeLog.messages (cognitive 26): ClaudeLog.messages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 12, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ad1ee4c61d39037dfb1883b2985f2753f3f6db4ecf899a2b7065db1a3d90b7"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageServerMenu.make (cognitive 25): LanguageServerMenu.make has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/LanguageServerMenu.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"210423dead2f15c8cc7747e25bb026f3690e1e31a46fa1e1a9a7372974df39cb"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.visibility (cognitive 25): MergeEditor.visibility has cognitive complexity 25 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 6 (11 pts), boolean chains 2 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6d52dfe3b82e3b4d70eb0663f71eae3c487a5f1c8bdee335b65ff4baf30cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.textStorage (cognitive 25): MergeEditor.textStorage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (8 pts), boolean chains 7, loops 1 (nesting depth added 5). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"627ae67ebbeba40b2aaf800a298d198563b4b2fefa84b32b33c7ec2661c604b6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 25): main.swift.top-level code has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 3 (6 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCLI/main.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bc6d4d402f71ca27196691b68fb56716f78823c9c818de2c6fe9cf62e007b4"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalView.handle (cognitive 25): TerminalView.handle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, ternaries 2 (4 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7867116e65335e1438834aeb19fc0354950931ca9d0f6fbee45550347ad580"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.applyInlineHighlights (cognitive 24): MergeEditor.applyInlineHighlights has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (3 pts) (nesting depth added 8). Of this number, 18 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1aff71efb177df231f05f7e523f13a6f37ce43c360ed8e648f94fd74ee99a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlCommand.parse (cognitive 24): ControlCommand.parse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentControl.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62db15b770ae41ce77df64a3c7ae7f21d2c3f583ca3a9bbd64afba9a5490f21"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.markdownTokens (cognitive 24): Syntax.markdownTokens has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 9, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eea5a12018ce520ae9e4902efa22c1f2b2ac7c694732071d6f21e23c99d1a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineDiff.compare (cognitive 23): InlineDiff.compare has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/InlineDiff.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41a065f5b7767c153bbcc655469affe09dbf99e6d345ad5336cb01a416af48d"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreeWay.merge (cognitive 23): ThreeWay.merge has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"a919b40ef861e9876e82fa031c632733b7f2b50f723bc80b8ecfc4481d2e97dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BranchRow.body (cognitive 22): BranchRow.body has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (11 pts), if/else 8 (10 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"f281c7c82592abe945787e8ee02f97b41d971c7e259b5ba37d1c052b70b448b4"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.recolor (cognitive 21): MergeEditor.recolor has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (12 pts), boolean chains 5, if/else 3 (4 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c61d36a2b1b8efefb86e05bf7e7ff590e43d5741e42880b706133288ae0b7b1"}},{"ruleId":"D2","level":"warning","message":{"text":"NewTaskSheet.body (cognitive 21): NewTaskSheet.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 4, boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc17e032198adb864522867c97e6cd794c3a887649b964142c9db75472c1e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"CommentView.body (cognitive 21): CommentView.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"147a8d581e56e7028198bd08f2d54a2c4463c2bc05a062cccde69c1647ba4d30"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeLog.read (cognitive 21): ClaudeLog.read has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a305219330fbab7db2708ea2cfc250c710f97442fd7549889541f0d4f53dca"}},{"ruleId":"D2","level":"warning","message":{"text":"Forge.init (cognitive 21): Forge.init has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1143a508e03a5cd858bdf23e3cc441b55668408e021f656b521db023a21df53a"}},{"ruleId":"D2","level":"warning","message":{"text":"Merge.testCommand (cognitive 21): Merge.testCommand has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d698ff38dfb7f0f99748ab7e439849048f5080d5ace8e5155eb1f446f6e1664"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.tokens::lineKey (cognitive 21): Syntax.tokens::lineKey has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (6 pts), loops 3, ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 2 other methods here (Syntax.tokens, Syntax.tokens::blockScalar) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c91ca92d8ad3fd91999e0bb372d3660305836a85c1e0a4114a0cfcc623d47"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusServer.acceptClient (cognitive 20): StatusServer.acceptClient has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentStatus.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"49608d5671a150c304c97b6bf93d9852b02050742be0976c020e5e94007205c6"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTabs.open (cognitive 19): FileTabs.open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileTabs.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"683013572cb9cf6d8fa15eb0530aabfa02b799efceeffbefe20da58549319161"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.answers (cognitive 19): RemoteBridge.answers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeba3185e563ccd3ac6c50561634b0c9e1baf4e74c923993eac812bac82dee4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Blame.parse (cognitive 19): Blame.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Blame.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadd3ff08d51ef57f5111682aba80677cc20da48197115ee3178aeabcd0c47e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Diff.parse (cognitive 19): Diff.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Diff.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"effbf481140c24c13fe05c77718e8048a7524bba6a3a1a9ab0f527fe021b64e3"}},{"ruleId":"D2","level":"warning","message":{"text":"Merge.patch (cognitive 19): Merge.patch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b558566bdd84742c8111db99ceed7cf3b64fcc96710b368fcab1d2deab9d04"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeNames.bindings (cognitive 19): CodeNames.bindings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e19a52a70790f653f078e53e94df077f34c0dc219a2482ce0979cf3e6e5ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphPanel.body (cognitive 18): GraphPanel.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"4976d049aafa43b9d40fa88a4903f6393fe442e58831eb343b6c2b23cf6665c1"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageServer.received (cognitive 18): LanguageServer.received has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/LanguageServer.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab07d72e1e2fcb1b08739cdcffdd32e4324f6c9c5ee5aac617d6cda59f5bf3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindowController.offerToRemove (cognitive 18): MainWindowController.offerToRemove has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1 (2 pts), match/switch 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController\u002BWorktrees.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce91ea3302551b1068d4d7f4ed33938e40253ca8ee28167a75afc9be7f90df27"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeEditor.scrolled (cognitive 18): MergeEditor.scrolled has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 5, loops 2, if/else 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"7807d3ce1318ed2d2799b5fc2710550af33bc648bd4eacad46e812cab04e5460"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeNumbers.draw (cognitive 18): MergeNumbers.draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 1 (3 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb03c4d2cfba16bb82eb0ab1538cf832ecf5bd58d67930e953776e4ee20ddf46"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeLog.stopped (cognitive 18): ClaudeLog.stopped has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), loops 1, ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"60928a0a9ab367c76967fdb5937210080b1338a95fc9d67c6145909970dc318c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexLog.read (cognitive 18): CodexLog.read has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/CodexLog.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5c9129c2f5cf19205d97e033d73e264b45caf941c0104612cb44e57c9de7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Files.walk (cognitive 18): Files.walk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), ternaries 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Files.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"898d15e7acec3b354b1cdb1158deaece941720c17698a9e441f71dc8266e5186"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineDiff.changes (cognitive 18): InlineDiff.changes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/InlineDiff.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbde57d4b5c900d34a72f3fec439b98669a40f28decc4610e9853a9cb0f5d959"}},{"ruleId":"D2","level":"warning","message":{"text":"Syntax.markupTokens::closingBrace (cognitive 18): Syntax.markupTokens::closingBrace has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (Syntax.markupTokens, Syntax.markupTokens::attributes) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a692996532ad91bd1d3ab4df09a7c5dd4c2bf72651f8656d3b75a0b0e482458"}},{"ruleId":"D2","level":"warning","message":{"text":"GenerateButton.body (cognitive 17): GenerateButton.body has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 4 (5 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6eddfa719ebd9064b4559d9bc76480a77fdbcdf9766df1f383f8318c7764c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CommitRow.body (cognitive 17): CommitRow.body has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (11 pts), boolean chains 3, if/else 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc64832974e1fdda6d21c63785b08744ecb9ce155359228a0ef1793261d57a6"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.updateActivities (cognitive 17): RemoteBridge.updateActivities has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 6, loops 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"efafa0e189e784ef81fc2e5e84dc24567dda76627340a11befe169d15fe2bb0a"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestSheet.body (cognitive 17): RequestSheet.body has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), boolean chains 6, if/else 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RequestSheet.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9573f1be03f7cab61bd050b844898cd16d80a4b6618edddda781560cb9d1138"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.refreshGit (cognitive 17): Session.refreshGit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"07386cd9d2e03edc81c2bddd5dca0f21cc5f598ec05c8f1d0eea21a6d6559d99"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewNotes.anchor (cognitive 17): ReviewNotes.anchor has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ReviewNotes.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fd9d34950ed91493e99a0723ce6f05c0bb1ce866e5ce70235949e441c79407"}},{"ruleId":"D2","level":"warning","message":{"text":"Schedule.minutes (cognitive 17): Schedule.minutes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (5 pts), boolean chains 4, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Schedule.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e7600c0eac99cae969c33279b61e639e45f862cb11937414b2d3d2fc5a4cd1"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphModel.show (cognitive 16): GraphModel.show has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b7b43909396a18c0cca8b217f8f239231800e320b5b49f058a5e92510e3f50"}},{"ruleId":"D2","level":"warning","message":{"text":"PaneContainer.init (cognitive 16): PaneContainer.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (2 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (build). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/PaneContainer.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba888ba160787518a5785bc9a2d1500387a276cd02808f7d9787e5ca6d0a70f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.logChanged (cognitive 16): RemoteBridge.logChanged has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0e5340567c59fbc6e43d5f71e0568dc0ee8aad6be449c4691df36090c85b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBridge.followLogs (cognitive 16): RemoteBridge.followLogs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"16368bf4760210d54ff07721e6afa0138afe5aae203d4dcbc71cd862c06aba57"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewModel.sendComment (cognitive 16): ReviewModel.sendComment has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e216ea7b8281b2f8e9384466c9ad53c761f85c1c68ce41a1eac672a9443149f"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.wire (cognitive 16): SessionStore.wire has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4dab8dc69babfca2d1a7ed86d77752dfeae370173171e8bffc7c78b998abd0"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexLog.tool (cognitive 16): CodexLog.tool has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/CodexLog.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2842fa2119952d4fe10311692398b1e059c9653a65331562fff2bbf01c4a500"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.marker (cognitive 16): Markdown.marker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Markdown.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0e1d7ff76db4a8e5524903f4d855480d1eaa722956e49d8958274686471525"}},{"ruleId":"D2","level":"warning","message":{"text":"Merge.rerereImage (cognitive 16): Merge.rerereImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, match/switch 1 (3 pts), loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e9c6c40a1028b20a6b5fa3a51f71d19610d029c1e64772c4c224a94c6ee953"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreeWay.hunks (cognitive 16): ThreeWay.hunks has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, loops 4 (6 pts), if/else 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fad16bb3b55560413316396e26bd9f4d6ce3c08cad45d22d96eeccfbe0329f"}},{"ruleId":"D2","level":"warning","message":{"text":"Perf.command (cognitive 16): Perf.command has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Perf.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c9ccb9b02591795670609222c54f085fb693c468620ae673689e503ec4f70d"}},{"ruleId":"D2","level":"warning","message":{"text":"PiLog.read (cognitive 16): PiLog.read has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/PiLog.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"895425402ea3ac8425cc016a77e4d786fd91890bd3b06abfa47008fbdbb4561d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduleFile.when (cognitive 16): ScheduleFile.when has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ScheduleFile.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5bb772ac4f1dc75dc762df1934474d793c96e5e555bfe2246bfbe225328007"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalRuntime.init (cognitive 16): TerminalRuntime.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalRuntime.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"80600201a044c00d0b5196caefe3e3c9aca05a916934ff69adbc089b65078974"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainWindowController: TooManyMethods \u2014 114 methods, declared across 4 files: Farol/MainWindowController.swift (82), Farol/MainWindowController\u002BServers.swift (15), Farol/MainWindowController\u002BWorktrees.swift (14), Farol/MainWindowController\u002BAsk.swift (3). The bar is 30 methods; this is 84 over it, 3.80\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbd67853ac17e2e9fab6f1c4853b8229f4ad0cacbf57c5962004097f6bb155e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/ReviewPanel.swift: FileTooLong \u2014 1533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1033 over it, 3.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5668ede5a8c019a594da5232d6966fcec1d744c3507b6bde7842f78064e64a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainWindowController.init: MethodTooLong \u2014 init runs 278 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 178 over it, 2.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a469837dca3f2da344fce5d3a4681ad6afe7dce8fdb69d70f17af602f09553"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaneContainer: TooManyMethods \u2014 78 methods. The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/PaneContainer.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"68223550a9b8014db4bbfb3863f6501eac605db235932ca7197bf0c2b3df71e5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalView: TooManyMethods \u2014 78 methods, declared across 3 files: GhosttyTerminal/TerminalView.swift (66), GhosttyTerminal/TerminalView\u002BTextInput.swift (11), Farol/AgentControl.swift (1). The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"15aec9831449bcece27d75e9da0bcbf805a9a526e8196e2354dc0760732eb7fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/SettingsPage.swift: FileTooLong \u2014 1046 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: SettingsPage (9-1168). The bar is 500 significant lines; this is 546 over it, 2.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3938023745b47af98eb61706114622998eb6e821d1ac4bb923ec14684009b8a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainWindowController: ClassTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded), 114 methods. The bar is 400 significant lines; this is 427 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f91f768c96c2baefcaeb94880ab8a1a073daf6b34035a9ebc00f7bf88b54f48"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsPage: ClassTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 417 over it, 2.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e7de047ae22e3bdfae11c4ea26fb82c234c0b0146840108c6bfa69ad061535"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteBridge: ClassTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 375 over it, 1.94\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"89383c57b1a83bd536b86366ef8819ea8dbee2ab68219198abdbe40a8e36ae30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/GraphPanel.swift: FileTooLong \u2014 960 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 460 over it, 1.92\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43878e176cadd9f78a87cbb80819af5dfd317f1d06685226d319b64523840cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/MergeEditor.swift: FileTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: MergeEditor (33-940). The bar is 500 significant lines; this is 453 over it, 1.91\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c00aced55bdc469ae63e759f7323c6decda657f4e49277dfff7e573f64667ac"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReviewModel: ClassTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 358 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9632b93f941a6683a78247421ae0d188f02f060d63549582e126ec79b434d0f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteBridge: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cc351b7e2a5a6b3a2b638fef89c1605fd698aa2cc989e3962a458d1c270300"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReviewModel: TooManyMethods \u2014 53 methods, declared across 2 files: Farol/ReviewPanel.swift (52), Farol/CommitSheet.swift (1). The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ffac049e7d1151cd4d69c5a5d878b31bf98719764d4003bb8462c67bcfede7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/MainWindowController.swift: FileTooLong \u2014 859 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MainWindowController (9-1182). The bar is 500 significant lines; this is 359 over it, 1.72\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccf0876864efa318b090d000e46ce07319ddb57cdfbec7c1687dafc601b6c91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaneContainer: ClassTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 400 significant lines; this is 268 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/PaneContainer.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd64d7dce157b1bc2c5833736e4f741322b54b4384d63723ee21320c4d42a56"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/RemoteBridge.swift: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: RemoteBridge (10-1170). The bar is 500 significant lines; this is 307 over it, 1.61\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3d9007135e693ee5b5921e1351d6d8d9ef1fe13091dc65fbbfa4a77bdbab51"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MergeEditor: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 241 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fd7a8c7555675365309a7aaba1e7ee2b3c782c29eada6ba1e5892ba710ff3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MergeEditor: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aee58aec79b9d7fb15c5794f32dab46177c4dcb7bec7ecbde2473f0237014ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Syntax.tokens: MethodTooLong \u2014 tokens runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0430160c8695fba3d75aa3ff4a3ef666887ffe90bb9ba1bea56772a47e510bd3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a005d3fdf7de162647de9fe009976770ea4e0a06f6936b87e5feb5e9c7cdcccc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/MergePanel.swift: FileTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 252 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9874a1130b4987e30f8accf1d2506ef504d3fa4f48d0000bd7eedb661b46f3b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/NewTaskSheet.swift: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74013a2f0f45ddbd6786829a337b0d61fefaa4f83bd8d55bce4168ad1e21449"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FarolCore/Merge.swift: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 235 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Merge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20a581974d174c26e42a9e0a3049bd4465e2c85168ff7d3483cbbffe31186cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/FileView.swift: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: FileView (7-664). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af30294bfa5c3c311b6ac8e0e5ebf6d9c46c56bf4a049b12bf21caa9d22e7353"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/PaneContainer.swift: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PaneContainer (8-1000). The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/PaneContainer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d08cb7f3c1048a3c100a39bab26043462e413aecad07daf33741975552057c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2805c9ea46b638a4439ff75a5a9c9c1d020402ed370c1bd9c27c101c0163c8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalView: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3bedec1ca3bbc8588f0d915c36ff116a952514e08eda608635a7983caef6d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileView: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 52 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63d8bc0d251e7f7f25d6a682ae58f01b357de1fabbfbd5fb5f869051d0e9b5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/SidebarView.swift: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SidebarView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"173485e1475e7695fb6160667a09424a9cc22b6d3cde1e3c2d609d94a51c7b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Syntax.markupTokens: MethodTooLong \u2014 markupTokens runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/MarkupSyntax.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e26e1ba3245becd6741251502e53a2bc3b4f327207d21d59ae7380406ed45ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/Chrome.swift: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/Chrome.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"675b0da3a5b8d5390a6dd9de61fc0290a4eb7dbf87d361f5c22155c98a145562"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Farol/SessionStore.swift: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: SessionStore (344-844). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f458db7857ddb1fd822f2673c9fc7b0886ce343582ea21e4930d9b8e61d5ab1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MergePanel: ClassTooLong \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 14 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"66558419df36bda06562df79dbb347259c20e86671ae0a6ad99c9ad7d8cc1d9f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Forge: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9963d68b8965c939d849ee075fc6045e2a2cf0dc0b6a4f1a4a2522278249d129"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NewTaskSheet: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8011331602634072b436c58e1f001aa674e42b9b7bee8829ed47dcb4044f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Farol/AddCommandSheet.swift:18-28 | Sources/Farol/EditTaskSheet.swift:50-61 | Sources/Farol/ManageCommandsSheet.swift:44-60 | Sources/Farol/NewTaskSheet.swift:74-105 | Sources/Farol/RequestSheet.swift:63-75 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AddCommandSheet.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7585108e5b367c69ff8a72a16df7b7e6b1f0bfacc8f7fac89777039532b3745c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Sources/Farol/MergePanel.swift:930-968 | Sources/Farol/MergePanel.swift:993-1035 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8743fceae0ff8dcd0169d46248105314b07e2cee14c8746f80ae9e73b3c2ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/FarolCore/Jira.swift:89-102 | Sources/FarolCore/Linear.swift:35-49 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Jira.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"876ac62e4aebed001d9f235da87702a43695a96d48b4eaef1b8cbdac79ec2898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Farol/MergePanel.swift:805-823 | Sources/Farol/QuestionForm.swift:163-184 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a3bbcec801d73b2af317a545ba8d1f9e0f98c9d2dec5f4ce10d6bb2c3bfc60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Farol/RemoteBridge.swift:950-964 | Sources/Farol/RemoteBridge.swift:967-979 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"383ef8a8b0c9cfb47885cbabb4da838521d04228369d3d661f0566c77bd0bc52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Farol/PaneContainer.swift:812-831 | Sources/Farol/PaneContainer.swift:833-848 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/PaneContainer.swift"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d7000fea171630561a301bacf41358e9c421c45decf24d01099d4b948d455f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Farol/NewTaskSheet.swift:673-692 | Sources/Farol/ReviewPanel.swift:1429-1449 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b5e19196f5829be30be47355e59306d81de27e9d982465a2d5a95896aa4f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Farol/MergeModel.swift:202-220 | Sources/Farol/MergeModel.swift:262-279 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeModel.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b7250011f2d4a49a2be324948b5ad801ca8e20c3d1c2dcedfebddf93e74421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Farol/QuestionForm.swift:205-217 | Sources/Farol/Sheet.swift:27-40 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/QuestionForm.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ff9557553a8b02bc42c36b91783c82a0351ae1711322249c86a1cc835ef024"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Farol/ServersSidebar.swift:261-274 | Sources/Farol/SidebarView.swift:511-531 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef2f3ce1c840bfcee35ec94bfb9c5862e622f162347bf3297843f42def9c4d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/FarolCore/LSP.swift:65-82 | Sources/FarolCore/LSP.swift:85-99 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/LSP.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a567d68abd3f1ed9e7f882588e99ec1b0bf2e15e33023d511385a23b29636266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Farol/FilesPanel.swift:188-200 | Sources/Farol/GraphPanel.swift:544-556 | Sources/Farol/ReviewPanel.swift:1405-1418 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FilesPanel.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a55212d0506f00194ec68f50ea50c567fba625db1d176b28f16a4e390ee21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Farol/Chrome.swift:597-606 | Sources/Farol/Chrome.swift:617-625 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/Chrome.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4a9ee02953c5fba0031c0285d852f0164f48feaae633b8879ca8a23aff1b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Sources/FarolCore/Forge.swift:172-181 | Sources/FarolCore/Forge.swift:206-214 | Sources/FarolCore/Forge.swift:515-523 | Sources/FarolCore/Forge.swift:610-618 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba5ad0df64806fdba32f553c4ad1872cf09216899213afbd30b93bb2d663e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Farol/ReviewPanel.swift:1948-1963 | Sources/Farol/Sheet.swift:51-66 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4152bbc4deea8ccea4a990df48a805367c0468034fd96dde437c467353ac707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Farol/CommitSheet.swift:512-532 | Sources/Farol/RequestSheet.swift:168-188 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45e6aa52ed9398293872fb90e5720c35f465a135552ab07d6349f8cb351b33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/FarolCore/History.swift:64-69 | Sources/FarolCore/History.swift:72-76 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"057f1d71e464785ffd8352dadc903e1e0faafbd6c1f62c8867983427544d687a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Farol/ReviewPanel.swift:1637-1651 | Sources/Farol/ReviewPanel.swift:2204-2217 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c2d7fe7143cf814d0f047eeca3c9e3a7f6a22b7d06491bfaf634cc4f437dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/Farol/FindInFiles.swift:414-427 | Sources/Farol/ReviewPanel.swift:2204-2217 | Sources/Farol/SidebarView.swift:540-554 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FindInFiles.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a78b9b13c73cdeeeb5fabc5daf32aaaf8f7c1e14fc5bc59df432d835b408e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Farol/Chrome.swift:770-782 | Sources/Farol/Chrome.swift:794-806 | Sources/Farol/SidebarView.swift:540-554 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/Chrome.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fb8f3f98eb14ef87516e8413c7adccbc84fbc26d90b55f7692467935d5d324"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Farol/MainWindowController\u002BServers.swift:166-176 | Sources/Farol/MainWindowController\u002BServers.swift:215-227 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController\u002BServers.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77e7df8ae9cd94cfa849c893e6ee0781f3737f78b3c9e33a075493a1b926196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Farol/ServersSidebar.swift:105-109 | Sources/Farol/SidebarView.swift:108-112 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c9d9fb958391df1a2c923979ee56a5ab0ce075686e8629a144112248943a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Farol/ReviewPanel.swift:1948-1963 | Sources/Farol/Sheet.swift:112-125 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f2eaa4861f8b6c5cd7650621de3c32165a38658d5a4ed6955c93830e1945a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/FarolCore/Schedule.swift:103-111 | Sources/FarolCore/Schedule.swift:114-122 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Schedule.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d80e8a388d216aa460478c55f4b6fb9f55db8b263846135a0d87f059afb88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/FarolCore/Jira.swift:6-11 | Sources/FarolCore/Linear.swift:6-10 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Jira.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"daeba3e9a9d59e3ee648d3804a4d534403625aa8c84c7982678b9e316be36eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Farol/MainWindowController.swift:693-699 | Sources/Farol/MainWindowController.swift:702-708 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f78b6fdb5b6a5267de05f460915b1f978bdfc1e8f3e1baeaacb946bb1c559f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Farol/HoverTip.swift:41-46 | Sources/Farol/HoverTip.swift:49-54 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/HoverTip.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8fdaeaeb3c546a9cfff212b90a2fa15662ac9c69d5f47fd76c64f65cd0d19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/FarolCore/Files.swift:85-92 | Sources/FarolCore/Files.swift:95-100 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Files.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"817ee0e8b73b046ccbfbf4295228631bda67bd613dda54653628bc0ca058d2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Farol/GraphPanel.swift:204-209 | Sources/Farol/GraphPanel.swift:211-218 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"576218aa941e5ff585246f427368f6996805808c121b3a46921d39df0ab36924"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Sources/FarolCore/Diff.swift:155-160 | Sources/FarolCore/Diff.swift:239-242 | Sources/FarolCore/History.swift:255-258 | Sources/FarolCore/Merge.swift:480-484 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Diff.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6212717dcd8b7a48c5e9be5fef956111f1bfe9ac29d58aa0bf656d3f012420e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Farol/GraphPanel.swift:221-232 | Sources/Farol/ReviewPanel.swift:1044-1053 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb93caace90ffa36fc90f9c4ec353105c0b99738a1f2b20a1ffd94a7863b61c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Farol/MergeModel.swift:170-176 | Sources/Farol/MergeModel.swift:179-185 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeModel.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35fd6f2d57e3e4d1fad6406e4f8c86f1a83b7fcee261fdc0de81770b208e673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/FarolCore/ReviewNotes.swift:22-29 | Sources/FarolCore/ReviewNotes.swift:44-52 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ReviewNotes.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a072969084618969939740d33121433ebe5ff98ba3df464427d8cf1e20c447a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/FarolCore/Jira.swift:134-137 | Sources/FarolCore/Linear.swift:56-59 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Jira.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac7da0a6b0d0b0038191250d73d49e58530e2d285cefafde908d8113faaf2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/FarolCore/NavigationHistory.swift:42-49 | Sources/FarolCore/NavigationHistory.swift:52-59 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/NavigationHistory.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed37b775e0d4998bae3e10869eb91228094c7e2d80f4d01ef778b63a206a40d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Farol/CommitSheet.swift:200-205 | Sources/Farol/MergePanel.swift:912-917 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e407ac13796076b35607a3d86af80c193460ce57d9ce1cc47ef78672a5a7f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/FarolCore/TaskFolders.swift:93-99 | Sources/FarolCore/Worktrees.swift:149-152 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/TaskFolders.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86867507894d02a9a65a68c093d47ff609500fd52029c7ec2d36fddcd9eac2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Farol/MergeModel.swift:236-239 | Sources/Farol/MergeModel.swift:246-249 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeModel.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a453a603071c8a85bb728003c904a23f28bae5d99a8f33e682986ca0b09de0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Farol/MergeEditor.swift:572-581 | Sources/Farol/FileView.swift:622-627 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a5753b1930b87c85b7c4bc70cdf63c6e40e1ec764e9e15e4af0ec5b7c73d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Farol/FileView.swift:1043-1049 | Sources/Farol/HoverTip.swift:180-186 | Sources/Farol/QuietButton.swift:50-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"1439776f837be4a869b4a356efcfa99e6109f17b7b658b4e8ab0c4a9573583b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/FarolCore/AgentPlugin.swift:22-25 | Sources/FarolCore/AgentSkill.swift:17-20 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentPlugin.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8064b867f9ec3ca34dc694bb3dcada4caa65f002d7acdf880c6c66ed1fbaa03c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/FarolCore/Jira.swift:128-130 | Sources/FarolCore/Linear.swift:51-53 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Jira.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f55bcbf4cea435a99363ce52981b5734e25b59a2a135404992a93979bf82f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Farol/RevealKeeper.swift:47-49 | Sources/Farol/ScrollKeeper.swift:201-203 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RevealKeeper.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"add6f6d41a61e3749b3a00eb3b8c160c3e98037213835eee864dcf76b53a6909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/FarolCore/History.swift:154-156 | Sources/FarolCore/Merge.swift:609-611 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ac77b8f4793114306309658cd0d6190b1e951c85113963bae73bb8c9d38e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/FarolCore/History.swift:201-203 | Sources/FarolCore/Merge.swift:605-607 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93ed0169b2d4f3b0d3dc43fb7d475af89652528ead39a9fedd57a91a59c71cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Sources/Farol/MergeEditor.swift:291-291 | Sources/FarolCore/MergeResolution.swift:191-191 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d6664497fd6dee51948208c65443ebfbed2dc27ffec16d2c913361648dad97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Farol/ServersSidebar.swift:101-103 | Sources/Farol/SidebarView.swift:104-106 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"674d9a86706ea10a1cf7c179ca7372fab4b0a8b76065f39414b5434c32e671c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Farol/MergePanel.swift:956-968 | Sources/Farol/MergePanel.swift:1023-1035 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/MergePanel.swift:956\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"5692fe749b4bfa244ee7f223368e1657341235c264a9b8cd51d263e48af1acc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/Farol/CommitSheet.swift:491-500 | Sources/Farol/MergePanel.swift:956-965 | Sources/Farol/MergePanel.swift:1023-1032 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/CommitSheet.swift:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"a838468649bb63a3cc4d28d727c3d65777f7f6f520a38f4a4197375c778fbc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Farol/MergePanel.swift:942-951 | Sources/Farol/MergePanel.swift:1009-1018 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/MergePanel.swift:942\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergePanel.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ccce739e9238aed8e6f53df32c64cee443c85c1c955072099ad0d19d532685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Farol/ServersSidebar.swift:238-245 | Sources/Farol/SidebarView.swift:258-266 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"26257628ab1b6b2d12408a310add2ffba361e8c1f10b2fbc437f75b228fc27a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/Farol/AddCommandSheet.swift:80-87 | Sources/Farol/ServersSidebar.swift:327-333 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/AddCommandSheet.swift:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AddCommandSheet.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93921176c1d7f452098e600eabc1ff526209e0612d53223b0ada5681e74353f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Farol/ManageCommandsSheet.swift:53-60 | Sources/Farol/NewTaskSheet.swift:97-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/ManageCommandsSheet.swift:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ManageCommandsSheet.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"46252f96246a0a75ea20c55849d97ea96d0ae23f608355b7fe4b5595e7489ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Farol/NotchStatus.swift:331-338 | Sources/Farol/NotchStatus.swift:414-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/NotchStatus.swift:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NotchStatus.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6155644ce735b6f344252e9b2ea5d2143ea521407fdb90e34f88e503c75270a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Farol/CommitSheet.swift:477-483 | Sources/Farol/MergePanel.swift:945-951 | Sources/Farol/MergePanel.swift:1012-1018 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/CommitSheet.swift:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b907c78968323898ad0707c13fe6c26f9885d098e1585bbff24edbd28e5970f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Farol/GraphPanel.swift:852-858 | Sources/Farol/GraphPanel.swift:928-934 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/GraphPanel.swift:852\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c4cbb5518ebbe7c3297d5e1e149a879ed19870837aa56eb9ce0eb78e544470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Farol/ReviewPanel.swift:1441-1447 | Sources/Farol/ReviewPanel.swift:2209-2215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/ReviewPanel.swift:1441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5db3fabcc8bd00f8d19725f8c0456d425a284970013f90bece4a93dbb3d5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/FarolCore/AgentStatus.swift:306-315 | Sources/FarolCore/AgentStatus.swift:333-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentStatus.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59002403a50f917e36797f93599c469c92dd686b8acec927b33fe0fde1de373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Farol/AddCommandSheet.swift:23-28 | Sources/Farol/EditTaskSheet.swift:56-61 | Sources/Farol/ManageCommandsSheet.swift:53-58 | Sources/Farol/NewTaskSheet.swift:97-103 | Sources/Farol/RequestSheet.swift:70-75 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/AddCommandSheet.swift:23\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Farol/EditTaskSheet.swift:63\u0060 calls \u0060trimmingCharacters\u0060 and \u0060Sources/Farol/AddCommandSheet.swift:30\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AddCommandSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc55c5333c32417fca90d3f82bc1d5a5e36771faa076b638a9e4327e7fd233a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Farol/ReviewPanel.swift:1576-1582 | Sources/Farol/ReviewPanel.swift:1682-1687 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/ReviewPanel.swift:1576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83c91a5a2f62a7f93b68994baf735f99a637c3c524c3a90788e4dec5836e855"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Farol/AgentControl.swift:100-104 | Sources/Farol/AgentControl.swift:120-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/AgentControl.swift:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AgentControl.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f423e67c2e2fb7c8c6d7d69242dc61c7edd95b62135c9ae7a0b24b414c95c959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Farol/FilesPanel.swift:189-194 | Sources/Farol/SidebarView.swift:85-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/FilesPanel.swift:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FilesPanel.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d94758a6878493d679284fd5f7a98f19ddafd30b07706f2228d2d0fcc6cd55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Farol/GraphPanel.swift:545-550 | Sources/Farol/ReviewPanel.swift:1407-1412 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/GraphPanel.swift:545\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc8d61779906efc3738a956c6ca539caf54499a97061fdeb6d8726f82c36785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Farol/ServersSidebar.swift:161-167 | Sources/Farol/SidebarView.swift:610-616 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/ServersSidebar.swift:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc42f3cd5d7cd5b688baedfd5c77af63eb7de1b140367351636beb8b89e0c04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/FarolCore/AgentSetup.swift:73-78 | Sources/FarolCore/AgentSetup.swift:105-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FarolCore/AgentSetup.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060hooks\u0060 to \u0060AgentHooks = .claude\u0060 in one and \u0060AgentHooks = .codex\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentSetup.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0952adcc9fba44e21f6a4fb12b14a78f4b4ea68a55cb47a7de36d491c2f4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FarolCore/AgentStatus.swift:207-211 | Sources/FarolCore/AgentStatus.swift:348-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FarolCore/AgentStatus.swift:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentStatus.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"888394e311e23381502a30ecd83170e608c121f4d636ca2798ccf4c55324e33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Farol/FileView.swift:733-739 | Sources/Farol/PaneContainer.swift:564-570 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a9ab722567d4828bdee52a3544ca8eb48f69af45c1ee2c3c2c2d4f21053073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Farol/CommitSheet.swift:458-462 | Sources/Farol/RequestSheet.swift:104-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/CommitSheet.swift:458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/CommitSheet.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f06c27a68be31f893e097ac146d68316c536e9b8b0341d21c021a91d7935f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Farol/FileView.swift:818-824 | Sources/Farol/MergeEditor.swift:1080-1086 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f55a237ecfae9e23b808fab4dc0dfc2ba30060e7d8e0a1390e8f4e84eedf2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Farol/ServersSidebar.swift:267-271 | Sources/Farol/SidebarView.swift:526-530 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Farol/ServersSidebar.swift:267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Farol/ServersSidebar.swift:272\u0060 calls \u0060onTapGesture\u0060 and \u0060Sources/Farol/SidebarView.swift:531\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7270abe676d3c035829b1bda729f14c4a5fd73a66867bcc549477b14cd0f5163"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: GhosttyTerminal: GhosttyTerminal: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c6481526b622f63b8e515c9c47564ebd438d73a7a42573782f48df21d53d22bd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: FarolCore: FarolCore: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a6c31e983bcfe39096582a43b9ead31a7dbf0e77dbaa20d7bec1591e1ada384e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TerminalView (LCOM4 22): TerminalView\u0027s methods fall into 22 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 22 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1f0cb51a9ec89aedaabf881456c28b2232239910340f3ab41ceb2ea3c64b7f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodeTextView (LCOM4 6): CodeTextView\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/FileView.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7591b6d9a8d2c872054a70d44ec837b25b2721c6b2f0030488d6556c09530f6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MergeTextView (LCOM4 5): MergeTextView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MergeEditor.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c52ebaf7e33137163f51bbb779f4905c9051d89bff55d986df771ff69759d74"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainWindowController (LCOM4 4): MainWindowController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d197b9769293b4979275a249e7512940626e65434acd9917d2df396e6d639827"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/MainWindowController.swift: Sources/Farol/MainWindowController.swift changed 101 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in MainWindowController.init at line 92. 12 of those changes were fix/bug commits, and the other 89 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/MainWindowController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/MainWindowController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1504468c0647540581c2f953022547e213dfafe548c31e6a9089ef9d887f7f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/ReviewPanel.swift: Sources/Farol/ReviewPanel.swift changed 67 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ReviewModel.refresh at line 953. 14 of those changes were fix/bug commits, and the other 53 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/ReviewPanel.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ReviewPanel.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0ba8354865fae2c2ade27bf0992f9e51fa14e282fde88b71fc39b0ee4a311e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/RemoteBridge.swift: Sources/Farol/RemoteBridge.swift changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in RemoteBridge.run at line 460. 12 of those changes were fix/bug commits, and the other 44 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/RemoteBridge.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"367810fda777c210fa82e47e286c27ba2d60d9238e455b5de513f924f878c949"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/SettingsPage.swift: Sources/Farol/SettingsPage.swift changed 105 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SettingsPage.remoteSection at line 832. 22 of those changes were fix/bug commits, and the other 83 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/SettingsPage.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SettingsPage.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f392ff2cbbb3b8a077204265a49a2f4ea683b0b30c4a5f87cb54456d1f8a185"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/FarolCore/Syntax.swift: Sources/FarolCore/Syntax.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 159 in Syntax.tokens at line 89. 1 of those changes was a fix/bug commit, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCore/Syntax.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"863d847519be1e7bafd212bbd104050ce0e954df0bd47885a5211f71c4150aed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/SessionStore.swift: Sources/Farol/SessionStore.swift changed 73 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Session.refreshGit at line 245. 23 of those changes were fix/bug commits, and the other 50 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/SessionStore.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/SessionStore.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"7095c18ad2b723db94d08f184a80a59157dfff35ced61d18e719e74b1decf1e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/GhosttyTerminal/TerminalView.swift: Sources/GhosttyTerminal/TerminalView.swift changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in TerminalView.handle at line 173. 9 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/GhosttyTerminal/TerminalView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ee410747cab0f6681f40e15b6c0cbe8bb6926d6ac67dcf27049127bf35d176"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/NewTaskSheet.swift: Sources/Farol/NewTaskSheet.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in NewTaskSheet.body at line 166. 8 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/NewTaskSheet.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/NewTaskSheet.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95b6891df8b4334cbc089df5ed5e7d10f6c1c6953b8043459ceebd62d5dfd88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/GraphPanel.swift: Sources/Farol/GraphPanel.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in BranchRow.body at line 778. 4 of those changes were fix/bug commits, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/GraphPanel.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59a992f418e304ae1df964a29f22fae77ed5da53f1c40e8a4652c34004229a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/DiffTextView.swift: Sources/Farol/DiffTextView.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in DiffTextView.drawBackground at line 383. 5 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/DiffTextView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/DiffTextView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c2341064a93e5666c19b94ffe52a698aa3fd0a39581275e344e7cd502c26db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/FarolCore/History.swift: Sources/FarolCore/History.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in History.graph at line 303. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCore/History.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/History.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0698174a58426b20d4756171e0f27589779909f261b02166ec6bd5f4cdc2624"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/GhosttyTerminal/TerminalRuntime.swift: Sources/GhosttyTerminal/TerminalRuntime.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in TerminalRuntime.init at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/GhosttyTerminal/TerminalRuntime.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GhosttyTerminal/TerminalRuntime.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26703c660c39cb62acfddb5892374cf1bd68ec2ec279a6e186757f2f34d7560"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/FarolCLI/main.swift: Sources/FarolCLI/main.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in main.swift.top-level code at line 4. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCLI/main.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCLI/main.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cffe8e8dffe7c26e6c57d953935a33844d390992127e39215d0dc443413e4f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/check-style.py: scripts/check-style.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in check-style.check at line 47. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- scripts/check-style.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-style.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"638e8b3262581d111d15841b1763a842b81e2182a2ebdae3c80d8805bada3eac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/ServersSidebar.swift: Sources/Farol/ServersSidebar.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ServerHeader.body at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/ServersSidebar.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/ServersSidebar.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38a794975e5fae97ca35e5c50b0232a6971a9dea6efd178bada849b39e8f5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Farol/AgentControl.swift: Sources/Farol/AgentControl.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentControl.handle at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/AgentControl.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/AgentControl.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dd0d4cef35168ac5a8411ecdb40b82f01c9cab878c23a2b3331082c4c80b7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/FarolCore/ClaudeLog.swift: Sources/FarolCore/ClaudeLog.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ClaudeLog.messages at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCore/ClaudeLog.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/ClaudeLog.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"be323501395f7e0429a1a9d5fa12dbd2481d2502a0a318e3db938fd77e384f8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/FarolCLI/Control.swift: Sources/FarolCLI/Control.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Control.run at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCLI/Control.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCLI/Control.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"359a05ca5ce66169ae3cd6cd422e908802d602968f92d80d33326878a9d08988"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Farol/Settings.swift: Sources/Farol/Settings.swift changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is Settings.write at line 95), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(settings): keep fallback font-family lines\u201D; \u201Cfix(settings): write to the line the terminal reads when a key is repeated\u201D; \u201Cfix(settings): reload the config when it is written in place\u201D; \u201Cfix(settings): keep the config file in sync with the settings page\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/Farol/Settings.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/Settings.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9254d84f16eb655819f1f563cbe779713da4720353ecd250e243275ad62ab794"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/FarolCore/AgentActivity.swift: Sources/FarolCore/AgentActivity.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is AgentActivity.apply at line 32), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(remote): clear a stopped agent and let a phone forget this Mac\u201D; \u201Cfix: an agent\u0027s own ring no longer keeps its session waiting after you answer from the phone\u201D; \u201Cfix(codex): track interactive status from titles\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 12:56:14 \u002B01:00\u0027 --until=\u00272026-11-16 12:56:14 \u002B01:00\u0027 --full-history --no-merges -- Sources/FarolCore/AgentActivity.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentActivity.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f900a381533171a01bcefba9e0016220a91f74d44030f9b470aa14fa8b1748"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"594ba20856faebb900e8f635978e37e019356a968254d953432a089b831a6265"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77d479d859b96eb5d892037d7965c37334d24e29558599b10ab37766e4323f7f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a3cd02fb961348a5fead84a88b47bcdfd31125fc223cf3896561faeb77b6f35f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6ef2f316ca631b692d03c475bed7e473e93f3db6fa35d9ef86248c50808e234"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c802ec97e672feaa32f710e6686a62b890e325cf5a04a8fb4136422a8a2ef74"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1345023d7fbd8cf5a0757676fb09bce9a318d5377f37603a8e9a9cd6c4eec47c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f67689a297bb41caefacb18f90f8d8b8d87c17b718addea044e6a5ebece84060"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c1e1defd7632d121f65263d3ca60c80a8267e20962c6b67157da0a74b771d28"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e11d1cc811b780b0814c02a05946230c36db0dec716e86b4efc56f8cb9e2e74f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.status == .waiting || $0.status == .stopped\u0060 appears character-identically in 2 files \u2014 Sources/Farol/RemoteBridge.swift, Sources/Farol/ServerLinks.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/RemoteBridge.swift"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f91a942c8e3bf3132ceb8bf16d24fa1fd17d6ef35276e03bccc8912eb8c0b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060base == branch || base == \u0022origin/\\(branch)\u0022\u0060 appears character-identically in 2 files \u2014 Sources/Farol/GraphPanel.swift, Sources/Farol/ReviewPanel.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Farol/GraphPanel.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"868ec67991cced67689e62ca4c0bf55454fc7756d930231ebe2acb8a80680b01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name == \u0022.env\u0022 || name.hasPrefix(\u0022.env.\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/FarolCore/Syntax.swift, Sources/FarolCore/Worktrees.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Syntax.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51527e57681d303d2f970c2dbcd1ef4ec53c5e7a97eab5f3c64de3d17ecce40"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/FileSearch.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"283a85aeb483ef1543d927b6dd0d662fdecf86bc1b8a337b332b886bb086cb6c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060number\u0060 returns \u00600\u0060 when \u0060(AttributeError, TypeError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile-report.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1564c4fa8436fe2cf41ce8f54eb5b6d0706aea961f23b3e7599effe4d76bba3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060disabledSkills\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/AgentCommands.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"36823c013cbea7dae437c3c2d28ed5b447b0f3e7be22e72d2712696b44650e3b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060grep\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/FileSearch.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3929278fada760811cad9e8cb004daf3cdaaa9c38ba577943912720a407d8190"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060ignored\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Files.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c1af50c05cf14a37426bc5902e988927060ae3779839c7ff5d706d034d8a55"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060tracked\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Files.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82e5f66c9a7dc0edbaf0adfb4d8f4a8e334ca83eaf0db3c77d9d3587547051b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060openRequests\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"6718fc52d2243165e27a8f700d63dda05ce39ef8ba2c27b193b9d302f310dd9e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060checks\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2511e3d6e07b709769d210cf136732fe1a74984e57efaced1870e67f6dd805"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060labels\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Forge.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5545da266fd40bb152972b040d929afb9b8c5266abe732266641fe14273a7e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listening\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Ports.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d6ebb09e590cd0c41c0b0b0d8fe15b09f65288cfa22899c982373c81f48a1b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FarolCore/Servers.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c3909a7a40a3a9d53ccc37fc66c3af5e23737a8b4145e00b5eff98e7df55bb"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":17,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}