{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"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":"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"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":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DreamSkinCopy.text (cyclomatic 259): DreamSkinCopy.text has cyclomatic complexity 259 (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":"macos/menubar-app/Sources/DreamSkinCore/Localization.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c013651395938cb400162d3810a4f9124cbc0409aa796baee7c6b3c7d2bd0a0"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.runWatch (cyclomatic 149): injector.runWatch has cyclomatic complexity 149 (threshold 15). Of this number, 71 points are the body\u0027s own statements and 78 belong to 20 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":"macos/scripts/injector.mjs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b903c2f876a7c9fbcd61f4e6873e016803852e37db1b841ecb5caaf2177646"}},{"ruleId":"D1","level":"warning","message":{"text":"publish-theme-import.main (cyclomatic 59): publish-theme-import.main has cyclomatic complexity 59 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 5 belong to 3 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"306abd4872256a1d6fc803510b22e346b45aaf8cd98274a870849f67780c3e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.runWatch (cyclomatic 59): injector.runWatch has cyclomatic complexity 59 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 7 belong to 5 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":"windows/scripts/injector.mjs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"54939e7da93d80d8cd5fb71a086cb1452e25ebd5c5993964c80030d2c5d5de6a"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.loadTheme (cyclomatic 47): injector.loadTheme has cyclomatic complexity 47 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 8 belong to 2 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":"macos/scripts/injector.mjs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf78d11e83490fdebdf66cbca6b138add78999a7369b76fe41b64693bb919ca"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.assessRendererVerification (cyclomatic 43): injector.assessRendererVerification has cyclomatic complexity 43 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db3603334778abf3a4c7d90ea508b5aa4eca9e83135e5654c3cd1249d3dfbef"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.parseArgs (cyclomatic 43): injector.parseArgs has cyclomatic complexity 43 (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":"windows/scripts/injector.mjs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e00a7c3ecd28c45d69e137357e0f9e5b11e6158e28a961f1ddb71bbac749c4"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.runOneShot (cyclomatic 42): injector.runOneShot has cyclomatic complexity 42 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/injector.mjs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"e702b3b6c117e150deca11151167474d41494782e03b7ec89510da510768ec15"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyTheme (cyclomatic 40): renderer-inject.applyTheme has cyclomatic complexity 40 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d967a00bf0cbf955163055a911e87b814447f412d7baf68569a6f2e2f527f5c"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyTheme (cyclomatic 40): renderer-inject.applyTheme has cyclomatic complexity 40 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c7815554a2a7b4a4db658890d2fa318dd2313109c186254dfe9dab7e5be3b"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyTheme (cyclomatic 40): renderer-inject.applyTheme has cyclomatic complexity 40 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9a11d554a58a06143c57f595a19e24f8c959ebcfbd15daa9bfb936636e303a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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":"runtime/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"248931047bb6002dfb9877fdd73e68e9802ed351750224288d4f4f1ce4d1fa22"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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":"windows/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f155fc70fa1885d01e58967c1073948bcbf64b334c22527e246698e77a698213"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (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":"macos/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8906daca9aba74cbd95592e0d61549690477164e40d8f327e7d912879c47e696"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.runOneShot (cyclomatic 37): injector.runOneShot has cyclomatic complexity 37 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"186bb734ad4cfb9687fc2a87dab31cb49b6afab49eaf6806e0bc70259ed4d28b"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseDeclarations (cyclomatic 36): Parser.parseDeclarations has cyclomatic complexity 36 (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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"952155c5311e17bde62fe1dfbb71e0f8de9d53599f194e4c80b11502ccc64316"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.parseArgs (cyclomatic 36): injector.parseArgs has cyclomatic complexity 36 (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":"macos/scripts/injector.mjs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b982bd0025f7082e6bcc9c8651887949a22a36cf49e9ea6977cdb60cca89c322"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseDeclarations (cyclomatic 36): Parser.parseDeclarations has cyclomatic complexity 36 (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":"runtime/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca05c49f472240e14e2406281f621e6413e048e263ae3c31eaeb3e99d1651dca"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseDeclarations (cyclomatic 36): Parser.parseDeclarations has cyclomatic complexity 36 (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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec537d3245b02922a981cb9e2671d11014632da1e50b8aaa47ba64de80e7f235"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyTheme (cyclomatic 36): (anonymous)::applyTheme has cyclomatic complexity 36 (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":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5105379a8856f70f2e04d140f3a018b0e276c8c6ee73a7d1172f57df927ac337"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyTheme (cyclomatic 36): (anonymous)::applyTheme has cyclomatic complexity 36 (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":"windows/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c6d34b8f85ed8488318f2bf5cfd509bf8991fb86e1d969b9248d3a5eaaddff"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyTheme (cyclomatic 36): (anonymous)::applyTheme has cyclomatic complexity 36 (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":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd27a63d8a2c9539450ffa3f6750016b5d85b36b87604c310f0c1c83a3cd8360"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cyclomatic 34): (anonymous)::analyzeArt::(anonymous)::onload has cyclomatic complexity 34 (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":"runtime/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb422d93e865944b43a0d612ac8b825870921ba2bd363054a3aa73b06dc253e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cyclomatic 34): (anonymous)::analyzeArt::(anonymous)::onload has cyclomatic complexity 34 (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":"windows/assets/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"997f8c8b7155b9a4c803e74ad908676783ad3d3582a51ad4d7f1bc0931604df8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cyclomatic 34): (anonymous)::analyzeArt::(anonymous)::onload has cyclomatic complexity 34 (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":"macos/assets/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3edb45220d7f218be0b8e65ae1c77ca8ead196fe3a61a7e5b85e0caf343ef3"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor-selectors.pageDoctor (cyclomatic 28): doctor-selectors.pageDoctor has cyclomatic complexity 28 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/doctor-selectors.mjs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d287f3dd9757016e0c6922625e653d33415633cde6eddb8e540722c2e6acfc"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.cleanup (cyclomatic 27): renderer-inject.cleanup has cyclomatic complexity 27 (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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"e137417f311e41c98a097095a27af610f79d71538b8169b5d4d3ac2df085ca2e"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.cleanup (cyclomatic 27): renderer-inject.cleanup has cyclomatic complexity 27 (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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"e148a8805a08ee6791d1313092ff49f78094e04b79ddc92572e39bfde63dcdf4"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.cleanup (cyclomatic 27): renderer-inject.cleanup has cyclomatic complexity 27 (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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fc61437c15eeeb4a29742679eeb0f8f265a9cf3363d6c80beea682c61bae09"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.loadTheme (cyclomatic 27): injector.loadTheme has cyclomatic complexity 27 (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":"windows/scripts/injector.mjs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c95999e853079157557cb3091453cfafbf9213465c11ed946f595da7f2815c7"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::cleanup (cyclomatic 27): (anonymous)::cleanup has cyclomatic complexity 27 (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":"runtime/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bab663142d1a9552352fe4c7d5239ec00c62fe74fa9edf9d39e0bcc8e7dd35"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::cleanup (cyclomatic 27): (anonymous)::cleanup has cyclomatic complexity 27 (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":"windows/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6d7131882afa1aebb3a9475b421590ccf478e7ff36e43b75c008bb7ea34901"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::cleanup (cyclomatic 27): (anonymous)::cleanup has cyclomatic complexity 27 (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":"macos/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbc318e05adfc500589fcc0c8c2b8d661ecf0e7298aa06ae063080f8a88c478"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.performThemeImport (cyclomatic 26): AppDelegate.performThemeImport has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca5ad2666585c54f753176e4d2bac37b82a2e06cb1979631f900772aab02df5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.captureActiveThemeThenApplyImported (cyclomatic 25): AppDelegate.captureActiveThemeThenApplyImported has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa88c5272533fd3179188e1341ceb803fadee4fc1ef7ef88d4d0e1c4f2c2f20"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateManifest (cyclomatic 24): theme-package-validator.validateManifest has cyclomatic complexity 24 (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":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"360baf61c934fc091fc996086c56eec7aed93fe180134d8ef7a1b5d018415f53"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateManifest (cyclomatic 24): theme-package-validator.validateManifest has cyclomatic complexity 24 (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":"runtime/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"802bd350ee2d1a1788e5eb7b5f7ac6cf4f43e8bf70b82d1eb01c0532801f4ba8"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateManifest (cyclomatic 24): theme-package-validator.validateManifest has cyclomatic complexity 24 (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":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"590dfe28009ba1662e216d7c35b33037ce354c0d5474744c5c31d78e288e2b79"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cyclomatic 21): theme-package-validator.validateOfficialTheme 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":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"47758d5c3481eee0cb896c44d816479469546babfbe30d8715b3b58d5ab9872a"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cyclomatic 21): theme-package-validator.validateOfficialTheme 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":"runtime/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"442bba15275468e667d476166318db2481853d75a5f5d1ec25d1f872428b0e78"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cyclomatic 21): theme-package-validator.validateOfficialTheme 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":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e2cee02411d5b33a5b553b764ddfb9ef835a3c96b674c32a7d65eba06538a8"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.jpegDimensions (cyclomatic 20): image-metadata.jpegDimensions 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":"macos/scripts/image-metadata.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68fc9902de1bed961c1f4d12e723a81b2b78f55b7c19c109247b43152e2763a"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.jpegDimensions (cyclomatic 20): image-metadata.jpegDimensions 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":"runtime/image-metadata.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ca8f31cf3324f6b6481867217735a3ed89b6d7bf4b51a075937699bca723df"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.jpegDimensions (cyclomatic 20): image-metadata.jpegDimensions 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":"windows/scripts/image-metadata.mjs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3ad4720bddb1d9373a44744107b69a4c0c98fb999908e770d1edbbebed4ded"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cyclomatic 20): (anonymous)::applyArtMetadata 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":"runtime/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad40eeebc6bca744e1f498f358e34bd58403787b96da51ec619d9902d5870ef"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cyclomatic 20): (anonymous)::applyArtMetadata 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":"windows/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d49316e4dd58e14926869dcbd1821a5059815a34e59d666b9a182a808046860"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cyclomatic 20): (anonymous)::applyArtMetadata 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":"macos/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ffaf8b5a9595c42864c3a1617db8d3bf39180b1f5f623f9b1ff4594b8e5931"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cyclomatic 19): safe-css-validator.validatePropertyValue 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"165b59fc8f59c5ee52d40c7b3f0f6486e3ef3e053883653ca5da40001db129e6"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-config.main (cyclomatic 19): theme-config.main has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/theme-config.mjs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb1338c6bef0a7c1abffc2422b5c96145f7c5b4c2b21afa81e5f240d410ecda"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cyclomatic 19): safe-css-validator.validatePropertyValue 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c31ed8632e83319027de5ac1bb532efc848d6b335c339b148343144d85c4d0"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cyclomatic 19): safe-css-validator.validatePropertyValue 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4b956c9ba0d5b5b352cfd0f0e86e28efa8a021f97e12e40da57a08f11c0825"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.rebuildMenu (cyclomatic 19): AppDelegate.rebuildMenu 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":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb8eb626c6e77db57a4f995719c0ecc29a7263883efc9a66831a059cf5bdb08"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyArtMetadata (cyclomatic 18): renderer-inject.applyArtMetadata 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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91e63dc028553a25f37c500e52c9a7c2d78599dce4bf5746f1b0438c776eef5"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cyclomatic 18): safe-css-validator.compileRuntimeCss 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca621fabf035365f78a2f442e8da998794050fe53dd8c1c954a4f04ee886f29"}},{"ruleId":"D1","level":"warning","message":{"text":"publish-theme-import.acquireLock (cyclomatic 18): publish-theme-import.acquireLock has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd3e930117e9447b54fa5c0632462f0e6cce8755e4830ceda652e5cf7a98dcf"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyArtMetadata (cyclomatic 18): renderer-inject.applyArtMetadata 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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b2a7eba85fed619527b8c8025b1fa589db79a0c581438db906376038f4619a"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cyclomatic 18): safe-css-validator.compileRuntimeCss 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"8512c68c10651ea934d36a3500078f36a28ae32eb92deb69580117c9f5452c9b"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.applyArtMetadata (cyclomatic 18): renderer-inject.applyArtMetadata 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. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"66623759aebfd01ea713a1f1ecbe767e14f56c0ed8d04f7aa8f0bcc764d77ec4"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cyclomatic 18): safe-css-validator.compileRuntimeCss 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b6f23665e36070c3dc505e6349e69a1331294030259c25dd90f2c1b09105a5"}},{"ruleId":"D1","level":"warning","message":{"text":"validateTimestamp (cyclomatic 18): validateTimestamp has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/theme-package-validator.mjs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7481505bbdd26e50fcd2e4eb439e8f64fae9e4bcb5c5d206c1f37291631c92"}},{"ruleId":"D1","level":"warning","message":{"text":"validateTimestamp (cyclomatic 18): validateTimestamp has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c92765370906fe2ba276506dca1db61bfab0a88f055bc53efbcda87db614338"}},{"ruleId":"D1","level":"warning","message":{"text":"validateTimestamp (cyclomatic 18): validateTimestamp has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"429bef3aad4182b396c99684f4a31591702edbe7a38c7ebba299c9a14c8d2ca9"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cyclomatic 17): renderer-inject.fallbackComposerNodes has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6129729c98b20fb99aef086fa534011e18f91469bc7c04bd544ee2b275fb5a"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.shadowValue (cyclomatic 17): safe-css-validator.shadowValue has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 224). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d7fa48583630a670b411edd7b99e19eac9a2bdfb787d68c1930eb328f255a2"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cyclomatic 17): safe-css-validator.backdropFilterValue 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2bb097ce0950a990fa8eff4cab2dcfe4a98406628de496f48e65facab5428"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cyclomatic 17): renderer-inject.fallbackComposerNodes has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a6af5d0b77cba6bbcccb0499d01fe830b6f188de44f92cbc86e2d7734a21de"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.shadowValue (cyclomatic 17): safe-css-validator.shadowValue has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 224). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/safe-css-validator.mjs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8401635fc00cb0e0b1433274c9d3b0b7165d0d870bfdd847454bedbf4455867c"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cyclomatic 17): safe-css-validator.backdropFilterValue 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c38c128638a6eab5b783ad841efa92a9e61e6579d8bacbb7a864ff4a86147ef"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cyclomatic 17): renderer-inject.fallbackComposerNodes has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9d8a44620f52d1b876ab726f9e3e83ca7157e8122cb535c17b65a73642556a"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.shadowValue (cyclomatic 17): safe-css-validator.shadowValue has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 224). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"954f65cf6558015f4b9bbebe2eb692c144517373615bd67cc7af6321c82251f7"}},{"ruleId":"D1","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cyclomatic 17): safe-css-validator.backdropFilterValue 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d830b37a25d43bf883829f6a65210abb16ec172874b53a33aee4c648dcec0778"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.installBundledEngineIfNeeded (cyclomatic 17): AppDelegate.installBundledEngineIfNeeded has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"07508b8bc0d5bf72c51d24f7f63234dc846f269b7b94d9330471bf45720ead9f"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.detectScope (cyclomatic 16): renderer-inject.detectScope has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6862dcfefe06763dae3fd5ed8429e22478e9f9049968d40774d48462a17ad5"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.webpDimensions (cyclomatic 16): image-metadata.webpDimensions has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/image-metadata.mjs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86ad0c66d76e5eca268ecb073a881735b656f27c29a1c919c86ed416cd28db7"}},{"ruleId":"D1","level":"warning","message":{"text":"theme-config.acquireConfigLock (cyclomatic 16): theme-config.acquireConfigLock 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":"macos/scripts/theme-config.mjs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d470d4d20d702e87d000bdf4ad2803342d2b16df5bd6220d8da1eefc07b909e"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.webpDimensions (cyclomatic 16): image-metadata.webpDimensions has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/image-metadata.mjs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49e440c70118f2c8077e188c1e44446234036106bbad3bc3bc0d4404142220e"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.detectScope (cyclomatic 16): renderer-inject.detectScope has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bd1a7ab3d7cc28aab642d55559de211a6104973baf02d1581069a7a477d46b"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer-inject.detectScope (cyclomatic 16): renderer-inject.detectScope has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: renderer-inject.analyzeArt (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e117f9ba44c612a3cc6430db03545401978159f75c2e70226f19e0fc1d6326"}},{"ruleId":"D1","level":"warning","message":{"text":"image-metadata.webpDimensions (cyclomatic 16): image-metadata.webpDimensions has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/image-metadata.mjs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cae51dc30e6fca98b2846f474a83d40194439536dbdd84d6df0e950dde2623"}},{"ruleId":"D1","level":"warning","message":{"text":"injector.inspectTargetWindow (cyclomatic 16): injector.inspectTargetWindow has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/injector.mjs"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dab30f114373ca4b1cc7e006d6333cb4f69c55bb250e701276af0ab2c55d9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"DreamSkinCopy.text (cognitive 257): DreamSkinCopy.text has cognitive complexity 257 (threshold 15). Drivers by points: ternaries 128 (256 pts), match/switch 1 (nesting depth added 128). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/DreamSkinCore/Localization.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"02936516c779faa589bfeb7a6ef9e548aa303aeeedb16abc8f2c45c42ae98936"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.runWatch (cognitive 228): injector.runWatch has cognitive complexity 228 (threshold 15). Drivers by points: if/else 62 (145 pts), boolean chains 35, ternaries 11 (26 pts), error handling 6 (13 pts), loops 7 (9 pts) (nesting depth added 107). Of this number, 145 points are the body\u0027s own statements and 83 belong to 20 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":"macos/scripts/injector.mjs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8613a428aa12e3ca5d92791f29985a855e1e9ed16ba794d1e2105ad279a89da"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.runWatch (cognitive 147): injector.runWatch has cognitive complexity 147 (threshold 15). Drivers by points: if/else 35 (96 pts), error handling 7 (25 pts), boolean chains 11, loops 6 (11 pts), ternaries 2 (4 pts) (nesting depth added 86). Of this number, 140 points are the body\u0027s own statements and 7 belong to 5 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":"windows/scripts/injector.mjs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"572085ceca370526ce2083406dfba0d3d0270e6a39b38405015553875c93cf1a"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-theme-import.main (cognitive 91): publish-theme-import.main has cognitive complexity 91 (threshold 15). Drivers by points: if/else 34 (60 pts), error handling 6 (14 pts), boolean chains 9, loops 3 (4 pts), ternaries 3 (4 pts) (nesting depth added 36). Of this number, 88 points are the body\u0027s own statements and 3 belong to 3 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb939e521e251a8aa637a946bf0bc8626ed5060ea4db06960d8904de75fd612d"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.runOneShot (cognitive 78): injector.runOneShot has cognitive complexity 78 (threshold 15). Drivers by points: ternaries 12 (34 pts), if/else 14 (31 pts), boolean chains 6, loops 3 (4 pts), error handling 2 (3 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/injector.mjs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"99182bcaef37e20e0c60f0e4a44b2dee4cfe19d64bfd7d875a4976b69ebe8b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.runOneShot (cognitive 70): injector.runOneShot has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 11 (31 pts), if/else 13 (28 pts), boolean chains 5, error handling 2 (3 pts), loops 2 (3 pts) (nesting depth added 37). 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":"macos/scripts/injector.mjs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea8860014a30dc0b43ce81d8bb79ea34c73b96e37e183da25c56199914a7e53"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseDeclarations (cognitive 52): Parser.parseDeclarations has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 25). 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de3f8bf7c86d3121ea92ce0d4999fff48ad7fc96885c4f7c3d0abf6314c00cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseDeclarations (cognitive 52): Parser.parseDeclarations has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 25). 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed207917d43506c290f03d52c6dfdeb19bd8cd32d4f4a2f4d29007c38ef07cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseDeclarations (cognitive 52): Parser.parseDeclarations has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 25). 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80a087dac528178773dfd7968923f9673ed274db6b6c1c57452fd85c52e4d45"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cognitive 48): (anonymous)::analyzeArt::(anonymous)::onload has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 15 (23 pts), if/else 10 (16 pts), loops 4 (6 pts), boolean chains 2, error handling 1 (nesting depth added 16). 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":"runtime/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9e4c2695ce45552496d4bb7308b36f3bdc2b00e63aa13eaf8f3c4585c04ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cognitive 48): (anonymous)::analyzeArt::(anonymous)::onload has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 15 (23 pts), if/else 10 (16 pts), loops 4 (6 pts), boolean chains 2, error handling 1 (nesting depth added 16). 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":"windows/assets/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcc8683102f2adb32b25a6a6111a3a55f4c36bb4f97a94570d69788715fb587"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload (cognitive 48): (anonymous)::analyzeArt::(anonymous)::onload has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 15 (23 pts), if/else 10 (16 pts), loops 4 (6 pts), boolean chains 2, error handling 1 (nesting depth added 16). 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":"macos/assets/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c497cb0a147583304723b42f53b3902d4faa27ed255e324b9bf4cbd1b127c2c9"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.parseArgs (cognitive 47): injector.parseArgs has cognitive complexity 47 (threshold 15). Drivers by points: if/else 33 (40 pts), boolean chains 6, loops 1 (nesting depth added 7). 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":"windows/scripts/injector.mjs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f331f0644b8be5eccf8ac43e470fb7c577e90435d8afb2f2c6b906d63f796d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.applyTheme (cognitive 44): renderer-inject.applyTheme has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), ternaries 8 (9 pts), loops 4 (5 pts) (nesting depth added 6). Of this number, 40 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbae332990719623d576cd8f52aed5e562502dbe69fa1b615467befce1803ab"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.applyTheme (cognitive 44): renderer-inject.applyTheme has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), ternaries 8 (9 pts), loops 4 (5 pts) (nesting depth added 6). Of this number, 40 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c05b0b2c0d57f7f611af326ca336848f86eea57489fe222345afa5d168b27f5"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.applyTheme (cognitive 44): renderer-inject.applyTheme has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), ternaries 8 (9 pts), loops 4 (5 pts) (nesting depth added 6). Of this number, 40 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a8797ce5d15db1defd81f04cd1f9edf1f0a924b134241b63dfdf73fe421fcf"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.loadTheme (cognitive 41): injector.loadTheme has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 12, error handling 4, ternaries 4 (nesting depth added 4). Of this number, 35 points are the body\u0027s own statements and 6 belong to 2 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":"macos/scripts/injector.mjs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"9162501c28823fdd073ad3bf3eae58d59ddd6a6818dd16ebf1c35919c822f353"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-config.acquireConfigLock (cognitive 39): theme-config.acquireConfigLock has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (23 pts), error handling 3 (11 pts), boolean chains 4, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/theme-config.mjs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfbfbc02e1ca19d9ff538dcdcdd58c3ca9cfe0638f72d5eece4253153238c68"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyTheme (cognitive 39): (anonymous)::applyTheme has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (11 pts), ternaries 7, loops 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b79864f3b9dd9f27b9f5942fbdd2ac147cea128cfaa62398a00efa083ff5cec"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyTheme (cognitive 39): (anonymous)::applyTheme has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (11 pts), ternaries 7, loops 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2213984e25a35a0bf48cd5ef0647b000d0eb023c286bb6e18c39dfe1448cce"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyTheme (cognitive 39): (anonymous)::applyTheme has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (11 pts), ternaries 7, loops 4 (5 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec8e6fdc2100d36c10beab0b4d3b8037f1f3b9970cd977e2d4b3b63fdcf430f"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.parseArgs (cognitive 37): injector.parseArgs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (31 pts), boolean chains 5, loops 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":"macos/scripts/injector.mjs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c020cc5c7743f50b00e638d6320db4719ee47ffcbb35b8b2d0432f333abcab6"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.captureActiveThemeThenApplyImported (cognitive 37): AppDelegate.captureActiveThemeThenApplyImported has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 10 (22 pts), if/else 6 (7 pts), boolean chains 6, match/switch 1 (2 pts) (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":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd8c6bdf9b3ae0ced624e89645326c825c14a224b3242052345c4985f5a186c"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cognitive 36): safe-css-validator.compileRuntimeCss has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (9 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 19). 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb5457ab074de5e78a5a8ff05707504bf30cc79cb39617e35f27e0ef7e8648d"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cognitive 36): safe-css-validator.compileRuntimeCss has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (9 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 19). 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e36330cf9109bc29033d12c0efbe092941599176f2920c794fd55c10addaa4a"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.compileRuntimeCss (cognitive 36): safe-css-validator.compileRuntimeCss has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 5 (9 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 19). 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f212cd00e1b3cb22a9a1bd3ade02fa52fb7f52de18b8b1ad68ca726bf3a1aa38"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 109 (143 pts), ternaries 74 (90 pts), boolean chains 88, loops 29 (36 pts), error handling 11 (14 pts), other 8 (nesting depth added 60). 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":"runtime/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c252cdf4be897760d31ae78215b60b49269d311f6bbf18d269d09416b38932"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 109 (143 pts), ternaries 74 (90 pts), boolean chains 88, loops 29 (36 pts), error handling 11 (14 pts), other 8 (nesting depth added 60). 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":"windows/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cc03456db97859d79cc382158479d90545588e1ef545a73ba99d72811ef6f9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 36): (anonymous) has cognitive complexity 36 (threshold 15). Drivers by points: if/else 109 (143 pts), ternaries 74 (90 pts), boolean chains 88, loops 29 (36 pts), error handling 11 (14 pts), other 8 (nesting depth added 60). 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":"macos/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"10237e697e60dae3067f868d0610ea086b8eb2a092a63ee22d98fa61a4121b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.cleanup (cognitive 31): renderer-inject.cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf62c04007b411d0327a1295b1ec5174b05b8592fe0dde28efdd92383bd9e82"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-theme-import.acquireLock (cognitive 31): publish-theme-import.acquireLock has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 4 (7 pts), boolean chains 4, loops 1 (nesting depth added 15). Of this number, 26 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"742d88beb01bd0571de98300f966f27c397640fa041efbe6d9c47c23a5ccc53b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.cleanup (cognitive 31): renderer-inject.cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d4812629b61bc8984adbf15a378278433aca27a0aa4d7e38841ca5b2b4b1bc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.cleanup (cognitive 31): renderer-inject.cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"e571dc0e27dce368dadb5dcceda4a638fdc5f025e66a4af31db90b62f6d07daa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::cleanup (cognitive 31): (anonymous)::cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d451862fedffa254dc11c85b9cdeed3fcbff91b92ec978650f257fa97a00946"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::cleanup (cognitive 31): (anonymous)::cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cd7b70dd8e2756e986f76c6533a0dcaf4cb19aed04a2d4c97053f70623f6c4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::cleanup (cognitive 31): (anonymous)::cleanup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 6, error handling 3 (6 pts), loops 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b073fb74ea33454f3819eea712039fa20e66f7c0ba290f98d8abad214956cbe"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cognitive 30): renderer-inject.fallbackComposerNodes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 8, loops 2 (5 pts), ternaries 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc59fefe2eb62de71df0d3a7e51870bc7b14f9c40bf5af5b64fff83b82f9583"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cognitive 30): renderer-inject.fallbackComposerNodes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 8, loops 2 (5 pts), ternaries 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac8242bd237c19f8f20f67e0e62e8c22e96a078b0ce710a1b31df114aa73b2b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer-inject.fallbackComposerNodes (cognitive 30): renderer-inject.fallbackComposerNodes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (16 pts), boolean chains 8, loops 2 (5 pts), ternaries 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to one function literal inside it that branches (line 692). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eb9eb077def30d1138aa920e164b510545805a2856280c0dbbacbca3109651"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.assessRendererVerification (cognitive 28): injector.assessRendererVerification has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 26, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e7e4b25a93ed30de0962eee3fd4d03c37151d1100775793cd80211e66264b1"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-config.main (cognitive 28): theme-config.main has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 3 (4 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 2 (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":"macos/scripts/theme-config.mjs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f68bdc4e7a678ea3c42930e6f728146b9e61c4fc9d5c1258416f0b5000fe392"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.performThemeImport (cognitive 28): AppDelegate.performThemeImport has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 10, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"512163ae44f2f271a32cf3360892bbf53ba7394387e74a963985eb9596ba2264"}},{"ruleId":"D2","level":"warning","message":{"text":"image-metadata.jpegDimensions (cognitive 27): image-metadata.jpegDimensions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, loops 2 (3 pts), ternaries 1 (3 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":"macos/scripts/image-metadata.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"197821421aeec81269dd10383eaf5c8128a69c45e889a179e3ebabfea303ff1c"}},{"ruleId":"D2","level":"warning","message":{"text":"image-metadata.jpegDimensions (cognitive 27): image-metadata.jpegDimensions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, loops 2 (3 pts), ternaries 1 (3 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":"runtime/image-metadata.mjs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f959c9d5ea1aec08c2cd8ce4354fc7782a1afcd8488be8e57ae92c88a4cbbc6a"}},{"ruleId":"D2","level":"warning","message":{"text":"image-metadata.jpegDimensions (cognitive 27): image-metadata.jpegDimensions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, loops 2 (3 pts), ternaries 1 (3 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":"windows/scripts/image-metadata.mjs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5ec8b2bc2cbac6a540746bedf6ac95b34a882e04a87c9fd43196a875cc4cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"pageDoctor (cognitive 27): pageDoctor has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 10, if/else 10, error handling 3 (4 pts), ternaries 2 (3 pts) (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 10 belong to 7 function items inside it that branch. 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":"tools/doctor-selectors.mjs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64c8fbd5b2705a3efe8b3ab8dcfc7940dd53d514889a120a462ab8bb991a7b6"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateManifest (cognitive 26): theme-package-validator.validateManifest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e75b78f41c8347afccf7a532f6acc7b58a7a3df0d6115813996268592d947e"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateManifest (cognitive 26): theme-package-validator.validateManifest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"04600fb6da7ff42429eded02884ca66962a548c655cd6e0245ba14492960d966"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateManifest (cognitive 26): theme-package-validator.validateManifest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91241769fe682df2710da48bf7c252b7392dbeb945d8d47d3265f1589ce62c7"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cognitive 25): safe-css-validator.backdropFilterValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9188695515aab4484dc9799311a9b59d3ac89ea670b507d714d41c8df463daed"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cognitive 25): theme-package-validator.validateOfficialTheme has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 3 (5 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":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff63d70b0c31716b4ddc76b853e4e249137e2177ef5086ea377a16af49d032a"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cognitive 25): safe-css-validator.backdropFilterValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f4f025693b07912422b072159a2aed94683c569845d8cd92fe235d35010ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cognitive 25): theme-package-validator.validateOfficialTheme has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 3 (5 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":"runtime/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"804e3c1cd29882f7bd5c60a63958bd4d2130a9f2660f8e3b565b436dd44111fa"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.backdropFilterValue (cognitive 25): safe-css-validator.backdropFilterValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29f1696e63493fab56e97af59ec1b379ca4284aece4770fb5966391ecd225c0"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficialTheme (cognitive 25): theme-package-validator.validateOfficialTheme has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 3 (5 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":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f080637c492206a5fcba83b6ee4898d285fc1225f20ce37c56216b039a9b6c"}},{"ruleId":"D2","level":"warning","message":{"text":"discover (cognitive 24): discover has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (8 pts), error handling 2 (6 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 12). Of this number, 15 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/doctor-selectors.mjs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11c677275d7ca20553270aedae676cb373771d17cddf02088fb6aa89d4151dc"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.installBundledEngineIfNeeded (cognitive 23): AppDelegate.installBundledEngineIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 5 (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":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b7b9a7ac71d47fa55f43a765f0ad869180e95d5d285818d9a9a2d226d857c7"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.loadTheme (cognitive 22): injector.loadTheme has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 6, ternaries 5. 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":"windows/scripts/injector.mjs"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5251404b3404dd6d2f71ae9d873758ce2028735847644d5725d8351ca4d7f425"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.connectCodexTargets (cognitive 22): injector.connectCodexTargets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 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":"windows/scripts/injector.mjs"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb5074256283cb09f5e14c09734eb32afa02d602e89c8416b6a2b0c3b300e77"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor-selectors.gradeDoctorResult (cognitive 21): doctor-selectors.gradeDoctorResult has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 5, if/else 2 (4 pts), loops 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/doctor-selectors.mjs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd07183ff4e86d9df952e70d5a7156b386f3911efdc8b76eae308058a2b9a3bb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload::information (cognitive 21): (anonymous)::analyzeArt::(anonymous)::onload::information has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 5 (9 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":"runtime/renderer-inject.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9e06244fbd94f628f04188f8074a054294810b9f1db5be55e3526663145a62"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload::information (cognitive 21): (anonymous)::analyzeArt::(anonymous)::onload::information has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 5 (9 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":"windows/assets/renderer-inject.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3969d9cbf09d444e86cadbc9ecb65332d049a85f9022861c5dca0895bb5116b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::analyzeArt::(anonymous)::onload::information (cognitive 21): (anonymous)::analyzeArt::(anonymous)::onload::information has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 5 (9 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":"macos/assets/renderer-inject.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddcb1cb1074e19001773e97146137892fb48d43eed7274fdf1cd2300fe9500b"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-theme-import.recoverJournaledReplacement (cognitive 20): publish-theme-import.recoverJournaledReplacement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59c9c3b4c54c957a86a124fb6db33a08062f50f493dfb9b808f24d7b6244c01"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-config.tomlTableHeaders (cognitive 20): theme-config.tomlTableHeaders has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/theme-config.mjs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"270299703d994f2e94a7417d7cb98a00c94e17123bedbb1b05f994a18b89b960"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cognitive 19): safe-css-validator.validatePropertyValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"553a83b7af45fdf920872c78f60aedee2b97b8f9d45b8e95438e16cc8ecd317d"}},{"ruleId":"D2","level":"warning","message":{"text":"injector.connectCodexTargets (cognitive 19): injector.connectCodexTargets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"077b025c3075cbb38fde8d240ba7d8dc00b1fd74fad2ad9a25cafbdab968b955"}},{"ruleId":"D2","level":"warning","message":{"text":"snapshot-theme-zip.main (cognitive 19): snapshot-theme-zip.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), boolean chains 1, error handling 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":"macos/scripts/snapshot-theme-zip.mjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0146d3a890edd2f2914a25a990e8062d96565b744c922492090242de300419eb"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cognitive 19): safe-css-validator.validatePropertyValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5ff496c51a52adb7de41e69e537cf00134cd748b91e8ca5f09b4dbdb22bffb"}},{"ruleId":"D2","level":"warning","message":{"text":"safe-css-validator.validatePropertyValue (cognitive 19): safe-css-validator.validatePropertyValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef54534b544ebdbfc3e351017e822d6ddc3260fa59a197d52051dd7e32cb903"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-config.tomlStructureForLine (cognitive 18): theme-config.tomlStructureForLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, loops 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":"macos/scripts/theme-config.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"992f621d56aed552f55a9a57a74c906802f16585cbcdff96b605941025521ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.rebuildMenu (cognitive 18): AppDelegate.rebuildMenu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"54652cb6b80d8600915f900fe4c1a1ce7b4a83af9696558dc201a04c8379977c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.downloadCommunityTheme (cognitive 18): AppDelegate.downloadCommunityTheme has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"500bf48fb81b1865d1f5ab21df665f6f9f409d49391c7be41d56d635adf53522"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cognitive 18): (anonymous)::applyArtMetadata has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, other 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd8fd6b143a6c18fec009de2d5129b51269ca09de746f251484ecbb43dbb9a7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cognitive 18): (anonymous)::applyArtMetadata has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, other 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f30d68f1b4f4dc351658235a0654ed6f4749832e17f01926aad69a3b1fa7f08"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::applyArtMetadata (cognitive 18): (anonymous)::applyArtMetadata has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 7, other 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"38143ff6b5d5ac1dc0906305afe9e7284e560a80c3462b8fac08c0ef4615d209"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficial (cognitive 17): theme-package-validator.validateOfficial has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3, boolean chains 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"d914b6faa99f296917cee1ec699fe23ca422aab2442b29181c881de38fbb4614"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-theme-import.recoverReplacementTransactions (cognitive 17): publish-theme-import.recoverReplacementTransactions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91b57d8850da5bd233f1b35d758a27ec09366e0955072b1a03d05d0376705b2"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficial (cognitive 17): theme-package-validator.validateOfficial has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3, boolean chains 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/theme-package-validator.mjs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"3439f1a1bb9fe15317b60ef8b2567f8bf0892c7c35c39a362584751fd519a692"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-package-validator.validateOfficial (cognitive 17): theme-package-validator.validateOfficial has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3, boolean chains 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/theme-package-validator.mjs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebe70099cfcd4b9f116d689a5681ea1f31a2192e0dc391345c6a8c0ec8f6d98"}},{"ruleId":"D2","level":"warning","message":{"text":"readProvenance (cognitive 17): readProvenance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 2 (3 pts), error handling 1, other 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":"tools/check-selector-provenance.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e06faf712922f06f0f5ce3c1e7dfc8ed56eb31f89788a1e5f196cbb1a5abf85"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.cleanupStalePrivateOperationDirectories (cognitive 16): AppDelegate.cleanupStalePrivateOperationDirectories has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (5 pts), error handling 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca74d24d4aaaeda75715ba1d78de04a0273c664652c5265f89def5119f8232d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.checkForUpdates (cognitive 16): AppDelegate.checkForUpdates has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4841c35bb5fe6ebca780dcb12cc32393259b7ca4c8d48db0e3dc8debb26f513"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.runWatch: FunctionTooLong \u2014 runWatch runs 426 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 326 over it, 4.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":"macos/scripts/injector.mjs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cb483477d13a4fbda5999a5512f46b4815679036f7b9a196f36c17400c18a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/injector.mjs: FileTooLong \u2014 1755 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1255 over it, 3.51\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":"macos/scripts/injector.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f992acc7c166d4d872e70d52f75245a13b9dc91b18113843e4783e209c9fec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 1226 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 826 over it, 3.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c11e00868191d2a368f146ea55947f24c83d66e1df11767dd412542243ad84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/injector.mjs: FileTooLong \u2014 1453 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 953 over it, 2.91\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":"windows/scripts/injector.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a405e25869462a5db96240391da89236c202c65fe466c5bfe8855bd32687706"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodexDreamSkinMenuBar/AppDelegate.swift: FileTooLong \u2014 1232 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AppDelegate (8-1656). The bar is 500 significant lines; this is 732 over it, 2.46\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e8c669ee2d9282079ec0ba3adf07f546fd1131217597cdca5f9b7f4f7a9626"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\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":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea486a9c92bc37f6f94e73e856da047ee11dca87e9295d1012406f9a9ba26d22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: publish-theme-import.main: FunctionTooLong \u2014 main runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d2efa9c28df8473f3ac09c7b64afbb25f7f95a1ee4d6256c872b4f41bce786"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.runWatch: FunctionTooLong \u2014 runWatch runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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":"windows/scripts/injector.mjs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7f89878c793adbbb530a94d1f8642ccc47305366b08ffc5e643c7e5c42bc32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: assets/renderer-inject.js: FileTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 354 over it, 1.71\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":"macos/assets/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e70d50079041224898528b26bc40a735ed892ae9dd2c987c7a098c40939179"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/renderer-inject.js: FileTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 354 over it, 1.71\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":"runtime/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4e7da8222db26e14fcf846e211a6fdf367c811a6e0cb49bbbacfba13bdb286"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: assets/renderer-inject.js: FileTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 354 over it, 1.71\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":"windows/assets/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9cf87b3ae66e2489c065d954e16275aec843c1b78322bdfc884fc9ff5f38860"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/publish-theme-import.mjs: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 272 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67c710b717218d916fa565bbf0d10410b1a1aa1d7ceb8b9cc10740bcc64baac"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.verifySession: FunctionTooLong \u2014 verifySession runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\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":"windows/scripts/injector.mjs"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d09b8a5bc4dbe6123313e612c915cec0cc6816234979b7514f6e2c1d3fd418"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DreamSkinCopy.text: MethodTooLong \u2014 text runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"macos/menubar-app/Sources/DreamSkinCore/Localization.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cc9e82e3adb575d19c95458c36b2aa8a600f35f7320dc9b096a33a04d15cb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer-inject.analyzeArt: FunctionTooLong \u2014 analyzeArt 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":"macos/assets/renderer-inject.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"200ff3635d52ea7d08d20d735ec32ba37369d81620141127ff7587d53bb6fd8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer-inject.analyzeArt: FunctionTooLong \u2014 analyzeArt 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":"runtime/renderer-inject.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4300c3f0f637f4839b431010c604cc4abc45daa12473757b8087b2f2ffa283e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer-inject.analyzeArt: FunctionTooLong \u2014 analyzeArt 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":"windows/assets/renderer-inject.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dc9380ffa0b0c1c776f48127735eed24bd12f7ab9b108a9f87fab6dcb2835b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.loadTheme: FunctionTooLong \u2014 loadTheme runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"macos/scripts/injector.mjs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"91af0150453de94a2e144a8f55adf16b16aad70982cc9b1e111058b0cbc3a840"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.operationUiExpression: FunctionTooLong \u2014 operationUiExpression runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"windows/scripts/injector.mjs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc57ccd34b66bd60e20dc9d7434f57a7184cb366abe5987fdd46ff7fefecaad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.operationUiExpression: FunctionTooLong \u2014 operationUiExpression runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"macos/scripts/injector.mjs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66a9ea3738dfc0d09a7dd046e20ab31c8b165669d96dea3b3705b45e22ea737"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: injector.verifySession: FunctionTooLong \u2014 verifySession runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"macos/scripts/injector.mjs"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"315760674eca9457a3337804e8cbffb81b7a48705b75ae5b7dfe45c04e1a817c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:1006-1011 | macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:1013-1018 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a76ca88486fb4f07a4a558ddd2bd488c669815e5052688e54db9f23e68a048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:844-848 | macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:1165-1169 | macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:1211-1215 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:851\u0060 calls \u0060finishThemeOperation\u0060 and \u0060macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift:1172\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7aa066c0f21dd14e785db0f8d2582e51259706380e3ab5e68e60fb38bd2d4c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: DreamSkinCore: DreamSkinCore: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"93ab3266e66878c10cdd3ca83caa48081b080b2d426d8ac7339d81e636a5c13f"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Swift suite: Coverage NOT MEASURED: the Swift half could not be measured \u2014 the Swift suite in macos/menubar-app produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: macOS shell catalogs keep matching English and Chinese keys: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/localization-contract.test.mjs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c36aeefe3012a78c551da93d749569769442d681348f7f545b6f5ccdfc07f97"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bounded community HTTP client: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/bounded-community-http.test.mjs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a656f0d5bb7190bca6b719f5c7c556fa3e617836013901bc046dba96b51a33c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/scripts/injector.mjs: macos/scripts/injector.mjs changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 149 in injector.runWatch at line 1662. 18 of those changes were fix/bug commits, and the other 26 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/scripts/injector.mjs\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":"macos/scripts/injector.mjs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1375851a7b267d3e912579b139b9f01329f5d009a95fb84684a633317c7ed68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/scripts/injector.mjs: windows/scripts/injector.mjs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in injector.runWatch at line 1517. 15 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- windows/scripts/injector.mjs\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":"windows/scripts/injector.mjs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"a390b05b79d97e1af7e9a41ae21171678662abe4bb2076d53520c5871e778557"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/assets/renderer-inject.js: windows/assets/renderer-inject.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in renderer-inject.analyzeArt at line 439. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- windows/assets/renderer-inject.js\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":"windows/assets/renderer-inject.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11a2b580983051a512b9fa293e6fa185b4fbfe372cd009b15c528efe0f53342"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/assets/renderer-inject.js: macos/assets/renderer-inject.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in renderer-inject.applyTheme at line 307. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/assets/renderer-inject.js\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":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a5eccc02c0a37163f642f0ecfbb21e9ce3d88570ea3c6c3da8070ce57fc04e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift: macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in AppDelegate.performThemeImport at line 824. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/menubar-app/Sources/CodexDreamSkinMenuBar/AppDelegate.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ceb5aeb4da2d15d14056ea98d50bd49ce2d8545346cca651f0eac1dd3d821b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: runtime/renderer-inject.js: runtime/renderer-inject.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in renderer-inject.applyTheme at line 307. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- runtime/renderer-inject.js\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":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a887008a0708267c0bbd8211ec26fc0d3fb514a7f1411f5e9e46206bf90c06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/scripts/publish-theme-import.mjs: macos/scripts/publish-theme-import.mjs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in publish-theme-import.main at line 711. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/scripts/publish-theme-import.mjs\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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3ac741248d157edd61a00d436c6f0be4e4830a07afcc797cc170c129598eeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/scripts/theme-config.mjs: macos/scripts/theme-config.mjs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in theme-config.main at line 273. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/scripts/theme-config.mjs\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":"macos/scripts/theme-config.mjs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9634a0469058c3263e7f890987ab7e791e0b9f5e543bd82010366eb1e62fa3ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/assets/safe-css-validator.mjs: macos/assets/safe-css-validator.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in safe-css-validator.compileRuntimeCss at line 527. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- macos/assets/safe-css-validator.mjs\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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f7917866a1f70aabb5539419142205da50e699a7dbc9c8337ff2f9731ab1ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: runtime/safe-css-validator.mjs: runtime/safe-css-validator.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in safe-css-validator.compileRuntimeCss at line 527. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- runtime/safe-css-validator.mjs\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":"runtime/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae4822d2b2a581b8f2dbf2f3e67d3044560fec5c0dfe4d2116f93810527b288"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows/assets/safe-css-validator.mjs: windows/assets/safe-css-validator.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in safe-css-validator.compileRuntimeCss at line 527. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 13:07:35 \u002B08:00\u0027 --until=\u00272026-09-06 13:07:35 \u002B08:00\u0027 --full-history --no-merges -- windows/assets/safe-css-validator.mjs\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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ac486ee90a8514bf90a27679e6443bf2c337477e1ddf7a3abba46a7a7cc197"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: macos/assets/renderer-inject.js, runtime/renderer-inject.js, macos/assets/safe-css-validator.mjs, runtime/safe-css-validator.mjs, windows/assets/safe-css-validator.mjs, tools/doctor-selectors.mjs, tools/sync-runtime-assets.mjs, runtime/image-metadata.mjs (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"54a3b8a6c26de6fab81b3474d1cd2b090e65527591b0cb191c8128a16eab18f2"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: contradicts the code: \u517C\u5BB9\u6863\u6848\uFF08compat profile\uFF09\u8BBE\u8BA1\u8349\u6848\u63CF\u8FF0\u7684\u662F 2026-08-27 \u7684\u517C\u5BB9\u6027\u4E13\u9879\u6587\u6863\u5185\u5BB9\uFF0C\u4F46\u5176\u67B6\u6784\u56FE\u548C\u5951\u7EA6\u63A5\u53E3\u5F15\u7528\u4E86 \u0060tools/selectors.json\u0060 \u548C \u0060dreamskin-safe-css/1\u0060 \u7B49\u5C1A\u672A\u5B9E\u73B0\u7684\u7EC4\u4EF6\u3002 \u66F4\u65B0\u4E3A\u5B9E\u9645\u9002\u914D\u5951\u7EA6\u7684\u843D\u5730\u7248\u672C\uFF0C\u786E\u4FDD\u6240\u6709\u5F15\u7528\u7684 selectors\u3001CSS \u6A21\u5757\u548C\u7B7E\u540D\u89C4\u8303\u90FD\u5DF2\u5B9E\u73B0\u5E76\u751F\u6548\u3002"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/compat-profile-design.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bca4090c3156a1213744e5c4c0ac88d67ed1a89dae7209244274acb72f1a11"}},{"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":"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":"716358478b5672d75c57474dec46fa0ff9e08dd851d488330048b70a5b53791b"},"taxa":[{"id":"CWE-125","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":"1e1c6c44a04270527258e7ab5727f34c6733f44fdbfabcd8337fe68803f9d328"},"taxa":[{"id":"CWE-125","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":"c3c652fc5b5206c0068ad3765a116028b765537ba58b9a287e9b21303d5bd110"},"taxa":[{"id":"CWE-125","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":"79bcbec51aeb2a5e283ba5e05327a4aa4123b384ab05fe8277f08d562638a23a"},"taxa":[{"id":"CWE-125","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":"a32f3f7b6be6325ed97df7233216e60e61cb2336c7ec5ee42eab8496211e96a3"},"taxa":[{"id":"CWE-125","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":"a7231491bd623c5d90cc290f2dccd326c16448ca9924904d64fa154c9931ee64"},"taxa":[{"id":"CWE-125","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":"f0a9b5a91140effd6895384a1b36c8e5757b524652a956451eb19f5fed43cd68"},"taxa":[{"id":"CWE-125","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":"10281508d0b37575f0044d96d5b60e0ea2699a21a027ad269fc4dc63c1638e69"},"taxa":[{"id":"CWE-125","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":"d847a13540cdd64830eebd659bcac337bb40b420b1d3b546e88be6bf440c183a"},"taxa":[{"id":"CWE-125","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":"9711e56f097bbd780a6759af124a4eca5c40b75717aca10919400d535029695e"},"taxa":[{"id":"CWE-125","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":"cc6b772145c8d971a1267e7f82a85f4c3a346e0f9fafca6af202002a5f9fab19"},"taxa":[{"id":"CWE-125","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":"d8de5689a68171ec911cf40fa3d367e18ce86f43515b6051ec5e399f61de5d6a"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","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":"83624e2a75b102d656da943ab10c203006d969612030d1669428c03d4067940e"}},{"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":"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":"D37","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":"9d03e50e45de791a350ebf595fcb3269575c0543260ac6707c4b73e65639738e"}},{"ruleId":"D43","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":"ca77df8ac0ed56a2e42b0923be81cca477f3174e98a1dc599981adac6a376eef"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 36581 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 64 plain JS \u2014 the untyped files are macos/assets/renderer-inject.js, macos/assets/safe-css-validator.mjs, macos/assets/theme-package-validator.mjs, macos/scripts/check-image-dimensions.mjs, macos/scripts/image-metadata.mjs, macos/scripts/injector.mjs (\u002B58 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (31 clone groups): 31 of the duplicated blocks reported below have copies in at least two of the sibling directories macos, runtime, tools, windows under the repository root. That concentration is one structural fact, not 31 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 31 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":"macos/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee8ca3a19a9a696be86e04ddc9a3c2f7c49d4811bbde5c7940d07974dd0678"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (812 identical lines \u00D7 3 files): macos/assets/renderer-inject.js:2 \u00B7 runtime/renderer-inject.js:2 \u00B7 windows/assets/renderer-inject.js:2 \u2014 these 3 files are line-for-line copies of one another \u2014 812 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c67d079ec5947143fe4ed8c39c85c3278309df666aa2bd32988c31a2e11aaad"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (411 identical lines \u00D7 3 files): macos/assets/safe-css-validator.mjs:1 \u00B7 runtime/safe-css-validator.mjs:1 \u00B7 windows/assets/safe-css-validator.mjs:1 \u2014 these 3 files are line-for-line copies of one another \u2014 411 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afea22452ef8f8530c625fd1d3042612d6f07eabcaa9bec335a3fd4cf2e5a78"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (394 identical lines \u00D7 3 files): macos/assets/theme-package-validator.mjs:3 \u00B7 runtime/theme-package-validator.mjs:3 \u00B7 windows/assets/theme-package-validator.mjs:3 \u2014 these 3 files are line-for-line copies of one another \u2014 394 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbdf192fd4f11ab4c3bb621a22e984f16536704f94289f004a8b81300792d2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (93 identical lines \u00D7 3 files): macos/scripts/image-metadata.mjs:1 \u00B7 runtime/image-metadata.mjs:1 \u00B7 windows/scripts/image-metadata.mjs:5 \u2014 these 3 files are line-for-line copies of one another \u2014 93 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/image-metadata.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35361a3e74ea04791bcae1331e1975fe8875903a8d13bfaae2ac420b861379ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (90 matched lines \u00D7 2 locations): tools/capture-dom-fixture.mjs:313 \u00B7 tools/doctor-selectors.mjs:123 \u2014 the two spans are one implementation copied and then locally edited \u2014 925 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":"tools/capture-dom-fixture.mjs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b744c941783f56822b80696a01da0c0f47a995ffd3cdd1e00fba4dc5827b25"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2 locations): macos/scripts/injector.mjs:1293 \u00B7 windows/scripts/injector.mjs:1363 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae06117d69c73ff9ce600b7ea5945f690269ec21795a8c517796b07dc8c81c0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (57 matched lines \u00D7 2 locations): macos/scripts/injector.mjs:612 \u00B7 windows/scripts/injector.mjs:494 \u2014 the two spans are one implementation copied and then locally edited \u2014 441 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":"macos/scripts/injector.mjs"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"414aa1f02d530bd464bd2afacd5ffc198a046974692164f10ae428473f5ae1f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): tools/capture-dom-fixture.mjs:476 \u00B7 windows/scripts/injector.mjs:326 \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":"tools/capture-dom-fixture.mjs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e82d7ad1568d298077ad03a93d14f4be57f281a40604c914b217b3ad443e044"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): macos/scripts/injector.mjs:1020 \u00B7 windows/scripts/injector.mjs:1074 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a2b32fdc4b0856b62da4742d4b48b2e2cd5c3ba626aa612b174f3c50905e80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): macos/scripts/injector.mjs:511 \u00B7 windows/scripts/injector.mjs:708 \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":"macos/scripts/injector.mjs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e955a77beab852266e8e95c2bbf02f16747cebdeed7b8765c20d2a0e3047896"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): macos/scripts/injector.mjs:360 \u00B7 windows/scripts/injector.mjs:248 \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":"macos/scripts/injector.mjs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"012ae9c869b8b2b0bd579a8bcd1b76acf29794fd384f333e887cbdda625c730b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): macos/scripts/injector.mjs:16 \u00B7 windows/scripts/injector.mjs:13 \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":"macos/scripts/injector.mjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ccff58ffdf97f53b853a765a06ad6e7b353263578a0d0a4c283b55d922bcb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3 locations): macos/scripts/validate-safe-css-file.mjs:9 \u00B7 runtime/validate-safe-css-file.mjs:9 \u00B7 windows/scripts/validate-safe-css-file.mjs:9 \u2014 the 3 copies are spread across 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/validate-safe-css-file.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"576145fa017df9cf41e87a942464078c75a7cdfacf1c99d5d18375ccd7925340"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): macos/scripts/injector.mjs:1400 \u00B7 windows/scripts/injector.mjs:1475 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7519140c44a4274f872f1e1c14e15f10635630529c6db9fecf7fcae23b3b50b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): macos/scripts/injector.mjs:1368 \u00B7 windows/scripts/injector.mjs:1441 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fa6cb0a6e03085d243951b6183b58c1bc30c09f4c7c812fc89b17bb3b76f7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): macos/scripts/injector.mjs:568 \u00B7 windows/scripts/injector.mjs:838 \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":"macos/scripts/injector.mjs"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"915b0eb42f82a1cf45c813e6211606efc775cf28f1d7781272ef519f69d48220"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): macos/scripts/injector.mjs:297 \u00B7 windows/scripts/injector.mjs:157 \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":"macos/scripts/injector.mjs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0df9843924987e398698a4ce7b99450c4e27d781bfdfd73ba353d34c227488"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): macos/scripts/injector.mjs:448 \u00B7 windows/scripts/injector.mjs:326 \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":"macos/scripts/injector.mjs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5c1af9109fdb5e4692037ac13f193811b72847e497b7800bca7169882929e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): macos/scripts/injector.mjs:419 \u00B7 windows/scripts/injector.mjs:298 \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":"macos/scripts/injector.mjs"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"270150f4b454098b95cfe8228bec8b5720222f45a848631e2260451dbfe82da6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): macos/scripts/publish-theme-import.mjs:786 \u00B7 macos/scripts/publish-theme-import.mjs:806 \u2014 all 2 copies are in the same file, 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f791b498cc6ae5347bb13124dc2cfd5c41092a4b610dda70ea64d30e372b13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): macos/scripts/injector.mjs:320 \u00B7 windows/scripts/injector.mjs:179 \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":"macos/scripts/injector.mjs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"139ef66dc61e01dc052969d4e95561c98a6cadf2e8f7d0919e01ff3143704627"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): macos/scripts/publish-theme-import.mjs:99 \u00B7 macos/scripts/stage-theme.mjs:32 \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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f16af378c553b5d51eac74a488ac2642e9bb401959ee9df160d5b477282e2b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): macos/scripts/injector.mjs:335 \u00B7 windows/scripts/injector.mjs:196 \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":"macos/scripts/injector.mjs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c51fb71a51e9affed6689e3a55eb8f7692772630907deb8a91da8cc8e1b40d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): macos/scripts/injector.mjs:720 \u00B7 windows/scripts/injector.mjs:558 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"9209d7c882308f3e9079d0ea969a3aae477585165b2037e037d14245e9ad7c81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): macos/scripts/injector.mjs:1491 \u00B7 windows/scripts/injector.mjs:869 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d0650683267f4e2e6c2d88c2b6c1e766c37947155c96a11109a665bb5a6e1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): macos/scripts/injector.mjs:481 \u00B7 windows/scripts/injector.mjs:359 \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":"macos/scripts/injector.mjs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d39dfe1f6d1bad94f2bb8d0d4e657e12c1c726b63e8e37404de52e1897b3e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7 locations): macos/assets/theme-package-validator.mjs:210 \u00B7 macos/scripts/injector.mjs:603 \u00B7 macos/scripts/snapshot-theme-zip.mjs:12 \u00B7 macos/scripts/stage-theme.mjs:23 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 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":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfff877f676b01ea82d2d03b867b0653d68fd58157168372b0632230b8860b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): macos/scripts/injector.mjs:201 \u00B7 windows/scripts/injector.mjs:765 \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":"macos/scripts/injector.mjs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cb3fd988a78b194cdf4ec2687235e0a8d4941f74fbbabf932be43923756da7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): macos/scripts/injector.mjs:751 \u00B7 macos/scripts/validate-safe-css-file.mjs:13 \u00B7 runtime/validate-safe-css-file.mjs:13 \u00B7 windows/scripts/validate-safe-css-file.mjs:13 \u2014 the 4 copies are spread across 3 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. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"714626bc20bfeae43e0df6b1c39cf6203fecc843fe253cff8a1382d48d84f7af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): macos/scripts/injector.mjs:889 \u00B7 windows/scripts/injector.mjs:942 \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":"macos/scripts/injector.mjs"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3658978b178a4295adbf81ac63f06fa892409497db065dd0c1d3f3497fca021"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): macos/scripts/injector.mjs:1276 \u00B7 windows/scripts/injector.mjs:1352 \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":"macos/scripts/injector.mjs"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec4b262ecb8aa2068f310c3d3d644a8211d06de6ac53e61dfc20f9e094c332b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): macos/scripts/publish-theme-import.mjs:33 \u00B7 macos/scripts/write-theme.mjs:53 \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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dbea794b900a2036df35f32bfd448c1d29fed54d4c888d04869156500bcafb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): macos/scripts/write-theme.mjs:38 \u00B7 windows/scripts/injector.mjs:460 \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":"macos/scripts/write-theme.mjs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1194fe267ea4f64b85a1bffed18f0b5085f1ebc0a6d9b0f77d2e8344017a2d52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): tools/capture-dom-fixture.mjs:633 \u00B7 tools/capture-dom-fixture.mjs:740 \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":"tools/capture-dom-fixture.mjs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4372c86197290821af71c25bb8a68bfec77fd6f83d28827fca0a7260227dd7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): macos/scripts/injector.mjs:834 \u00B7 windows/scripts/injector.mjs:652 \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":"macos/scripts/injector.mjs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"128156df87ac42a3236d689cdada2249bf8466d18169d3cda988c65fd379e87a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): macos/scripts/injector.mjs:22 \u00B7 tools/sync-runtime-assets.mjs:15 \u00B7 windows/scripts/injector.mjs:18 \u2014 the 3 copies are spread across 3 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":"macos/scripts/injector.mjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfeca0699a71624a80c29fb75a2fe11af59cea5847f1393e647b3c2e3ea95b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): tools/doctor-selectors.mjs:13 \u00B7 tools/doctor-selectors.mjs:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 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":"tools/doctor-selectors.mjs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca07e6796b0e333f4b5376a13fee1e588b1314e5e3256ecae0dedc45121a9d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runWatch (cyclomatic 75, cognitive 148): runWatch has cyclomatic complexity 75 and cognitive complexity 148; 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":"macos/scripts/injector.mjs"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6ee63535d2847298d619578154e2361ac5e8877a54645330817adadb35f878"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 58, cognitive 94): main has cyclomatic complexity 58 and cognitive complexity 94; 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":"macos/scripts/publish-theme-import.mjs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1f1b63b88f744c377e9850389062ea63831bf02b8a7e97295d61242512dcb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runWatch (cyclomatic 54, cognitive 145): runWatch has cyclomatic complexity 54 and cognitive complexity 145; 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":"windows/scripts/injector.mjs"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e9a9064d6877cb8cc627383fdc08e6b7157ed030181b4d2590e716a23bf11e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runOneShot (cyclomatic 44, cognitive 79): runOneShot has cyclomatic complexity 44 and cognitive complexity 79; 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":"windows/scripts/injector.mjs"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"92665636b91b0443ec20363f7d30e12254b340a196978c275caf728e64b691b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadTheme (cyclomatic 44, cognitive 43): loadTheme has cyclomatic complexity 44 and cognitive complexity 43; 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":"macos/scripts/injector.mjs"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea14004f588a0ccae38af29f0c35a9d2c3094347b36e724b6520bbdeb0f4ff89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArgs (cyclomatic 43, cognitive 47): parseArgs has cyclomatic complexity 43 and cognitive complexity 47; 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":"windows/scripts/injector.mjs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd425b587d795da4b95ce70e9eeacf3371c8190c040df669ea9b2f9fe4a74a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assessRendererVerification (cyclomatic 43, cognitive 27): assessRendererVerification has cyclomatic complexity 43 and cognitive complexity 27; 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":"macos/scripts/injector.mjs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b3179b5076d4febd2e82fd187e362e3d9834da50c81a6082c4d1b3e7413ef6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runOneShot (cyclomatic 39, cognitive 72): runOneShot has cyclomatic complexity 39 and cognitive complexity 72; 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":"macos/scripts/injector.mjs"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2affc75678cb631851d4e55063f5f67a8a2d7f2f24df241ba79bf2c15fa5a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 36): (anonymous) has cyclomatic complexity 39 and cognitive complexity 36; 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":"macos/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3819e2ee425b81203137e763c42a2e959fbd76628c0ead4da94fed3a3fea6792"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 36): (anonymous) has cyclomatic complexity 39 and cognitive complexity 36; 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":"runtime/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d074f638f065f4237d2d405377d5846689ed6f4545fbd6bfc846697d35290ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 36): (anonymous) has cyclomatic complexity 39 and cognitive complexity 36; 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":"windows/assets/renderer-inject.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6038c1d2a1f2f8f5ef20392ee508143a205231bf1e7d520c314b94b35d9473e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serialize (cyclomatic 37, cognitive 57): serialize has cyclomatic complexity 37 and cognitive complexity 57; 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":"tools/capture-dom-fixture.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ebbca087349b9203153352d44530dd3d0ee047415ceeb4a705a92deb73e24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDeclarations (cyclomatic 36, cognitive 52): parseDeclarations has cyclomatic complexity 36 and cognitive complexity 52; 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":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea6eff7e1890957cc21c4100fd0487813b12a999f8ce4541ab1b80425e2f2d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDeclarations (cyclomatic 36, cognitive 52): parseDeclarations has cyclomatic complexity 36 and cognitive complexity 52; 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":"runtime/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b8d00cd23cd55988311656a26767805f448678aa6695e1488b65217ee77432"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseDeclarations (cyclomatic 36, cognitive 52): parseDeclarations has cyclomatic complexity 36 and cognitive complexity 52; 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":"windows/assets/safe-css-validator.mjs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"661339ee71d33f3af89e2c341b3aacdac9a7611df96bd5e061f675bb6f7f97dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTheme (cyclomatic 36, cognitive 39): applyTheme has cyclomatic complexity 36 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":"macos/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e80d431c9bf33a6628092794b92d3af54d25407a709e8008fbf002428ed70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTheme (cyclomatic 36, cognitive 39): applyTheme has cyclomatic complexity 36 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":"runtime/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32e6247ac15c36ef26ff6b437994501e690a92f5f359c29882689cec0172487"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTheme (cyclomatic 36, cognitive 39): applyTheme has cyclomatic complexity 36 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":"windows/assets/renderer-inject.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"731871b77c8cebe9d466ea39c3690117998d3d231d11de536068ca13f319c057"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArgs (cyclomatic 36, cognitive 37): parseArgs has cyclomatic complexity 36 and cognitive complexity 37; 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":"macos/scripts/injector.mjs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"396be7b59d7059920f1f1fae0cc8933fd47f3e99168dd7b3a2914999698ef0ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onload (cyclomatic 34, cognitive 48): onload has cyclomatic complexity 34 and cognitive complexity 48; 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":"macos/assets/renderer-inject.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b1a1fb1c46c0e73b9cca9e55fbb596b5141711655adbdd3a402a4408608a5d"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 10 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: macos/assets/renderer-inject.js (996), runtime/renderer-inject.js (996), windows/assets/renderer-inject.js (996), tools/capture-dom-fixture.mjs (714), macos/assets/safe-css-validator.mjs (591), runtime/safe-css-validator.mjs (591) (\u002B4 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: macos/tests/renderer-inject.test.mjs:5 imports \u0027../assets\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/renderer-inject.test.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef30c54d80f0b48b96c373c7125bd1ea2d5fbf41ae1006d6bf88cfd85ef8d96"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: macos/tests/restart-cancellation.test.mjs:9 imports \u0027../scripts/\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/restart-cancellation.test.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c622173a0ae5ab612b8972908d3bc50f772b4cb4f8f9e52e664ee40a5fec5a98"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: macos/tests/update-fallback.test.mjs:8 imports \u0027../scripts/\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/update-fallback.test.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe0fc1af7a47e6c35b889dbcb8d41bd5992374bb6ae8a1338615d9db9782f17"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: windows/tests/renderer-inject.test.mjs:5 imports \u0027../assets\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/tests/renderer-inject.test.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea1215dd3a12e6d0a905b98ab3f24a017597fa4b9b4b187c6798884dfd72e61"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d4880722585296b110c447aaee7b922c3606e238706d1bf3205249c72d02b6"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4fe7425edeb3115b4b7b977e544fb44a50f799eb3cb3226504214af3e9ab20"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/assets/renderer-inject.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5b84d7d7133e1c14a0375b4d2e8014e6a8b1ac0258aadc135211be7e1b4851"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture-dom-fixture.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"363df0a80b7d6f85102afaffe2257e19a948e5263d215957c580ee53f0f7007f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/theme-package-validator.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c52f9429cbe5051206d951fdd8592f71b8eb163959d2d42d1aa8271b655852"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sync-runtime-assets.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67685c7de5f5d0aee5717612851285865d7ebb2e4d554a0490f64fe1f31586"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/image-metadata.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c87195191f73cd31e0f0f2c4a686f30c0b1885c44c2e84aa051bd5ca482696"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/check-image-dimensions.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8996927d520ec87989051fc7c14fb218e0e78c3d1de339c5ea36bf4c1d72b9f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/validate-safe-css-file.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d561ba09e620ac976042f7cf53d378d63738bafcb452a3ee3fab984356b24e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/validate-safe-css-file.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"799b7419ef999ae37c7aec8db482c8aa0318833561f6360a275ea89970fd0d23"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/scripts/validate-safe-css-file.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3d64dbee09b0cc4edc2febe6fd322778c8e0654ad3e58e06f854e6f8365be5"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but macos/tests/renderer-inject.test.mjs and 3 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/tests/renderer-inject.test.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cca9a06ce873518b7ad5fd57ed569610e42bc7dfda7c5ca0d8317e095737e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!files.has(\u0022theme.json\u0022) || backgrounds.length !== 1\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c7fe3ad4d83dac104cec86d5360e74fc799880dd3c3130f0e8a113b5c70c97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!flag?.startsWith(\u0022--\u0022) || value === undefined\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8697534972c69878490a12ba1e1a4c789a95937672aa6882ebd492544a176a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!new Set([\u0022source\u0022, \u0022stage\u0022, \u0022platform\u0022, \u0022client-version\u0022]).has(key) || values[key]\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77442e1ee99923622eb9c6943f66031b7e82a086d14c4a40909b8c11b8b581c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(value) \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"187bb3b819c97d1dd7c56e3a56471df43000bbb440cb95a5d969f6f8731e158b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SELECTOR_CONTRACT.schema !== \u0022codex-dream-skin-selectors/1\u0022 || !Array.isArray(SELECTOR_CONTRACT.selectors)\u0060 appears character-identically in 2 files \u2014 macos/scripts/injector.mjs, windows/scripts/injector.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fe7dce7f719b1e2bf28889d175bd883d5c137fcb0773acc2d311554c94328a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060String(scope || \u0022all\u0022).toLowerCase().match(/[a-z]\u002B/g) || [\u0022all\u0022]\u0060 appears character-identically in 2 files \u2014 runtime/renderer-inject.js, tools/doctor-selectors.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/renderer-inject.js"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"4357db7ff34de2dfc5b140adb4015b9172ffae005a9b69b9d6b77117f1ef9e7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060art.safeArea !== undefined \u0026\u0026 !new Set([\u0022left\u0022, \u0022right\u0022, \u0022none\u0022]).has(art.safeArea)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e84e4ce276ab6d4f51a4dd308ac3996a4fbce72d32d553336f55e98c5088a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060art.taskMode !== undefined \u0026\u0026 !new Set([\u0022ambient\u0022, \u0022full\u0022, \u0022off\u0022]).has(art.taskMode)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e133ea1cb4fdabb1e23eba1aa2fb7fbba5863c6d7a75819b542b6238974483b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060art[key] !== undefined \u0026\u0026 (typeof art[key] !== \u0022number\u0022 || !Number.isFinite(art[key]) || art[key] \u003C 0 || art[key] \u003E 1)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c210c88fd34c382ff08aadf2bab4a51fad07f5256b3dac178f7bb21884662d69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes.length \u003C 20 || ascii(bytes, 0, 4) !== \u0022RIFF\u0022 || ascii(bytes, 8, 4) !== \u0022WEBP\u0022\u0060 appears character-identically in 3 files \u2014 macos/scripts/image-metadata.mjs, runtime/image-metadata.mjs, windows/scripts/image-metadata.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/image-metadata.mjs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27e537cd308af51ab104b445a98d3c8407ba94e54186b10244c88fcf5441f90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes.length \u003E= 12 \u0026\u0026 bytes.subarray(0, 4).toString() === \u0022RIFF\u0022 \u0026\u0026 bytes.subarray(8, 12).toString() === \u0022WEBP\u0022\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf97c4453d1612e39f2f6902ca7496be8009e6f17f82597def6d13efede1c0b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060declaration.property === \u0022background-color\u0022 \u0026\u0026 CORE_BACKGROUND_IMAGE_PARTS.has(part)\u0060 appears character-identically in 3 files \u2014 macos/assets/safe-css-validator.mjs, runtime/safe-css-validator.mjs, windows/assets/safe-css-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f7691542d86447f8bdad804753a4d4fd17bf3a0b379ed26cd1d48f96e19e6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index !== 0 || !( registeredVar(argument, new Set([\u0022--ds-theme-surface-blur\u0022])) || zeroOrPx(argument, 0, 30) )\u0060 appears character-identically in 3 files \u2014 macos/assets/safe-css-validator.mjs, runtime/safe-css-validator.mjs, windows/assets/safe-css-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"25048d111c4e39caeef1807d300a3908c3e627b7fd0928df4ea994694070030a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060names.length !== 3 || !names.includes(\u0022theme.json\u0022) || !names.includes(\u0022theme.css\u0022)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e77b6a117b29686f46bd26e4b768ad2a47ea0e95d6e1b9e3d2441bafb7e57e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022.webp\u0022 || ascii(bytes, 8, 4) === \u0022WEBP\u0022\u0060 appears character-identically in 3 files \u2014 macos/scripts/image-metadata.mjs, runtime/image-metadata.mjs, windows/scripts/image-metadata.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/image-metadata.mjs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0f559e48628e7209a4c8c42d296ddac4b1ceb0efc63f75ef881f21ef44605b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060part === \u0022composer\u0022 \u0026\u0026 composerBaseBorderProperties.has(declaration.property)\u0060 appears character-identically in 3 files \u2014 macos/assets/safe-css-validator.mjs, runtime/safe-css-validator.mjs, windows/assets/safe-css-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea7afa11e8557ff5581b52d19534ebc4d787f76a8d2ce98a17e69befb2299fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raw.colors \u0026\u0026 typeof raw.colors === \u0022object\u0022 \u0026\u0026 !Array.isArray(raw.colors)\u0060 appears character-identically in 2 files \u2014 macos/scripts/injector.mjs, windows/scripts/injector.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3843da47922a0584f269f90cf33d20612ab3e538b0b3ea2654f76c673ef65b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060registeredVar(value, new Set([\u0022--ds-theme-surface-opacity\u0022])) || numeric(value, 0.65, 1)\u0060 appears character-identically in 3 files \u2014 macos/assets/safe-css-validator.mjs, runtime/safe-css-validator.mjs, windows/assets/safe-css-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/safe-css-validator.mjs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5f0bca8207a2c049178142896979c6e9b765237254310ec593275ec3b48ece"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060theme.appearance !== undefined \u0026\u0026 !new Set([\u0022auto\u0022, \u0022light\u0022, \u0022dark\u0022]).has(theme.appearance)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f7d7f5f7c481bb82eaeedaba74951df1b69362126faf621ee6deb56e8aa13f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof entry.path !== \u0022string\u0022 || !PAYLOAD_MEDIA.has(entry.path)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ecadeef758587da697b6c4932ec5e4b528e54cacbe0028d9f4c629029af5ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof entry.sha256 !== \u0022string\u0022 || !/^[0-9a-f]{64}$/.test(entry.sha256)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"137ee2cd41becc192cc6b0198a526cfcbcc6d3b75392d06177056f605f59301f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof item !== \u0022string\u0022 || !allowed.has(item)\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bbe135531cdb8c6b0f80dd3de6433f466f78d9fc4326e78dd07d69ae4c12a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof options.operationMessage !== \u0022string\u0022 || options.operationMessage.length \u003E 240 || /[\\r\\n]/.test(options.operationMessage)\u0060 appears character-identically in 2 files \u2014 macos/scripts/injector.mjs, windows/scripts/injector.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7e03d279c0df31f9d9d3a1476acf8bbd20145d7ba26b2405592013d90341fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022string\u0022 || CONTROL_PATTERN.test(value) || codePointLength(value) \u003E maxCodePoints\u0060 appears character-identically in 3 files \u2014 macos/assets/theme-package-validator.mjs, runtime/theme-package-validator.mjs, windows/assets/theme-package-validator.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/assets/theme-package-validator.mjs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8d3349bc4b9c1e8d259f26b2661fa61ec29bf577ec648a7762ee407412a0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0022ws:\u0022 || !LOOPBACK_HOSTS.has(url.hostname) || Number(url.port) !== port || url.username || url.password || url.search || ur\u2026\u0060 appears character-identically in 2 files \u2014 macos/scripts/injector.mjs, windows/scripts/injector.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/scripts/injector.mjs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"577e38506ea39d1618f7517a9069b52536965022612da2ffc62fd120661f487d"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"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-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-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-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":18,"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."]}]}