{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"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":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"McpResponse.format (cyclomatic 139): McpResponse.format has cyclomatic complexity 139 (threshold 15). Of this number, 137 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ab1bf878785b06752b19f5ab73c4c2cdc43b44ee83c8d14cc2b4628f52774b"}},{"ruleId":"D1","level":"warning","message":{"text":"McpPage.executeThirdPartyDeveloperTool (cyclomatic 50): McpPage.executeThirdPartyDeveloperTool has cyclomatic complexity 50 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 34 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e2902a52f26fe05cffd0ee2e2204b4d7cca2a6b45275f98f88f79c01d2b602"}},{"ruleId":"D1","level":"warning","message":{"text":"TextSnapshot.#insertExtraNodes (cyclomatic 29): TextSnapshot.#insertExtraNodes has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to 5 function items inside it that branch (moveChildNodes, createExtraNode, findAncestorNode, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c50c1b9d4336b3c5afa56a119ff4bfd40a2289adb10e4dd642c77c8844c253"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkedTraceParser.parseTraceEventsFromBuffer (cyclomatic 29): ChunkedTraceParser.parseTraceEventsFromBuffer has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd632a70f9744142d2ec6126eefff431de174e76a2911661d3bcea39f7a1f7c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkedTraceParser.parseEventsArray (cyclomatic 27): ChunkedTraceParser.parseEventsArray has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1395292edd0c98ff4147b3f080934e29b0aa142935d0d109f8f47a3698dd83"}},{"ruleId":"D1","level":"warning","message":{"text":"McpPage.emulate (cyclomatic 26): McpPage.emulate 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":"src/McpPage.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc2660479208a2eec71e5cd7463bb9e88242908a69f413198a9679e3eab2a68"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolHandler.handle (cyclomatic 24): ToolHandler.handle has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebd3f5d6d7b37f07c0ebda2ccad7aa9bfffd62187e72085422a2dbb7a04add6"}},{"ruleId":"D1","level":"warning","message":{"text":"McpPage.discoverThirdPartyDeveloperTools (cyclomatic 23): McpPage.discoverThirdPartyDeveloperTools has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 677, 673, 710, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89cc03e1789fc2e6a5d5c7904891f5fd4c9a06a9eb6dfc52313d49f91eb291c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkedTraceParser.skipValue (cyclomatic 23): ChunkedTraceParser.skipValue has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f518c8109fe6e374c0b477d7423fc277437d61d4fc9c540935bff74389a4a88"}},{"ruleId":"D1","level":"warning","message":{"text":"screenshot.screenshot.handler (cyclomatic 23): screenshot.screenshot.handler has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screenshot.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdb1c4cdcd4cd539030b2c87d0d6742e8d51cadd705c2899c9bc513d50e2ef0"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserManager.#launch (cyclomatic 22): BrowserManager.#launch has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdecd32d4e38f7eca7daab2dd52c91418c00d3f000d27593ce736916bea46b46"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfig.applyDefaults (cyclomatic 21): ServerConfig.applyDefaults 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":"src/config/ServerConfig.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"db65ab95018dbdc2ceb81567f2c5f4b27bd45d29ba494e254604133d88319409"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsoleFormatter.from (cyclomatic 21): ConsoleFormatter.from has cyclomatic complexity 21 (threshold 15). Of this number, 13 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":"src/formatters/ConsoleFormatter.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef40c0856610577d68384046f3918a56d95443f53a6777c9cd8ac4ebfaec7c1"}},{"ruleId":"D1","level":"warning","message":{"text":"WaitForHelper.waitForEventsAfterAction (cyclomatic 20): WaitForHelper.waitForEventsAfterAction has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (dialogHandler, navigationListener, a function literal at line 262, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/WaitForHelper.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aa4a1a5f86ca1154a7974b9a05ed62ac05d6cd7d00ee325e841cdbac4d6788"}},{"ruleId":"D1","level":"warning","message":{"text":"cli-commands.shieldLiteralArgs (cyclomatic 20): cli-commands.shieldLiteralArgs 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":"src/config/cli-commands.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7d1c67700aece07ca45416b2c2626a91f30ad41dffc091a326d7916e595118"}},{"ruleId":"D1","level":"warning","message":{"text":"CssFormatter.formatAncestorRuleHeader (cyclomatic 19): CssFormatter.formatAncestorRuleHeader 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":"src/formatters/CssFormatter.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"059ceafe206d264423b84ae660ba043282a03a7b887ca11209b312b56b32a78b"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotFormatter.#getAttributes (cyclomatic 18): SnapshotFormatter.#getAttributes 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":"src/formatters/SnapshotFormatter.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e20b34e7f75b3032eccaa618752a4e57021d61248e5e6cfa9ab875289e81bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"pages.navigatePage.handler (cyclomatic 18): pages.navigatePage.handler has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 9 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80d5accfb8bcbfa15ccae0b22d223eadb89f282131827a5dde1c10f5735b4a3"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkOverrideManager.#handleRequest (cyclomatic 17): NetworkOverrideManager.#handleRequest 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":"src/NetworkOverrideManager.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abffe7dc4f917347df5a965ff1a34bc13f9e50296a8eae1db0c44e2498e8f79"}},{"ruleId":"D1","level":"warning","message":{"text":"McpPage.replaceHtmlElementsWithUids (cyclomatic 17): McpPage.replaceHtmlElementsWithUids 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":"src/McpPage.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"da88929e0f6b59c4880e7c791b59bf53ba8cf397a8c78066ab2db8b575278576"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserManager.#connect (cyclomatic 17): BrowserManager.#connect 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":"src/BrowserManager.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee94ce12b5a9be89c82059c4ea613523ebe6862858511e5807d1499319ef4a99"}},{"ruleId":"D1","level":"warning","message":{"text":"McpContext.createPagesSnapshot (cyclomatic 17): McpContext.createPagesSnapshot 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":"src/McpContext.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b194034225184a561fde8b57da125ce6ffcbd69a86e9a9f0fc1d5a077791259"}},{"ruleId":"D1","level":"warning","message":{"text":"IssueFormatter.#getAffectedResources (cyclomatic 17): IssueFormatter.#getAffectedResources 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":"src/formatters/IssueFormatter.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0b8e3371e222a687f0691085314b8d3919fb8337b104fdc128f4babd933732"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkFormatter.#loadDetailedData (cyclomatic 16): NetworkFormatter.#loadDetailedData 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":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8932005b2260b76ef56981eaabe1ce74c4663f64ff9225517d4a6ca10988aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"transformation.getEnumValues (cyclomatic 16): transformation.getEnumValues 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":"src/telemetry/transformation.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7aa63c56130e30d53654cb776b5b83602b75f5f6ddc5520ad221ceafd13228"}},{"ruleId":"D1","level":"warning","message":{"text":"script.evaluateScript.handler (cyclomatic 16): script.evaluateScript.handler 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":"src/tools/script.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d1cedc38e5da0ccb395ca9a0595657fd72e1af5722370991e51469cca9cab1"}},{"ruleId":"D2","level":"warning","message":{"text":"McpResponse.format (cognitive 308): McpResponse.format has cognitive complexity 308 (threshold 15). Drivers by points: if/else 100 (178 pts), ternaries 23 (77 pts), loops 11 (32 pts), boolean chains 14, error handling 3 (7 pts) (nesting depth added 157). Of this number, 302 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"179edc13d858d80c05bbcb64ccc01ac02214f1738432acfb346b2fa79f17bbec"}},{"ruleId":"D2","level":"warning","message":{"text":"McpPage.executeThirdPartyDeveloperTool (cognitive 63): McpPage.executeThirdPartyDeveloperTool has cognitive complexity 63 (threshold 15). Drivers by points: if/else 28 (39 pts), loops 6 (10 pts), boolean chains 8, ternaries 2 (4 pts), error handling 1 (2 pts) (nesting depth added 18). Of this number, 23 points are the body\u0027s own statements and 40 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d8533c8618e19083e0d266842fb9dc2ac61f0226d1dde4d01efe3d494776d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkedTraceParser.parseTraceEventsFromBuffer (cognitive 56): ChunkedTraceParser.parseTraceEventsFromBuffer has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 5, loops 1 (2 pts), ternaries 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"950f60ad3b940953ace5cd8b88606b616f9d3baaa429eb4f8fc183ace725c42d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkedTraceParser.parseEventsArray (cognitive 52): ChunkedTraceParser.parseEventsArray has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (44 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 28). Of this number, 48 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4875ae4ac932700245ab737511e2d66b9da22ac7fdd1672cd1e3c6b5de183f"}},{"ruleId":"D2","level":"warning","message":{"text":"cli-commands.shieldLiteralArgs (cognitive 39): cli-commands.shieldLiteralArgs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 5, loops 2 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/cli-commands.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407478797913d0f63ce6db06537052e2bff8713c381870afaae678639532699"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkFormatter.#loadDetailedData (cognitive 38): NetworkFormatter.#loadDetailedData has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 3 (8 pts), ternaries 2 (7 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b4386eb5fa3c121b125d6ace50c45eaf178a2b629505389b80897cb059e540"}},{"ruleId":"D2","level":"warning","message":{"text":"McpPage.emulate (cognitive 37): McpPage.emulate has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (32 pts), boolean chains 4, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd1618178231ebab68b4d6094dbc6cb3968be954d6eeda1672cabde61b3910b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkedTraceParser.skipValue (cognitive 30): ChunkedTraceParser.skipValue has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c70391821828ecfa88f78df16a5018ae8f7ff55a82023347cd959ad2ceb0c63"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserManager.#connect (cognitive 26): BrowserManager.#connect has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 2 (4 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"37120f3ee08ff7027772e025ad42f23bf0459b706dbc326b09fde5644c1624ce"}},{"ruleId":"D2","level":"warning","message":{"text":"McpPage.replaceHtmlElementsWithUids (cognitive 25): McpPage.replaceHtmlElementsWithUids has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 6 (12 pts), boolean chains 1 (nesting depth added 8). 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":"src/McpPage.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6165164aed12a6bd2d5159d2d0653063907948daf31e7ae6ed33711f4dad097"}},{"ruleId":"D2","level":"warning","message":{"text":"input.fillFormElements (cognitive 25): input.fillFormElements has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 314, 338, 321). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/input.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"155a8efa981cb3b48785519a4126d3920651a65807bd78d83983acbb992f1a67"}},{"ruleId":"D2","level":"warning","message":{"text":"screenshot.screenshot.handler (cognitive 25): screenshot.screenshot.handler has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 5 (6 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screenshot.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c30345ed74bc364d46492c90fb7b5dba2e628c9b7301554d9b347b5a8452146"}},{"ruleId":"D2","level":"warning","message":{"text":"client.handleResponse (cognitive 25): client.handleResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (4 pts), ternaries 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6650987dcb7535d6f0372a29e2338ac493eb91e34266c36cbbd0056f780cea9a"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserManager.#launch (cognitive 24): BrowserManager.#launch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, error handling 1, ternaries 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":"src/BrowserManager.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3dac13ac3806952d1c6063fb7bcdd596d8c61f037847d9dc649ae38c362da4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHandler.validateToolFiles (cognitive 24): ToolHandler.validateToolFiles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c5830065f65a5297689cc538673741b2f48fd4e189a80f9c5e270f27d676c"}},{"ruleId":"D2","level":"warning","message":{"text":"WaitForHelper.waitForEventsAfterAction (cognitive 23): WaitForHelper.waitForEventsAfterAction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 3, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (dialogHandler, navigationListener, a function literal at line 262, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/WaitForHelper.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b4b7d8b1881e8ceeb7444784243f7ca4e9192d09ff632173550b8e07accc3c"}},{"ruleId":"D2","level":"warning","message":{"text":"files.resolveCanonicalPath (cognitive 23): files.resolveCanonicalPath has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 2 (5 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/files.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"11108b40f5e3a07a0412e2a35cf0e9dc6f36a57ca1819ce2c273bcdd3641fd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"McpContext.validatePath (cognitive 23): McpContext.validatePath has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (8 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"983a54bddc233b5a03f3605f9aeddd4103f9e7f2ccdb7f7969801ef835764d90"}},{"ruleId":"D2","level":"warning","message":{"text":"McpContext.createPagesSnapshot (cognitive 23): McpContext.createPagesSnapshot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0b63ad5d278d926ea7b25440827de1c50df03cc15969d9b825e19722587d7a"}},{"ruleId":"D2","level":"warning","message":{"text":"IssueFormatter.#getAffectedResources (cognitive 23): IssueFormatter.#getAffectedResources has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, loops 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":"src/formatters/IssueFormatter.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d72498e1c71cc100741f4ad673b0aa39cb014fa8aa179d3cf66e7c0b6e0542"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.applyDefaults (cognitive 21): ServerConfig.applyDefaults has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, ternaries 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":"src/config/ServerConfig.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4646466a871a4cbac26585914c944f5667c6414617b4e55296694e56880d9b44"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.serializeArgs (cognitive 21): utils.serializeArgs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/utils.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"95face1574d7b91e45e200fe8e413ad640c152f70955429c6185541c64289328"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolHandler.handle (cognitive 21): ToolHandler.handle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 4 (6 pts), boolean chains 4, error handling 2, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf88b5b4d50816131722cf5f33dc68340c9d3d956ab4f3edf9dae29a379c4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotFormatter.#getAttributes (cognitive 20): SnapshotFormatter.#getAttributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/SnapshotFormatter.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71236ad4d85099a6fd2ccd4d58ef9af0801208e1e4ee95b6dae2b3e4d561535"}},{"ruleId":"D2","level":"warning","message":{"text":"pages.navigatePage.handler (cognitive 20): pages.navigatePage.handler has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 7 (8 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 268). 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":"src/tools/pages.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e37fbf79d4564bd9e12ed03418208ed60305bdac863f0ddc4441d235dfd0efb"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkOverridesFormatter.toString (cognitive 20): NetworkOverridesFormatter.toString has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (9 pts), loops 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":"src/formatters/NetworkOverridesFormatter.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7763d77e718b79e8e3388a26e5e63f3ef8db61cbae65e6fd4d69777bc0cfd222"}},{"ruleId":"D2","level":"warning","message":{"text":"screencast.startScreencast (cognitive 20): screencast.startScreencast has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (6 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 96). 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":"src/tools/screencast.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dbdc660695e151590ca9e9c88e13ff89cf09d8698852858092368f6e51bca2"}},{"ruleId":"D2","level":"warning","message":{"text":"CssFormatter.#collectAtRules (cognitive 19): CssFormatter.#collectAtRules has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 2 (4 pts), loops 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":"src/formatters/CssFormatter.ts"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"363872f7c4a770f690b4622e1299ca77bd24c6f5f1b1233fbe58c645f1338c6e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteObjectFormatter.formatObjectItems (cognitive 19): RemoteObjectFormatter.formatObjectItems has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 3, 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":"src/formatters/RemoteObjectFormatter.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f67ba525d961d70b503e90ce42aa65acc943397e30d9413ba36e57e1a68a9f2"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkOverrideManager.#handleRequest (cognitive 18): NetworkOverrideManager.#handleRequest has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 6, boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/NetworkOverrideManager.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35fbdac054134df4fc5034a772b3cea6c75fbfacdfdec62caf38fbef918706b"}},{"ruleId":"D2","level":"warning","message":{"text":"CssFormatter.#collectNodeStyles (cognitive 17): CssFormatter.#collectNodeStyles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (3 pts), 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":"src/formatters/CssFormatter.ts"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c793cd943cf6a504bcfd31dccae600fee14acd6ed280aca6f40abff206f555"}},{"ruleId":"D2","level":"warning","message":{"text":"CssFormatter.#collectKeyframes (cognitive 17): CssFormatter.#collectKeyframes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cfd1faf78f9b992e67ed83024cf08793338f48606d79c02ebf2651042d1ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"transformation.getEnumValues (cognitive 17): transformation.getEnumValues has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbc8fb56ea4311c47d8ffc03e616aed0356f3a5a6756829f174fc419f16eb84"}},{"ruleId":"D2","level":"warning","message":{"text":"comments.revealInDevtools (cognitive 17): comments.revealInDevtools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 2, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 219). 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":"src/tools/comments.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ca9bd14b6da4abae9134b9e70930d13195bba910d1332d08c8180fd5a17dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"performance.startTrace (cognitive 17): performance.startTrace has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 5). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 69). 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":"src/tools/performance.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b529f6b18f3c2ef70ce9a5f366e26432de3317e3ad7a56cf8804de11ecd9be39"}},{"ruleId":"D2","level":"warning","message":{"text":"client.stopDaemon (cognitive 17): client.stopDaemon has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 4 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7091a2bfe8d03436f4b61be9a18f972d38d621ac07a5954f850b9392c094677"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSnapshot.#insertExtraNodes::moveChildNodes (cognitive 16): TextSnapshot.#insertExtraNodes::moveChildNodes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e3d1b3d46b11d52fd276dcad02410a06be558dd5448f47003d68d5ed42af38"}},{"ruleId":"D2","level":"warning","message":{"text":"CssFormatter.formatAncestorRuleHeader (cognitive 16): CssFormatter.formatAncestorRuleHeader has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 7). 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":"src/formatters/CssFormatter.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"948a50cfb71e83e707ad7452f63327d983271d178425661971f69328c37748c2"}},{"ruleId":"D2","level":"warning","message":{"text":"CssFormatter.appendCssSectionsToString (cognitive 16): CssFormatter.appendCssSectionsToString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (7 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"492b87303d8be686b8bfbad042b7abdd231ccb57aa710a219cd8f83001843696"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteObjectFormatter.formatArrayItems (cognitive 16): RemoteObjectFormatter.formatArrayItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (5 pts), boolean chains 2, loops 2 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/RemoteObjectFormatter.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b5ad058491def296decad6e78472f557fe3189df77b7e46ec7933711d0f040"}},{"ruleId":"D2","level":"warning","message":{"text":"lighthouse.lighthouseAudit (cognitive 16): lighthouse.lighthouseAudit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 199, 280). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/lighthouse.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d29b4e3e763b1ebcd803147eac3230c58ef1e41ce7f3270fd7bb1539013fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"script.evaluateScript.handler (cognitive 16): script.evaluateScript.handler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/script.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b05ac24d44e3878d4467b2822d0c30fec78e4b4e19d8299df944f29bf8733f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/McpResponse.ts: FileTooLong \u2014 1479 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: McpResponse (100-1957). The bar is 500 significant lines; this is 979 over it, 2.96\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deeb5863181caa104d754a3a8c1ba530d64ec6963d8ebd336158905ba5349dde"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpContext: TooManyMethods \u2014 81 methods. The bar is 30 methods; this is 51 over it, 2.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d27f59514d85e987fe9e9aca17f723906573bf65c63dcf9a31bc584c1845ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseMcpHostBindingAdapter: TooManyMethods \u2014 78 methods. The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/McpHostBindingAdapter.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3914b716609001e2c9935492b0f79af3b7da46ac8a103613bc70aa5dcb8038e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/McpPage.ts: FileTooLong \u2014 1101 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: McpPage (192-1726). The bar is 500 significant lines; this is 601 over it, 2.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6227edefd53cd5e48318529b3293466d980e1ff9efc9bbb92bb718cc7005c68"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpPage: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f696638118a01d57714ca8cae6fa2dc0beec4666e18e689328e2b5ef016f2f5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: formatters/CssFormatter.ts: FileTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 396 over it, 1.79\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4480a5c203f6d79a352ae5f6d54c00186e3bc9c98363510a829451db64d7f41"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpResponse: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b869183d35d469f1bb3c627dfd51c8439720bdde648fe15ab5e57c16ee8d7c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/McpContext.ts: 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":"src/McpContext.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e6da8ce0ecbc4666ad056b9e83c4784a6a7cc9615328e250c71bb7dd09074c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: McpPage.executeThirdPartyDeveloperTool: MethodTooLong \u2014 executeThirdPartyDeveloperTool runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0834797e0e2c16570ee69942c2c58d7ec4772e2bc4f8bab08e85c612aea9a25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/ToolDefinition.ts: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 148 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/ToolDefinition.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22636c2b0d3cc49fcabf914265149e245c7284761b9fb9adf004efb065d97b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextSnapshot.#insertExtraNodes: MethodTooLong \u2014 #insertExtraNodes runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2df423508e01222a4b3f0b6f171adbfe4e13a2811d9155320e38b66b42b8c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: McpPage.emulate: MethodTooLong \u2014 emulate runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab2433a2a6427cdb2fe4e7d0bcf238b85ea9caba66a93815664f55def79d6e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/memory.ts: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf85e23ea247a5b0247cf412cbc79593abd27d2a7848537f66d10f32b378da0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: detects display does not crash: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/browser.test.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed0f0fab4ab09ca2acecf65e09d59bcaeccece53428de07b21cbc71c25027ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: updates roots when client notifies: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/index.test.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b267b03a71648e2d5c77f934834c6ef187e8f599af39f7fca673372fb4252d2"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): resolves sendShutdownEvent after timeout if flush hangs: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/telemetry/watchdog/ClearcutSender.test.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dcba4c4d2d2d7f92714ab90e59cb0744f571fc7bc17e87b447ea24682c8486"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accepts a single argument from a conflict group: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/config/ServerConfig.test.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5805f05bb9c963d639aa911f153ac480810422daed9bf7dbff7fff3b41b3c2ef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ignores false and undefined values: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/config/ServerConfig.test.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3312daa44bff69c88b373e4d3a7f859ea6a73a9473675fb9af3721e4a127f8c0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accepts when implying key is not set: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/config/ServerConfig.test.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dcf10ada80e55b897a123bc9b09beea04712e12b20f8660f2ad1a3c08cf4c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accepts when both implying and implied keys are set: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"tests/config/ServerConfig.test.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1687e2e9a6a54610d4216f1cc3206dcb7f323bead7d0bc9becfede970a6d50a0"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not operate on a closed and already-disposed selected page in onConfigChanged or release methods: This test sets up 3 test doubles (for example \u0060sinon.spy\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpContext.test.ts"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"264ae3ef9179e87ce41ec9a0be87f868fd81ecef3930eba7e471e2ecb99570b6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: releases feature state when capabilities transition from enabled to disabled: This test sets up 4 test doubles (for example \u0060sinon\n        .stub\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpContext.test.ts"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf8548e6b06917004eac46b09687c1602ed99ac44051837363e57d76ce8c13e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: releases feature state when switching to slim mode: This test sets up 4 test doubles (for example \u0060sinon\n        .stub\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpContext.test.ts"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fced33af5cf0db6d5c037970f441c0391b83b514973c63988ad3b68be8e44a"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not release state of capabilities that stay enabled or stay disabled: This test sets up 4 test doubles (for example \u0060sinon\n        .stub\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpContext.test.ts"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b063dfd796999ed12b6f737c46376e2440a9fa86a83f149feb926b335045ea6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: applies visible matching to frames attached while waiting: This test sets up 5 test doubles (for example \u0060sinon.stub\u0060) against 1 real object(s) of its own, and its only verification is 5 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpPage.test.ts"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c725359b2266dd7615c4b81f8d1fbf15a97aab8d7d274d253341badd331ede6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: formats the errors with the DevTools universe of the handed over page: This test sets up 3 test doubles (for example \u0060sinon.createStubInstance\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpResponse.test.ts"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc28a7ef5fd2f2d866e2684e388c28839d2462a07bd34f6c2f2c70b13e8ee9d"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: starts watching on connect only when watchConfig is enabled: This test sets up 3 test doubles (for example \u0060sinon.spy\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpServer.test.ts"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fc6676c10841be7a3aa68c26a6e0e69683d4b63ad27bf8b53a854cdf181be7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: logs an error and disposes the watcher when starting the watcher fails: This test sets up 3 test doubles (for example \u0060sinon\n        .stub\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/McpServer.test.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec19b3ddc0325dfd954a49590d5bbb6b5b5022fa8468290967e9a38b26363160"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: resolves data format ${expected} from [${argv.join(\u0027 \u0027)}]: This test sets up 3 test doubles (for example \u0060sinon.createStubInstance\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/ToolHandler.test.ts"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df913a58f2f8c933391a20382feba7cba2097371ccf644faf1b68eec17e050b"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does nothing if CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS is set: This test sets up 4 test doubles (for example \u0060sinon.stub\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/utils/check-for-updates.test.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cab9a3de67b15bdb272fb9de0fcd4eae210ae42ce40290d23f7baeed28632c"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: notifies if cache exists and version is different: This test sets up 5 test doubles (for example \u0060sinon.stub\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/utils/check-for-updates.test.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2411686f191cd334d940713bbb72e0b3413d97a6ba703cc8e53794503bb17428"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not notify if incoming version is older than current version: This test sets up 5 test doubles (for example \u0060sinon.stub\u0060) against 1 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/utils/check-for-updates.test.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a74e82da34829007173700a00c55e4d0e2f64fce892cc060086cbaeffae7fe8"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does not spawn fetch process if cache is fresh: This test sets up 4 test doubles (for example \u0060sinon.stub\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/utils/check-for-updates.test.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d575b801af4b5c21e90ab7159dd324823afff4471e67a2bc396636b6153c36"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: ignores a cached version that is not valid semver and refreshes it: This test sets up 6 test doubles (for example \u0060sinon.stub\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/utils/check-for-updates.test.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cda3c89c19b55511a26a6216e0eab7bdde67b737a7001bec8f5408c2809b98"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: node-domexception: node-domexception 1.0.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Use your platform\u0027s native DOMException instead\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":5153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f90cb44a46f78a179b41bf633e2af262cd81305d0f767fb2454e30ff0529ef9"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f111eac9042916ac4c2de181e644853f1cee89732528cab575355ebbdfaff2c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/McpResponse.ts: src/McpResponse.ts changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 139 in McpResponse.format at line 915. 11 of those changes were fix/bug commits, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/McpResponse.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa456a9b0b32e2489934a333f6ab60626505232006d3667ddf566292c0c0c51a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/McpPage.ts: src/McpPage.ts changed 45 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in McpPage.executeThirdPartyDeveloperTool at line 989. 16 of those changes were fix/bug commits, and the other 29 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/McpPage.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"b766e1d9d76b7b74eafd927687c97a487822aacbd74ea57f4f01a70b5477768e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/ToolHandler.ts: src/ToolHandler.ts changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ToolHandler.handle at line 490. 11 of those changes were fix/bug commits, and the other 23 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/ToolHandler.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"936d4a7ffe80d510604da4e19af19f4ce08fa3769a736dc33ae7f56193de9ac6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/McpContext.ts: src/McpContext.ts changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in McpContext.createPagesSnapshot at line 893. 14 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/McpContext.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"af220f9176ca138188d4ba66a76bc2867ff0ad1b32685c6e52b8a3e7e4287a3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/generate-docs.ts: scripts/generate-docs.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in generate-docs.generateReference at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- scripts/generate-docs.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-docs.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fdd025be13385d6af35f0ed4b6a54bd1635f9ff173c07a51c31d3514d0e3fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tools/pages.ts: src/tools/pages.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in pages.navigatePage.handler at line 235. 6 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/tools/pages.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01840e43bf29edd04b8c69c7890f0586ada3f52765f96842f0b88b8ae9d9a64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tools/script.ts: src/tools/script.ts changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in script.evaluateScript.handler at line 122. 4 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/tools/script.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/script.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc73cc728903680725701f41ae27391081c8c94ab58c6d230e082e1f3acc58e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/BrowserManager.ts: src/BrowserManager.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BrowserManager.#launch at line 236. 8 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/BrowserManager.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2d0bd87ceb48067ddf7a5cb80e5080c5b3191c0f36705d9e6f41bdd87688ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/tools/screenshot.ts: src/tools/screenshot.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in screenshot.screenshot.handler at line 201. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/tools/screenshot.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screenshot.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb6ffe6894e571b94b99918ab0c8fec2173089557573fcd122108a3b6f7a548"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/TextSnapshot.ts: src/TextSnapshot.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TextSnapshot.#insertExtraNodes at line 198. 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/TextSnapshot.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"04489bf1d33dc2be49ff7a23ad8912b8997a1ecadb7200b075caa4ed62f70b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/formatters/CssFormatter.ts: src/formatters/CssFormatter.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CssFormatter.formatAncestorRuleHeader at line 556. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/formatters/CssFormatter.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32c27a5b013bec2329e2b380505ce98b7d964ed0b686098b61500b70f6d5732"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/generate-cli.ts: scripts/generate-cli.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in generate-cli.generateCli at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- scripts/generate-cli.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-cli.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56419dab55af64b21716ad33851a72924cf06a3f3e6ccd9f48a5a22247f5b6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/utils/WaitForHelper.ts: src/utils/WaitForHelper.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in WaitForHelper.waitForEventsAfterAction at line 125. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/utils/WaitForHelper.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/WaitForHelper.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0530641a19069674552c0afd82fd6612182b9a79aefd76e6782d779f0a42e68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/formatters/NetworkFormatter.ts: src/formatters/NetworkFormatter.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NetworkFormatter.#loadDetailedData at line 98. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/formatters/NetworkFormatter.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc03a6a1d1f53c0e7934dd5ce128e4d52ac74c479f3e0e8caded83488f417f29"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/formatters/ConsoleFormatter.ts: src/formatters/ConsoleFormatter.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ConsoleFormatter.from at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/formatters/ConsoleFormatter.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/ConsoleFormatter.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4ae58c73069156c0da5e58f04499d0be26237db2f2c5132a3a09c91e1022f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/formatters/SnapshotFormatter.ts: src/formatters/SnapshotFormatter.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SnapshotFormatter.#getAttributes at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/formatters/SnapshotFormatter.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/SnapshotFormatter.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2f52e641e0f76830b5812ba7f9c28eb19c7d4c8c493f4bc2fad7370472ee03"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/NetworkOverrideManager.ts: src/NetworkOverrideManager.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NetworkOverrideManager.#handleRequest at line 408. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/NetworkOverrideManager.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/NetworkOverrideManager.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84d233b072a6b2015e2f68efd505367e4f622eb2f04850b629fcda27ac4fadb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/utils/url.ts: src/utils/url.ts changed 13 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is url.isAllowedUrl at line 160), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: treat local host name and interface addresses as local browser endpoints (#3463)\u201D; \u201Cfix(url): unwrap view-source: before all scheme checks in validateUrl (#3335)\u201D; \u201Cfix: treat 0.0.0.0 and [::] browser endpoints as local (#3321)\u201D; \u201Cfix(pages): reject devtools:// URLs in navigate_page and new_page (#2935) (#3128)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/utils/url.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/url.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7ee03d3c1f874d4382ea98a9562b6736e0de94f8cdbb62251dd4e3f58e30d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/daemon/client.ts: src/daemon/client.ts changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is client.handleResponse at line 271), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(browser): redact WebSocket headers from connection logs (#2901)\u201D; \u201Cfix: allow stopping the CLI if command fails (#3088)\u201D; \u201Cfix(daemon): bound browser shutdown and avoid watchFile timeout on stop (#2887)\u201D; \u201Cfix(daemon): keep fallback socket in private runtime dir (#2766)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/daemon/client.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"88551f5e50f703910a391379beacce379706e2e642df290e33b23e02f135fd19"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/utils/logger.ts: src/utils/logger.ts changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is logger.redactDaemonArgsForLogging at line 107), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(browser): redact WebSocket headers from connection logs (#2901)\u201D; \u201Cfix: escape client-supplied values in McpContext logs and errors (#2832)\u201D; \u201Cfix: don\u0027t log Puppeteer logs to file unless requested (#2743)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 14:26:02 \u002B00:00\u0027 --until=\u00272026-11-13 14:26:02 \u002B00:00\u0027 --full-history --no-merges -- src/utils/logger.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/logger.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15e5165166ba9d70bbc92713c2b8d9bdee8b10f3f93b33925cbc5770f588641"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: src/devtools/McpHostBindingAdapter.ts, src/config/browser-options.ts, src/config/ConfigWatcher.ts, src/config/tool-options.ts, src/config/ConfigLocator.ts. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7c44df5158b4be7e03993821612d1f604d3297327407d83240bd8a3a1664b8de"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (6 single-owned of 90 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 90 of the 132 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/formatters/CommentFormatter.ts."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: we are probably subscribing too late to catch startup logs. We \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc6266daf9c57c9d9ee85123c6bc0eec1b2f0a4d5567837523a4cc71fb845de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: re-expose this logic via Puppeteer. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"466a08209fc2c08c01c51381e10fc91eac434ff0f7d81ab7be0719003bd2228c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: index by backendNodeId instead. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0e146102eb6238cb95190b547d5ea9b9e94cddde30f74a03ddb580026a0016"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: include the \u0022# Open dialog ... Call handle_dialog\u0022 hint once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/script.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2b7afb628fcc75b8a5422fa5dda166780bf99fb5f147870de68295da1f21ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Turn opts.details.exception into a JSHandle and retrieve the \u0027cause\u0027 property. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1da2edfffdfc3d23e8a8cf8af13a19062ae0e24a26968dda2035d2e5ae2a81"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060package.json\u0060 makes this repository a deployable product (line 6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Sort tools by name\u0022 repeats the code it sits on: 3 of its 3 words (sort, tools, name) are already in \u0060const sortedTools = tools\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-cli.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"419acc69da3531a3edf1adbb7b8dead3e37a1b5bd84235dcd426af36a3a79f29"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Sort tools within category\u0022 repeats the code it sits on: 3 of its 3 words (sort, tools, category) are already in \u0060categoryTools.sort(sortTools);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-docs.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d7f1d92a864c664b9fb68413c75ccf788ebd0d7233148d9c46a095d11e81db"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add cross-links to mentioned tools\u0022 repeats the code it sits on: 4 of its 5 words (add, cross, links, tools) are already in \u0060escapedDescription = addCrossLinks(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-docs.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c6c01f10e93a1130972d437ac075f6dff8951cc728bb6327daf0254da7cec8"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add cross-links to mentioned tools\u0022 repeats the code it sits on: 4 of its 5 words (add, cross, links, tools) are already in \u0060escapedParamDesc = addCrossLinks(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-docs.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7b5645f7fa2e3f5926f537fae80b08a93d733719723baec072878662ff94b8"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df813ca1a866a825200273794226b7763b35fac21c8057d76fcfc7a458dd3502"},"properties":{"commitSha":"05855b358010e635ba1844b94f4c9395b8ca604c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86ad3481fb1928968edca09fd70710bfdef1c04c4b58e1aa9e89fcd210525122"},"properties":{"commitSha":"b747f9d74a12d2119b6531476b2f88ab66be0ff8"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba3122c28ebd553784ee28b6d6f3448cf9b1904e665402c54b090528d572ba9b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef08d611598d46ef68d55d82c352deccfd495cd020dd203f5ff7ee068e66ad8d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"097f1eb7202aaddcf6e425f7e294575f537c43ce00831a3ef20bd3f3bb81d34e"},"taxa":[{"id":"CWE-538","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"82366bbc50e01ef190e95d2b2c1c95c764ec50e141f35d87c215280e85501fab"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ba5bef780ec66f245a072b937d9c8f755ce028a855cfc9dbc95d35fc43f2a758"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6b7e60d665f2b73071158c2fb474ad52349cb4957a50217d2c80ae05cb4ef006"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8ab6ddd644d8a442e390d458f0352f9689fcec2657b5039107e12ab2223d4f0b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"09a2c7119d0ef094a907cf3b7f76c24c0e0ee2f6be7801f054ccfec13677e928"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5dee051d58268d52afa4aef955e63466048a17c697a08c17a89610a5d7109837"},"taxa":[{"id":"CWE-1164","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"06648ad5752860bd49c7ae0255e48f91f9d9e4fe52a77c86bc46d92d02d83e99"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f77e9a64d217c1659ab079ca34bec1834d2dc3186b9aa0178be1bb6b64e0ea53"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"783e5bfd9e389d3a44276dec6aa1f67ce0f7ef81a63012c10fa01dcaa1e1f873"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"19cbf82b771a9c0b7823be2164bc48b8e58d9d1c5c534fc87244c40c2211061f"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5cbfc10263d9ce4ebaa3fe390bcb6c995f79bd3af1f5bdce084c16e56d711753"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2b9206aba13b01c926182fd126c524ef4e18dfc37c717859668c6cfb08d8c99d"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bcc5930ae7d3754b07e8d596e98edb5283d7cdcd03b241583d5487b09ad04353"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"70ef0214fd36a1388f9d7a3d055a83f57a8d4997b07c102190caa83e653b95d6"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"144c1c9d3bb7b10eca8ab6318d374ebeb7d844ca9a7013612454cc60f3e8db2d"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"938e3d39935dd6e36c03835d7383c271c28253ed7466a7e6212f322d57b83f06"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3726bb6d2ace4a48e7d1abc2ddc1e0684c221b5b516d89b102ff5824b0ef58df"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e34a28a0ebe70676df7f2f559d098e0def88aecd8af171ef005ab686b36f54f6"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9934fa5450fe743c4ce1ccd4e4045696be8cd3fd5139be0421c165b333b58327"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"def7c437dfff2d11068f802b9b1915e2d83e5634dbcb4c3c45e0782627dc4129"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1bf00b313b410c1f3c860280c7efc29bed6750e37be6d717e02b30480158ee7f"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a401e26e795c5165d3ea1cae08254587fc44b16fca0a8190357f871521c35629"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c75763785f7c3e95c10ff45da5d8384f9f579e995be2b9d5130c89d4fa1ffe23"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2ae96bb851ee4b43a0731976b7f018e25af59c3d97e75d1fed960822f1b6bfa8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"0523bd8418d43aefec3115073a14139560a7191389820a72aceb17fb58e0b1de"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"48b5311eda5c0a31c2d88d42829224f09c8203d85175bcd85e7aa690b8d04eae"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"09f1fe2b9382290dc4234dac9b7f3f3458cf74cc5293de45b7baf498400bc91b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1ada9f0a4e5d413caf9f35c7d954fc32c4b44de12592ba2aa01be10f1e1f6b7b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4f2a6bb5257a9e4bc987a33bec3726f76204b7512260b99ec067aa260e884915"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"254e159535de5a467ea5671a4a81fbc3bf399623b11dcd1fc4071f2230ac5cd0"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b57bd94a9054ab1a78280337953ab23bcb5d2500ea7f4b4abe8dc82a1ef1d633"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 90 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 90 of the 132 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/telemetry/watchdog/main.ts. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/watchdog/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7624bf4390c0a18546f971898488056744a2b10de0623e472ae96fba29ec4ba6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: McpResponse.ts \u2194 network.ts: \u0060src/McpResponse.ts\u0060 and \u0060src/tools/network.ts\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00603ad91159\u0060 fix(pagination): return all items when pageSize is omitted and pageId\u2026; \u00605b33debf\u0060 refactor: clean up McpContext getters (#2340); \u00604cb5a17b\u0060 refactor: remove page passing via context (#1061) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e78bf491bf369a23c316a3b3ba4f48383ca91c878d028101bd80baca1f3598"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: McpContext.ts \u2194 HeapSnapshotFormatter.ts: \u0060src/McpContext.ts\u0060 and \u0060src/formatters/HeapSnapshotFormatter.ts\u0060 change together 57% of the time (12 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060daebfd1f\u0060 feat: Add pagination to compare_heapsnapshots (#3140); \u0060190aeee8\u0060 feat: Add analyze_heapsnapshot_contexts MCP tool (#2791); \u00604103808e\u0060 feat: Report memory kept alive by contexts in get_heapsnapshot_summar\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d12d1b4901546cf668d52aa402056690d483a6717a87d872c85343d3219959d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: McpResponse.ts \u2194 snapshot.ts: \u0060src/McpResponse.ts\u0060 and \u0060src/tools/snapshot.ts\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00609628dabc\u0060 refactor: clean up more of the context getters (#1062); \u00604a835749\u0060 feat: fetch DOM node selected in the DevTools Elements panel (#486); \u0060b0ce08ae\u0060 feat: support saving snapshots to file (#463) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c11a00458cf2b461bf6368e485544199f6b8851fe8cd6fdcd57bbb6b6ccaf9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: generate-cli.ts \u2194 generate-docs.ts: \u0060scripts/generate-cli.ts\u0060 and \u0060scripts/generate-docs.ts\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006099847a71\u0060 refactor: create all tools and register per slim mode (#2874); \u006050685848\u0060 refactor: simplify our gen scritps (#2793); \u006061780c74\u0060 refactor: prepare for SDK v2 (#2771) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad10a6cff434df29de7faad5c4d5d7e6ff9a698d7c3455c6db479ab26ebd978"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Response (31 required operations): \u0060Response\u0060 declares 31 required operations: \u0060appendResponseLine\u0060, \u0060setHeapSnapshotAggregates\u0060, \u0060setHeapSnapshotStats\u0060, \u0060setHeapSnapshotNodes\u0060, \u0060setHeapSnapshotDuplicateStrings\u0060, \u0060setHeapSnapshotRetainingPaths\u0060, \u0060setHeapSnapshotDominators\u0060, \u0060setHeapSnapshotClassDiffs\u0060, \u0060setHeapSnapshotDetailedClassDiff\u0060, \u0060setHeapSnapshotObjectDetails\u0060, \u0060setHeapSnapshotContextAnalysis\u0060, \u0060setIncludePages\u0060, \u0060setIncludeNetworkRequests\u0060, \u0060setIncludeConsoleData\u0060, \u0060includeConsoleErrorsFrom\u0060, \u0060setIncludeCssStyles\u0060, \u0060includeSnapshot\u0060, \u0060attachImage\u0060, \u0060attachNetworkRequest\u0060, \u0060attachConsoleMessage\u0060, \u0060attachWebAuthnAuthenticator\u0060, \u0060attachDevToolsData\u0060, \u0060setTabId\u0060, \u0060attachTraceSummary\u0060, \u0060attachTraceInsight\u0060, \u0060setListExtensions\u0060, \u0060attachLighthouseResult\u0060, \u0060setListThirdPartyDeveloperTools\u0060, \u0060setListWebMcpTools\u0060, \u0060attachWaitForResult\u0060, \u0060setDevToolsComments\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/ToolDefinition.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a52daebaed6abdaa3c1af705fc17b1058b8720fb4f3b3e55b591082cfa3ed13"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060init\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/collectors/ServiceWorkerCollector.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f5be447214b62fe27091e45b4597e38c3054dd0693d00c6c039e49fdf9944b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060logServerStart\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/ClearcutLogger.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"00297379149b0cda6f2e9752422d64dc3697f3a33d077af94d8195a07c532a8b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060logServerError\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/ClearcutLogger.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ff308dd40468e6a0715c03fe1df24df306c87220a262278d134621ea821387"}},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 101 JavaScript/TypeScript production file(s) this check read across 1 module(s). Each was searched for its ecosystem\u0027s logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 8 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/conventional-commit.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060runSingleScenario\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_gemini.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92ef43d47f4c2e1adcb1e22acce7b75edab557b1b1a9aba76248763b455d76a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060runSingleScenario\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_gemini.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb804566126a033b4699859c1ebebf48ea720261fddf6ef3df36f069836ce3e9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060runSingleScenario\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_gemini.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"55af278f2ff327be2da596419dfe56b75587fc4cca45b356fcaaec9e7c588f6e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readdirSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eval_gemini.ts"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0dbadddce8210d65c99ed0c01e36badbfe0bb8f6f009b2948b0214d03d235f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdirSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d631f2f76fe3145e74c8a63fd5b10fa600830b1c088c69500a5c7e68ccb6ab65"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060main\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"95815037be282ad501c81b6c6372e9dd6d3032732d33af42e470c99910898d4e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060callback to waitFor\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d51abe737303d7942ac8b693aff39a504488203834b43d1ba682c3ba10790a2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060callback to waitFor\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1c53fa69e1f7d0de0c830290883a4548cb714a8b62f1c3fbdb4a8ee1b67074"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060startDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8363ef293a3a5a8f3dce9f94d2be6888395bbbb9e874f493d505d8f3c953541"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060startDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a360b28e13f2e2f1c6f74cf7f3dcd78fd55428d25068b24575f813104febc21e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.lstatSync\u0060 in \u0060startDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b22881c440af3a518fca2c4d16b78a655b4821c9c2a5a7efbe38b1eeea02cf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060startDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5512fc84fb248f99a1e2161e68140b11e922b3acdfcb598e64da8044987e3d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060stopDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"229723eed880f0b468e1996c2338a139f294bbdfebdc941fe2c7480bd6fbae25"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060stopDaemon\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"13926a0aace4193cd00d71f2e15664527c544f4d863899e594d9de5ec53c94b0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060handleResponse\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"18174282ce5a5e8e0d1251e3a0fd22de4993643335364131031a1b6b0646320d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060startSocketServer\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c00b369bdc8af13d32cf1b2b55a34e09e400c443850369cd7a0bd0c1de6ea24"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060cleanup\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1a6a32129db7a38d9cd1ced9e2c521905955f8423e1925b3dde32b8d8c31f6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060cleanup\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cf5d06d0df401b23bc3b1ad2b095a1276f4217fbbfa3c199388ece0897fd3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (71 matched lines \u00D7 2 locations): src/tools/memory.ts:423 \u00B7 src/tools/memory.ts:550 \u2014 the two spans are one implementation copied and then locally edited \u2014 344 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/memory.ts"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdf1a393ea609f1d2c19bc1a80928cec7cdad05a0ad8a39430b0db5904874f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): src/McpContext.ts:1101 \u00B7 src/tools/ToolDefinition.ts:400 \u2014 the two spans are one implementation copied and then locally edited \u2014 281 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a4328d36cf69efa80dab2c5b36dc3f05aed5dc1a4e5664bcd53458875e6e9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/McpResponse.ts:446 \u00B7 src/McpResponse.ts:496 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e35a16baa55c388a92d15271092f93c264ceed429f8d5dfb88203fb8861183"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): src/telemetry/transformation.ts:77 \u00B7 src/telemetry/transformation.ts:117 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"092483d2ea644b1f1a8949689b18f0b6f511521ded45b83040ddf496d1010f8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): scripts/eval_scenarios/network_override_local_file_test.ts:15 \u00B7 scripts/eval_scenarios/network_override_redirect_test.ts:15 \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":"scripts/eval_scenarios/network_override_local_file_test.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"659d0bd9d99983563d13c9a8ba8648dbb653d699f21a8cb714edf09058dd7847"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): scripts/eval_scenarios/css_cascade_layer_override_test.ts:43 \u00B7 scripts/eval_scenarios/css_descendant_specificity_test.ts:40 \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":"scripts/eval_scenarios/css_cascade_layer_override_test.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8909eaecc7602c2a7e55338ae872307c27d6769e30e5f6719639e75b9510910"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): scripts/eval_scenarios/css_custom_property_resolution_test.ts:38 \u00B7 scripts/eval_scenarios/css_inline_style_override_test.ts:32 \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":"scripts/eval_scenarios/css_custom_property_resolution_test.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9d91b935cf4c09d885ff6bea25245329fd3f7234ef23bfec68b9c038f9f285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/collectors/PageCollector.ts:150 \u00B7 src/collectors/PageCollector.ts:346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/collectors/PageCollector.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5555acb9f1fe66b93520e44ba6309e7de6389e752b9207537501fbe5e3d51f0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/tools/memory.ts:151 \u00B7 src/tools/memory.ts:199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/memory.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c28287fe45124597f55eac52d79ca791c5ab5c8e20f8fa42209114a942fa8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): scripts/eval_scenarios/input_parallel_test.ts:13 \u00B7 scripts/eval_scenarios/input_test.ts:13 \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":"scripts/eval_scenarios/input_parallel_test.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d50a62aafc8a73d5975c9c3068a7cf91a8be2cfdb255bbb380972c92905aae6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/McpResponse.ts:1193 \u00B7 src/McpResponse.ts:1216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"96729aa663892e6433fd24f9e9bb713d50dd9cdea789eb6239f497122690e976"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): src/tools/console.ts:48 \u00B7 src/tools/css.ts:17 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/console.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9f3273b2c30d24ced6e3ed0f3e84fc6171992b0491823ffc0796e82bc55d3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/eval_scenarios/lighthouse_a11y_test.ts:11 \u00B7 scripts/eval_scenarios/lighthouse_best_practices_test.ts:11 \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":"scripts/eval_scenarios/lighthouse_a11y_test.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e805fdba344433e7d2193611e0394fec0db4fc890f97a6535ac6d2c8795fca9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/devtools/DevtoolsUtils.ts:401 \u00B7 src/devtools/DevtoolsUtils.ts:438 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9f1f3e7a56cfd6abd0bab2ae81047dea65fce2e7a81e1d16cc8e1e3b9a8a1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/formatters/HeapSnapshotFormatter.ts:187 \u00B7 src/formatters/HeapSnapshotFormatter.ts:254 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/HeapSnapshotFormatter.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70a66db94f9fe4c1b5aa7d3cbc4ad72616ce028676f91c5f75109d413951eaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5 locations): scripts/eval_scenarios/css_cascade_layer_override_test.ts:41 \u00B7 scripts/eval_scenarios/css_custom_property_resolution_test.ts:36 \u00B7 scripts/eval_scenarios/css_descendant_specificity_test.ts:38 \u00B7 scripts/eval_scenarios/css_important_vs_specificity_test.ts:28 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 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":"scripts/eval_scenarios/css_cascade_layer_override_test.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a507fcd26de0d739cb19e5aad869d0ed849428c26c50973d7ff3ab2faf50980"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): scripts/update_metrics.ts:44 \u00B7 scripts/update_metrics.ts:75 \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":"scripts/update_metrics.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256e994d0495ef082244c70172d3ee2fdf447f15bca03a42d057fbfa5647e68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/tools/comments.ts:147 \u00B7 src/tools/comments.ts:218 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/comments.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee6d72c1c68e9be97966ecba5f571b3202d70e1ff1727efcc044ff2d2046ebc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6 locations): src/tools/memory.ts:234 \u00B7 src/tools/memory.ts:352 \u00B7 src/tools/memory.ts:408 \u00B7 src/tools/memory.ts:501 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, 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":"src/tools/memory.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aef3057cdc63a50f9424240b1777eee049bddc985fb9a04744caa9ce0f82939"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/tools/performance.ts:62 \u00B7 src/tools/performance.ts:169 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/performance.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"388822837045e2d2cefefceec1fa7641d4eab296e3fb765f3d1e18c7ad05892b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/profile/footprint_mcp.ts:570 \u00B7 scripts/profile/profile_mcp.ts:360 \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":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"9748a3ccf676ce246571666e0a335fc34c44b3b5c788cc59d3f3f2b0d644a226"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): scripts/profile/footprint_mcp.ts:281 \u00B7 scripts/profile/source_map_server.ts:152 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 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":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a043e9138a12c74d0fe9f2f6a73cfe9dfe000d3a8ca7f6b0d7be6727bc2d5be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/formatters/CssFormatter.ts:1037 \u00B7 src/formatters/CssFormatter.ts:1067 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"815628d83eb7273820eb6107845ac1c4a9bcaa30c5f56a20ce230a74d91375fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/tools/comments.ts:73 \u00B7 src/tools/comments.ts:143 \u00B7 src/tools/comments.ts:214 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/comments.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d310ab8e573f1cde11b34b4b76f4a2b8b3ba03dd7ee386df08174b4959b3b997"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): src/tools/input.ts:211 \u00B7 src/tools/input.ts:416 \u00B7 src/tools/input.ts:536 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/input.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fd7fe81c0974bb1bd1843e3159f9ba717a9331f43ceedd33fc89e10f282446"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): scripts/eval_scenarios/cookie_issues_audit_test.ts:11 \u00B7 scripts/eval_scenarios/frontend_snapshot_test.ts:14 \u00B7 scripts/eval_scenarios/input_test.ts:11 \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":"scripts/eval_scenarios/cookie_issues_audit_test.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed8ea103cd9852dc38495c7fed7b692fd95eb90d59c7b8d14cf8f57b0f3ea6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/eval_scenarios/emulation_userAgent_test.ts:11 \u00B7 scripts/eval_scenarios/emulation_viewport_test.ts:11 \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":"scripts/eval_scenarios/emulation_userAgent_test.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"43441038c85ba37ceae08ff9995a9f2b7a327fc5088a20fb1192b236b0dd40d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): scripts/eval_scenarios/frontend_snapshot_test.ts:16 \u00B7 scripts/eval_scenarios/input_parallel_test.ts:13 \u00B7 scripts/eval_scenarios/input_test.ts:13 \u2014 the 3 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. 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":"scripts/eval_scenarios/frontend_snapshot_test.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dcc01123b7a04ecf570d94387213d4571acd6e58883050afc19e8e49f5ae02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/devtools/McpHostBindingAdapter.ts:80 \u00B7 src/devtools/McpHostBindingAdapter.ts:114 \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":"src/devtools/McpHostBindingAdapter.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ab1f49f9c7d4c6fd7203baf7826455b647a9b3062f7398b75f79aedc9e205a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/processors/HeapSnapshotManager.ts:314 \u00B7 src/processors/HeapSnapshotManager.ts:356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/HeapSnapshotManager.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eb916b434bac55aac4d80f6924a410fddb702c74aa3e01f3b0b39148907294"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/tools/input.ts:412 \u00B7 src/tools/input.ts:532 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/input.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae37c6855cdbbdc654af06bd9b46658f64741bc5b4024aa5ec11c5d29ade8fc5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): scripts/eval_scenarios/cookie_issues_audit_test.ts:9 \u00B7 scripts/eval_scenarios/frontend_snapshot_test.ts:12 \u00B7 scripts/eval_scenarios/input_test.ts:9 \u00B7 scripts/eval_scenarios/snapshot_test.ts:9 \u2014 the 4 copies are spread across 4 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":"scripts/eval_scenarios/cookie_issues_audit_test.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"057fde2ca68b618d20e6cb19dbb7a3ab7f55eacc1e636298219ff99614f257ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/ToolHandler.ts:372 \u00B7 src/ToolHandler.ts:446 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dfad1305db32c7a29b5d6473d8ff8a939d92e0abc8912df5ab86629f8a9764"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/config/mcp-options.ts:175 \u00B7 src/config/tool-options.ts:58 \u00B7 src/config/tool-options.ts:75 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/mcp-options.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae3e07a58356940571740d542c8804ae3a58e28a845a3af83e46c4b5db98488"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/tools/thirdPartyDeveloper.ts:87 \u00B7 src/tools/webmcp.ts:44 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/thirdPartyDeveloper.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebe99dd24ed9bf864bbd31beb7001c1696cd3f5f9e4fe8296d85df24dfa32eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/BrowserManager.ts:493 \u00B7 src/BrowserManager.ts:548 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c17dd3398557a73d739a84d3b71f0a97243a16129e663161b3111b75a7ab5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/McpPage.ts:1231 \u00B7 src/McpPage.ts:1309 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cf4678bcd6c56b100e2ebe35fcbbe2f02edb6faeae0246c0c792a78aed049f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/devtools/DevtoolsUtils.ts:269 \u00B7 src/devtools/DevtoolsUtils.ts:337 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2788bc6f4cd53ede39f32fb31ca54eda2e450f63bcee0d048880cd5c5fd6651"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/devtools/DevtoolsUtils.ts:422 \u00B7 src/devtools/DevtoolsUtils.ts:458 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4d9adc18e8138ea25216d8eeec9728e5e639d638f0879dedfa62e78e5c1a3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/generate-cli.ts:154 \u00B7 scripts/generate-docs.ts:259 \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":"scripts/generate-cli.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d609588783d087930ab609b80ba0586d625ef0220dd17286f9ada5b5a1db658"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/TextSnapshot.ts:97 \u00B7 src/TextSnapshot.ts:223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/TextSnapshot.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04a1c0a0f6ffae183283621147da2d30a2bfc680c39003e4ef3c0bd65d57f19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): src/processors/HeapSnapshotManager.ts:297 \u00B7 src/processors/HeapSnapshotManager.ts:311 \u00B7 src/processors/HeapSnapshotManager.ts:353 \u00B7 src/processors/HeapSnapshotManager.ts:531 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/HeapSnapshotManager.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ea408f0675c0e6d9b67e72f334c4585f7c9cf56973d325fdcfd317f5f274ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/daemon/client.ts:175 \u00B7 src/daemon/daemon.ts:234 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"619c0c1a4d5222d8282bda618197e863bf91a8b87b43ce47139ca466c4ae50ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/formatters/CssFormatter.ts:944 \u00B7 src/formatters/CssFormatter.ts:1080 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"d411756dd297e1d4d0c8919cb7a55f1fb0a3f6265e5e3d3a7d1356fadb89061c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/processors/HeapSnapshotManager.ts:242 \u00B7 src/processors/HeapSnapshotManager.ts:258 \u00B7 src/processors/HeapSnapshotManager.ts:324 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/HeapSnapshotManager.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"02df2a332971ef117c7842535b02b77fe91764f1630ada4dbc2697c661c8b637"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/utils/logger.ts:134 \u00B7 src/utils/logger.ts:153 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/logger.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0381640544852c5258899e222403dc87a044284b19d86d7cd17b85f033a17600"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/eval_scenarios/page_id_routing_concurrent_form_test.ts:27 \u00B7 scripts/eval_scenarios/page_id_routing_cross_page_state_test.ts:24 \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":"scripts/eval_scenarios/page_id_routing_concurrent_form_test.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fd15d73d7cd8f06d0dc490a63a67e1605974bf54c087aa007db402af76fad4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/profile/footprint_mcp.ts:503 \u00B7 scripts/profile/profile_mcp.ts:289 \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":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29fec9c1498da9df9268e91589fb4e834efb04dfbf67e7605e4b2652c40a5ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/processors/HeapSnapshotManager.ts:339 \u00B7 src/processors/HeapSnapshotManager.ts:371 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/HeapSnapshotManager.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbc34f6505fce7355c78a542cfc95d380c80462c6430edbda3dbea8d23d91fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function format (cyclomatic 142, cognitive 308): format has cyclomatic complexity 142 and cognitive complexity 308; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"577eea5f790d6b054cc8a981e7391a189f33f847893d5efae57211a60023f5cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTraceEventsFromBuffer (cyclomatic 29, cognitive 56): parseTraceEventsFromBuffer has cyclomatic complexity 29 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da3545389257f5acf2675a07a961926073a7b9bd4124e0fcacec080759465b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function emulate (cyclomatic 27, cognitive 41): emulate has cyclomatic complexity 27 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d7245c786f58c74b40cfb5583c5f9f64eebe7ea2207663c8cba12d2c7ff049"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 26, cognitive 27): handler has cyclomatic complexity 26 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 is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screenshot.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0e5831a670e67c666dcab196b614bd658f5558e9da752c62d74a11f8508371"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #launch (cyclomatic 25, cognitive 33): #launch has cyclomatic complexity 25 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b731abd5ac7b40c46230111aebcf7fa6a34c393b1dd6ce3743a754414715fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handle (cyclomatic 25, cognitive 29): handle has cyclomatic complexity 25 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"04591842e80daf134ccb9898f1cff60ea2cdc440e6e66b82a7f7a90a6e2da4e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateReference (cyclomatic 24, cognitive 62): generateReference has cyclomatic complexity 24 and cognitive complexity 62; 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":"scripts/generate-docs.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"801b57d0a122c2d4ea1b6bb823793683f7857162516db474efdf45c838ac427e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseEventsArray (cyclomatic 24, cognitive 48): parseEventsArray has cyclomatic complexity 24 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":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfce588893b1322121cf36ca4324d31dd29afbcc4a06b3cc0175d509ed995ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function skipValue (cyclomatic 23, cognitive 30): skipValue has cyclomatic complexity 23 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c5fc221b0ef661395cf25aeb0b340dc3e9ac3d8f7478292686da993edee3b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyDefaults (cyclomatic 22, cognitive 22): applyDefaults has cyclomatic complexity 22 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/ServerConfig.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f91912fdb54d44f0c0f2df68ae034ab43db993995665bf2c44a3ee7c471331"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shieldLiteralArgs (cyclomatic 21, cognitive 40): shieldLiteralArgs has cyclomatic complexity 21 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/cli-commands.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"034e64947eb0c6048278fe50a624078bbaef5900877f8f5c1d248f889d31d00e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 21, cognitive 22): main has cyclomatic complexity 21 and cognitive complexity 22; 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":"scripts/profile/profile_mcp.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62e6601f6a65b2f691dd0f085ee60342af3fa8387d4447615d55b4c8c11a14d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatAncestorRuleHeader (cyclomatic 19, cognitive 19): formatAncestorRuleHeader has cyclomatic complexity 19 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"85967b022c473a5aaa4b1733b8e080b394707608df29be56cffa514ff04053b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 19, cognitive 19): handler has cyclomatic complexity 19 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/script.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc22b6d718cccef7ef1420d0960ccbdf2b9604844f74fb58d35549a40d78901"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeThirdPartyDeveloperTool (cyclomatic 18, cognitive 26): executeThirdPartyDeveloperTool has cyclomatic complexity 18 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"359f3286cc2a7dc862e8652ab4d9ce19ec06ecbe1d2078af4f29659a1319c901"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #getAttributes (cyclomatic 18, cognitive 19): #getAttributes has cyclomatic complexity 18 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/SnapshotFormatter.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"899df230072cae45f4f76a6d96b1eaa2bf06e9b0d3c1d11b61b41b8fb5805f7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #loadDetailedData (cyclomatic 17, cognitive 42): #loadDetailedData has cyclomatic complexity 17 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41b49f5be1927150ae79a37d440155c84ebf8a8b19f7c126815ab1f28dd6f24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #connect (cyclomatic 17, cognitive 29): #connect has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"858d394675c7f5fef6974fcba1126dc2be24709fe1f85ccd63b896465d16d260"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replaceHtmlElementsWithUids (cyclomatic 17, cognitive 25): replaceHtmlElementsWithUids has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ffa34a73903d32016a29cc1cf32994d0b6883d17a6a0c99e0a14b20d5ed261"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createPagesSnapshot (cyclomatic 17, cognitive 24): createPagesSnapshot has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6a58349f787a9e046af61939d2dd28eb22876ea5ebea2a997b99ff570f3355"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #getAffectedResources (cyclomatic 17, cognitive 23): #getAffectedResources has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/IssueFormatter.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62c0b0bce5cee85f3d8e092f5b42edbbb7c9b438e4000736667f398a50a74d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 22): (anonymous) has cyclomatic complexity 17 and cognitive complexity 22; 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":"tests/TextSnapshot.test.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dff2a4a23abb81ba98e5c7a572f153b6a244ac35148f36745ec38cfe2e6897"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #handleRequest (cyclomatic 17, cognitive 20): #handleRequest has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/NetworkOverrideManager.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb9efede1e23ea79a668ddcd352dafdc782246fdf2a7d4a65b48965313b9c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uidsFromSnapshotResult (cyclomatic 16, cognitive 33): uidsFromSnapshotResult has cyclomatic complexity 16 and cognitive complexity 33; 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":"scripts/profile/utils.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7ce0d12592cc7b09a2585d180ce76843a1f70eb1c6f59600c09689f3a71179"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getEnumValues (cyclomatic 16, cognitive 17): getEnumValues has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20b8d6641fa7b54eb73386af1a8c47ae8c27b1e824f2d2e7fdf9fe6467df644"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function withBrowser (cyclomatic 16, cognitive 17): withBrowser has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/utils.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"597ef5671085fbdbe1acf8b87fa9c86a321dff6887fd1090835f16ca743a6f6e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleResponse (cyclomatic 15, cognitive 25): handleResponse has cyclomatic complexity 15 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d4a1fc53d1a801a81cfa270eacaaf564d6b5015d32c1ab6c0dc37bf5adde91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validatePath (cyclomatic 15, cognitive 23): validatePath has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ccaba373fd2674b50284fdea57863b007f915e2e7f8241fa88bb25ce4b3e97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 15, cognitive 19): handler has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/comments.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69d616565e6a338e2fee24c8a0f497cb33170b561f6feb50347f3717fe5f9cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatObjectPreview (cyclomatic 15, cognitive 16): formatObjectPreview has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/RemoteObjectFormatter.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"553b830dd975859f509b788e4d84b876160078e77943290ef559e8c424ace338"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getZodType (cyclomatic 15, cognitive 14): getZodType has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48438cc4a7ff0382a4a7e8886f4be97cc6c7675ecc1bf2ba0c2c46a2653c90c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMockCSSMatchedStyles (cyclomatic 15, cognitive 14): createMockCSSMatchedStyles has cyclomatic complexity 15 and cognitive complexity 14; 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":"tests/mocks.ts"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4c5e0a58a7cc118d19dbd9e7036cf7859f90696cc08d10c1aa87581f87335b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectAncestorRules (cyclomatic 15, cognitive 11): collectAncestorRules has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9b4887a1da421acef3bb2e6902e8ae0a252bf08655fee574efd75bab5c0084"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectedPageIdFromToolResult (cyclomatic 14, cognitive 24): selectedPageIdFromToolResult has cyclomatic complexity 14 and cognitive complexity 24; 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":"scripts/profile/utils.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc025874dcd1a01ae3e4c8c82b6ff35de4e014e788e1680ed6435788643cc575"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c15957814b59fa562660a179de2c1954923dae1beecf26db4ce83ebdb4562c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isAllowedUrl (cyclomatic 14, cognitive 13): isAllowedUrl has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/url.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2125ef99d439a29145e1ecdafef3d9f3e1fbe0dfc5cb61137109631c16316231"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #isPageTarget (cyclomatic 14, cognitive 12): #isPageTarget has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"16884dd938f74e774d6d017ba906894140062865d43d0da4f7d24355f30ef2a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #resolveWebAuthnOptions (cyclomatic 14, cognitive 9): #resolveWebAuthnOptions has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1820a6934b0a464b448baa11a94be896a4292abeaa5967d60f24419eed81b5d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCanonicalPath (cyclomatic 13, cognitive 27): resolveCanonicalPath has cyclomatic complexity 13 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 is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/files.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f50c5689059bb6c131be615260febb2081d4299b412ca12ca483b4e8286cfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #collectKeyframes (cyclomatic 13, cognitive 21): #collectKeyframes has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fe509394fc990dc40773296950818fa2261e84263e3ecfbb4c5b2e8fcd200a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 13, cognitive 20): handler has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screencast.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d7250a4dd41045833f0a0adaa14f614e94620dc50fd4a832eaf5b5823aae83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 16): (anonymous) has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/ToolHandler.test.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c16a3e677f4b77eaa90636e4e41d0db8f24adebe65437a6bb6a3cd8fb5363a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #fromDetails (cyclomatic 13, cognitive 15): #fromDetails has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e768e67a7f9de058fa5e089a827a95ec3bf5d6bd30e719343ec9848f4500a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveContainerQueries (cyclomatic 13, cognitive 15): resolveContainerQueries has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e32444bcf12e37bfe88304b4669322bee95af11c5f1f692c894b2e4f735dc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 13, cognitive 14): main has cyclomatic complexity 13 and cognitive complexity 14; 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":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb37276daa6b83b0ae68d9b6c83822ce3d8aaf8b74b1e66ad6bb7a51d7677971"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function respondWith (cyclomatic 13, cognitive 13): respondWith has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"794c21bdc1501e8eddcc8a4f7343996a477fca3c621d51fc97024cbad3684787"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getMatchedStylesForUid (cyclomatic 13, cognitive 13): getMatchedStylesForUid has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"116aefaf65c7f852e42abe21bea7ef80ac114f980a433f05603430a6ac9fe258"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setClientName (cyclomatic 13, cognitive 13): setClientName has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/ClearcutLogger.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a939c84d58d5648b614d416da8b46dd753360debec6dd23d435635effa6591b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkForUpdates (cyclomatic 13, cognitive 13): checkForUpdates has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/check-for-updates.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbd63b33ea7bb1e608780f717a21fa603be963c004c0df50f0d041ad20a0463"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #createOverride (cyclomatic 13, cognitive 11): #createOverride has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/NetworkOverrideManager.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa27cff759269eb3947a11f5ab2ae24d88247d2ad3a8759655981978c5942e1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CallExpression (cyclomatic 12, cognitive 21): CallExpression has cyclomatic complexity 12 and cognitive complexity 21; 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":"scripts/eslint_rules/require-parsed-arguments-rule.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aa65384b5c10d1a0bdfa9964c72dad1134db79cc7536b029adb909c3d0d447"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #collectAtRules (cyclomatic 12, cognitive 20): #collectAtRules has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8ba61eed2720fc9e1681a985ba089f69f588397211ad4e51f6fa7d1f027540"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateCli (cyclomatic 12, cognitive 19): generateCli has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"scripts/generate-cli.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"127232cb3a843ceec59aad468b79d41fed9474e17d985ea41847bd6f34112823"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatObjectItems (cyclomatic 12, cognitive 19): formatObjectItems has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/RemoteObjectFormatter.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"49adfa5a531a0434445996a4372986c39bf3a7b21cc2f2fad51f8be6763e1f79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 12, cognitive 18): main has cyclomatic complexity 12 and cognitive complexity 18; 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":"scripts/eval_gemini.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e024bd593228b3bd26a80d84d03caab6f16570e6da3ef9e15ca6a80ca4b91a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #collectNodeStyles (cyclomatic 12, cognitive 18): #collectNodeStyles has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"422bcebba3fbf5aca65f9bbfd9e182141cd3f16596ba7e3bc195e00234751842"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 12, cognitive 17): handler has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/performance.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0eeb8692fb9cf18da329b192f970214f31850f17ccd335ee5ae2b86bb1790b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getToolsWithFilteredCategories (cyclomatic 12, cognitive 17): getToolsWithFilteredCategories has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"tests/McpServer.test.ts"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39b367449a30d8870775f7e79b6ff6942c8f5eec35350b598e950ad76078d47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateConfigOptionsMarkdown (cyclomatic 12, cognitive 16): generateConfigOptionsMarkdown has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"scripts/generate-docs.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"536462db7b9f47b1e4521ff50686a40c319dd57a181972fb1d00680d4efaa11d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getSourceBox (cyclomatic 12, cognitive 14): getSourceBox has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screenshot.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8a043a36bf0ec61690971f9c4111771cd9bb2274fc3a1fcfb282e9bfdeda9a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function from (cyclomatic 12, cognitive 12): from has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/ConsoleFormatter.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1a15d73e5adc4255ff86fd4df56a7471a47c9e670db74767935495df9eb810"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isLocalhost (cyclomatic 12, cognitive 11): isLocalhost has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/url.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8116d06c5a9dafe6f893eefe457edad7178b12909f4cf0b0087474d27c6a61ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMockHeapSnapshotNode (cyclomatic 12, cognitive 11): createMockHeapSnapshotNode has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/mocks.ts"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8999c406b6c5d41ebdd25983be582bd0fae9f482aac6d3b5c0f05a0d4332ae5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serializeArgs (cyclomatic 11, cognitive 21): serializeArgs has cyclomatic complexity 11 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/utils.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04cf20a4c99e1443e0eeb65e2cbc5e275b6a40eacf945a99d610c4284c120ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toString (cyclomatic 11, cognitive 19): toString has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkOverridesFormatter.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a8e259eeb76a115ac6248a22752a5b8b6a6dea27d8e86d8098d53da83fdbdd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #extractedAttributes (cyclomatic 11, cognitive 18): #extractedAttributes has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/SnapshotFormatter.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"38639a5b8ac7925e2705692d9203c178286b425ad058c22322cb6ab7f419effb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setLogpoints (cyclomatic 11, cognitive 14): setLogpoints has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/LogpointManager.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7181aea7cf7350da66072b13c7ee1c3c52123dfe57ebd97b05323281b84ba8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #findUISourceCode (cyclomatic 11, cognitive 13): #findUISourceCode has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/LogpointManager.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0047981ee1cedc4673e5f5b7a5b61174e9b0e9d31cc1eb128acf3ae33cf61b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/ToolHandler.test.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc70b09c7a0a4ed5b13a1284e20864e3fce4692210e352ac6cf0fd7798645ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function convertNetworkRequestDetailedToStringDetailed (cyclomatic 11, cognitive 12): convertNetworkRequestDetailedToStringDetailed has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2527de8400c708c0bfcb4fd0a1b1fd6cf295b9b404800ad8e1b5f7dbe47bd376"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function computeFlagUsage (cyclomatic 11, cognitive 12): computeFlagUsage has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/flagUtils.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f309e1b4d19353aea3fb98501948ae5d0ad69fe9f9557a59cb05d69f65c1a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 11, cognitive 12): handler has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f5db52a578ae5e1a2a908fbec59eabd385dd4b108d261f76db4177388b63ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runSingleScenario (cyclomatic 11, cognitive 11): runSingleScenario has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"scripts/eval_gemini.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd97a65c2961359f9cf8e836291bfa55574d83213485937d00ea7a4e35f4144"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #handleMessage (cyclomatic 11, cognitive 11): #handleMessage has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"scripts/profile/inspector.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b7fc788e28dd8a4114b279ed5ae70b0e4e69e885c52c86d2531de7d95eebf5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function #lookupCause (cyclomatic 11, cognitive 11): #lookupCause has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcb07fc2ffe600d7708a977dde144dba6f3b3c5e5725515fd5bac6d5b09e06f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getSourceLocation (cyclomatic 11, cognitive 11): getSourceLocation has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa02f15e264733dfb00e6bda66dc9f80d48c196a9e1a2de4f8cb87ac9641e2ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRawTraceBuffer (cyclomatic 11, cognitive 11): parseRawTraceBuffer has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/PerformanceTrace.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"194b72f07b03f108a744210370e26948b755018a4d5913bb06b0176daedc037a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseByteSizeRange (cyclomatic 11, cognitive 10): parseByteSizeRange has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/bytes.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c559be37cc909e3f77684c099ff8f5b649625d8bdc91ea74ff19f9433ac257bd"}},{"ruleId":"R3","level":"warning","message":{"text":"src/McpResponse.ts: 1873 lines of code: src/McpResponse.ts has 1873 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc632eba23066a8e21a208c6ccd64624a96871bb2a1919c58383c12bd2d3e37f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/McpPage.ts: 1568 lines of code: src/McpPage.ts has 1568 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5174650d6f66b43ab64f537fce2a6590de957e50b2c4ab1cd1e3d48df185ce8a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/formatters/CssFormatter.ts: 1180 lines of code: src/formatters/CssFormatter.ts has 1180 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34542c726ee4220cf3b4c5869adebcdcda6afad2d3c0a9ddda6337c557c43ef6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/McpContext.ts: 1161 lines of code: src/McpContext.ts has 1161 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"def4ae2c6eff4f3dc3703daef53accd0b8bad48907eced985beadf1150be2b20"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tools/ToolDefinition.ts: 826 lines of code: src/tools/ToolDefinition.ts has 826 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/ToolDefinition.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6a2b357ac4aa0140f0a405660789b29086a00e0d5aff8dd3d5510bd590f668"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tools/memory.ts: 650 lines of code: src/tools/memory.ts has 650 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1770c40690c5919b39ad4226412ac92f26609d90390ad2e06aebdc6e2da73bd3"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tools/input.ts: 627 lines of code: src/tools/input.ts has 627 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/input.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c6a2f8d301b59dce4ad2264cec3bbebbdc372a978d5924db5a30d972291521"}},{"ruleId":"R3","level":"warning","message":{"text":"src/ToolHandler.ts: 572 lines of code: src/ToolHandler.ts has 572 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97f4cf49097fe99e84955aba0a775f3930699331e2dad5711e2772b3601cb98"}},{"ruleId":"R3","level":"warning","message":{"text":"src/BrowserManager.ts: 557 lines of code: src/BrowserManager.ts has 557 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf30e84eb395c3bbe559409f2d0db1c02a0fa4b92119d177a31f21d55cd66c7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/devtools/DevtoolsUtils.ts: 555 lines of code: src/devtools/DevtoolsUtils.ts has 555 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b087aa646cf42eedd3da13dfef070b209850f79b95344038e9ac60256add9d"}},{"ruleId":"R3","level":"warning","message":{"text":"scripts/profile/footprint_mcp.ts: 538 lines of code: scripts/profile/footprint_mcp.ts has 538 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bcd42f57cb161fc72cf13302671abf7747398bd191711576f835c4db406d71"}},{"ruleId":"R3","level":"warning","message":{"text":"src/processors/HeapSnapshotManager.ts: 511 lines of code: src/processors/HeapSnapshotManager.ts has 511 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/HeapSnapshotManager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da53de0f153e4fa20fac36b9baac630f45c60465c4a851678e5c7e81f852218b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/NetworkOverrideManager.ts: 502 lines of code: src/NetworkOverrideManager.ts has 502 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/NetworkOverrideManager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23629362fdf30f010a47cdfe94d54c52ff6b3047888cc35429f61c21bb75dfe"}},{"ruleId":"R3","level":"warning","message":{"text":"src/formatters/ConsoleFormatter.ts: 457 lines of code: src/formatters/ConsoleFormatter.ts has 457 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/ConsoleFormatter.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e278eab82be394ae3fc2a3ae28273a2468b370c44d9e68066a040cf479c8fa2"}},{"ruleId":"R3","level":"warning","message":{"text":"src/config/mcp-options.ts: 456 lines of code: src/config/mcp-options.ts has 456 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/mcp-options.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd1c76745aec38c728f9e7c46387a15ffbee3e61c4d71875378424ac17a6066"}},{"ruleId":"R3","level":"warning","message":{"text":"src/tools/pages.ts: 446 lines of code: src/tools/pages.ts has 446 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61752a288f607d66e326b933b1f64528a7273f4ed687cbdfd8355cb9f4a14739"}},{"ruleId":"R3","level":"warning","message":{"text":"src/index.ts: 428 lines of code: src/index.ts has 428 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8e424f1b2dae5a27256cb4b318d38b13953a430125b6a172243fa64949af18"}},{"ruleId":"R3","level":"warning","message":{"text":"src/processors/ChunkedTraceParser.ts: 427 lines of code: src/processors/ChunkedTraceParser.ts has 427 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/processors/ChunkedTraceParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2158b07dacc2e93e0e2e58ff11bb43423da22a31ceab3be8d1f663e9217b56"}},{"ruleId":"R3","level":"warning","message":{"text":"src/collectors/PageCollector.ts: 412 lines of code: src/collectors/PageCollector.ts has 412 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/collectors/PageCollector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af096d2c2de578d496a6b885ef8d0024d4e3890d1ec4c296d0208e109dd6e5e"}},{"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":"src/daemon/daemon.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"564502906107ede7b61406c315744b1dae4e6eb8571d3969514fa8bf089f96b5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027NO_CONFIG_DISCOVERY_ENV\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/ConfigLocator.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18a3aa49039ca8172bef59b8acf522715f9eb77fc2b7267ba82fcefeb57ddc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CommentThread\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"375fc2b5d01f3c4f985543b5154a87f7e1827dca86c694c6b452851d5f87bf37"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027RevealTarget\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/types.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a781a065cb94817fd5df9ce6c407ff5e2d8ec16d424ddd542e242c7570e0a5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027logDisclaimers\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/disclaimers.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"722f49bddfe6371e81dec170881ab84d5a0ed73f3a8875453a43fe22a8d299cc"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027puppeteer-core\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpResponse.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f65a6da53cc9600bd1dffdbf6499e2a30e0d7acf2d271834937b142cb130c0"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@modelcontextprotocol/server\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aa1aaf2cf438a7498866f4b16317428f4a7c3a9c2caeff661243e906252740bc"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027semver\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"027169ae2d2263df71cb26aa72d46de45bf9c67f1ad09d37e7bc0af79d8c3f5a"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027zod\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"961627e1e040ff88b823ea282e1b0f737e31c7c4f2a811202c81b5c4ad355d9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!option || !(\u0027default\u0027 in option) || option.default !== true\u0060 appears character-identically in 2 files \u2014 scripts/generate-cli.ts, scripts/generate-docs.ts. 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":"scripts/generate-cli.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"12641337da41473900545d67d7ebc2dbf3d39df58c80f63824646c6b7978a06f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context.sourceCode || context.getSourceCode()\u0060 appears character-identically in 2 files \u2014 scripts/eslint_rules/enforce-using-rule.js, scripts/eslint_rules/require-parsed-arguments-rule.js. 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":"scripts/eslint_rules/enforce-using-rule.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5c1fea6b2f6f6ed88575a0398b997f1ed566052fc40c5702ce84d0c4b936c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof parsed !== \u0027object\u0027 || parsed === null || Array.isArray(parsed)\u0060 appears character-identically in 2 files \u2014 src/config/browser-options.ts, src/tools/emulation.ts. 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":"src/config/browser-options.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"960335491d563e42aa34888c11bd53725d89ac111d891a7f7b6c46b74f2467cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027object\u0027 \u0026\u0026 value !== null\u0060 appears character-identically in 3 files \u2014 scripts/generate-third-party-notices.ts, scripts/profile/utils.ts, src/tools/lighthouse.ts. 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":"scripts/generate-third-party-notices.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b8e5ec05f0a5680e16a3930f1e92f581ef640c55999fc49d4fceabbdd9db09"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060getZodType\u0060 is exported and takes \u0060zodType: unknown\u0060 from its caller, and it calls itself at line 92 (\u0060getZodType\u0060) with a piece of \u0060zodType\u0060 (and at line 95) \u2014 and nowhere in \u0060getZodType\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060getZodType\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9825173b0a667b5ad2b40dfbc171cb53c5ed3dc416c8cdcf364cd766d3233ad1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060getEnumValues\u0060 is exported and takes \u0060zodType: unknown\u0060 from its caller, and it calls itself at line 132 (\u0060getEnumValues\u0060) with a piece of \u0060zodType\u0060 (and at line 135) \u2014 and nowhere in \u0060getEnumValues\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060getEnumValues\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/transformation.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"491bc3e4903c633f9687685789e8e4023ad06ba174ea24a8f81ee662b8cec65c"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 1/2 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchWithValidatedRedirects: \u0060fetchWithValidatedRedirects\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/network.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1b57841386b6173ec0eeee46baed9ebf39da53db3d112f53c338f7e728c746"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10a1ef8899d38b35d4471ac7b0c6641229a34e137f499f47a1a9ea97d2b22fa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/BrowserManager.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db9d225d16cdade09b308fc25aa845d91d26181af4b5cc42e7c492f4faf8bdc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpContext.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd94826cd0290a26faaf1fab805ad318b920fca6397c9077aaa18d246ce26ff4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/McpPage.ts"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62454c6fe823b2fb195728038276508f836f9a703326a3c0f54d1559019fc30"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ToolHandler.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"750eb7dfba6af89b505a4aecd8c278c2b8a21b213e588530dfd3a9705072c647"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/WaitForHelper.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9edc7499c93dfabadb54a9a00a3b32a63134e3d5fffb38b2df01a75a4696c40"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/check-for-updates.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"18507af2a4ad9dea941250bb4ae9286a29ad255f6cae06972094989a857789ab"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/check-for-updates.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59f3b1448d336671f470a65e480e254f9743b9d336ef4830ee5c59f5751e97e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils/check-for-updates.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a09198b5e2fac169b9050d38c82c1d5472c5dc4e2bf1a450056b27c44b5af9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"897344499fbef39e4860a9d2b7a30ae661eb45cb8f2ad0606103c32453b91bf7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e12e9567ab20d935ec78ac9386c072975e7efe4532b41e774fbacfb1023ed2d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/pages.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8db19ba84c9f7cd0b881619f71cffeea03f3f8add0c24b5e7bbf579c09bab7b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/performance.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"494b01d030968a5b07ab8f8449137b829509d0d9191d542da78c934a22b4a513"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/tools/screencast.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"979eb76741064df6202a02a7db2eb3c338bdec022fa7119884ed39af36722727"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/ConsoleFormatter.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8265d19cf6cf1b010527b9f675174bb8c18db8ebd359dcdd37b834521d0ef1ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/CssFormatter.ts"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"40502a437d7259b519e77deef29aa36cc3e8a28aee7f06aaedd13201bfa1d633"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d23858e1266d74bd391aaaeb32b741b77f070260bf8a5091d90a1cb9b607e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/formatters/NetworkFormatter.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7068aea9ddf8adc23c93bde404c04217ee61f0f8c92c7618e0fa5b2854d3cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e441b885bb6784f53765c0982df8415d0d3ff3ca506f1eea012a33bac84736"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/devtools/DevtoolsUtils.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a320a5fda07c48cdf23198fcd74b329e6cc6eb993d8460973249a4d191dcd7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef1f95bd12060ea0ecac10e7b502f1e6c3948eca32e1baed9ece138bf8f9d1b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"634cbcdc094f2e6a9c51d42c6be5e7bc86a47b84c17294b6f7dae7efdc225bfc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aa0dacbf3ed12290ccabcf06d0dc358a64442b1c61fc1c26a2f6eeaa9e1749"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf7bf6be7b10afecc6576ea3f44cba8a07507a2186580232f89be0a64c74cde"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a43818ab8e2a1bb1547fd2208b1d97d1f95b9387253973d05b97e5c4e8e638"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"564d9b5fcad8ea05a788c4446a2bd44d844c257eba16918be6962bb084241e05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/daemon.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec53ebd27c4dc130fb27d7cd14e4976409d7e9a0e93add71597b51e1ff6e33f"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 1/2 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverBundledPackages\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/eslint_rules/no-direct-third-party-imports-rule.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7b537414cac76011a39b525808a816cdda33982c7687d4c210494ca718b4c0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLinuxSmaps\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile/footprint_mcp.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f2560d638f2dcc3e0dc9fd0e0218731df250473b8dcdb153895551a80dc0cb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadState\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/telemetry/persistence.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ed50ea80ceec6af29a389f474deb1bcebb9f740628cc720b81c5876eee942f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060waitForFile\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemon/client.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"327f9a61231597f1503edce92b6fcde0aba063d911bb8eb2c3a05d7d1c2e2a50"}}],"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-1164","guid":"793ece19-b164-f952-a8b3-33dc3b591809","name":"CWE-1164","shortDescription":{"text":"CWE-1164"},"helpUri":"https://cwe.mitre.org/data/definitions/1164.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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-538","guid":"3baa1f05-df1b-ae58-9ee0-1d790ff4a989","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory","shortDescription":{"text":"Insertion of Sensitive Information into Externally-Accessible File or Directory"},"helpUri":"https://cwe.mitre.org/data/definitions/538.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":41,"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."]}]}