{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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":"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":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"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":"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":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"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":"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":"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":"ConversationParser.parseContent (cyclomatic 50): ConversationParser.parseContent has cyclomatic complexity 50 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"735dd23de3b2633131bdb46bd1657766eefa37be251d3c9f30811293df2d7d65"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationParser.parseMessageLine (cyclomatic 32): ConversationParser.parseMessageLine has cyclomatic complexity 32 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2959d5889e0336fdb4b21d560afd0eb2c633eafada55bb8804db04eac13c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationParser.parseSubagentTools (cyclomatic 30): ConversationParser.parseSubagentTools has cyclomatic complexity 30 (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 (ConversationParser.parseSubagentToolsSync) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c85041ee5d0a733eacd3000d599a9768680e7f90449e18800b9b4e6b37f953c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationParser.parseSubagentToolsSync (cyclomatic 30): ConversationParser.parseSubagentToolsSync has cyclomatic complexity 30 (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 (ConversationParser.parseSubagentTools) 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2d09b008634cd30883e3f3fb463da106dc8122913c5d49987d96f78c527632"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-island-state.main (cyclomatic 29): claude-island-state.main has cyclomatic complexity 29 (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":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22e297e96f63bb6f0c6d2984afb70f97ce6d936a95605480c43a39a36587275"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCallView.body (cyclomatic 28): ToolCallView.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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3356cc0c10e578cfcf9c3f80602884663a6de23905680d2de4053c08738dc16"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolStatusDisplay.completed (cyclomatic 27): ToolStatusDisplay.completed 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":"ClaudeIsland/Models/ToolResultData.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df0178e1c404b0fba567640d44174b58c4dac59f8d5c91e2cabcda530933900"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationParser.parseNewLines (cyclomatic 26): ConversationParser.parseNewLines has cyclomatic complexity 26 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e6eabbfcacd99bdbaaca092a57c9a194675af0df2e79ed99f5749faeb1ae88"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.body (cyclomatic 25): ChatView.body has cyclomatic complexity 25 (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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"da59ebe229ad100053ceec6974d885ca31a5cc729da2468b684ffc28fcebbb74"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStore.createChatItem (cyclomatic 23): SessionStore.createChatItem has cyclomatic complexity 23 (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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"c029e2c598edd97e64fc2c5f81166b48cdca30be011abad8cfc0bf150e6964a7"}},{"ruleId":"D1","level":"warning","message":{"text":"InstanceRow.body (cyclomatic 23): InstanceRow.body has cyclomatic complexity 23 (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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d715c1e3af41270c508ccee2944b15c039c4090efd33a720ae8c5b8f303e0f"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStore.processFileUpdate (cyclomatic 21): SessionStore.processFileUpdate 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf54860f07dbede032e97e35c20a9e033da726b518a6fd3a9aa4e237257ab7d9"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStore.processToolTracking (cyclomatic 20): SessionStore.processToolTracking 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d826bb32deb7e55c8a451e3d81a1d2cb030c0fc9e5f596aa01b7dc003a1d5a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationParser.formatToolInput (cyclomatic 19): ConversationParser.formatToolInput 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 21 methods over the threshold \u2014 including the worst \u2014 and 97 of the 189 points over it (51%), 4.2\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 23). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d2667468baf0179cd420609fd0f47aa72798487390d9e962ca3647051e1d91"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionStore.processSubagentTracking (cyclomatic 19): SessionStore.processSubagentTracking 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c43ee7e083a395cb3a61e6fdd3d82d1983302a400a563d74428fc71e073540"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolStatusDisplay.running (cyclomatic 18): ToolStatusDisplay.running 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":"ClaudeIsland/Models/ToolResultData.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a2584621b1963d5d00488a9410169576960403125fd5c69d1081ca6b8877e6"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentToolCall.displayText (cyclomatic 18): SubagentToolCall.displayText has cyclomatic complexity 18 (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":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2953e8307544eccc6587ce4c5276c54c1e9561be8f0a50d518807fa8ce25b9eb"}},{"ruleId":"D1","level":"warning","message":{"text":"HookSocketServer.handleClient (cyclomatic 17): HookSocketServer.handleClient 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":"ClaudeIsland/Services/Hooks/HookSocketServer.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fb15a535c21db62d4b134acc9dcfa5283fd29d1190433b34fc9028340164c0"}},{"ruleId":"D1","level":"warning","message":{"text":"NotchView.headerRow (cyclomatic 17): NotchView.headerRow 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":"ClaudeIsland/UI/Views/NotchView.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5a44e7dc1fa3ecbc3ff244f912294ac8f516307deff30b6cc61dde0123a7a5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.fetchAndRegisterClaudeVersion (cyclomatic 16): AppDelegate.fetchAndRegisterClaudeVersion 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":"ClaudeIsland/App/AppDelegate.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0758087aac3a680204b8fe20f035894e74efff2d350229eeae0fdd013c7bf58a"}},{"ruleId":"D1","level":"warning","message":{"text":"PermissionContext.formattedInput (cyclomatic 16): PermissionContext.formattedInput 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. This is NOT this file\u0027s highest cyclomatic complexity: SessionPhase.canTransition (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/SessionPhase.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e65899a882083bfc03447cdcfd669371281003e8d574695bab933d6c94a258"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.parseContent (cognitive 109): ConversationParser.parseContent has cognitive complexity 109 (threshold 15). Drivers by points: if/else 23 (78 pts), boolean chains 22, loops 4 (9 pts) (nesting depth added 60). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6a99d101293ecd14662d89a4c451ed62314217b78e1ea47bdb88044ae2f25f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.parseMessageLine (cognitive 75): ConversationParser.parseMessageLine has cognitive complexity 75 (threshold 15). Drivers by points: if/else 23 (62 pts), boolean chains 6, match/switch 1 (4 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 43). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5e01b6ce9fb24958c92d32836b4ef2ec6ba0c5c9902aa2a22d1ba2e257a18a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.processFileUpdate (cognitive 62): SessionStore.processFileUpdate has cognitive complexity 62 (threshold 15). Drivers by points: if/else 12 (42 pts), loops 6 (15 pts), match/switch 1 (4 pts), boolean chains 1 (nesting depth added 42). 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94bf913a2655f9227835b51241355b23f2cd5c945d233915edc7518c27cd4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.parseSubagentTools (cognitive 53): ConversationParser.parseSubagentTools has cognitive complexity 53 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 13, loops 5 (11 pts), ternaries 1 (6 pts) (nesting depth added 24). 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: one other method here (ConversationParser.parseSubagentToolsSync) 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62aa4d6961625048f1d5a2a98cee1fcaf95e15b6aaf356fec209533ae0aae78"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.parseSubagentToolsSync (cognitive 53): ConversationParser.parseSubagentToolsSync has cognitive complexity 53 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 13, loops 5 (11 pts), ternaries 1 (6 pts) (nesting depth added 24). 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: one other method here (ConversationParser.parseSubagentTools) 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9131d55e7caa054db000ee9f0ff33e6da3075f00d663f2d2c71cf51c528348e6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.processToolTracking (cognitive 48): SessionStore.processToolTracking has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 2 (8 pts), ternaries 1 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 29). 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8610abc63474df830d253c92f47b3c999102d67f16cad8951cd170966495501"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.parseNewLines (cognitive 45): ConversationParser.parseNewLines has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 9, loops 2 (5 pts), error handling 2 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc72bf9fe753170ccc4279e79439e198b3ada117d5cdefabbaf4fdffab32100c"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceRow.body (cognitive 37): InstanceRow.body has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (30 pts), boolean chains 4, match/switch 1 (2 pts), ternaries 1 (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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a094e09846645b6cdae2413257a39dbfb5f762a98ec9118d1dbbcd16651464a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.body (cognitive 36): ChatView.body has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 8 (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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a4376076d7b1549f34bfcca864ed70fc4534ae195da2612fcda56f421be08"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.processSubagentTracking (cognitive 33): SessionStore.processSubagentTracking has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 1 (6 pts), boolean chains 5, loops 1 (4 pts), match/switch 1 (nesting depth added 16). 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94255211baa95e0e27409e03f8baeeb054f118da3b97e14573460c241b62ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.createChatItem (cognitive 31): SessionStore.createChatItem has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 1 (nesting depth added 12). 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"3503f40a1b39f48dc75abad3e122145e2d28fa1a83171a78e4a4547d27de947b"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchView.headerRow (cognitive 31): NotchView.headerRow has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 8 (10 pts), boolean chains 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":"ClaudeIsland/UI/Views/NotchView.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08580ef8d20bb56f3a889fc857de00693f9379c58791a7ef9a77045da3a7498"}},{"ruleId":"D2","level":"warning","message":{"text":"YabaiController.focusTmuxPane (cognitive 30): YabaiController.focusTmuxPane has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 18). 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":"ClaudeIsland/Services/Window/YabaiController.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc897da3aa7f989074fb8e62dc1552bfc2e3b94ca30b79f0728a8f096167c72"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallView.body (cognitive 30): ToolCallView.body has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 10, ternaries 4 (6 pts) (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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"693b34d5bf1bb838f3ed091b9a3697ca21ae8d1ac05e6404f8dfbf54ddf64a25"}},{"ruleId":"D2","level":"warning","message":{"text":"HookInstaller.isInstalled (cognitive 25): HookInstaller.isInstalled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (9 pts), boolean chains 3 (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":"ClaudeIsland/Services/Hooks/HookInstaller.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"509403606702f3ee0e47c831fc05fc78d2e0d9c48adf92a03557fb0f3a216f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"HookSocketServer.handleClient (cognitive 25): HookSocketServer.handleClient has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 2, 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":"ClaudeIsland/Services/Hooks/HookSocketServer.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd906c8bdf1b25bb06e1e8ab14bab0553c7ead6bbf5beb80fb2401c3911f5508"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.fetchAndRegisterClaudeVersion (cognitive 23): AppDelegate.fetchAndRegisterClaudeVersion has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 3 (4 pts) (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":"ClaudeIsland/App/AppDelegate.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d49368fd1e658e5eb157025b29fb4d0c799de8bf371b2c2751fcba46177c942"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationParser.formatToolInput (cognitive 23): ConversationParser.formatToolInput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (2 pts), boolean chains 1, 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: ClaudeIsland/Services/Session/ConversationParser.swift holds 6 of the 25 methods over the threshold \u2014 including the worst \u2014 and 268 of the 527 points over it (51%), 2.3\u00D7 the next-largest file (ClaudeIsland/Services/State/SessionStore.swift at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31e92c134f4c1e090b1d524648540228d4e0c0fa8617ae601861714bb52414"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionContext.formattedInput (cognitive 22): PermissionContext.formattedInput has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (8 pts), boolean chains 4, loops 2 (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":"ClaudeIsland/Models/SessionPhase.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eb890f6d56a3ebcfaef0452afc6ab0ac247ed85cf38de45cbdb15e2ec000c3"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-island-state.main (cognitive 21): claude-island-state.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, error handling 1 (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":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a6845238b1774424c4c6f5957962297100ebe0d628273eb213c2d94ed80221"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolStatusDisplay.completed (cognitive 20): ToolStatusDisplay.completed has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (7 pts), match/switch 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":"ClaudeIsland/Models/ToolResultData.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ca1918313afa64029212c56d7762e33d11c590b4b6a6974beed3c1706d20e3"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentToolCall.displayText (cognitive 20): SubagentToolCall.displayText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 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":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa342cac3fd45287944a7646b766c6c571779c3b7c8e82f8dda9da019bf8a2ad"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionStore.processToolCompleted (cognitive 18): SessionStore.processToolCompleted has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57c08a248ef1bc545b2406cb7c258f88ef9ea706b1eedbdcf15cff03f887df0"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPToolFormatter.formatArgs (cognitive 16): MCPToolFormatter.formatArgs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 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":"ClaudeIsland/Utilities/MCPToolFormatter.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8b99d7f0dd8d33908590ee21f717441d4151e30ee5d6ed185d3e88ae9d6d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"YabaiController.findTmuxClientTerminal (cognitive 16): YabaiController.findTmuxClientTerminal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (5 pts), boolean chains 1, error handling 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":"ClaudeIsland/Services/Window/YabaiController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea33e4adfea32a103a581717b9cd0c997772cf4c50fd08c7b17156cbaa1d1ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ChatView.swift: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 263 over it, 1.53\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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17df5d010539eddf5104dc3077b3ba0b646e3de54778cd543d0e5c3ee99c495a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Session/ConversationParser.swift: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 238 over it, 1.48\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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47e254ccfb04fe94946fb763db471ae5389928543dba8cabea4d64f71d6b6ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ToolResultViews.swift: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 196 over it, 1.39\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":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4ba6941894636612faa923b8cd53a7e1730ecf4a019392f637779eac79fc0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: State/SessionStore.swift: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 172 over it, 1.34\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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"916fe9df0091de40bfc6e65110e36bc433eddba7a38b61348da475baec8d9234"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionStore: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5774ccd105cbb6c89177bc2cb67c46070cc2bfd3c5ab95047685f7a1d585054"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConversationParser: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0da5e4cf14b5f9e3cbfd122b1261a8dce104367c9e39e7aa13651ac48c197f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InstanceRow.body: MethodTooLong \u2014 body runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8804103ca90f88b9300c8a24b1f010763c30155a7abe8f5ed2d3abfcc10b1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (19 shared lines): ClaudeIsland/UI/Views/ToolResultViews.swift:657-708 | ClaudeIsland/UI/Views/ToolResultViews.swift:964-1020 \u2014 These two members are variants of one another: 19 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a7c559782ea97a8500b3530f053de027402187b32a101f46b97dc66e945992"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): ClaudeIsland/Services/Session/ConversationParser.swift:728-757 | ClaudeIsland/Services/Session/ConversationParser.swift:759-789 \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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"f630b4869ae1ebd0850fce3fc550309cb10946f8e5ad8b3e84ac5485639613cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): ClaudeIsland/UI/Components/StatusIcons.swift:20-70 | ClaudeIsland/UI/Components/StatusIcons.swift:83-111 | ClaudeIsland/UI/Components/StatusIcons.swift:125-181 | ClaudeIsland/UI/Components/StatusIcons.swift:194-215 | ClaudeIsland/UI/Views/NotchHeaderView.swift:114-130 | ClaudeIsland/UI/Views/NotchHeaderView.swift:154-170 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f36302406c2b446c7eec0b261c3e5f1b23e6e16cf3abb45a59f79e4d97a226c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:21-85 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:22-93 | ClaudeIsland/UI/Components/SoundPickerRow.swift:24-90 | ClaudeIsland/UI/Views/NotchMenuView.swift:454-478 | ClaudeIsland/UI/Views/NotchMenuView.swift:496-528 \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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d2ef5082214933a94d19d04c470ab6ccff75ba850442d94d9e91d53668e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:21-85 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:22-93 | ClaudeIsland/UI/Components/SoundPickerRow.swift:24-90 | ClaudeIsland/UI/Views/NotchMenuView.swift:387-433 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e94277af37211022fe93bea143eb452b3355da0e90152816e33a545b7d1809"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): ClaudeIsland/Services/Session/ConversationParser.swift:964-1040 | ClaudeIsland/Services/Session/ConversationParser.swift:1056-1132 \u2014 These two members are one piece of code written twice and then edited apart: 77 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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e084fdc86d79a4b60a73b68d768526bf4f7bc59854adcb32f836d445fcbe0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): ClaudeIsland/Services/Shared/ProcessExecutor.swift:71-121 | ClaudeIsland/Services/Shared/ProcessExecutor.swift:125-166 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"ClaudeIsland/Services/Shared/ProcessExecutor.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"108b199941a1aa81a21a9ccc15e7358cdd0f19f655d659f01cdaf02e40270512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): ClaudeIsland/UI/Views/ChatView.swift:1059-1110 | ClaudeIsland/UI/Views/ChatView.swift:1126-1192 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"f675503b90fb0fbdb2ebb68d62f59f1305507402144a1f016e05e4a55e77ce14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): ClaudeIsland/Services/Hooks/HookSocketServer.swift:473-505 | ClaudeIsland/Services/Hooks/HookSocketServer.swift:507-553 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"ClaudeIsland/Services/Hooks/HookSocketServer.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0accf85b96506056c07c13967347d1bdf9b756bec4fa8726d2f72deb7cab5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): ClaudeIsland/Services/Session/AgentFileWatcher.swift:55-95 | ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift:54-92 \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":"ClaudeIsland/Services/Session/AgentFileWatcher.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf9bb80b74ea5388db587923c2d56407878221702ed4ea3816803cfd479565c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): ClaudeIsland/UI/Components/MarkdownRenderer.swift:137-159 | ClaudeIsland/UI/Components/MarkdownRenderer.swift:161-183 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"ClaudeIsland/UI/Components/MarkdownRenderer.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"489e988aef8440ea6a53011540a467acc187dce7321fe34cdbd667e3caa2fbb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): ClaudeIsland/Services/State/SessionStore.swift:382-417 | ClaudeIsland/Services/State/SessionStore.swift:484-518 | ClaudeIsland/Services/State/SessionStore.swift:520-550 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"41330c396e1fafc8a1a7f68f17a19adc031cb48dac4984a0c440dc0b9f838a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:167-203 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:149-185 | ClaudeIsland/UI/Components/SoundPickerRow.swift:106-134 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"be32c93bbc9dc946508f6e041389051461e3649d3ad0bb0e9f2e649a27bad8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): ClaudeIsland/Utilities/MCPToolFormatter.swift:76-102 | ClaudeIsland/Utilities/MCPToolFormatter.swift:105-142 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"ClaudeIsland/Utilities/MCPToolFormatter.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae7cb046e55cedf9c4f1527c9d4b4cc75dfd6243ed85d016b45b9abd1d030e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): ClaudeIsland/UI/Views/ToolResultViews.swift:337-366 | ClaudeIsland/UI/Views/ToolResultViews.swift:392-414 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b52184490bfeec89dcf8af003730dc091a5bed9846baa05bc326e5d895277a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): ClaudeIsland/UI/Views/ToolResultViews.swift:715-735 | ClaudeIsland/UI/Views/ToolResultViews.swift:1046-1072 \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":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"57758f93965b9d23d6c996eceda944b047c7a46c59dedaa96fdfe7f2f3356e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ClaudeIsland/UI/Views/ClaudeInstancesView.swift:455-474 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:483-502 \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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"2744e1daf1200af6cc1af633227d0fb2f227598aad798dfdec6e082d0ed2f7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): ClaudeIsland/Services/Tmux/TmuxTargetFinder.swift:17-43 | ClaudeIsland/Services/Tmux/TmuxTargetFinder.swift:46-70 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"ClaudeIsland/Services/Tmux/TmuxTargetFinder.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6680b7cfdc5d3374489e20b3f3f349b5e380003f89351aff665cbefedb3f2db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): ClaudeIsland/Services/State/SessionStore.swift:861-880 | ClaudeIsland/Services/State/ToolEventProcessor.swift:133-153 | ClaudeIsland/Services/State/ToolEventProcessor.swift:187-207 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec19bfdea10cecb47302d0fe63da7591f80af3147b82aa0b24d3139a366d566"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): ClaudeIsland/Services/Chat/ChatHistoryManager.swift:51-71 | ClaudeIsland/Services/State/SessionStore.swift:935-960 \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":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f583689170ee95019db06fd63f479714092bff6943a6b9deee6992db36564fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ClaudeIsland/Services/State/SessionStore.swift:474-482 | ClaudeIsland/Services/State/ToolEventProcessor.swift:156-167 \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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb34ef68c63d8f423fc654853b34211849302dfd7d9ea46adda1953a7e54da24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift:87-103 | ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift:105-122 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"764c31a17fa946dec5875ca27052bbe3889a057951808e79021f8faccaea9efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): ClaudeIsland/UI/Views/ChatView.swift:243-253 | ClaudeIsland/UI/Views/ChatView.swift:257-267 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:25-36 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"df48c08ca3fcdd61c0c7d285c432af3e473bfef738f54a24caa83fef479c93b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): ClaudeIsland/Services/Session/ConversationParser.swift:511-514 | ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift:40-45 \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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ef63e883b05d2ed2c55f90bd33662de05b6b012352bd07f03cd85285e2556"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): ClaudeIsland/Services/Shared/ProcessTreeBuilder.swift:58-72 | ClaudeIsland/Services/Shared/ProcessTreeBuilder.swift:75-91 \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":"ClaudeIsland/Services/Shared/ProcessTreeBuilder.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0ca1a1cac11cd49a1b347ee7702e756bfe0c708f14896d0ad1b9a2f0b1d0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ClaudeIsland/Services/Tmux/TmuxPathFinder.swift:19-39 | ClaudeIsland/Services/Window/WindowFinder.swift:42-55 \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":"ClaudeIsland/Services/Tmux/TmuxPathFinder.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"413fce7fca821192a3feefd66a3e2004b8a49767c3f2c0cbe795d91ddecbe1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ClaudeIsland/UI/Views/ClaudeInstancesView.swift:90-100 | ClaudeIsland/UI/Views/ChatView.swift:447-455 \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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4100c19d544f5aa0d6bb0051268335ce56c08b9f30bd400d43fddf7b08e02742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): ClaudeIsland/Services/Session/AgentFileWatcher.swift:123-129 | ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift:162-169 \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":"ClaudeIsland/Services/Session/AgentFileWatcher.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"519ce5fff72f28a77f496c0419b28ff40f267d057c7f6feff49ff1cd5f39aca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): ClaudeIsland/Services/Chat/ChatHistoryManager.swift:23-30 | ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift:20-29 \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":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ccfc4e8010e2ff7d588d429d8db9e18e1d447d25e77970750aa38770726dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201344 lines \u00D7 5): ClaudeIsland/Services/Session/ConversationParser.swift:429-430 | ClaudeIsland/Services/Session/ConversationParser.swift:982-983 | ClaudeIsland/Services/Session/ConversationParser.swift:997-1040 | ClaudeIsland/Services/Session/ConversationParser.swift:1074-1075 | ClaudeIsland/Services/Session/ConversationParser.swift:1089-1132 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/Services/Session/ConversationParser.swift:997\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. 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 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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55397436c1afe0a546f2427ca0eb61340edf0280b3c4c0add022ee18d4e1adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): ClaudeIsland/Services/State/SessionStore.swift:597-636 | ClaudeIsland/Services/State/SessionStore.swift:638-677 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"7839bea464386dee3e627f36663ac3bae56a7f924c19e36030fe9c165ac7fb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): ClaudeIsland/UI/Views/ChatView.swift:1148-1176 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:381-408 \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 \u0060ClaudeIsland/UI/Views/ChatView.swift:1148\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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c572c7323f24409eb96231486130053ba359097d5baf4f0eda300158c0c2565b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): ClaudeIsland/UI/Components/StatusIcons.swift:49-69 | ClaudeIsland/UI/Components/StatusIcons.swift:151-171 \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 \u0060ClaudeIsland/UI/Components/StatusIcons.swift:49\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060color\u0060 to \u0060Color = TerminalColors.green\u0060 in one and \u0060Color = TerminalColors.cyan\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":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce53879eeb01ac5b339e91c3ccf591c448e62af41a747efd807a8f669f02d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): ClaudeIsland/Services/State/SessionStore.swift:398-417 | ClaudeIsland/Services/State/SessionStore.swift:500-518 \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 \u0060ClaudeIsland/Services/State/SessionStore.swift:398\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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d53183db64c4085df74caa36d46b8d744e3d2f5118f7073acdbbf4d1291fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:186-203 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:168-185 | ClaudeIsland/UI/Components/SoundPickerRow.swift:117-134 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:186\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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9202daaee751fafb2f0ba68c34a52ff94b99c077b055c580c5a90be690a5b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ClaudeIsland/Utilities/MCPToolFormatter.swift:85-102 | ClaudeIsland/Utilities/MCPToolFormatter.swift:125-142 \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 \u0060ClaudeIsland/Utilities/MCPToolFormatter.swift:85\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Utilities/MCPToolFormatter.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2499cc2918ab480cc7aa79b53f3c46d25f60b80fcc97b106fe607a889050f78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:47-62 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:47-62 | ClaudeIsland/UI/Components/SoundPickerRow.swift:49-64 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:45\u0060 calls \u0060truncationMode\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift:45\u0060 does not \u2014 after which the two agree again for 4 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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2d2a68f64e3fa83ccbd708413fa7ff946b29cc3f3314bd2444f36868e49f3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): ClaudeIsland/Services/State/SessionStore.swift:389-403 | ClaudeIsland/Services/State/SessionStore.swift:491-505 | ClaudeIsland/Services/State/SessionStore.swift:527-541 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/Services/State/SessionStore.swift:389\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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ce788bdab8d287c4bf6138cddd2e2daeae3eab457a8083a6667ceafdf08f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ClaudeIsland/Services/Session/AgentFileWatcher.swift:68-82 | ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift:65-79 \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 \u0060ClaudeIsland/Services/Session/AgentFileWatcher.swift:68\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ClaudeIsland/Services/Session/AgentFileWatcher.swift:66\u0060 calls \u0060parseTools\u0060 and \u0060ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift:63\u0060 does not \u2014 after which the two agree again for 3 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":"ClaudeIsland/Services/Session/AgentFileWatcher.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb78f020a56f7a343284510b42e56ce25ece6170236dd5a873c396134e62750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): ClaudeIsland/Services/Session/ConversationParser.swift:729-747 | ClaudeIsland/Services/Session/ConversationParser.swift:763-781 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"0538be242aeead62846043b13618adcaefe36b7ae8bf7b192e3aa0742cfff58b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ClaudeIsland/UI/Components/ScreenPickerRow.swift:22-36 | ClaudeIsland/UI/Components/SoundPickerRow.swift:24-38 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/SoundPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift:22\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":"ClaudeIsland/UI/Components/ScreenPickerRow.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92335f032029c94c3024af8acc7f3c6b257ef7ed0a15d34dbd675cd6aabf768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ClaudeIsland/UI/Views/NotchHeaderView.swift:114-128 | ClaudeIsland/UI/Views/NotchHeaderView.swift:154-168 \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 \u0060ClaudeIsland/UI/Views/NotchHeaderView.swift:114\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060color\u0060 to \u0060Color = Color(red: 0.11, green: 0.12, blue: 0.13)\u0060 in one and \u0060Color = TerminalColors.green\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":"ClaudeIsland/UI/Views/NotchHeaderView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ce0366ce6f3048e5dc5c376891ea490dfca50234428c1d974f67b7a479a2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201313 lines \u00D7 3): ClaudeIsland/Services/Session/ConversationParser.swift:429-431 | ClaudeIsland/Services/Session/ConversationParser.swift:984-996 | ClaudeIsland/Services/Session/ConversationParser.swift:1076-1088 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/Services/Session/ConversationParser.swift:429\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. 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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8618b3cb595dc007548ee40d35a2e0199718c15d44ae24ef489a6dadb6f8e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): ClaudeIsland/UI/Views/NotchMenuView.swift:454-466 | ClaudeIsland/UI/Views/NotchMenuView.swift:496-508 \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 \u0060ClaudeIsland/UI/Views/NotchMenuView.swift:454\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":"ClaudeIsland/UI/Views/NotchMenuView.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee118a2718560e67182294e58ffdced9841db63195f8cf76f927c72b1112cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): ClaudeIsland/UI/Components/StatusIcons.swift:45-56 | ClaudeIsland/UI/Components/StatusIcons.swift:98-108 | ClaudeIsland/UI/Components/StatusIcons.swift:147-158 | ClaudeIsland/UI/Components/StatusIcons.swift:202-212 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/StatusIcons.swift:45\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060color\u0060 to \u0060Color = TerminalColors.green\u0060 in one and \u0060Color = TerminalColors.amber\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":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ebaa9635ef6ef9729792a96be37a193ab051193c87bdb2a9ddd396ce7e4616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): ClaudeIsland/Services/Session/ConversationParser.swift:635-646 | ClaudeIsland/Services/Session/ConversationParser.swift:1013-1024 | ClaudeIsland/Services/Session/ConversationParser.swift:1105-1116 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ea2ffcaa8172d98f5568da11d7ddb7c699cd7505572a2b1370d428a6f8e873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:28-39 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:29-40 | ClaudeIsland/UI/Components/SoundPickerRow.swift:31-42 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:28\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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28452b819e610505a3a60255cf59555b91b8b1dfebc738b854b62f64b49088e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): ClaudeIsland/UI/Components/StatusIcons.swift:20-28 | ClaudeIsland/UI/Components/StatusIcons.swift:83-94 | ClaudeIsland/UI/Components/StatusIcons.swift:125-136 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/StatusIcons.swift:20\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. 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":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3161f1bd62378b0e481c80ec5e9ca2e8a5e0eebdc67afa30c3899afb7ff01ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ClaudeIsland/Services/Session/ConversationParser.swift:970-987 | ClaudeIsland/Services/Session/ConversationParser.swift:1062-1079 \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 \u0060ClaudeIsland/Services/Session/ConversationParser.swift:970\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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"79afac3f59b974353eef1b454771065abb243bb1b14e2b42b7e95316d1919d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ClaudeIsland/Services/State/SessionStore.swift:205-216 | ClaudeIsland/Services/State/SessionStore.swift:273-284 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbea4b7c13897523cb5f2a3d98711d54a00ac173411ad9143c751dd6650a2f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ClaudeIsland/UI/Views/ClaudeInstancesView.swift:455-466 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:483-494 \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 \u0060ClaudeIsland/UI/Views/ClaudeInstancesView.swift:455\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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd20a7fbd43d78c4ea2a9605b6486c681f009f3deb5668627364c93ee71f65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:29-39 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:30-40 | ClaudeIsland/UI/Components/SoundPickerRow.swift:32-42 | ClaudeIsland/UI/Views/NotchMenuView.swift:388-398 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:29\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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4038b8bbdb80fe29ff12d5944afc9257e4372e6eb706215059e65ae35ce42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:48-58 | ClaudeIsland/UI/Components/ScreenPickerRow.swift:48-58 | ClaudeIsland/UI/Components/SoundPickerRow.swift:50-60 | ClaudeIsland/UI/Views/NotchMenuView.swift:515-525 \u2014 before extracting anything, compare \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:48\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 before the matched lines, \u0060ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift:45\u0060 calls \u0060truncationMode\u0060 and \u0060ClaudeIsland/UI/Components/ScreenPickerRow.swift:45\u0060 does not \u2014 after which the two agree again for 3 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":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a6b6fef243eae595eca9c584b0f617a77ad1f3c5c6b37ddc4b85090421dab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): ClaudeIsland/UI/Components/StatusIcons.swift:101-111 | ClaudeIsland/UI/Components/StatusIcons.swift:205-215 | ClaudeIsland/UI/Views/NotchHeaderView.swift:120-130 | ClaudeIsland/UI/Views/NotchHeaderView.swift:160-170 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/StatusIcons.swift:101\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060color\u0060 to \u0060Color = TerminalColors.amber\u0060 in one and \u0060Color = TerminalColors.dim\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":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ca4ddb900def3ea58bcd9ec1aca456f8eb147802cbcc26702d81bc4c82de80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ClaudeIsland/Services/State/SessionStore.swift:891-901 | ClaudeIsland/Services/State/ToolEventProcessor.swift:171-181 \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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4719947875751690781af55555044f4e88d305942285e326bf2875ed0ee8fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 3): ClaudeIsland/UI/Components/MarkdownRenderer.swift:124-126 | ClaudeIsland/UI/Components/MarkdownRenderer.swift:149-159 | ClaudeIsland/UI/Components/MarkdownRenderer.swift:173-183 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Components/MarkdownRenderer.swift:124\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. 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":"ClaudeIsland/UI/Components/MarkdownRenderer.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d3e5dc8c1f0cfa0d5653cb9439f9e62d6acbc2e14826815bb1909056b36eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ClaudeIsland/UI/Views/NotchMenuView.swift:468-478 | ClaudeIsland/UI/Views/NotchMenuView.swift:518-528 \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 \u0060ClaudeIsland/UI/Views/NotchMenuView.swift:468\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":"ClaudeIsland/UI/Views/NotchMenuView.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"40870becd13c80feb997fd33aae08d39f31382b25ed9387b5f94cf719f2f6e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ClaudeIsland/Services/Hooks/HookSocketServer.swift:491-500 | ClaudeIsland/Services/Hooks/HookSocketServer.swift:534-543 \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 \u0060ClaudeIsland/Services/Hooks/HookSocketServer.swift:491\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":"ClaudeIsland/Services/Hooks/HookSocketServer.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a81d9cbf230a18040e38acc216d7cbfeb5f08a8d74b145fd5eb8564f868a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): ClaudeIsland/Services/State/SessionStore.swift:207-215 | ClaudeIsland/Services/State/SessionStore.swift:275-283 | ClaudeIsland/Services/State/ToolEventProcessor.swift:214-222 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c3b5902a9cd0dfd9e471d93d128491a9792784095416246a2cce889eb0a1c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ClaudeIsland/UI/Views/ChatView.swift:1098-1106 | ClaudeIsland/UI/Views/ChatView.swift:1177-1185 \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 \u0060ClaudeIsland/UI/Views/ChatView.swift:1098\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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ac0d3b046856a56ee3c4349fe63f04dc82273131645aa41c289973cbc15408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ClaudeIsland/Utilities/MCPToolFormatter.swift:77-85 | ClaudeIsland/Utilities/MCPToolFormatter.swift:106-114 \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 \u0060ClaudeIsland/Utilities/MCPToolFormatter.swift:77\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Utilities/MCPToolFormatter.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"33834f358c6f803c19d64e0aa87cbbc4fb8a1c654cd3d18ec004da504bc43706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ClaudeIsland/Services/State/SessionStore.swift:475-482 | ClaudeIsland/Services/State/ToolEventProcessor.swift:160-167 \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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c233aff36d9e3f36b6408919281827ea921be723e55876e1735f6dedf0960a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): ClaudeIsland/UI/Components/StatusIcons.swift:34-41 | ClaudeIsland/UI/Components/StatusIcons.swift:140-146 \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 \u0060ClaudeIsland/UI/Components/StatusIcons.swift:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c337ae36192d329d2fbc3ffc8cb4fe6fe740dd85061ad906bcea5775015344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ClaudeIsland/UI/Views/NotchMenuView.swift:218-225 | ClaudeIsland/UI/Views/NotchMenuView.swift:250-257 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/NotchMenuView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f1acfa47cc9f61bd25e0109b04ff85bf7be1ba752f2dd752b8f1edc545087a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ClaudeIsland/UI/Views/ChatView.swift:1081-1087 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:460-466 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:488-494 \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 \u0060ClaudeIsland/UI/Views/ChatView.swift:1081\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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c106eb62ee738bec6983e04daa457e3835a7b636933ef266977de2973c4dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ClaudeIsland/Services/Chat/ChatHistoryManager.swift:52-58 | ClaudeIsland/Services/State/SessionStore.swift:937-943 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0876d0327668e739fb0611bacaaec8d2e5083f0ee8dd8017eb311bd9a385b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ClaudeIsland/UI/Views/ClaudeInstancesView.swift:468-474 | ClaudeIsland/UI/Views/ClaudeInstancesView.swift:496-502 \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 \u0060ClaudeIsland/UI/Views/ClaudeInstancesView.swift:468\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":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a36962c1144c7e6ee5aae36356bb8730aaef0dc33403d91d9336a83fe0c8b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ClaudeIsland/UI/Views/ToolResultViews.swift:665-671 | ClaudeIsland/UI/Views/ToolResultViews.swift:973-979 \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 \u0060ClaudeIsland/UI/Views/ToolResultViews.swift:665\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":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c7a71528ac5f181638e05bf6651f8a8cf3d074579db72bff46ba24595dab66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): ClaudeIsland/UI/Views/ToolResultViews.swift:677-682 | ClaudeIsland/UI/Views/ToolResultViews.swift:699-704 | ClaudeIsland/UI/Views/ToolResultViews.swift:986-991 | ClaudeIsland/UI/Views/ToolResultViews.swift:1011-1016 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Views/ToolResultViews.swift:677\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, \u0060ClaudeIsland/UI/Views/ToolResultViews.swift:992\u0060 calls \u0060clipShape\u0060, \u0060RoundedCorner\u0060 and \u0060ClaudeIsland/UI/Views/ToolResultViews.swift:683\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":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6b435dad218d40eb34d93422ab5f7343535fd5f174e96e15d0a46aac56ac6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ClaudeIsland/Services/Session/ConversationParser.swift:711-718 | ClaudeIsland/Services/Session/ConversationParser.swift:719-726 \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 \u0060ClaudeIsland/Services/Session/ConversationParser.swift:711\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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"014147b327cfde7808a958b807399a7025bab165ff0e7cb6faa457728f21b02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20136 lines \u00D7 5): ClaudeIsland/UI/Views/NotchHeaderView.swift:35-40 | ClaudeIsland/UI/Views/NotchHeaderView.swift:41-42 | ClaudeIsland/UI/Views/NotchHeaderView.swift:71-76 | ClaudeIsland/UI/Views/NotchHeaderView.swift:77-77 | ClaudeIsland/UI/Views/NotchHeaderView.swift:81-83 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ClaudeIsland/UI/Views/NotchHeaderView.swift:35\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ClaudeIsland/UI/Views/NotchHeaderView.swift:40\u0060 calls \u0060addRect\u0060, \u0060CGRect\u0060, \u0060applying\u0060 and \u0060ClaudeIsland/UI/Views/NotchHeaderView.swift:42\u0060 does not \u2014 after which the two agree again for 4 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":"ClaudeIsland/UI/Views/NotchHeaderView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41552d3c21f7226b4c2cf14ffb0cab2e98dbfda81cd34e15a60a75e623a4a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): ClaudeIsland/Resources/claude-island-state.py:117-126 | ClaudeIsland/Resources/claude-island-state.py:127-137 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1938f8ef1979fce068ba68766050b20e054a7997f1eda119edec7c0ffd89bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotchUserDriver (LCOM4 18): NotchUserDriver\u0027s methods fall into 18 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 18 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":"ClaudeIsland/Services/Update/NotchUserDriver.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"114b5034c2deb53033597b897773e20a4e24527ebb52f837a1c28a2cdc056650"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeSessionMonitor (LCOM4 8): ClaudeSessionMonitor\u0027s methods fall into 8 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 8 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":"ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3bf37ebc21b942ab47cb64c984aefd0e3c656d19bd44aa4f24588c678a11c6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WindowFinder (LCOM4 5): WindowFinder\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":"ClaudeIsland/Services/Window/WindowFinder.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fb8f5d77691eee336c260cde7d07b63e361db8580f389a3f01492950a24564"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (XCTest or Swift Testing), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D13","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":"1a081796b5ee2df65a495dcfb6323b2f1e15be81b78b58805d6e799b8c60fa7e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ClaudeIsland/Services/Session/ConversationParser.swift: ClaudeIsland/Services/Session/ConversationParser.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in ConversationParser.parseContent at line 132. 3 of those changes were fix/bug commits, and the other 4 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-01-20..2026-04-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-20 22:02:56 \u002B02:00\u0027 --until=\u00272026-04-20 22:02:56 \u002B02:00\u0027 --full-history --no-merges -- ClaudeIsland/Services/Session/ConversationParser.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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"904ca4b19c12eadbf070b857107d51a3d49a71f1d55536529b5f57abca6d279b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ClaudeIsland/Services/State/SessionStore.swift: ClaudeIsland/Services/State/SessionStore.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SessionStore.createChatItem at line 779. 2 of those changes were fix/bug commits, and the other 6 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-01-20..2026-04-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-20 22:02:56 \u002B02:00\u0027 --until=\u00272026-04-20 22:02:56 \u002B02:00\u0027 --full-history --no-merges -- ClaudeIsland/Services/State/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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b82d76a8b365dddaca21022226c29ca9699ee1904c42d5ca39072e348d81c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ClaudeIsland/UI/Views/ChatView.swift: ClaudeIsland/UI/Views/ChatView.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ToolCallView.body at line 740. 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-01-20..2026-04-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-20 22:02:56 \u002B02:00\u0027 --until=\u00272026-04-20 22:02:56 \u002B02:00\u0027 --full-history --no-merges -- ClaudeIsland/UI/Views/ChatView.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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d548a5548033a27c7d7480f8e3d5fa3b32f8e96b92cdbb65e178263df179613"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ClaudeIsland/Resources/claude-island-state.py: ClaudeIsland/Resources/claude-island-state.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in claude-island-state.main at line 74. 1 of those changes was a fix/bug commit, and the other 1 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-01-20..2026-04-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-20 22:02:56 \u002B02:00\u0027 --until=\u00272026-04-20 22:02:56 \u002B02:00\u0027 --full-history --no-merges -- ClaudeIsland/Resources/claude-island-state.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":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"96797e70b58607e4c343d6b191365c4d31dd12d4018d24568800ddde7429119a"}},{"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 \u0060ClaudeIsland.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55b0f85e6e757cced3e19f5b7ae732a24370ff46eca6dfd2e7e468761c03e2d"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060displayID\u0060 spells \u0060ID\u0060 where 121 names in the project spell it \u0060Id\u0060: 121 of 123 names in project repository spell the token \u0060Id\u0060 (121 of 123; unit: names in project repository containing \u0060Id\u0060). Peers: AppDelegate.getOrCreateDistinctId (ClaudeIsland/App/AppDelegate.swift:100); FileUpdatePayload.sessionId (ClaudeIsland/Models/SessionEvent.swift:82); PermissionContext.toolUseId (ClaudeIsland/Models/SessionPhase.swift:13); SessionState.sessionId (ClaudeIsland/Models/SessionState.swift:16); SessionState.init(sessionId) (ClaudeIsland/Models/SessionState.swift:67). Rename to \u0060displayId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/ScreenSelector.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cb277e79f8dec96618d880bce28a8f6d2ecb992d7a73c190ee215d9603e115"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060screenID\u0060 spells \u0060ID\u0060 where 121 names in the project spell it \u0060Id\u0060: 121 of 123 names in project repository spell the token \u0060Id\u0060 (121 of 123; unit: names in project repository containing \u0060Id\u0060). Peers: AppDelegate.getOrCreateDistinctId (ClaudeIsland/App/AppDelegate.swift:100); FileUpdatePayload.sessionId (ClaudeIsland/Models/SessionEvent.swift:82); PermissionContext.toolUseId (ClaudeIsland/Models/SessionPhase.swift:13); SessionState.sessionId (ClaudeIsland/Models/SessionState.swift:16); SessionState.init(sessionId) (ClaudeIsland/Models/SessionState.swift:67). Rename to \u0060screenId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/ScreenSelector.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4062caef40770f39d2b7ca89e0c10c63ae5abf83fe814431da8317f77b933773"}},{"ruleId":"D28","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":"b8cf6ef52e2c9de333e50d2da723409d6fe3c7b4af5dfd96cbd0fd64774129e2"},"properties":{"commitSha":"1d228c9eea508557a16359ad0241cbfd37900ec1"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 45 of 45 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 45 separate risks. Counted over 45 of the 65 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7547728f29d097ae84066c752cddee01380856a502841f1522585f4cad589868"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"439318c3fdd96cd95ef46fe8b347155d25d74f1f565c963d67f70c7e5583f27f"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4734c4506ce2eda3f75db3c3bbc897d9b68c8e7364045f74f2e10e83d5b9586"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/ToolResultViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73652f6cddaeeb5d46a9865af43471cfa85274435300ac2f55757d31b8284ddb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Hooks/HookSocketServer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37793a5c4cd25a660545a800c401e3f0d46629141fb731c91beb8617645eff1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/NotchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf03e01985aac09a0f026d95be0c339ce0830a2be3fe6cfb6b579f964ddf242"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/ClaudeInstancesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d6840d6db57ee911df4406aa7e5990b0f71187b1ecd21ed7146327078e6404"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/NotchMenuView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b024014cdd9234fc4c0df07a286f5114ea9c1cc41531d18655b62989984bfcdf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Hooks/HookInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0295aafb9858ef7dfeb4fa90677f03ac55f210f234bba795a59a49fd8aa6aae8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/ToolResultData.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07300866261ac90b85e8e92f3fce93fe07106524d73a59843a870233e8265082"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/SessionState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8563ac5d1ee4a6f554ac36fee1325dfae5cb26bfc66238d1f209d95d297a15c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Chat/ChatHistoryManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91a50ebb6a1e6fb29b2aba0ad9f5cf8e0f70cca3f06c2787b6f8ee1c1483413"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/NotchViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5f15508fe7373b06ccab4634f43e0f4a712af73133f20cd04375847142c100"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/MarkdownRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fa34a06a7535b83ecff92095ac3d7d3d5cd88a59a52cdc1a531aaafd184b3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/SessionEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d09e76a2eafc11062709ed76fc1a81bdd3e8f95d4144f6235fc544d7c8d4a66"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Update/NotchUserDriver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13b5f3b33718f84170067a2ad3f8d62862a29b4d58b2bfceff466c3ee74e416"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Shared/ProcessExecutor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dce803ed766fc80fc0903ecca72c4305eb7eabcc40d62a5e1bd9b931bdf5185"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/State/ToolEventProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d073fcbefe9cb10e684009642d4fec6c3bf7d8db73e1ebb8371c97c409cb7593"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f542164337c6647c79732f01e199a45c25b8d19f13cf63c66e360d7d9858c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/SessionPhase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c7674d39e8b87a26ffaee72ef9f2ad08be7180c141a89d59f3b0f0b7878553"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/ClaudeDirPickerRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"050f055305b61b799b60673027e17fe8a3f91f09f6208a986fb8589634b2e13b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/StatusIcons.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a50ab5f43f5a93d256f90b87200e76c8a0a5a81db4e79d8d7735dece9e50ba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/AgentFileWatcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e03463fafc3fa52ce46902a3bcf3bc55da913b17884ec4c4c55cac218d2119"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/App/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b01048f373ba7f8ccdded45b01b6750cad482dab17640f252436a25d84705ba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Views/NotchHeaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da134b2d7d234655151f6e0510987cb9f64df9e2a1417aa83345dd3ae48169b4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9ba55a7cfd5e2d12362862971f49a365d8a716f441c4bb6b779c4cfc4d42e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/ScreenPickerRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f884c972343f347ab9cbf1830c50a5e23fc8c3268f1864e5ca77a82ef176a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Window/YabaiController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa2994fc92653c61a4e28f23ef3ae5eb60316238639acf4ae6e0eb7de50f893"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/ScreenSelector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d84a6c2b337292805c10a9ba55b9d044ebbd8ec8248be4f8bacb0a7584b9698"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Session/ClaudeSessionMonitor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a132c4df911f6c7da54ac36fa173ec9bab265a97b12ea33eb4be7463f531439"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Utilities/MCPToolFormatter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66842821a596dca9f38000c37eee192668b48f3b5c3681473e3fa481367d782"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/SoundPickerRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fd96efee6c7d18aad390b6ffd9f2503e00f873eda9b56180c2bcef8abfa2f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Tmux/TmuxSessionMatcher.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab51646aec0a21cf016654fe211fb914da95ca180d48b5f6101b436d789c02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Shared/ProcessTreeBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b5365abd72da8735423408059a1dd6931795377f560558ddfed876b8be4a82"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/ClaudePaths.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cfb0d9e8c737bf8165db63cac4133711dd48ac9849ed445aeaa3ede20c6462"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Window/NotchWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f18e0a6b903347985e83fdd3a7dd66a228c6210cd844b9b091576713a323e9d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Window/NotchWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88adf7ee390fb858b2d011ff9ef5adf815fd2126095e55c503898924b1fe8b59"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Components/NotchShape.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c8844b7a1587a768caef2b426cbfcc3fbe6aa731b1022786adf4d60d7154a2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Tmux/TmuxTargetFinder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80283cdea761312dbfaa7f956a97da30d961ce6b8d60b9c4f592bb7168bf2d1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Models/ChatMessage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96bfa334f0db57c1272e607ec9691d1baa7691a4db7fa28c3c459030d49c290"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Window/WindowFinder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a0b633596b42dfd7ea4df7793858c6ead1b749a376bf82cfa36af478400d48"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Core/NotchActivityCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bb59ef5137bea3b25c9e8c42fc84d7f6df4e2e882eca5e2c97eb670e81c2d8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/UI/Window/NotchViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833f611b2b3c7e44620a6f2f555686e0059fe71f8170d549846670d95735a4ed"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Tmux/ToolApprovalHandler.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d0d7fbef5d45c56e6c0654bca86cbdf49ffc3f9341c5c87821b7ab3f1de03a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Utilities/TerminalVisibilityDetector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89341d19ee7dd29ff41f4d2626d3840ed956fb65b63c2b912e76aec1b897271"}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runWithResult\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Shared/ProcessExecutor.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30da98d58901345a3758a29d849a0b1b4531382a2162a3f8a206cd9e764fded"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool.status == .running || tool.status == .waitingForApproval\u0060 appears character-identically in 2 files \u2014 ClaudeIsland/Services/State/SessionStore.swift, ClaudeIsland/UI/Views/ChatView.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":"ClaudeIsland/Services/State/SessionStore.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"251fbec64645a40fe68b6814e26aedcb5c8ce6e7026e4f6c56fa844bdf275355"}},{"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":"ClaudeIsland/UI/Views/ChatView.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed1d87580d0d8c271bf75caca0027cf3065cad2cd20cc37c95214200a1d584e"}},{"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":"ClaudeIsland/Services/Window/WindowFinder.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"84efcd7d2b54496efcd1822934c5d4700bb3c01554a6cc9ae5aca3c99d62d409"}},{"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":"ClaudeIsland/Services/Window/WindowFocuser.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae241ac69fc4fecee0985f65ae05f23f46fe0fee3a5720916fa1581f97691274"}},{"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":"ClaudeIsland/Services/Window/YabaiController.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"60240c99c5c1b7a6353fb072732d9441b4f2a7ebcc789686ad3f5c0f3beaee07"}},{"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":"ClaudeIsland/Services/Window/YabaiController.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a07e9bf3668ed8d91bbd4c528b908eb89f4fe126efc9aabd96ab31b40970c9"}},{"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":"ClaudeIsland/Services/Tmux/TmuxController.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce85b5415635602a951b899db2e71b645e570f37d2c01da709e20ca4f989c6b"}},{"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":"ClaudeIsland/Services/Tmux/TmuxSessionMatcher.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60df9a15e2a746f64891cf42a41a3e8718641a7e8d854ebe0dbe3b9f887d0e1"}},{"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":"ClaudeIsland/Services/Tmux/TmuxTargetFinder.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb9787e801925df2fee81770082d3ddca9af6694aeee0c7bd07459c0ef5ee0a"}},{"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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fc2633932ac99b650c69c1c1cec7e7a4e2efdfc768dc3eca98bdb4911a768d"}},{"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":"ClaudeIsland/Services/Session/ConversationParser.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4e62acc5a50ca9ef3af0af7b6f2cc1ef1cd4d3d86c10122dd92ed18c0d246"}},{"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":"ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80946d83441a0e05a31a6aefc154c67f34718adce5e002d53bcefa79ec1a02f"}},{"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":"ClaudeIsland/Services/Session/JSONLInterruptWatcher.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ef8c1c02f84b675fc76b658f03c1bbc2f5afd22e0e52636be385fead0de8a2"}},{"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":"ClaudeIsland/Services/Hooks/HookInstaller.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eeaa85647de6bff64677d6af381a33a915985fdc1ec9693771c0646c6b2128b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Services/Hooks/HookInstaller.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"017a1b03c7460be5bbc6b84c7b1a5d04226198ca96291522009cc0e46f51d7a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ClaudeIsland/Resources/claude-island-state.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c36e4d43d4cef1d6fd08ffabb4229f1f7924435d5ec9a1d494124a93e525399"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060countMatchingSnippets\u0060 turns every thrown error into \u00600\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":"ClaudeIsland/Services/Tmux/TmuxSessionMatcher.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fae2b784c8078a1c61f6f3e444a0cdb0903d7535c90dc38b35c5dc6634e1871"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAllWindows\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":"ClaudeIsland/Services/Window/WindowFinder.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbe249b1c098cc1b778da1500b0621e9ce916dd82947a55dfb23d9d987c361b"}}],"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-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-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-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":"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/"}]}],"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":3,"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."]}]}