{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"List.List (cyclomatic 150): List.List has cyclomatic complexity 150 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 126 belong to 22 function literals inside it that branch. 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":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe54ccc56985bb2f0693a0a2e5ae65c5ee1c9ed5dc90465d09f29d20f315c102"}},{"ruleId":"D1","level":"warning","message":{"text":"useClipboardPreviewController.useClipboardPreviewController (cyclomatic 61): useClipboardPreviewController.useClipboardPreviewController has cyclomatic complexity 61 (threshold 15). Most of this is not in the body itself: 14 of the 61 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 348, 159, 72, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/hooks/useClipboardPreviewController.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e719aafa8d8908ee3c9c789b02187e91b247d2792ed2682dd46cc4496c45d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Group.Group (cyclomatic 43): Group.Group has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 3 of the 43 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 261, 223, 369, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc64939f36b04746ce56a711f88d15d9df1630e16a719dd42f9390d7bd86acd"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Update (cyclomatic 35): index.Update has cyclomatic complexity 35 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 15 belong to 7 function literals inside it that branch. 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":"src/pages/Update/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faca2c020f66b139fc41d71470a5ff0a248a64ac5e62f65bc478cba11ab4e69"}},{"ruleId":"D1","level":"warning","message":{"text":"index.ShortcutRecorder (cyclomatic 34): index.ShortcutRecorder has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 8 of the 34 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 240, 216, 287, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ShortcutRecorder/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"52368bf1eb3190689c12de1ac0fbedd948a95435fff57a7678c691a988d2d3e9"}},{"ruleId":"D1","level":"warning","message":{"text":"EcoPaste::keyboard::windows::hook_proc (cyclomatic 32): EcoPaste::keyboard::windows::hook_proc 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/keyboard/windows.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23d583351f49f511659450646344e6c54e716cf9e0adaef2ed80dfcc30ed197"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::tool.execute.before (cyclomatic 32): (anonymous)::tool.execute.before 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/plugins/inject-subagent-context.js"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2dfba51016f45507df687aeb01071be3f5b3a12300abc33fd91326851bbf36"}},{"ruleId":"D1","level":"warning","message":{"text":"buildSessionContext (cyclomatic 31): buildSessionContext has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/lib/session-utils.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e633c41fffe8e060206389f8be085b94ec1b09586a28043841a50488d87bcca9"}},{"ruleId":"D1","level":"warning","message":{"text":"cli_adapter.detect_platform (cyclomatic 30): cli_adapter.detect_platform has cyclomatic complexity 30 (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":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba0d08d160c85dc93c3807b160a853719ea31b290f10da237f5eda9fec7af93"}},{"ruleId":"D1","level":"warning","message":{"text":"task_store.cmd_create (cyclomatic 28): task_store.cmd_create has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/task_store.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded11dcbd9b562bfb5c0a054ea376f4e5adc7f125b0b4f4ef28cd761a8b05f9e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Preference (cyclomatic 28): index.Preference has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 7 of the 28 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 203, 155, 298, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/index.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c2a196456e3ec4ee31f2d58c9cf305441d3d68681348cd33f824fdb74624c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionControl.ActionControl (cyclomatic 27): ActionControl.ActionControl has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 323, 270, 160). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/ActionControl.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de35dfe6574411c285c56192955178f039f2f090a144cfc3b2d8ec4e2b4cc91"}},{"ruleId":"D1","level":"warning","message":{"text":"EcoPaste::run (cyclomatic 26): EcoPaste::run 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05b4c3e903afd0d40f2e3d8b6391443dc3349f475bd1ea3bdfa9a4762714b7e"}},{"ruleId":"D1","level":"warning","message":{"text":"BackupImportModal.BackupImportModal (cyclomatic 26): BackupImportModal.BackupImportModal has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 58, 96, 125, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupImportModal.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb7774189bed65daae24aa87fb7f3609d10cf744b0c7a8af7f0c13bfe06b14f"}},{"ruleId":"D1","level":"warning","message":{"text":"useClipboardItems.useClipboardItems (cyclomatic 25): useClipboardItems.useClipboardItems has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 80, 261, 239, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useClipboardItems.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"357e782efac26146fab90e1f3545bc171e3fbcc622f06a61310df16235aa3f69"}},{"ruleId":"D1","level":"warning","message":{"text":"BackupExportModal.BackupExportModal (cyclomatic 25): BackupExportModal.BackupExportModal has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 60, 87, 142, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupExportModal.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c8f07f886d855e199148b307b7ef637bbd18475a3a52786861a556e6086ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferenceSettingControl.PreferenceSettingControl (cyclomatic 24): PreferenceSettingControl.PreferenceSettingControl has cyclomatic complexity 24 (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":"src/pages/Preference/components/settingControls/PreferenceSettingControl.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bb2e2353f75d077ebdb2f4a6499990df79bd2b62bfd8c77dbbdd886540fcba"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIAdapter.get_commands_path (cyclomatic 22): CLIAdapter.get_commands_path has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ef04adc209212611028c48823a4e2db97bc97c159ef30b99e91a367bf65013"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferenceSection.resolveSectionVisual (cyclomatic 22): PreferenceSection.resolveSectionVisual has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSection.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6305b42efdbbdf1a8abfdc1b90091243160c41e6794c840cac9b2505d5dd6237"}},{"ruleId":"D1","level":"warning","message":{"text":"add_session.update_index (cyclomatic 21): add_session.update_index 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":".trellis/scripts/add_session.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb531e7ab79c2960befaaedad5e7cf42162ed16c8ea8d2b0546432d885e2880e"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._resolve_spec_scope (cyclomatic 20): session-start._resolve_spec_scope 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":".claude/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20a7341f0e1a038e4a9e42a693fea9faca6d379e9155ed303d33068379e9582"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._resolve_spec_scope (cyclomatic 20): session-start._resolve_spec_scope 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":".cursor/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"772e867ca0630a93e9ae0abac8f961136fa2db315046be2a79d918cbf5a8007b"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._resolve_spec_scope (cyclomatic 20): session-start._resolve_spec_scope 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":".gemini/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"558773eb96043b31766839838cd3ebbcc5aea6822039667d4a190eb31d20a482"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._resolve_spec_scope (cyclomatic 20): session-start._resolve_spec_scope 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":".kiro/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f17418b015778ac1076f99ed37eac20d2ae36b8e9b37f669fc0315785a3e75"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIAdapter.build_run_command (cyclomatic 20): CLIAdapter.build_run_command has cyclomatic complexity 20 (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":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c594693ef067d25abaa745d83dfddad0c9b6721cd28ff2ff0cc0f981fab03c"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._get_task_status (cyclomatic 19): session-start._get_task_status has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d7b42138fd53a9da4b84ee80967fd2b210275449729c8e7cab2510f4eccfe9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._get_task_status (cyclomatic 19): session-start._get_task_status has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".cursor/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"163d36d758e3dc6867b7d601107f597cbc32bb5ca7d8168e5d56ee625327a726"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._get_task_status (cyclomatic 19): session-start._get_task_status has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".gemini/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ed1b2fc9b64d73dc117de6b4898ecd2910f4e877cf22b679cb3fee59297f11"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._get_task_status (cyclomatic 19): session-start._get_task_status has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".kiro/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"561bc1831f2a327f689e485b86d2c432367dcc7d054515ae44c6a1f7c52457fc"}},{"ruleId":"D1","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cyclomatic 18): inject-subagent-context._extract_subagent_name 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ea7124ad950fa876d5a9faf987995cd4ef8671513559f04a992b7e8bf92899"}},{"ruleId":"D1","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cyclomatic 18): inject-subagent-context._extract_subagent_name 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":".cursor/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"907068a4693c72c3ad9c66c23a409d27a91aa373baf879934c7e45ea614cc273"}},{"ruleId":"D1","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cyclomatic 18): inject-subagent-context._extract_subagent_name 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":".kiro/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"84caafb3b0f0a357fafa80130a2ab6c58052b6a21e476d9d9f990e6f16c8138f"}},{"ruleId":"D1","level":"warning","message":{"text":"session_context.get_context_text (cyclomatic 18): session_context.get_context_text 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":".trellis/scripts/common/session_context.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb006c447aa23f310cadeacd8da12d003b8564f8a6eb5aa6aae6d519911c676"}},{"ruleId":"D1","level":"warning","message":{"text":"PreferenceSettingRow.PreferenceSettingRow (cyclomatic 18): PreferenceSettingRow.PreferenceSettingRow has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSettingRow.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"31dc6d327dc050d03651ba0aafed3dec4c685da8aeeab37343b2b251fb1e0b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ClipboardMenuAction::label (cyclomatic 17): ClipboardMenuAction::label has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/menu/clipboard_item.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d42a2f1018921645bf0850e9c9b23df0c3e05ed8b71f9232d878df0361cce6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function items inside it that branch (chat.message, event, chat.message::(anonymous)). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/plugins/session-start.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac0d33d5002fc3e04900c4baad5f3532d8bde1a7c4bf474bee5427f87d4c9ff"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveSpecScope (cyclomatic 17): resolveSpecScope 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":".opencode/lib/session-utils.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b076a66a766a326b196145010713488854c7a7de984299a97d3ad0824dd808f9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".claude/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"844f67b17844a8d043a343c4350c406cd16d554c01252e3714b71105157bc22f"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".codex/hooks/session-start.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3708b8893855b4cfec53382b943bb3060bc942f4c94bcb74f560c0eea6d73c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".cursor/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fffe9ae07a8ff4204db2ea9e4ea7b7f2e8fbb42b24fcfa0e64bd74700b055a9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".gemini/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bf23209b769ee84e3ce37b10972ed8f3c3940e2734bc222c961eeefb6eef70"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".github/copilot/hooks/session-start.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bb64a53468096e394a621e6fc950ee68a93e135a479af23f91e4de0b7ca2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"session-start._build_compact_current_state (cyclomatic 16): session-start._build_compact_current_state 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":".kiro/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11592141f8c8a20646db5b34325c68c2baa7b91a9c3ac27c1e7d351b3417b36"}},{"ruleId":"D1","level":"warning","message":{"text":"packages_context._resolve_scope_set (cyclomatic 16): packages_context._resolve_scope_set 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":".trellis/scripts/common/packages_context.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6c4ff124748b9dd9163f160e92f5cdbc6cfae256645e4cf3c50d734da6f8a9"}},{"ruleId":"D1","level":"warning","message":{"text":"PermissionControl.PermissionControl (cyclomatic 16): PermissionControl.PermissionControl has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 101, 50, 130, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/PermissionControl.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"996d7041be87ac25e81540fd7c1c46ace32ba67d5fa3c29a0c3fe6686d348ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"List.List (cognitive 132): List.List has cognitive complexity 132 (threshold 15). Drivers by points: if/else 84 (105 pts), boolean chains 18, ternaries 7, match/switch 2 (nesting depth added 21). Of this number, 23 points are the body\u0027s own statements and 109 belong to 22 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41a3b7d32602f2c75532ebd30174d574ffe6a5f83e719611a9ed0d68dd3fc69"}},{"ruleId":"D2","level":"warning","message":{"text":"EcoPaste::keyboard::windows::hook_proc (cognitive 76): EcoPaste::keyboard::windows::hook_proc has cognitive complexity 76 (threshold 15). Drivers by points: if/else 29 (71 pts), boolean chains 5 (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":"src-tauri/src/keyboard/windows.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f0848d90b768e1b7e12714d447ae62be6eb11fca697ac75159aea886553a59"}},{"ruleId":"D2","level":"warning","message":{"text":"buildSessionContext (cognitive 65): buildSessionContext has cognitive complexity 65 (threshold 15). Drivers by points: if/else 18 (37 pts), error handling 4 (12 pts), loops 5 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 34). Of this number, 57 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/lib/session-utils.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"561803c6ca5fd9c9f6b37091478847a4f03ae2f3b833ba9d2abe0072c942b23d"}},{"ruleId":"D2","level":"warning","message":{"text":"useClipboardPreviewController.useClipboardPreviewController (cognitive 56): useClipboardPreviewController.useClipboardPreviewController has cognitive complexity 56 (threshold 15). Drivers by points: if/else 43 (46 pts), boolean chains 9, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 13 of the 56 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 348, 159, 72, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/hooks/useClipboardPreviewController.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"006029f37b166b1598107d67deedecd90511e82b8b1b2382c9066260e516014a"}},{"ruleId":"D2","level":"warning","message":{"text":"task_store.cmd_create (cognitive 44): task_store.cmd_create has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 4, error handling 2 (3 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/task_store.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa51773c1990d67278301eccfd9c6cf24ffc39274845c72b3b026d775d3c216c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::tool.execute.before (cognitive 43): (anonymous)::tool.execute.before has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 7, ternaries 1 (2 pts), error handling 1, match/switch 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":".opencode/plugins/inject-subagent-context.js"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"44aa114804a76322b11ab4edef4350b5a80487c66197f57d1d52ff9ff78de688"}},{"ruleId":"D2","level":"warning","message":{"text":"Group.Group (cognitive 40): Group.Group has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23, ternaries 7 (9 pts), boolean chains 8 (nesting depth added 2). Most of this is not in the body itself: 2 of the 40 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 261, 223, 369, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"786b65340e38559f075f2e477c60778c911bb9058bd024ad8befe96d4a3c1553"}},{"ruleId":"D2","level":"warning","message":{"text":"task_store.cmd_archive (cognitive 39): task_store.cmd_archive has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 25). 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":".trellis/scripts/common/task_store.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"888b633b29784363d64a2270a9943682e526148c338089ff29cd72e3c4d77d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"EcoPaste::run (cognitive 38): EcoPaste::run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24 (35 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/lib.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f111f7a61fa860c3741dff2b2f2cfd391e075441729f74d83f9d48a9d0b17aa"}},{"ruleId":"D2","level":"warning","message":{"text":"add_session.update_index (cognitive 37): add_session.update_index has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/add_session.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f94b113955b14ea391118769c0ffb95337662651713f65783bc99b96000e798"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Update (cognitive 36): index.Update has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 13 (15 pts), if/else 9, boolean chains 7, error handling 5 (nesting depth added 2). Of this number, 21 points are the body\u0027s own statements and 15 belong to 7 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Update/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6d80c2f824c0e8674346da35a46ac76d9e2458931592536a158d614b03ffdc"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIAdapter.get_commands_path (cognitive 33): CLIAdapter.get_commands_path has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6676749741af0f64a5bf8980ff96fc52dc29cfa29795bcce0a1218dc68bd2b"}},{"ruleId":"D2","level":"warning","message":{"text":"cli_adapter.detect_platform (cognitive 33): cli_adapter.detect_platform has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 8, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c017583ca465e3b60cea233dae5f7f8773fb5a05262e6bbf05e0fb44f442010"}},{"ruleId":"D2","level":"warning","message":{"text":"index.ShortcutRecorder (cognitive 33): index.ShortcutRecorder has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, ternaries 4 (5 pts), boolean chains 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 7 of the 33 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 240, 216, 287, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ShortcutRecorder/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf713ee45cf0bb2346efb431be39fd5f6730bb3d7989fbf8b8dd1683c6454a"}},{"ruleId":"D2","level":"warning","message":{"text":"useClipboardItems.useClipboardItems (cognitive 31): useClipboardItems.useClipboardItems has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 3, loops 3, ternaries 2 (3 pts), error handling 1 (nesting depth added 7). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 80, 261, 239, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useClipboardItems.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a5db1afa0bbdf9e41f1e88fa6921f08d83f87c9ebd8e0d0108f55ee4cb4f91"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cognitive 30): inject-subagent-context._extract_subagent_name has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 2 (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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec15316350eb3b74490d51a202f28541cbe8df002362d5794eab48921129d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._resolve_spec_scope (cognitive 30): session-start._resolve_spec_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2607dc82ce29e205d6c2e2c8d17ae882842854c7e66365322bff367aa5aeae8"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cognitive 30): inject-subagent-context._extract_subagent_name has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 2 (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":".cursor/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"41382e62d343a12713805196c97dd1c2e6658c4f521c1733d294e4e3aba1c286"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._resolve_spec_scope (cognitive 30): session-start._resolve_spec_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".cursor/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e768f07e14748992b78029322adbbc583051cc3c9249884e1e1e3d83c9c7414"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._resolve_spec_scope (cognitive 30): session-start._resolve_spec_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".gemini/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea527106688ffbbf6ce357fa44df6675cc56ca69a306bbea4d2907050d88c219"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context._extract_subagent_name (cognitive 30): inject-subagent-context._extract_subagent_name has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 2 (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":".kiro/hooks/inject-subagent-context.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0beac282907a63b49f49cbb51c5d0e9d8036405c7a844a9dd74287f3cc5b4cf"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._resolve_spec_scope (cognitive 30): session-start._resolve_spec_scope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".kiro/hooks/session-start.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8614ab23c8d7b9dbeda41739e4e48f8d84919a4924742356038b13a186df82"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Preference (cognitive 29): index.Preference has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14, ternaries 7 (9 pts), boolean chains 3, error handling 3 (nesting depth added 2). Most of this is not in the body itself: 8 of the 29 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 203, 155, 298, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/index.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"35659006d5a19c64c9d74e84662de8874bef35d1050465d66f560d4d8e6791cb"}},{"ruleId":"D2","level":"warning","message":{"text":"config._parse_yaml_block (cognitive 27): config._parse_yaml_block has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 1, loops 1 (nesting depth added 14). 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":".trellis/scripts/common/config.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd658706b0982024f03dc4a741591b7b81c6d2ee4755968723bfd98205ec762"}},{"ruleId":"D2","level":"warning","message":{"text":"session_context.get_context_text (cognitive 27): session_context.get_context_text has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/session_context.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c050ca23b054a41140aea2e494c44999602394b446dcb6d39f4e6413de6461"}},{"ruleId":"D2","level":"warning","message":{"text":"trellis_config._parse_yaml_block (cognitive 27): trellis_config._parse_yaml_block has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 1, loops 1 (nesting depth added 14). 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":".trellis/scripts/common/trellis_config.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9f5c1402633e8a1146247c19bbd71ba489ff7cc7890336c2b93cc804ff7c90"}},{"ruleId":"D2","level":"warning","message":{"text":"task.cmd_start (cognitive 26): task.cmd_start has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2, error handling 1 (nesting depth added 12). 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":".trellis/scripts/task.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faaa7ef5b4591c9981eaeaa993d36ed55b9259bfdee9f6479090874b9b9f715"}},{"ruleId":"D2","level":"warning","message":{"text":"safe_commit.safe_trellis_paths_to_add (cognitive 25): safe_commit.safe_trellis_paths_to_add has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/safe_commit.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5403f131649729a8bdb869f5d550b4618be0f2993eb1d1d67cfc2f75539f21c"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionControl.ActionControl (cognitive 25): ActionControl.ActionControl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 6, ternaries 3, error handling 1. Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 323, 270, 160). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/ActionControl.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"75507ae10650ab5a03620ce7bcfdf49b2991ad7c1899a417734c6b2b43b00ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardReader::read_with_capture (cognitive 24): ClipboardReader::read_with_capture has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (21 pts), match/switch 1 (2 pts), loops 1 (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":"src-tauri/src/clipboard/read.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a562625387d78219f258ee99539ccff8ac46f8af229b2b0d463a0904259ee9c6"}},{"ruleId":"D2","level":"warning","message":{"text":"getResearchContext (cognitive 24): getResearchContext has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (7 pts), error handling 2 (6 pts), boolean chains 2 (nesting depth added 14). Of this number, 22 points are the body\u0027s own statements and 2 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/plugins/inject-subagent-context.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"074d04f1580a0eb27c5fc1db29e630765f4a1782f62a0b50de3e8ac613299259"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveSpecScope (cognitive 24): resolveSpecScope has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5, loops 1 (2 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":".opencode/lib/session-utils.js"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b607c3764dd3c393b4e629b5e20e877abd7111350fc83f2fdc7928cfab3329"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._get_task_status (cognitive 23): session-start._get_task_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":".claude/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf26449c8732ab332fc663b5eaeb50a1b15f979647729da17198e5f5dfe01d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".claude/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45d9d417df8137849115e5a0c0c44965e3c326ebc5c2d8cab1a72edc02ef526"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".codex/hooks/session-start.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be7a58ba2c9ed4a9e943de26deed770b8c3f85ffe007579818e334461d3056b"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._get_task_status (cognitive 23): session-start._get_task_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":".cursor/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae239918ecb415a4ceed8d8b9ed6ef5795bdecbf7b725047d2199fb499c68586"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".cursor/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e908c0c480add99bd5d60a37e98a4e1edc2fbff0f8c6955e2ea1e809dc4b53fb"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._get_task_status (cognitive 23): session-start._get_task_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":".gemini/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a6c44629c17c7fe69bec8d7f1e27a96bb2f261b81a41052711c0c0ec015f75"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".gemini/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86b4a10bef20024472c68f25266d6882b154fc4db38b894cff1b9b7635eb39a"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".github/copilot/hooks/session-start.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce98d03c3f1241577002fae0a6bdc8c78dbb59265cd470b5168a18098b6f1f0"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._get_task_status (cognitive 23): session-start._get_task_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":".kiro/hooks/session-start.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26721f5810cf69d9c9b8345331eceabb3ae2d3cc82f591f82e0a78b1ecb22ae"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._build_compact_current_state (cognitive 23): session-start._build_compact_current_state has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 4, ternaries 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":".kiro/hooks/session-start.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c531db937706c08492a94f40e5db696183aee6f6dc941eaa99facfaf10d4484d"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupImportModal.BackupImportModal (cognitive 23): BackupImportModal.BackupImportModal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8, ternaries 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 58, 125, 76, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupImportModal.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b2df6c9cd5ddeef54ad2bd265903282edc0e299a7698237e9afbbf28c0be93"}},{"ruleId":"D2","level":"warning","message":{"text":"EcoPaste::clipboard::ingest::build_item_with_settings (cognitive 22): EcoPaste::clipboard::ingest::build_item_with_settings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 1, 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":"src-tauri/src/clipboard/ingest.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad89805d28d55a59bb624304d10a59c8d31cf81e99743c0ddae6f4917879148c"}},{"ruleId":"D2","level":"warning","message":{"text":"packages_context.get_context_packages_text (cognitive 22): packages_context.get_context_packages_text has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (6 pts), loops 2 (4 pts), boolean chains 2 (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":".trellis/scripts/common/packages_context.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2387cc984cbfba1068212d0be9b5dcbb15f41ae42e4e985dcb0daedca02ba963"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupExportModal.BackupExportModal (cognitive 22): BackupExportModal.BackupExportModal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 2, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 60, 142, 78, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupExportModal.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3aa27c561cedda19cd37880d24a718756988ec27e716b667f3f244fb6f1505"}},{"ruleId":"D2","level":"warning","message":{"text":"EcoPaste::clipboard::ingest::draft_from_text (cognitive 21): EcoPaste::clipboard::ingest::draft_from_text has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/ingest.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"783734ca6d5c261ec266d45600cb4dcb5782c234d2a054733e5a3387de5e0028"}},{"ruleId":"D2","level":"warning","message":{"text":"add_session.main (cognitive 21): add_session.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/add_session.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"db58d87751d97e13b762208630f97326af98c7469f32bade749942d91e2af772"}},{"ruleId":"D2","level":"warning","message":{"text":"packages_context._resolve_scope_set (cognitive 21): packages_context._resolve_scope_set has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5 (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":".trellis/scripts/common/packages_context.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79ad95d154565e40135ba38209fc6d5a4329f2546bd2efdea8d3fe71df32ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"task_context.cmd_list_context (cognitive 21): task_context.cmd_list_context has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/task_context.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f8c878da4dd9ec531bfa6efae8f0f431f60a136420643a8b305b4543e9d754"}},{"ruleId":"D2","level":"warning","message":{"text":"task.cmd_list_archive (cognitive 20): task.cmd_list_archive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/task.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea6283b0d06c312e3764ce4909f77c5d9e482d008b03f563bde55d05cc88168"}},{"ruleId":"D2","level":"warning","message":{"text":"PreferenceSection.resolveSectionVisual (cognitive 20): PreferenceSection.resolveSectionVisual has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSection.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fe77121400e6c93ad4c00c352e327bbd660928c06039783abad35961030db8"}},{"ruleId":"D2","level":"warning","message":{"text":"EcoPaste::window::show_window (cognitive 19): EcoPaste::window::show_window has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 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":"src-tauri/src/window/mod.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"101ba20aa2f4ba79b3e91ad7f35789c13c465846b9fe69289e599508d14bcb15"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 19): session-start._collect_spec_index_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2 (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":".claude/hooks/session-start.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1f1795b39550dcc2c632d8c6026594b2aa49aaa3ccc1c065afc5258b0cbe7a"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 19): session-start._collect_spec_index_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2 (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":".cursor/hooks/session-start.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8b24fe3883a6686146045d5d9f80c8d65cca107884bbfa85f7e7058a3c1f07"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 19): session-start._collect_spec_index_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2 (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":".gemini/hooks/session-start.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfa9c5cd5bc0ee21c84db6238599800eaed938f58903a949fb0f389a845af4b"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 19): session-start._collect_spec_index_paths has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2 (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":".kiro/hooks/session-start.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"add4d7108c5ab0ec9c27a2b78d2b21895edd41f5c257ab0459c41cdd61ed13db"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow_phase.filter_platform (cognitive 19): workflow_phase.filter_platform has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (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":".trellis/scripts/common/workflow_phase.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9451b20870a64f2c148eb1a1a0469e50c897d1efcdcf6b20386855e5f50cb3d"}},{"ruleId":"D2","level":"warning","message":{"text":"PreferenceSettingRow.PreferenceSettingRow (cognitive 19): PreferenceSettingRow.PreferenceSettingRow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 15 (17 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSettingRow.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9423fc4d3731a5a1ef20b2630f2526f9c13390d8184b9a16c5c49d961f3c2b05"}},{"ruleId":"D2","level":"warning","message":{"text":"active_task._lookup_env_context_key (cognitive 18): active_task._lookup_env_context_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 6 (9 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/active_task.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3d6fd20a0e9d08cccb9b02d671eeca7ec80f25957781b7865483ecf097eba1"}},{"ruleId":"D2","level":"warning","message":{"text":"git_context.main (cognitive 18): git_context.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/git_context.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64526deaf79eef2d3d332475b63cda1b1f52250ce4adedf60660e49add6b4a3"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 2, ternaries 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (chat.message, event, chat.message::(anonymous)). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/plugins/session-start.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eea7cd21400fd8a7ab6b37ee271eda4da07bafcf07071d95c5a0f018d5bfe1d"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.read_jsonl_entries (cognitive 17): inject-subagent-context.read_jsonl_entries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), boolean chains 1, 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6389e4ab24a8fd59dc26ef70e85935b6b93117609fcd8ce6046af43c87a521ae"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._load_trellis_config (cognitive 17): session-start._load_trellis_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 8). 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":".claude/hooks/session-start.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08bceb19be3a0910af4326c3373ac25693d1b7b56a25df5a371c2884efb543d"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.read_jsonl_entries (cognitive 17): inject-subagent-context.read_jsonl_entries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), boolean chains 1, 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":".cursor/hooks/inject-subagent-context.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1008702d5a50a8234d38a052faaee43915bf54622b9d3823caf610b2aa5a5a00"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._load_trellis_config (cognitive 17): session-start._load_trellis_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 8). 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":".cursor/hooks/session-start.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b5441c97dc5d8250b2feb05edd391e0fc101be8b51ca65845703cffe409c90"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._load_trellis_config (cognitive 17): session-start._load_trellis_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 8). 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":".gemini/hooks/session-start.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c1e8ae4a9ef7999d82820762e3b92201c935a055b1dd67cf6322cbdac15995"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.read_jsonl_entries (cognitive 17): inject-subagent-context.read_jsonl_entries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), boolean chains 1, 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":".kiro/hooks/inject-subagent-context.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2890b6ed2eeed7a16aab1edd2eee734f50e87fe9056f373fa3a2e2f49e3f85"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._load_trellis_config (cognitive 17): session-start._load_trellis_config has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 8). 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":".kiro/hooks/session-start.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e22e12fc0e0f9ff1f5fe68203234b38cc29c034885c2158a829cd20b4a562d"}},{"ruleId":"D2","level":"warning","message":{"text":"add_session._auto_commit_workspace (cognitive 17): add_session._auto_commit_workspace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 1 (3 pts), boolean chains 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":".trellis/scripts/add_session.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a0cb8b2509e15321200df655fe07a4ff4f34a07dff45e5c8a08118ef19525e"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.main (cognitive 16): inject-subagent-context.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"d449903c9ede5c860665e43c26a57e0b7c4e24a18bb3923c33a56138c60d6598"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 16): session-start._collect_spec_index_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 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":".codex/hooks/session-start.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ee3eda5f56177f37a392e0cbdbb4174fc19a2d7a2346222ede650ca46ca95d"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.main (cognitive 16): inject-subagent-context.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".cursor/hooks/inject-subagent-context.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fb901d06a53446b75b503c1bca143810192855c819c31b81f9f850682d3925"}},{"ruleId":"D2","level":"warning","message":{"text":"session-start._collect_spec_index_paths (cognitive 16): session-start._collect_spec_index_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 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":".github/copilot/hooks/session-start.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"0202ed92af487cfb79649babcbcc9541640b96aef7ec5fb3a26f2fb4e261e67f"}},{"ruleId":"D2","level":"warning","message":{"text":"inject-subagent-context.main (cognitive 16): inject-subagent-context.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".kiro/hooks/inject-subagent-context.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5ad57918e15b2ff69ffb70afe5b331cfc94dd1d93532376f308b3a7f180ee2"}},{"ruleId":"D2","level":"warning","message":{"text":"active_task.resolve_context_key (cognitive 16): active_task.resolve_context_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".trellis/scripts/common/active_task.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"6875a261e86cbfadfad9eb0bd944c202827f5ef166e671be8f48ac9a23bec781"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionControl.PermissionControl (cognitive 16): PermissionControl.PermissionControl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 4, boolean chains 2, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 101, 50, 130, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/PermissionControl.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5986b1f8dee23fa565c8db7dea8c3b725cb6428281e36fa3095eaa12f48f26aa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 4 (5 pts), boolean chains 4, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (chat.message, chat.message::(anonymous)). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".opencode/plugins/inject-workflow-state.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a263f6c4b39fe954e7c43e2cd89bfce6af5ea8484221ede5052fd79651fb34"}},{"ruleId":"D2","level":"warning","message":{"text":"readJsonlWithFiles (cognitive 16): readJsonlWithFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, error handling 1 (2 pts), 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":".opencode/lib/trellis-context.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c1bbfd9390ba66ccce2663ce4806ade6881fe52f4aa515ff2cf249f3ce829a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: List.List: FunctionTooLong \u2014 List runs 654 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 554 over it, 6.54\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":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5073d7ec18ddce11dc6b50972f8fa3f00ec5be7d17dd4fbc5087a5a14c821c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Group.Group: FunctionTooLong \u2014 Group runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.48\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":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"112634a03228e45f307a6073c540abdb5c4363229899b65fabfdbf51e7672eb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useClipboardPreviewController.useClipboardPreviewController: FunctionTooLong \u2014 useClipboardPreviewController runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.87\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":"src/pages/Clipboard/hooks/useClipboardPreviewController.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce6086f73dbdec97e19da124f37ec6250cb47faecf51aa2eca2c8170796f520"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ActionControl.ActionControl: FunctionTooLong \u2014 ActionControl runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\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":"src/pages/Preference/components/settingControls/ActionControl.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9adf34916845a7620cef243517be9163dea5ed7aaf12bb601cbc40283d82b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Preference: FunctionTooLong \u2014 Preference runs 245 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 145 over it, 2.45\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":"src/pages/Preference/index.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"522b82ce693030b9d71f254441e1f1d9bf3abc7e7c78a2ec19f1269cbba88a02"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EcoPaste::run: FunctionTooLong \u2014 EcoPaste::run runs 224 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 124 over it, 2.24\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":"src-tauri/src/lib.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9139b83b7bd214ef5e120038a3c195ced6b396e953b7b3e4ad901db309ea08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: useClipboardItems.useClipboardItems: FunctionTooLong \u2014 useClipboardItems runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\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":"src/hooks/useClipboardItems.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2293d176130064832652f1cf6e1bc1cb65711b7a0aefe4c905dd4e746c43a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backup/mod.rs: FileTooLong \u2014 1027 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 57 free functions. The bar is 500 significant lines; this is 527 over it, 2.05\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":"src-tauri/src/backup/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0652c37ef461284c1008e356cd4c0f7eb8e978236ec83ec6dbaa83ce31c71f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.ShortcutRecorder: FunctionTooLong \u2014 ShortcutRecorder runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\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":"src/components/ShortcutRecorder/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"482a64c4bc3b93b100f33f9b9c9b32ff487bae62e4dbb53f74084cda094de9d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/clipboard.rs: FileTooLong \u2014 1005 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 61 free functions. The bar is 500 significant lines; this is 505 over it, 2.01\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":"src-tauri/src/commands/clipboard.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcffadc9055ebd78bb97edf4a88683a77459b1cbe368315d7cf08a1ef63ff939"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Update: FunctionTooLong \u2014 Update runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\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":"src/pages/Update/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a556e725bfa10b5cc1222b98d356c970d39bde21e0248544d6a90f3da8efa7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BackupExportModal.BackupExportModal: FunctionTooLong \u2014 BackupExportModal runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupExportModal.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"05df1fabc20e7b9fcdd2466eb814f7f171783d9e562051eff14803ebc918a39b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/List.tsx: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: List (86-1112). The bar is 500 significant lines; this is 387 over it, 1.77\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a3d15f023f5466807801d14c6230f41bf4dbf8e692b3f9abf64575d0bbd31b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: motion.usePreviewMotion: FunctionTooLong \u2014 usePreviewMotion runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"src/pages/Preview/motion.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72d12a7adf9369f2ee052963f18422887658ca78f146a2b1fa382ce6209ab00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: List: ClassTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 254 over it, 1.64\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":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88997d4f11689c0bc65c200cfadb7060b7a0277d41d4a0322d5b234d6f310a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BackupImportModal.BackupImportModal: FunctionTooLong \u2014 BackupImportModal runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\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":"src/pages/Preference/components/BackupImportModal.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"885080aa8b89e0e4cee1a0daf5aed4d350b3702e0310517802c98b21585724eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/index.ts: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\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":"src/commands/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4d61d473a0806c4a2b86f95f7fc78094da04db1bf6bd463cfa84f69c17d14a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: LegacyImportStep.LegacyImportStep: FunctionTooLong \u2014 LegacyImportStep runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"src/pages/Onboarding/components/LegacyImportStep.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f97995702db6e845c3effdf9618e4b775c1cefb00a72767ad8d6ac9faecba0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PreferenceSearchResults.PreferenceSearchResults: FunctionTooLong \u2014 PreferenceSearchResults runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"src/pages/Preference/components/PreferenceSearchResults.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"144f19f9a3f1464e1b81f223ca39300810b9f55e6642888ca0e3309ed1a23411"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClipboardGroupManagerModal.ClipboardGroupManagerModal: FunctionTooLong \u2014 ClipboardGroupManagerModal runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"src/pages/Preference/components/ClipboardGroupManagerModal.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7817c921ae80a9529adc42f51855216b022a4b8500bc3575ff798156382b7208"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.ClipboardGroupModal: FunctionTooLong \u2014 ClipboardGroupModal runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"src/components/ClipboardGroupModal/index.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c684fd2896ebd452edafb4cda8b3ab50f5633f4c428db503807d07535ce26ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PreferenceSettingControl.PreferenceSettingControl: FunctionTooLong \u2014 PreferenceSettingControl runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"src/pages/Preference/components/settingControls/PreferenceSettingControl.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"726a9c12bde80d80e307c47f7fcafdab917aca8274a1d433caaabeb807d6ff6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Preview: FunctionTooLong \u2014 Preview runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"src/pages/Preview/index.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"017751768540e37ae54077aea924546242e095b18386b0d519b2ac58b386da10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/Group.tsx: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 107 over it, 1.21\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":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d096c5c51dd4cfedb538a4854933462342f1714e92916ccd60ef6d6dc0c566b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/preferenceSchema.ts: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 104 over it, 1.21\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":"src/pages/Preference/config/preferenceSchema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd48cacc36298f91eda06fefec4a1e785973baba37d29772afee5462bf09d016"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SourceAppsTransfer.SourceAppsTransfer: FunctionTooLong \u2014 SourceAppsTransfer runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"src/pages/Preference/components/SourceAppsTransfer.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"381ac948bd4f9aef106d1d18cb31d7b00305a3e42ae744fc3da9dce29e54b4ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/onboarding.rs: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 76 over it, 1.15\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":"src-tauri/src/commands/onboarding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8375918e69920a3fdb73b7bf2bc878db4a1700c9f0a32c1cd3578bce99b3190"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Header.Header: FunctionTooLong \u2014 Header runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"src/pages/Clipboard/components/Header.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc22a1115a156001899e206898b1fda47190a5e86837d5b2cec4b68b9cbdf69f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ClipboardCard.ClipboardCard: FunctionTooLong \u2014 ClipboardCard runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"src/pages/Clipboard/components/cards/ClipboardCard.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db1e21f755786c8667bee3ec2719ff903f45772beeebf17305bfdd749af6bf5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/session-start.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":".claude/hooks/session-start.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"623a3ffa5c54dc484e710b925ff43304ddcf2b3d9d112e5228ceb7471ae2d5fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/session-start.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":".cursor/hooks/session-start.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a27aa7896d7e01f096df1747d419be76b911770c022e9844ba551a2f9615b01"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/session-start.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":".gemini/hooks/session-start.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2e62bc03d7d9330640c4b51ce2116f5419f2dc42fd01958be503fb809c48c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hooks/session-start.py: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":".kiro/hooks/session-start.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1086c795e39f45873ac464ad90eee89cf092683cf537784a7880e7b2f8d020fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/session_context.py: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\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":".trellis/scripts/common/session_context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d8a03554e37d1a25f13fae66a1e0e6242c1b650a32d767a95d5bb6dc502c00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EcoPaste::clipboard::ingest::build_item_with_settings: FunctionTooLong \u2014 EcoPaste::clipboard::ingest::build_item_with_settings runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"src-tauri/src/clipboard/ingest.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b33d46d142df79aaf940d1af05291151c20bad62b8c5fb8454cc2946b0762e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: window/preview.rs: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 31 over it, 1.06\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":"src-tauri/src/window/preview.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ccc95b3c394a9ba3cb517441e26c147b9f7cebfe12de527d3fd3fc37c13009"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PreferenceSettingRow.PreferenceSettingRow: FunctionTooLong \u2014 PreferenceSettingRow runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"src/pages/Preference/components/PreferenceSettingRow.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb48678dd7f9e7191610d8cdbad607d03c516ff8eaab4233df80a47a6fc7e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 43 shared lines): .claude/hooks/session-start.py:23-67 | .codex/hooks/session-start.py:45-89 | .cursor/hooks/session-start.py:23-67 | .gemini/hooks/session-start.py:23-67 | .github/copilot/hooks/session-start.py:55-99 | .kiro/hooks/session-start.py:23-67 \u2014 These 6 members are variants of one another: a block of 43 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":".claude/hooks/session-start.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0041887a6af389a4261b76f210ccc9ac9da5f0c5a48804927b1a552593f1d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): .claude/hooks/inject-subagent-context.py:83-113 | .claude/hooks/inject-workflow-state.py:96-131 | .claude/hooks/session-start.py:188-223 | .codex/hooks/inject-workflow-state.py:96-131 | .cursor/hooks/inject-subagent-context.py:83-113 | .cursor/hooks/session-start.py:188-223 | .gemini/hooks/inject-workflow-state.py:96-131 | .gemini/hooks/session-start.py:188-223 | .github/copilot/hooks/inject-workflow-state.py:96-131 | .kiro/hooks/inject-subagent-context.py:83-113 | .kiro/hooks/inject-workflow-state.py:96-131 | .kiro/hooks/session-start.py:188-223 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c701dd9b8637eeefd37950077e505beee09f746dd015cf07d92b93f3b9234ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): .claude/hooks/session-start.py:299-314 | .codex/hooks/session-start.py:195-210 | .cursor/hooks/session-start.py:299-314 | .gemini/hooks/session-start.py:299-314 | .github/copilot/hooks/session-start.py:200-215 | .kiro/hooks/session-start.py:299-314 | .trellis/scripts/common/active_task.py:103-119 | .trellis/scripts/common/paths.py:211-232 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3f62b0e8be2545bbaa1bfc6e1415e467a05f471170414a5e56c1def1c735de"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/inject-subagent-context.py:276-311 | .claude/hooks/inject-subagent-context.py:315-339 | .cursor/hooks/inject-subagent-context.py:276-311 | .cursor/hooks/inject-subagent-context.py:315-339 | .kiro/hooks/inject-subagent-context.py:276-311 | .kiro/hooks/inject-subagent-context.py:315-339 \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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c29c60d96b2d5f49b6a57ac763586474c0d315b9b7869e33bee9cd7ebfa3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:100-120 | .codex/hooks/session-start.py:123-142 | .cursor/hooks/session-start.py:100-120 | .gemini/hooks/session-start.py:100-120 | .github/copilot/hooks/session-start.py:128-147 | .kiro/hooks/session-start.py:100-120 \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":".claude/hooks/session-start.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cb8dbf281198543e486a474519de69aec0c9c701b322cf5e9676710a2e19d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:160-174 | .codex/hooks/session-start.py:295-309 | .cursor/hooks/session-start.py:160-174 | .gemini/hooks/session-start.py:160-174 | .github/copilot/hooks/session-start.py:300-314 | .kiro/hooks/session-start.py:160-174 \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":".claude/hooks/session-start.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe77550f357cd36060d77e88e1632e38d2769e077d8520a4279e47d258a8fa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:178-184 | .codex/hooks/session-start.py:313-319 | .cursor/hooks/session-start.py:178-184 | .gemini/hooks/session-start.py:178-184 | .github/copilot/hooks/session-start.py:318-324 | .kiro/hooks/session-start.py:178-184 \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":".claude/hooks/session-start.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf934d8c9cd023e7877c41f01b2860b812992a808e6735daf0ce0bf34f03c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:570-597 | .codex/hooks/session-start.py:330-353 | .cursor/hooks/session-start.py:570-597 | .gemini/hooks/session-start.py:570-597 | .github/copilot/hooks/session-start.py:335-358 | .kiro/hooks/session-start.py:570-597 \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":".claude/hooks/session-start.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"e237ea14568b7d8cbe2d18f84ddd574603094215eb6800740014171e6f6fd368"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:605-657 | .codex/hooks/session-start.py:361-413 | .cursor/hooks/session-start.py:605-657 | .gemini/hooks/session-start.py:605-657 | .github/copilot/hooks/session-start.py:366-418 | .kiro/hooks/session-start.py:605-657 \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":".claude/hooks/session-start.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76308793b0d8ffd8674076b1a03998a34f0a14ab6f0d03fad7c2290056fc7d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:661-682 | .codex/hooks/session-start.py:417-433 | .cursor/hooks/session-start.py:661-682 | .gemini/hooks/session-start.py:661-682 | .github/copilot/hooks/session-start.py:422-438 | .kiro/hooks/session-start.py:661-682 \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":".claude/hooks/session-start.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"87857ef43c9a0f66c44a9cf8ddc7c5432e0719a8917e4bb646d6faa4ab0a8939"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): .claude/hooks/session-start.py:692-703 | .codex/hooks/session-start.py:443-446 | .cursor/hooks/session-start.py:692-703 | .gemini/hooks/session-start.py:692-703 | .github/copilot/hooks/session-start.py:448-451 | .kiro/hooks/session-start.py:692-703 \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":".claude/hooks/session-start.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1012f22d6882ebf268b79d860eb8c6218196b46cd001dd9ca5bab5abcc347a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:144-167 | .codex/hooks/inject-workflow-state.py:144-167 | .gemini/hooks/inject-workflow-state.py:144-167 | .github/copilot/hooks/inject-workflow-state.py:144-167 | .kiro/hooks/inject-workflow-state.py:144-167 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e7d79981a3ab11a3356333c80875f58f2ee64be82672f49c8e49c8b5d44e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:182-204 | .codex/hooks/inject-workflow-state.py:182-204 | .gemini/hooks/inject-workflow-state.py:182-204 | .github/copilot/hooks/inject-workflow-state.py:182-204 | .kiro/hooks/inject-workflow-state.py:182-204 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d33ec0b97d32be3faf475c9671523a9e9388e03f445fc53d3152f5fa8654e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:227-254 | .codex/hooks/inject-workflow-state.py:227-254 | .gemini/hooks/inject-workflow-state.py:227-254 | .github/copilot/hooks/inject-workflow-state.py:227-254 | .kiro/hooks/inject-workflow-state.py:227-254 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b8178732a991bb89ed021f32b5e5fc01a6264e12e6358b9771ce4ce33a6dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:260-279 | .codex/hooks/inject-workflow-state.py:260-279 | .gemini/hooks/inject-workflow-state.py:260-279 | .github/copilot/hooks/inject-workflow-state.py:260-279 | .kiro/hooks/inject-workflow-state.py:260-279 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3886dbb6678c236aec6a002a7e9129c64f9ce7324c96676dc73d0927fcd70e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:289-303 | .codex/hooks/inject-workflow-state.py:289-303 | .gemini/hooks/inject-workflow-state.py:289-303 | .github/copilot/hooks/inject-workflow-state.py:289-303 | .kiro/hooks/inject-workflow-state.py:289-303 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dae3b2e9fcf7c33070bb6deb51ef84f4e46e1bc5a5ba27a03e1905b09d6ec6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:311-340 | .codex/hooks/inject-workflow-state.py:311-340 | .gemini/hooks/inject-workflow-state.py:311-340 | .github/copilot/hooks/inject-workflow-state.py:311-340 | .kiro/hooks/inject-workflow-state.py:311-340 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bace25fabd9f5efcfcc90c817144b88888731e69128601446ee088b6df58dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): .claude/hooks/inject-workflow-state.py:344-404 | .codex/hooks/inject-workflow-state.py:344-404 | .gemini/hooks/inject-workflow-state.py:344-404 | .github/copilot/hooks/inject-workflow-state.py:344-404 | .kiro/hooks/inject-workflow-state.py:344-404 \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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"118152674927de70480762549619b886b79eb46e413d417b649624ccb2e70040"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:269-295 | .cursor/hooks/session-start.py:269-295 | .gemini/hooks/session-start.py:269-295 | .kiro/hooks/session-start.py:269-295 \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":".claude/hooks/session-start.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81b623823bacc588f72b5b34d7ca124456514531bd94e58a3baf6052e15a25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:328-417 | .cursor/hooks/session-start.py:328-417 | .gemini/hooks/session-start.py:328-417 | .kiro/hooks/session-start.py:328-417 \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":".claude/hooks/session-start.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5161e45413dfcc555101f1b70e22f69c79af9ca8ea35853ef44392650bc3af10"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:421-461 | .cursor/hooks/session-start.py:421-461 | .gemini/hooks/session-start.py:421-461 | .kiro/hooks/session-start.py:421-461 \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":".claude/hooks/session-start.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfc1f36b9cf0d606e247a99fe3ef7a87b6824ab538237f605255800eaa299aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:465-507 | .cursor/hooks/session-start.py:465-507 | .gemini/hooks/session-start.py:465-507 | .kiro/hooks/session-start.py:465-507 \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":".claude/hooks/session-start.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e188287ac8dd3d05395d0f57313f42ef660450b393497c0213c08184ccc4b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:517-566 | .cursor/hooks/session-start.py:517-566 | .gemini/hooks/session-start.py:517-566 | .kiro/hooks/session-start.py:517-566 \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":".claude/hooks/session-start.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa38caa43f2df91c280631b053ac055898c6e6fcc721bf0c2aad020b9fc6707"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): .claude/hooks/session-start.py:726-818 | .cursor/hooks/session-start.py:726-818 | .gemini/hooks/session-start.py:726-818 | .kiro/hooks/session-start.py:726-818 \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":".claude/hooks/session-start.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f655c5a03fb95e257979f918b677ade5e5135cfe2fe96c4443e1ff4cd404d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/clipboard/apps_registry.rs:537-549 | src-tauri/src/clipboard/source.rs:130-142 \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":"src-tauri/src/clipboard/apps_registry.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"26957de25444e2245001e1cda062f60867758ef3d4edebcfcf0020b002fe3f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/backup/mod.rs:1277-1287 | src-tauri/src/commands/storage.rs:395-405 \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":"src-tauri/src/backup/mod.rs"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abcfb580b8ecad65b7bc1ff96e3645f8de71fd881b6b611d9ff4379e620de9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/backup/mod.rs:1331-1341 | src-tauri/src/backup/mod.rs:1429-1439 \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":"src-tauri/src/backup/mod.rs"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9019091fa568354b31b7ced55e161b5abb8ec55d81d4ec14373606eae827f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src-tauri/src/window/lifecycle/mod.rs:542-551 | src-tauri/src/window/lifecycle/mod.rs:613-622 \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":"src-tauri/src/window/lifecycle/mod.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"f429386508408b658115f5b531f25374fcc162daf326b6606e278fdc64a48b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/window/state.rs:37-45 | src-tauri/src/window/state.rs:108-117 \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":"src-tauri/src/window/state.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7901d5169b623df4ae1ffe1bd2f26b941c70a8cad935142a694f58a34efa0f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src-tauri/src/update.rs:95-102 | src-tauri/src/update.rs:114-121 \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":"src-tauri/src/update.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b791d4bddd3561681bdee40663cc08c87fa0cf80ea8354a109ebb9b92b170d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): src-tauri/src/commands/clipboard.rs:374-380 | src-tauri/src/commands/clipboard.rs:410-415 \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":"src-tauri/src/commands/clipboard.rs"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"23680aae31660675e8a550aabaedcbc84a1dcfba2faea071dfe3ad3036c62cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/settings/store.rs:32-40 | src-tauri/src/settings/store.rs:113-118 \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":"src-tauri/src/settings/store.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2d428d88a87c9ab738741820da5c1a1480aacc1f0de586246c3bedc37ec7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/clipboard/apps_registry.rs:350-354 | src-tauri/src/clipboard/source.rs:78-82 \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":"src-tauri/src/clipboard/apps_registry.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35bbae4571ec53a72d9b4087f3a60c64a144b39cf9acd18679b046ea646dce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/commands/clipboard.rs:835-839 | src-tauri/src/commands/clipboard.rs:928-932 \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":"src-tauri/src/commands/clipboard.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ed2776dcbbafbc9aca65debfa760bb8abdd04575907fa554ea71ef86f34cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/autostart/macos.rs:26-31 | src-tauri/src/autostart/windows.rs:35-40 \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":"src-tauri/src/autostart/macos.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"afabea354baf0b66477077c161817d9e4e58851a01a1a2bd31a96681af4a850a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src-tauri/src/clipboard/app_store.rs:54-59 | src-tauri/src/clipboard/file_icon_store.rs:43-48 \u2014 before extracting anything, compare \u0060src-tauri/src/clipboard/app_store.rs\u0060 and \u0060src-tauri/src/clipboard/file_icon_store.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/app_store.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c822f86fa597759d1a32ecfe51b9b6c0235c75764008887217baea59ea6f09cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src-tauri/src/clipboard/app_store.rs:73-77 | src-tauri/src/clipboard/file_icon_store.rs:62-66 | src-tauri/src/clipboard/storage.rs:176-180 \u2014 before extracting anything, compare \u0060src-tauri/src/clipboard/app_store.rs\u0060 and \u0060src-tauri/src/clipboard/file_icon_store.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/app_store.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4928f8162c95d3427455fdb3a70ec5aa079e1b825f442bfaf010aa25c089a1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src-tauri/src/clipboard/app_store.rs:28-34 | src-tauri/src/clipboard/file_icon_store.rs:24-30 \u2014 before extracting anything, compare \u0060src-tauri/src/clipboard/app_store.rs\u0060 and \u0060src-tauri/src/clipboard/file_icon_store.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/app_store.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da9296e0cef23ea65b786a19fc1752f48c288baaf8bace93285edd04fb13fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src-tauri/src/clipboard/app_store.rs:44-51 | src-tauri/src/clipboard/file_icon_store.rs:33-40 | src-tauri/src/clipboard/storage.rs:72-79 \u2014 before extracting anything, compare \u0060src-tauri/src/clipboard/app_store.rs\u0060 and \u0060src-tauri/src/clipboard/file_icon_store.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/app_store.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"70516a5ca57b0ef9b47cd8b2e03678f6463de8ed44af78b98117286159c4671e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src-tauri/src/mouse/windows.rs:21-33 | src-tauri/src/shortcut/win_v.rs:47-59 \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":"src-tauri/src/mouse/windows.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bb9bac37050c49fb77239b94bdf701c9dbc347bd049e1855583ae6056b838f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/keyboard/windows.rs:79-89 | src-tauri/src/shortcut/win_v.rs:54-66 \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":"src-tauri/src/keyboard/windows.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c000b6f1cac3e633f39ffebac26efd1b77b4b4bb60ed562b0f670bc718464f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src-tauri/src/backup/mod.rs:1089-1100 | src-tauri/src/backup/mod.rs:1126-1137 | src-tauri/src/backup/mod.rs:1155-1166 \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":"src-tauri/src/backup/mod.rs"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdc18c4514b516479ece1575f87da245cbce9986cad130868840475ccfdeae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src-tauri/src/window/mod.rs:291-302 | src-tauri/src/window/mod.rs:327-338 \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":"src-tauri/src/window/mod.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6672aa629211aa9bded8dc9d9003be3e71b69bdd0203229ff3c0915b4dc36c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src-tauri/src/keyboard/windows.rs:202-212 | src-tauri/src/keyboard/windows.rs:244-254 \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":"src-tauri/src/keyboard/windows.rs"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"76930a2a6644af1dfe91e6072947af81e1066301475d337e2396e245b56eaad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src-tauri/src/admin.rs:196-204 | src-tauri/src/admin.rs:281-289 \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":"src-tauri/src/admin.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b4c1e8de6009cd08f6dd30579e7eacc16516835782f74bb5d7cbd92a998c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src-tauri/src/clipboard/app_store.rs:80-86 | src-tauri/src/clipboard/file_icon_store.rs:69-75 | src-tauri/src/clipboard/storage.rs:184-190 \u2014 before extracting anything, compare \u0060src-tauri/src/clipboard/app_store.rs\u0060 and \u0060src-tauri/src/clipboard/file_icon_store.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src-tauri/src/clipboard/app_store.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f189372508ab3531b5ea2b08ecd0089cc7d5f6b22d4b4fa5bbbbcb6e611d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/menu/context_window.rs:157-161 | src-tauri/src/menu/context_window.rs:196-200 \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":"src-tauri/src/menu/context_window.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b679621a18eddcf79fc460139af3d7fbf04482ba39bbaa3570cfd5d415bc63ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src-tauri/src/window/position.rs:55-59 | src-tauri/src/window/position.rs:80-84 \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":"src-tauri/src/window/position.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06e357ba1dbbbee5712c218dd4f792d20446632534597f36c68ff67fb4e9c2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93 lines \u00D7 4): .claude/hooks/session-start.py:726-818 | .cursor/hooks/session-start.py:726-818 | .gemini/hooks/session-start.py:726-818 | .kiro/hooks/session-start.py:726-818 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060.claude/hooks/session-start.py:726\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":".claude/hooks/session-start.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5052241314c4a4887b6e1b6ea251406d55a3a981e0a5dae87430ae060e5a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 4): .claude/hooks/session-start.py:328-417 | .cursor/hooks/session-start.py:328-417 | .gemini/hooks/session-start.py:328-417 | .kiro/hooks/session-start.py:328-417 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed1aa82e9393155bb4c860dd83583fa06cccf2489d039aea162f706f362dc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:688-767 | .cursor/hooks/inject-subagent-context.py:688-767 | .kiro/hooks/inject-subagent-context.py:688-767 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"174e9cf95d9325f12f42bcd235765257cbbd3ba408f1f73d25ff6f4afbf4c516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): .codex/hooks/session-start.py:224-291 | .github/copilot/hooks/session-start.py:229-296 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".codex/hooks/session-start.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c9d44c0bcc137666ce1ac9892c29ceb12bd9cf97391de3651e5120ebd4fd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:191-256 | .cursor/hooks/inject-subagent-context.py:191-256 | .kiro/hooks/inject-subagent-context.py:191-256 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"068c8380a3a09b53739453866eaa24a85b2de923b15354cdfa5408d2514a0319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:344-404 | .codex/hooks/inject-workflow-state.py:344-404 | .gemini/hooks/inject-workflow-state.py:344-404 | .github/copilot/hooks/inject-workflow-state.py:344-404 | .kiro/hooks/inject-workflow-state.py:344-404 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5f16c5553822b5c0179ace5e3516bfe89e6ff5c7f908625d55d15d5e318c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201361 lines \u00D7 2): .codex/hooks/session-start.py:469-529 | .github/copilot/hooks/session-start.py:474-532 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060.codex/hooks/session-start.py:469\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":".codex/hooks/session-start.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ce23db9abe19b6aad615c0c7bc6f389e2b081daf5d4ae00fec5ef54708317e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201360 lines \u00D7 2): .trellis/scripts/common/config.py:93-152 | .trellis/scripts/common/trellis_config.py:58-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":".trellis/scripts/common/config.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d7e36ebfff022847ccd55d00a8302acc5451ffb3106b7a3297a1a9886c0ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 6): .claude/hooks/session-start.py:605-657 | .codex/hooks/session-start.py:361-413 | .cursor/hooks/session-start.py:605-657 | .gemini/hooks/session-start.py:605-657 | .github/copilot/hooks/session-start.py:366-418 | .kiro/hooks/session-start.py:605-657 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76875b2c5ad7a2841aca8b92900f032fe430486dc97fc6fd88abd7fa8e1f8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:578-628 | .cursor/hooks/inject-subagent-context.py:578-628 | .kiro/hooks/inject-subagent-context.py:578-628 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"befe2fba9dbef485c1cacf7649ad7da19d0a392ee9105d8febd608cc90ce33e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 4): .claude/hooks/session-start.py:517-566 | .cursor/hooks/session-start.py:517-566 | .gemini/hooks/session-start.py:517-566 | .kiro/hooks/session-start.py:517-566 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3439fce78614269a7849486a99245e91ab27a230e2a1d2df11b4a79f40b87198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 4): .claude/hooks/session-start.py:465-507 | .cursor/hooks/session-start.py:465-507 | .gemini/hooks/session-start.py:465-507 | .kiro/hooks/session-start.py:465-507 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eba41afff5eb1fbcfb73539dcfc0256b08b9cdf3a4788486eedfc635e7112c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 4): .claude/hooks/session-start.py:421-461 | .cursor/hooks/session-start.py:421-461 | .gemini/hooks/session-start.py:421-461 | .kiro/hooks/session-start.py:421-461 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7c165b2222b7e738a50d346feb2e07f12d8fda324f49d4d1d44d906ad86250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:149-187 | .cursor/hooks/inject-subagent-context.py:149-187 | .kiro/hooks/inject-subagent-context.py:149-187 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc258899ff01f0481c152b116bdc51063b52c37b2690fdc745ca167907ca9b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:648-684 | .cursor/hooks/inject-subagent-context.py:648-684 | .kiro/hooks/inject-subagent-context.py:648-684 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9612514a21d359f87c7574d20cff969e1e791d11bce325fccb20138a81ccfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 6): .claude/hooks/session-start.py:23-58 | .codex/hooks/session-start.py:45-80 | .cursor/hooks/session-start.py:23-58 | .gemini/hooks/session-start.py:23-58 | .github/copilot/hooks/session-start.py:55-90 | .kiro/hooks/session-start.py:23-58 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba815914e319738e42ad9777571655700524462c25b87fc438bc303fb347ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 12): .claude/hooks/inject-subagent-context.py:83-112 | .claude/hooks/inject-workflow-state.py:96-126 | .claude/hooks/session-start.py:188-218 | .codex/hooks/inject-workflow-state.py:96-126 | .cursor/hooks/inject-subagent-context.py:83-112 | .cursor/hooks/session-start.py:188-218 | .gemini/hooks/inject-workflow-state.py:96-126 | .gemini/hooks/session-start.py:188-218 | .github/copilot/hooks/inject-workflow-state.py:96-126 | .kiro/hooks/inject-subagent-context.py:83-112 | .kiro/hooks/inject-workflow-state.py:96-126 | .kiro/hooks/session-start.py:188-218 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6324d4c4bcde0b5cef6e9f04244c6773231e4845bcc234dcebf4565801814b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:311-340 | .codex/hooks/inject-workflow-state.py:311-340 | .gemini/hooks/inject-workflow-state.py:311-340 | .github/copilot/hooks/inject-workflow-state.py:311-340 | .kiro/hooks/inject-workflow-state.py:311-340 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"695b40bde5e25339934ad48207ad908f344446d7e701149f4d24f25ede6d745d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:227-254 | .codex/hooks/inject-workflow-state.py:227-254 | .gemini/hooks/inject-workflow-state.py:227-254 | .github/copilot/hooks/inject-workflow-state.py:227-254 | .kiro/hooks/inject-workflow-state.py:227-254 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa2ac59dfcf4d8198884ab33463589a25f318de222d2257c3400ff442e9b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4): .claude/hooks/session-start.py:269-295 | .cursor/hooks/session-start.py:269-295 | .gemini/hooks/session-start.py:269-295 | .kiro/hooks/session-start.py:269-295 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a29a3a176caa34a7543a871a2eb8204769d01687b17390247439a439640a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:276-300 | .cursor/hooks/inject-subagent-context.py:276-300 | .kiro/hooks/inject-subagent-context.py:276-300 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060.claude/hooks/inject-subagent-context.py:276\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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a8556be00cbb99cb8287276f1fda8a0f30826cbe9ed5d6d14ce6935c5b2714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:144-167 | .codex/hooks/inject-workflow-state.py:144-167 | .gemini/hooks/inject-workflow-state.py:144-167 | .github/copilot/hooks/inject-workflow-state.py:144-167 | .kiro/hooks/inject-workflow-state.py:144-167 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"60071db35a0b7b243d390f0d93e4717fbb295604b9f2a5d476648beb48a89433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:182-204 | .codex/hooks/inject-workflow-state.py:182-204 | .gemini/hooks/inject-workflow-state.py:182-204 | .github/copilot/hooks/inject-workflow-state.py:182-204 | .kiro/hooks/inject-workflow-state.py:182-204 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3964c7b28130b39fe5f0c831bba8f3f5ec275c970026083bdac1865f2eeac306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): .trellis/scripts/common/task_store.py:558-580 | .trellis/scripts/common/task_store.py:611-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":".trellis/scripts/common/task_store.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edefb31b88f4b19db715f5439b1b181e07de0d528272b7804e0ec0b579e69e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 2): .trellis/scripts/common/active_task.py:103-119 | .trellis/scripts/common/paths.py:211-232 \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. 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":".trellis/scripts/common/active_task.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dd3bae9fb4869ce1a95fec56722d688dc77a576cec9ba08d46afd99140d1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 6): .claude/hooks/session-start.py:100-120 | .codex/hooks/session-start.py:123-142 | .cursor/hooks/session-start.py:100-120 | .gemini/hooks/session-start.py:100-120 | .github/copilot/hooks/session-start.py:128-147 | .kiro/hooks/session-start.py:100-120 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c4f016fd79f8a7159800012f70f57a0f1b7ecafc2b2a78eb090119a7d79584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:260-279 | .codex/hooks/inject-workflow-state.py:260-279 | .gemini/hooks/inject-workflow-state.py:260-279 | .github/copilot/hooks/inject-workflow-state.py:260-279 | .kiro/hooks/inject-workflow-state.py:260-279 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1424aa183bff2d2c6cca1a507da70f8b0bcc43a084b546696996eb684cbc3c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:465-484 | .cursor/hooks/inject-subagent-context.py:465-484 | .kiro/hooks/inject-subagent-context.py:465-484 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ab4619179aebe1dfc479c46106cef11986ef2b6ab00bea0677c1f4b0bd23ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): .trellis/scripts/common/config.py:40-59 | .trellis/scripts/common/trellis_config.py:26-42 \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. 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":".trellis/scripts/common/config.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2139e2a0246a68be18458b5062e8ef02fdbb7bb5da0cf79d61b2ae137db79a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): .claude/hooks/inject-subagent-context.py:293-311 | .claude/hooks/inject-subagent-context.py:321-339 | .cursor/hooks/inject-subagent-context.py:293-311 | .cursor/hooks/inject-subagent-context.py:321-339 | .kiro/hooks/inject-subagent-context.py:293-311 | .kiro/hooks/inject-subagent-context.py:321-339 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1275deaaedb55bd470c287542579d51f55077331c3f78ff62841196e5e588b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): .trellis/scripts/common/safe_commit.py:265-283 | .trellis/scripts/common/safe_commit.py:297-315 | .trellis/scripts/task.py:365-383 \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 \u0060.trellis/scripts/common/safe_commit.py:265\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":".trellis/scripts/common/safe_commit.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd8c65d4392c86d328e5f8da091ca75486f471f7a7c2ab340fabcba4a7c6177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): .codex/hooks/session-start.py:173-191 | .github/copilot/hooks/session-start.py:178-196 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".codex/hooks/session-start.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a6c6ca2b0d590cae82cdb352bd28d6be4e1533795247d3b344a931beeabe64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): .trellis/scripts/common/task_store.py:663-681 | .trellis/scripts/common/task_store.py:729-747 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":".trellis/scripts/common/task_store.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9ce346a0e104b451325e1516541036e5343c9af9b89a0d2f3c8e33be39f1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): .claude/hooks/session-start.py:580-597 | .cursor/hooks/session-start.py:580-597 | .gemini/hooks/session-start.py:580-597 | .kiro/hooks/session-start.py:580-597 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01418daa85c02b0cccdbb7fb82acc4d220def5cd52aafd1bf7ee2a05006d6d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): .claude/hooks/session-start.py:570-586 | .codex/hooks/session-start.py:330-345 | .cursor/hooks/session-start.py:570-586 | .gemini/hooks/session-start.py:570-586 | .github/copilot/hooks/session-start.py:335-350 | .kiro/hooks/session-start.py:570-586 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"8586e92c0360a8e5981adf21a6ba0f927d056a2fd4f53485577e60f6d7f5187b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): .claude/hooks/session-start.py:661-676 | .cursor/hooks/session-start.py:661-676 | .gemini/hooks/session-start.py:661-676 | .kiro/hooks/session-start.py:661-676 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f16e0327cd9e88cdb7a0868864fde6efc76a4227086dd5c96cfb232779cc90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): .trellis/scripts/common/task_store.py:665-680 | .trellis/scripts/common/task_store.py:699-714 | .trellis/scripts/common/task_store.py:731-746 \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. 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":".trellis/scripts/common/task_store.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"9616a35724ab00eb0c0f14a5dabae8478343acb6a744146a93188553674396e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): .claude/hooks/session-start.py:160-174 | .codex/hooks/session-start.py:295-309 | .cursor/hooks/session-start.py:160-174 | .gemini/hooks/session-start.py:160-174 | .github/copilot/hooks/session-start.py:300-314 | .kiro/hooks/session-start.py:160-174 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e4a008a7ec3d7b479a413adfc90e37415365cb7fdee91d893a719bf0e39326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): .claude/hooks/session-start.py:300-314 | .codex/hooks/session-start.py:196-210 | .cursor/hooks/session-start.py:300-314 | .gemini/hooks/session-start.py:300-314 | .github/copilot/hooks/session-start.py:201-215 | .kiro/hooks/session-start.py:300-314 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0746853f880a229ec0589114f2415a7ffacc4845ec41b1bcabd3dce9ac133e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:289-303 | .codex/hooks/inject-workflow-state.py:289-303 | .gemini/hooks/inject-workflow-state.py:289-303 | .github/copilot/hooks/inject-workflow-state.py:289-303 | .kiro/hooks/inject-workflow-state.py:289-303 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44efa01f49a365e299ddb4258483ff01b9b8ba9b52d848570356f68ea26ba11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:117-131 | .cursor/hooks/inject-subagent-context.py:117-131 | .kiro/hooks/inject-subagent-context.py:117-131 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82c1cf2841f74ca268635e5d25402ccad7bb8be6b74660483789d7db2fff7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): .trellis/scripts/common/cli_adapter.py:105-117 | .trellis/scripts/common/cli_adapter.py:526-540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9344d76812c7fd406e3b0a059eb4b9bd01d2d13e2c0079b99cb282202220ebd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): .trellis/scripts/common/cli_adapter.py:121-135 | .trellis/scripts/common/cli_adapter.py:536-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":".trellis/scripts/common/cli_adapter.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"102d7528eaec2e042d7c96a1520e9b4c3e7adcfd703b376c50b24cfc3b346103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): .claude/hooks/session-start.py:669-682 | .codex/hooks/session-start.py:420-433 | .cursor/hooks/session-start.py:669-682 | .gemini/hooks/session-start.py:669-682 | .github/copilot/hooks/session-start.py:425-438 | .kiro/hooks/session-start.py:669-682 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e3351121d644d7b2e9c1a564c26c8956057de620c5ac96f97ac0bec062e0e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): .claude/hooks/session-start.py:299-309 | .codex/hooks/session-start.py:195-205 | .cursor/hooks/session-start.py:299-309 | .gemini/hooks/session-start.py:299-309 | .github/copilot/hooks/session-start.py:200-210 | .kiro/hooks/session-start.py:299-309 | .trellis/scripts/common/active_task.py:104-114 | .trellis/scripts/common/paths.py:217-227 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65c77c85feb42d7334715632b8f932b6dc6d2a986456e355a9d28a8530f30b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 6): .claude/hooks/session-start.py:692-702 | .codex/hooks/session-start.py:443-445 | .cursor/hooks/session-start.py:692-702 | .gemini/hooks/session-start.py:692-702 | .github/copilot/hooks/session-start.py:448-450 | .kiro/hooks/session-start.py:692-702 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/session-start.py"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"9750baefa7eb100fdfe1664b5fce1e72c5ffe5cbb09a2ad0d815b49e8baf0861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): .trellis/scripts/task.py:430-440 | .trellis/scripts/task.py:455-465 \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":".trellis/scripts/task.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"095adb17029a16ae591544feba4d0dec7429acc6f50356e90c6862805376147d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:135-143 | .cursor/hooks/inject-subagent-context.py:135-143 | .kiro/hooks/inject-subagent-context.py:135-143 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"176c233b72a116cb1f3a83d57ce9bcfacc011aafa7f3efc33eb6688d8ff10067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:486-493 | .cursor/hooks/inject-subagent-context.py:486-493 | .kiro/hooks/inject-subagent-context.py:486-493 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"49279f226b94eee962a7d19d45cf0aa8de6396fe6655e2259fa8f035cc5f9efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): .claude/hooks/session-start.py:61-67 | .codex/hooks/session-start.py:83-89 | .cursor/hooks/session-start.py:61-67 | .gemini/hooks/session-start.py:61-67 | .github/copilot/hooks/session-start.py:93-99 | .kiro/hooks/session-start.py:61-67 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"47af44bfc895bda14fa104d706c710941c8b00abe5f352d38b412f2c5d1b1b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): .claude/hooks/session-start.py:178-184 | .codex/hooks/session-start.py:313-319 | .cursor/hooks/session-start.py:178-184 | .gemini/hooks/session-start.py:178-184 | .github/copilot/hooks/session-start.py:318-324 | .kiro/hooks/session-start.py:178-184 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cbfe0382d487ed2a67013a84d5386ecf4895cab4131f2c5a54bdef680a3524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:68-79 | .cursor/hooks/inject-subagent-context.py:68-79 | .kiro/hooks/inject-subagent-context.py:68-79 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe6b6455a0cf398e9d5155a9c62773906780dae8075c28c5f3511a1df5f0816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:262-272 | .cursor/hooks/inject-subagent-context.py:262-272 | .kiro/hooks/inject-subagent-context.py:262-272 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ba63028ac6fda1c656bc413af392f94d926cc89571c445d858552f6ca64062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): .claude/hooks/inject-subagent-context.py:632-644 | .cursor/hooks/inject-subagent-context.py:632-644 | .kiro/hooks/inject-subagent-context.py:632-644 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-subagent-context.py\u0060 and \u0060.cursor/hooks/inject-subagent-context.py\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 436 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-subagent-context.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"99be7d3a19bf4eca7c14a20110cc585cbbceb0991660c4fb36d1ed760e976909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:78-88 | .codex/hooks/inject-workflow-state.py:78-88 | .gemini/hooks/inject-workflow-state.py:78-88 | .github/copilot/hooks/inject-workflow-state.py:78-88 | .kiro/hooks/inject-workflow-state.py:78-88 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91e8476fef8dae3a52853a37cdba4821c74aa688d6cee7193250291a991d553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:135-140 | .codex/hooks/inject-workflow-state.py:135-140 | .gemini/hooks/inject-workflow-state.py:135-140 | .github/copilot/hooks/inject-workflow-state.py:135-140 | .kiro/hooks/inject-workflow-state.py:135-140 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e92d892daa35c7ecc40b3a28a00fb981f2cfed4d2834085d0edf60b3125b113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): .claude/hooks/inject-workflow-state.py:208-223 | .codex/hooks/inject-workflow-state.py:208-223 | .gemini/hooks/inject-workflow-state.py:208-223 | .github/copilot/hooks/inject-workflow-state.py:208-223 | .kiro/hooks/inject-workflow-state.py:208-223 \u2014 before extracting anything, compare \u0060.claude/hooks/inject-workflow-state.py\u0060 and \u0060.codex/hooks/inject-workflow-state.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 265 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/inject-workflow-state.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"345d870862661b2bf287323c757911da0491151587c5e0ebc9cac289416f0fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): .claude/hooks/session-start.py:124-142 | .cursor/hooks/session-start.py:124-142 | .gemini/hooks/session-start.py:124-142 | .kiro/hooks/session-start.py:124-142 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"499664359f36c67e391acea6d7de829f609fe38bce08b644466764a986bbcf90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): .claude/hooks/session-start.py:227-232 | .cursor/hooks/session-start.py:227-232 | .gemini/hooks/session-start.py:227-232 | .kiro/hooks/session-start.py:227-232 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe3e6558ad82cb756ebd26b1f732eaed75479aaa0e3ba62ad99a5fa981f4981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): .claude/hooks/session-start.py:236-252 | .cursor/hooks/session-start.py:236-252 | .gemini/hooks/session-start.py:236-252 | .kiro/hooks/session-start.py:236-252 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"931812955569e0b20599cff1dfa0c45718fa3e9a50a6961c35631c84041989db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): .claude/hooks/session-start.py:256-265 | .cursor/hooks/session-start.py:256-265 | .gemini/hooks/session-start.py:256-265 | .kiro/hooks/session-start.py:256-265 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.cursor/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 691 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"931f7149298fb936c37526de4bd2219c0244b438a911a4f3870f3a0a59721245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): .claude/hooks/session-start.py:318-324 | .codex/hooks/session-start.py:214-220 | .cursor/hooks/session-start.py:318-324 | .gemini/hooks/session-start.py:318-324 | .github/copilot/hooks/session-start.py:219-225 | .kiro/hooks/session-start.py:318-324 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4421c46b3412348ae713b89b048a941a8124abe158be743d7a93e204002f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): .claude/hooks/session-start.py:707-722 | .codex/hooks/session-start.py:450-465 | .cursor/hooks/session-start.py:707-722 | .gemini/hooks/session-start.py:707-722 | .github/copilot/hooks/session-start.py:455-470 | .kiro/hooks/session-start.py:707-722 \u2014 before extracting anything, compare \u0060.claude/hooks/session-start.py\u0060 and \u0060.codex/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".claude/hooks/session-start.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aac92d45893548a179f01c9249d9ca58f13c9ef06f5fb4f1a9d5a64e08b88ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): .codex/hooks/session-start.py:101-105 | .github/copilot/hooks/session-start.py:106-110 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".codex/hooks/session-start.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a669cd6ad9ef3244ebf427f268d7220d9ce92966cee3070a22c49353b52e862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): .codex/hooks/session-start.py:109-119 | .github/copilot/hooks/session-start.py:114-124 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".codex/hooks/session-start.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbcb437f3b004a3ddd9922ebec54f1d9082d81afc5a919a0611c71a649ab64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): .codex/hooks/session-start.py:153-160 | .github/copilot/hooks/session-start.py:158-165 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".codex/hooks/session-start.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca32052c3a77672c396c38e70ee0ba02fc80781f9caeb4d9f8780b2465ba1e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): .codex/hooks/session-start.py:164-169 | .github/copilot/hooks/session-start.py:169-174 \u2014 before extracting anything, compare \u0060.codex/hooks/session-start.py\u0060 and \u0060.github/copilot/hooks/session-start.py\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 408 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":".codex/hooks/session-start.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"409b57f1e97c96c41d806263e4147026f3b2d61934fc538b420750cc40bd7bea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pages/Clipboard/components/List.tsx: src/pages/Clipboard/components/List.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 150 in List.List at line 86. 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-05-14..2026-08-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-14 12:05:51 \u002B08:00\u0027 --until=\u00272026-08-12 12:05:51 \u002B08:00\u0027 --full-history --no-merges -- src/pages/Clipboard/components/List.tsx\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":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4eb8cd4697bc4aea4668d3320960fd560ef71def525eedd2efc4be91b714e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src-tauri/src/lib.rs: src-tauri/src/lib.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in EcoPaste::run at line 25. 4 of those changes were fix/bug commits, and the other 5 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-05-14..2026-08-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-14 12:05:51 \u002B08:00\u0027 --until=\u00272026-08-12 12:05:51 \u002B08:00\u0027 --full-history --no-merges -- src-tauri/src/lib.rs\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":"src-tauri/src/lib.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc01a92e9c28ff2741665d9c22411065b9cf3c3a5a084f03d419d809f2a5eb5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pages/Preference/components/settingControls/ActionControl.tsx: src/pages/Preference/components/settingControls/ActionControl.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ActionControl.ActionControl at line 100. 3 of those changes were fix/bug commits, and the other 3 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-05-14..2026-08-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-14 12:05:51 \u002B08:00\u0027 --until=\u00272026-08-12 12:05:51 \u002B08:00\u0027 --full-history --no-merges -- src/pages/Preference/components/settingControls/ActionControl.tsx\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":"src/pages/Preference/components/settingControls/ActionControl.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c99e86a65b502a2ff19fa2ad838e73173b011e7ed684c18755a0d545659df72"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src-tauri/src/commands/onboarding.rs: src-tauri/src/commands/onboarding.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is EcoPaste::commands::onboarding::import_legacy_data at line 139), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: correct timezone offset for legacy data import (#1338)\u201D; \u201Cfix: skip invalid legacy import rows (#1326)\u201D; \u201Cfix: improve legacy import detection (#1289)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-05-14..2026-08-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-14 12:05:51 \u002B08:00\u0027 --until=\u00272026-08-12 12:05:51 \u002B08:00\u0027 --full-history --no-merges -- src-tauri/src/commands/onboarding.rs\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":"src-tauri/src/commands/onboarding.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7696f09234841d4ce0403956ae2c468fb2dcfc2abf4a17667a4b06f5b69b98d"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no installation or build instructions: The README has no installation, build, or setup instructions; it only shows a logo and Tauri badge. Add the exact commands to run the app (cargo \u002B tauri) and any prerequisites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa6bfcd5c6ae231d1b8ee99bced50b832d1f61cde9da6cbb533467b879a57db"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no usage examples: The README has no usage examples, so readers cannot tell how to run or interact with EcoPaste. Add a short \u0027how to run it\u0027 example showing the app\u0027s main screen and key actions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1355eb4e127a4bc9236772ce1c46f09510aa9286e7a06d1e47f308229df19049"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060src-tauri\u0060 (19761 LoC, 208 public types across 20 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"a1ed692478f7a18a4ac305ebe713dea3d994030baa4f36a89e96834ea8ed5936"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff452b5b7d17e833c0124a81575840d0a0fba53b39ad2120686e62be9fe5e475"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63c43a1cefd651b911865f29380ee8d61baf4d49df6ed960fd950d210d6b3467"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"00e9d89739d4291ec78f90dfffe6ffbd7fb5161a247de265f493f6422b3bf3f5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf3a7772b3db232f05642b38ed7880ca503e578f915d2985636cca75ffe02aed"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e456701a7b125239a15e0aed922ddd4c8ddd84b7d8a6ada12ece60378da76a78"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b19fffc85a35372a76ee7d07e37a7fdf3a66cd6b960e29f8027daf086e72a22d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b801fbb4916357188969eca55695c46588db0e435dc9b2881dcf030c15ba1cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0666656fa575edb487d3e807c86b09a68277cc1117004dd2078b681356ecf0b8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"401691c456419a064128076d393725df44282344c049ccffb5d411398d868697"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e3befcadd7374692e217438884b021308e66b21455947c6d60e1eb37bebefa91"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e1e5ac1b50275b86507fd252358398ba3ae1ea6010a4a4031f83997113059e3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7d1a5a9c88e1af505d28cf86f3a21e9c3be27161e8493a41d3b597553bacdb0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1394cc11c215fb4c291d98a8d9b902e78fb72bf8bb4cedc97b96794fd71bd62"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4cd8cace33e40a5f475a332544a7606427bee8ac2748139d8c9ae2f37a121e90"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dcd95da61961e8499cdd7066bb13fc7ae51e59af2ef618f164b5f98fe3e901ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9513059dc6b5941eb1e8ad4de734a9f2098b521adfef4b1c858132a2ca199a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8db6f39238ac89060ca4e2b8e8407fa7a1f7dd07407dddec35a7040db48629c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a9013cba73388a301d114d4c96d47b8d1f7c74f8ec76c0e5f510ecf3869af5e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6552da9741ca5c261f43cb66f9ee2461fc25dff14ed287c44d85e9c4a2a49dfa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82561501977fec0b46655a8368d81e78746b8ad586ca9a50ed529ed4d66c8b14"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bc482d74d080ad4398df4dc142e4bba74e32debea7408c58d74d3e7b5d07d8e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4fa3a3025b7a9052cbd7b0d8a17b7d24287898600c95850a4b97997b4072afa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a3785f7900b67512b8c4737e8fb5418bda1bbc7a88dcc71d61802984b33a7cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8f49035fd421c7e4f8710c196e0860be3fdb3bfc2172a0ac216ab01d07c7c08e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"428265af1f01021cc8b5f639a34cd657843f8d845cc261d9ca94a393d0145e47"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5199b40473c2e6049b809781f3fbbdb6c92d1f89ad0ccdca0473657732f0567a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb09b1305160c02ecb0571b1c0ec4ebef7c0dc723f6181413d1cc4f02da79f53"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","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":"685cba4514570b53bf9bc85812fa54c07fec7b3f62fc67d4712c038e9ec2e605"},"properties":{"dependency":{"package":"js-yaml","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"b4dd9e35f2b2cf3aeea6267a3e29fffc45a78df2e3d8e4394ee2c7ed9e511801"},"properties":{"dependency":{"package":"undici","version":"7.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"8cebd965383fbf6ec5aa075ac5961d71615ca803fb60541206693fa7a1c8ca18"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d10c79b7ba192f2bf3e9d396706548fd35619089ac0c9053c2f32644873e24c7"},"properties":{"dependency":{"package":"ip-address","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b96122cc07ab047ff879cdef27d2d6e5833f039a5d5396df14f7220b57ca155b"},"properties":{"dependency":{"package":"undici","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a480367025272469acdc05c0efeea27e564b6d640cec55746a2ab403b6da8691"},"properties":{"dependency":{"package":"proc-macro-error","version":"1.0.4","advisory":"RUSTSEC-2024-0370","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a449081d1361349444539d82b9e2924a1cf0768d2cad54b07494d086b714e79"},"properties":{"dependency":{"package":"unic-char-range","version":"0.9.0","advisory":"RUSTSEC-2025-0075","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"714ed351af71a3520ae739001b7a8cdee327d0fd0f7f84732c3c692bf4f677b0"},"properties":{"dependency":{"package":"unic-common","version":"0.9.0","advisory":"RUSTSEC-2025-0080","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"569c2f035842becb9ea9cb57ad1f7635d5d041c83bd2460920e6e284e05f727d"},"properties":{"dependency":{"package":"unic-char-property","version":"0.9.0","advisory":"RUSTSEC-2025-0081","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e780dbfd22a09fe81e062c4169c62087872f0be0ea02ed0b69ce8775599c8190"},"properties":{"dependency":{"package":"unic-ucd-version","version":"0.9.0","advisory":"RUSTSEC-2025-0098","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a70cc7c05c1bfe85d82c6cea50e2042ace91f9f86ff15d52a2226afd97fcc872"},"properties":{"dependency":{"package":"unic-ucd-ident","version":"0.9.0","advisory":"RUSTSEC-2025-0100","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"178a00c6c350113153d2347e49d088d7521918be733d1e48af0c286948b18f0f"},"properties":{"dependency":{"package":"glib","version":"0.18.5","advisory":"[GHSA redacted]","aliases":["RUSTSEC-2024-0429"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf06661008305752bba5e57d5f848334135a19486d482275609c827f861a52d0"},"properties":{"dependency":{"package":"rustls","version":"0.23.43","advisory":"RUSTSEC-2026-0285","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.tsx \u2194 index.ts: \u0060src/pages/Preference/index.tsx\u0060 (context pages) and \u0060src/router/index.ts\u0060 (context router) sit in DIFFERENT parts of the tree yet change together 74% of the time (14 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060b9afe513\u0060 feat: \u5728\u504F\u597D\u8BBE\u7F6E\u7A97\u53E3\u4E2D\u5207\u6362\u9875\u9762\u65F6\uFF0C\u65B0\u589E\u4E86\u8FC7\u6E21\u52A8\u753B (#748) (at that commit the file was still \u0060src/layouts/Preference/index.tsx\u0060); \u006062aa9809\u0060 refactor: \u53CC\u7A97\u53E3\u6A21\u5F0F\u002B\u54C8\u5E0C\u8DEF\u7531 (#357) (at that commit the file was still \u0060src/layouts/Preference/index.tsx\u0060); \u00602f74cb00\u0060 fix: \u4FEE\u590D\u5728 Windows \u4E0A app \u65E0\u9650\u91CD\u542F\u7684 bug (#327) (at that commit the file was still \u0060src/layouts/Preference/index.tsx\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98f58b9c85dd42720af355ec89a581f92368a029298c112346d5d6d3eeffd14"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc682cd7167c2c692b624e54d299d32b2ea2b5b3eb72f5516f0dfab9c0ce991d"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.96: rust-toolchain.toml declares Rust 1.96 as this project\u0027s toolchain file, and Rust 1.96, superseded by 1.97 on 2026-07-09 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-07-09 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4d8e9b51cd4b2493b326110bfe409c9598039c510d25150fcc40f653a675ac1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ClipboardGroupModal/index.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06a07514d12b1a3d7c8a2aa830d8c6c41616e3fe650371e81234851211c00cf"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id / name \u2014 and neither does anything it renders \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/LanguageSwitcher/index.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b6d29d38f73cac96de5435def654840ff09c9f97f432cf34743ba4f8980f14"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ShortcutRecorder/index.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4802f8023b54051e0b33023588851ff2df1b9db4c9ea81d2a7a3725039e7970c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c795a662046d9c576e62a50d23384e3a5be5801e8e934f68114bcdfe8a8d30"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Header.tsx"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b428052266f25594c2c8c1252537b9c2691c777b35e4019d2fe94867c8de27ae"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id / name \u2014 and neither does anything it renders \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/ClipboardGroupSelectControl.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3decb7d402080abdb4d318324875262864660b5585c6b450cb25efff463454"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id / name \u2014 and neither does anything it renders \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/SelectControls.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4dc3ee1d77c10b2531cf913cc584d8badd21428f8e1fe547f64a77914e7f74"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id / name \u2014 and neither does anything it renders \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/SelectControls.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab54b8fe200547f4a2348ed30408843db3871bf4fff9b797f638dc9fd24582ae"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds mousedown, pointermove, dragstart and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/cards/ClipboardCard.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32898ac7be21dd1ef803a8a56fd66c71e51bd30475d8591a012b8693983b228"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 your Biome config enables no a11y rules and there\u0027s no axe/pa11y/Lighthouse in tests or CI. Start by turning on Biome\u0027s own a11y rule group to catch issues at author time. What was searched, so you can tell an absence from a miss: the 80 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"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":"M4","level":"note","message":{"text":"README/code drift: Tauri version claimed (v2) vs evidence \u2014 searched for: \u0060Tauri v2\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e5b8e9bab62ae4deee29db35c8380ed9ab0bca23cfc012abe5efa4627bf0aec3"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: React 19 frontend claim contradicts no component in the repo \u2014 reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a4ff4a24b1e9acb8b6b261446016528a9e9c31c8d638f23a1c1334a2a0ee9ef"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README advertises Docker containerisation, but no Dockerfile/compose file exists \u2014 searched for: \u0060dockerfile\u0060, \u0060docker-compose\u0060, \u0060compose.yaml\u0060, \u0060compose.yml\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d116e696b89ee5b5606de54018788ae795afe8387ffcf59a3c5f5c024f4aec80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (7 clone groups): 7 duplicated blocks under src/pages/ have copies in at least two of the sibling directories Clipboard, ContextMenu, Preference, Preview, Update \u2014 5 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 7 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fb6e6a66645e0ca746206ac25e91d9c5ef1544ea379aa37e14b07cc645f3e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (124 matched lines \u00D7 2 locations): src/pages/Preference/components/BackupExportModal.tsx:55 \u00B7 src/pages/Preference/components/BackupImportModal.tsx:53 \u2014 the two spans are one implementation copied and then locally edited \u2014 561 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupExportModal.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0378eb312fa3ac7c6c55c933139caf174cc9589984633d83a91524057fdb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/pages/Onboarding/components/DoneStep.tsx:14 \u00B7 src/pages/Onboarding/components/WelcomeStep.tsx:14 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Onboarding/components/DoneStep.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b173171a86ba8dffdeb650ec0ca0d7a475ca28691beed6d90182d6a81b1ce8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/pages/Preference/components/settingControls/CaptureOrderControl.tsx:54 \u00B7 src/pages/Preference/components/settingControls/SortableCheckboxTreeControl.tsx:76 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/CaptureOrderControl.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"751e8fd233b6a49c347d538658e6544173ae55c1359c68a440ae19b2ef7713e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/pages/Clipboard/components/Group.tsx:427 \u00B7 src/pages/Preference/components/ClipboardGroupManagerModal.tsx:124 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6687c0710120dbb85d3e08ad2d0761874ec4867ec03a352141affd9ccd32c1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/hooks/useClipboardItems.ts:159 \u00B7 src/hooks/useClipboardItems.ts:185 \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":"src/hooks/useClipboardItems.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253615f9b18becd6fcc006fb2cb194d40d97cac4f4fc8b2b94b6aa5292c9715"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/LanguageSwitcher/index.tsx:43 \u00B7 src/components/LanguageSwitcher/index.tsx:82 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/LanguageSwitcher/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2947f0701851f354b3364794d912e76b2f56044dc431970a06996db61148161"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/pages/Clipboard/components/Group.tsx:322 \u00B7 src/pages/Preference/components/ClipboardGroupManagerModal.tsx:74 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b462041618997b07d2578490f78b012b348b85837600a2518d1a28b9cc502c7e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/Dropdown/index.tsx:83 \u00B7 src/components/Popover/index.tsx:20 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/Dropdown/index.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf81fe48bf60dd79d10489f1ff594ff23c392084c780854fc5dd04563429d3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/pages/Preview/components/PreviewContent.tsx:107 \u00B7 src/pages/Preview/components/PreviewContent.tsx:190 \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":"src/pages/Preview/components/PreviewContent.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4323c61b5b4850745c6dbf9cdb1a986cb090af9109771e99b6ce04c7620362"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/ShortcutRecorder/index.tsx:220 \u00B7 src/components/ShortcutRecorder/index.tsx:270 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ShortcutRecorder/index.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"61961f00dddf4696e09dbdcec07ab8fbd707792f83ff8f6f80c264ee2e3823d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/pages/Clipboard/components/Group.tsx:136 \u00B7 src/pages/Clipboard/components/List.tsx:183 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c02273a534d02f1b3b17f4561a042080ac42d6daf12ea978172a1c530bfa85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/pages/Preference/config/preferenceSchema.ts:908 \u00B7 src/pages/Preference/index.tsx:422 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/config/preferenceSchema.ts"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc894ed837b5c71301021b0b62fce15237c3020d84ad6b81efc2c849c9df8be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/pages/ContextMenu/index.tsx:242 \u00B7 src/pages/Preview/index.tsx:109 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/ContextMenu/index.tsx"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"247d2e82eefd9847585dd708b73c2c1ee87a9c501b2f65f7eeaa2c25d4453d84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/pages/Preference/utils/storageUsage.ts:11 \u00B7 src/pages/Preview/components/PreviewContent.tsx:380 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/utils/storageUsage.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"977d898562d727fb23b64d605cafa6440ec9497d340aa2fe987dfde93ea45519"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/pages/Update/index.tsx:117 \u00B7 src/pages/Update/index.tsx:130 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Update/index.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc38c9540597f49bb1bf8c14ca5f227cd4138ba62ec85cd6715b4fe791e632f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/utils/shortcut.ts:207 \u00B7 src/utils/shortcut.ts:233 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/shortcut.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ffaad1db334beaf86040a6c589f01b669df3543a7b6b0524829c6f4e517686"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/pages/Preference/components/SourceAppsTransfer.tsx:129 \u00B7 src/pages/Preference/components/SourceAppsTransfer.tsx:151 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/SourceAppsTransfer.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acfbbeffbe1b0d7f1f461b388f454132c7514a2e84160c497bebe030f180e75"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/pages/Preference/components/settingControls/NumberControl.tsx:11 \u00B7 src/pages/Preference/components/settingControls/TextControl.tsx:9 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/NumberControl.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f79278bfa4e740019b0d8eb808cccc3bf44c66a6c041c2ed1cae1d99d0ffd19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/pages/Preference/components/settingControls/SelectControls.tsx:18 \u00B7 src/pages/Preference/components/settingControls/SelectControls.tsx:50 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/SelectControls.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc19fc7c91ea5f1a61e046814a6d0bbecc04eb178c2030f051c9e2015191a4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/pages/Preference/components/settingControls/NumberControl.tsx:13 \u00B7 src/pages/Preference/components/settingControls/RetentionControl.tsx:36 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/NumberControl.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"06287641a0d4ef4931d737c9511070a980ce0a0874921b392d8caf20688bbb18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/pages/Clipboard/components/Group.tsx:111 \u00B7 src/pages/Preference/components/ClipboardGroupManagerModal.tsx:54 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/Group.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb3305f65c451fdc8c4ea26e498e429703399618cb420a5377b2997217a4e98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 32, cognitive 39): handleKeyDown has cyclomatic complexity 32 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"359d619c6798b9c25afe5c066bde90d3d8e2b659db629596a69ffad176a1df27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PreferenceSettingControl (cyclomatic 26, cognitive 15): PreferenceSettingControl has cyclomatic complexity 26 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/PreferenceSettingControl.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"644550256dd50a83e40196635cda19418f5b889a8bc4764876267ac2185325fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function current (cyclomatic 23, cognitive 16): current has cyclomatic complexity 23 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8925250ec16563031b39667e9ac4f693ec03efe7c7ce0eae8d2740e59c7d757"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSectionVisual (cyclomatic 22, cognitive 20): resolveSectionVisual has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSection.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dc70529ee180c695e3c66b149e84650f3df0fa63f6723db00e5355baef1563"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Update (cyclomatic 20, cognitive 19): Update has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Update/index.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"362954f5fabecea80d3b1787cba0b3a3f9f81b4fb64f3a9c6d3c8c86b05242b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleQuickAction (cyclomatic 20, cognitive 13): handleQuickAction has cyclomatic complexity 20 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7df3ed96edcd2d813d4ca9a875adba88d87a1ba2c8ff6a0ba8b5349b4101a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 17): (anonymous) has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commands/index.ts"},"region":{"startLine":1082}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e20b4958eef1f3628eb82a9479e60f662632ee5815ad5cca7d01220d088a6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PreferenceSettingRow (cyclomatic 18, cognitive 17): PreferenceSettingRow has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceSettingRow.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc92c4c622000327385fa35924e26f1512813d06aa95d94eb543e55d2136e7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BackupImportModal (cyclomatic 15, cognitive 12): BackupImportModal has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/BackupImportModal.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9640f0f5e98a55278f13ee481a8d6ab46b29cb6794b3faf6c456355217e72be6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isItemActionAvailable (cyclomatic 15, cognitive 3): isItemActionAvailable has cyclomatic complexity 15 and cognitive complexity 3; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/constants/itemActions.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b86a3f1c1d5aaf861730ee39bf5945c57b1f51b5cddc3c6f3259de522dc78d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Preview (cyclomatic 14, cognitive 13): Preview has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preview/index.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71fd34cfe6286e026c5fcd16b5ccd2bead8d720b862f3058bfa6c27f92bfca1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getEmptyDescription (cyclomatic 13, cognitive 15): getEmptyDescription has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"248065e6a666a964b12dc73b5235e78f74d173f840e52bfc1e8c2118d25ff4cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleWindowVisibility (cyclomatic 13, cognitive 11): handleWindowVisibility has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/List.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c032c7d190ceb7e0858d3d21f08e6aebc78b1f5e6f535c87ea6171465aaf742"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function settingValuesEqual (cyclomatic 12, cognitive 15): settingValuesEqual has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/services/preferenceSettings.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81fd9ad4e62fc8fbb63592ede11490a2a26feec19f5b4826b17f6752b81ca82"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClick (cyclomatic 12, cognitive 11): handleClick has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/settingControls/ActionControl.tsx"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c48a443234f80a2c70563c308525e2210fb147219f50a108c260ac37b73def"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useClipboardItems.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3ac24c45dd151c7967d6b67e093de24751b1db180b19c85fa3049cdd7d8cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ClipboardCard (cyclomatic 11, cognitive 10): ClipboardCard has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/components/cards/ClipboardCard.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c425b36fdfe34f30fd669cf66329c92209720bd401809d7c32f70e9cb53007"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openPreviewForItem (cyclomatic 11, cognitive 10): openPreviewForItem has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Clipboard/hooks/useClipboardPreviewController.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42444653ae0f4725feec4953e19559d1a86aab7d679a578971ffa6806a44e90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PreferenceStorageUsagePanel (cyclomatic 11, cognitive 10): PreferenceStorageUsagePanel has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/components/PreferenceStorageUsagePanel.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3710171ec2a37a0979eb1ed7ace4ffbe498e95e891d2e06fcc2842b64a9a56b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Preference (cyclomatic 11, cognitive 10): Preference has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pages/Preference/index.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a7ff0826b6175c22a32022b359fd7a3b05aba4a6d5019ca8dcc6f579187102"}},{"ruleId":"R4","level":"warning","message":{"text":"Test Coverage: 0% of 125 production file(s) reachable from 0 test file(s) via the import graph \u2014 \u0027production\u0027 here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace\u0027s file count"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"64e0e3511eb969fb4720b196e7d3799e1714077217351c3c56a27b50e3e21220"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~11 LoC): no import path from any entry point (5 application, 5 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/hooks/useWindowLifecycle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75b251a423ef0bb6af23499d1cdc228db1be40e776d2de626e7f937dfe956fd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027SVG_ICON_HELP_URL\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/constants/urls.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d494c25468cfd1c4bd10f0ffe7820658e9dd807130639c3e65d10723afe6b3e1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027windowLifecycleReady\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/stores/windowLifecycle.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbf68840b2dea082d0d080b186152c656fdbc5370d44471927fea285bead63e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/unocss/presetAntdColors.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdaa62359b8befa49ee41da42d15d63a2e7ffcd1c94711c1242461254ffac49"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isImage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/is.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f5d948fd9e8851d12f70c182ce335c2e794186748d9e9b1df9fa847a7d4074"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@iconify-json/lets-icons\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"975ad6d8db565ba0922ad6cde2573bfe43ad71e1d309f191d153338e012d3f53"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@iconify-json/lucide\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f1c5e6c653cdbe56fb13cfb119c746e145c2c6b16c1960fe17190ad90b6fe418"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@iconify-json/ph\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"24417318606c76be81bd55bc6693fcec599c4d166636f907ec2790e7448e4fa2"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/commands/index.ts \u2192 src/stores/settings.ts \u2192 src/commands/index.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/commands/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f1e440cb3215296fc279bb1cabeca4c582f86eb14d79cdbe2e6e0b74ea5478"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":50,"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."]}]}