{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"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":"FunctionNode.getType (cyclomatic 98): FunctionNode.getType has cyclomatic complexity 98 (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/backend/function-node.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64f1f1938e7dbf3148f2d339d4489037110857909087f572ec21cec79cdd788"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astMemberExpression (cyclomatic 94): WebGLFunctionNode.astMemberExpression has cyclomatic complexity 94 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7651485680320f6aebd375c14d3d9af962bcb5074471394fb975dea34197d0"}},{"ruleId":"D1","level":"warning","message":{"text":"GLKernel.pickRenderStrategy (cyclomatic 77): GLKernel.pickRenderStrategy has cyclomatic complexity 77 (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/backend/gl/kernel.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"49838777e5aec7a2f528c44c68adfa24eb359b4f069d20aac72d3b6194c02bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astCallExpression (cyclomatic 66): WebGLFunctionNode.astCallExpression has cyclomatic complexity 66 (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/backend/web-gl/function-node.js"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa4d8597e56d568fdcab7797f8ae2d7f49399c818433d09b15bcca8ab4f3f2f"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astCallExpression (cyclomatic 62): WGSLFunctionNode.astCallExpression has cyclomatic complexity 62 (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/backend/web-gpu/function-node.js"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"347c5eb6ed112e5665fc697e8bd1bb410a792abd6b8787c109f198864e85c569"}},{"ruleId":"D1","level":"warning","message":{"text":"CPUFunctionNode.astMemberExpression (cyclomatic 53): CPUFunctionNode.astMemberExpression has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/function-node.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d551abf78ff0a896b1b4ae72751b81b368bbfc809242a7cb918d5cb44b177b"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astMemberExpression (cyclomatic 53): WGSLFunctionNode.astMemberExpression has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"020fe9eed02c232d1f06b1e8098ceb5eb9d3296345f845b0fa3e0a85f1d3ecde"}},{"ruleId":"D1","level":"warning","message":{"text":"kernel-string.glKernelString (cyclomatic 52): kernel-string.glKernelString has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 13 of the 52 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 130, 49, 69, \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/backend/gl/kernel-string.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"deef0ca6bcba6984d48630f77bf2559e0340f741a78d2398405f49ad58bac8af"}},{"ruleId":"D1","level":"warning","message":{"text":"flattenFunctionToString::flatten (cyclomatic 51): flattenFunctionToString::flatten has cyclomatic complexity 51 (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/utils.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfed6fb46f94671b8cda3bf9bf4473b5b52ead4c44b279924b4392b52d1d799"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astBinaryExpression (cyclomatic 50): WebGLFunctionNode.astBinaryExpression has cyclomatic complexity 50 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdccb0e14dc3ec2c08b376634acb7f848b5e14a675cc0247a998f0201b3d78a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyPipelineExecutor._compile (cyclomatic 50): WebAssemblyPipelineExecutor._compile has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2739e66a262d3ff89c5d1fbd0d581adfe8bc02982d33d6396d3671b80a4e861a"}},{"ruleId":"D1","level":"warning","message":{"text":"GLKernel.nativeFunctionArguments (cyclomatic 49): GLKernel.nativeFunctionArguments has cyclomatic complexity 49 (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/backend/gl/kernel.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b715ee634d23e18cdee545aa66ba97a7b18b28d2a0a417328846aa06ad762a30"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionTracer.scan (cyclomatic 48): FunctionTracer.scan has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-tracer.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"da67b0cf52cd13b932459d3e047720f999d5a1030ad47a8838d07d3d24529f5d"}},{"ruleId":"D1","level":"warning","message":{"text":"benchmark-pipeline-webgpu.benchInPage (cyclomatic 48): benchmark-pipeline-webgpu.benchInPage has cyclomatic complexity 48 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 32 belong to 9 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-pipeline-webgpu.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1605588db0b72a3cc1f2ad607c5683459d2bbb69319c12bc716a39335fbfdccf"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline._executeGeneric (cyclomatic 46): Pipeline._executeGeneric has cyclomatic complexity 46 (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/pipeline.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ecfb0d24555947f89f550b68fa02bba3927f73abbdb4fdab3c064732408977"}},{"ruleId":"D1","level":"warning","message":{"text":"GPU.createKernel (cyclomatic 46): GPU.createKernel has cyclomatic complexity 46 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 21 belong to 4 function items 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/gpu.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe843aaa7f8901e2da13223dbc8a0a364fee0686efbfecbc76322a33ae49778"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprCall (cyclomatic 44): WebAssemblyFunctionNode.exprCall has cyclomatic complexity 44 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"28886913244d39cf728ef1d48b8846026e990e47977d6af4d55e465d3a8d59df"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGPUPipelineExecutor._compile (cyclomatic 44): WebGPUPipelineExecutor._compile has cyclomatic complexity 44 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 5 belong to 4 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2c247d735bc1f069a8376bbfe6915e2ebb00901ac1de68d819f5e78ca191c8"}},{"ruleId":"D1","level":"warning","message":{"text":"benchmark-webgpu.benchInPage (cyclomatic 44): benchmark-webgpu.benchInPage has cyclomatic complexity 44 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 27 belong to 9 function items 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":"scripts/benchmark-webgpu.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"375f77c9b1b3d28e5cde0743e9903edaccce4e981aaf3ba2ba98dafda66c761f"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astBinaryExpression (cyclomatic 43): WGSLFunctionNode.astBinaryExpression has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"910f4f96060cd55a423bcf080e34d5ef63f3c35e65944e146e42527e9f8ea7ad"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionNode.getDependencies (cyclomatic 39): FunctionNode.getDependencies has cyclomatic complexity 39 (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/backend/function-node.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1ea1939521a4b944d89845ede01f357df853eb481c3f966be03c12f6b90f56"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprMember (cyclomatic 38): WebAssemblyFunctionNode.exprMember has cyclomatic complexity 38 (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/backend/web-assembly/function-node.js"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"737671d5046c1d24bcb25d1ca55e441aee08a8fb509d4cb75c01318c6ddad671"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vUserCall (cyclomatic 38): WebAssemblyFunctionNode.vUserCall has cyclomatic complexity 38 (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/backend/web-assembly/function-node.js"},"region":{"startLine":3935}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d66405cbd07949420f855fa54670217dfeacdcc5e96013238a7d0c20bf050f4"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionNode.getMemberExpressionDetails (cyclomatic 36): FunctionNode.getMemberExpressionDetails has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6402d7aff7e37e293359067ad08b5194c210116246ba696472cee49b350fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"WasmModuleBuilder.toBytes (cyclomatic 35): WasmModuleBuilder.toBytes has cyclomatic complexity 35 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/wasm-builder.js"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"62782d7286b60553ec0f0e9143db9efe04eb26a7c41a210faed695410654397e"}},{"ruleId":"D1","level":"warning","message":{"text":"kernel-run-shortcut.kernelRunShortcut (cyclomatic 35): kernel-run-shortcut.kernelRunShortcut has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 12 function items inside it that branch (asyncRun, snapshotValue, syncBody, \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/kernel-run-shortcut.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f126abb1b959674abfd7652f4b2d466faf72b4bede88d82f1ae768b20feaf5"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::walkStatement (cyclomatic 34): WebAssemblyFunctionNode.vAnalyze::walkStatement has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7d58df7a395415def268e5bb25da7aea17bd9cf2bee36dc8a8825fb9f6797d"}},{"ruleId":"D1","level":"warning","message":{"text":"vAnalyze.walkStatement (cyclomatic 34): vAnalyze.walkStatement has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 1 belongs 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/backend/web-assembly/function-node.js"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97406b958d48ab48e023a4269aa26f12a466d4c87b252436f17edc5c0870679"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionNode.astGeneric (cyclomatic 33): FunctionNode.astGeneric has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"85befcb46f13fdcabcfd64e20ca83b8156986b7630ab9bbaab9e2f266b2815a9"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprBinary (cyclomatic 33): WebAssemblyFunctionNode.vexprBinary has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d99155541ff57436e8811b132bb3e33c5d780d1f958457f921e1b8b0f5bbfce"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.linearizeStatement::linearize (cyclomatic 32): WebGLFunctionNode.linearizeStatement::linearize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef7eb96bc1b6d7d9779615de528c22d89b918c2b466298188b6a50ac9b83de6"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprBinary (cyclomatic 32): WebAssemblyFunctionNode.exprBinary has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df1dd4be2fc8800a258d246109efab37c65438a00f8faa92ee237e8a7d31b9"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vDeclareVarying (cyclomatic 32): WebAssemblyFunctionNode.vDeclareVarying has cyclomatic complexity 32 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 5 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/backend/web-assembly/function-node.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"695688a763dbe208a3b1fde9b31a0955add20dab641f72c71974a18e29f53e28"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLKernel.validateSettings (cyclomatic 31): WebGLKernel.validateSettings has cyclomatic complexity 31 (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/backend/web-gl/kernel.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"205dd7a617a84a4043362e1e61533c1a55c2daec10514b5b7d9c470009efc450"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGPUKernel._runInternal (cyclomatic 30): WebGPUKernel._runInternal has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"752e99f1f3a3ca0530207a15d2104697da34221b5e4f068163b7ae5f46a885c3"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::exprVarying (cyclomatic 30): WebAssemblyFunctionNode.vAnalyze::exprVarying has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: 4 other methods here (WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"568aaed37e1c4abae6265365167570dbfaa658f6335c9453ffafb562fd4f6c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"vAnalyze.exprVarying (cyclomatic 30): vAnalyze.exprVarying has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"334ae821ea9fe9a34d3978f9911f18cf559b2896fc82084c8b94e7f2bbe900dd"}},{"ruleId":"D1","level":"warning","message":{"text":"vAnalyze.hasVaryingExit (cyclomatic 30): vAnalyze.hasVaryingExit has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to 4 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e71da604baafc0ed7f0be2f6b8fbd3101ac3bee7298a4f9d82e7818862149f1"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::hasVaryingExit (cyclomatic 29): WebAssemblyFunctionNode.vAnalyze::hasVaryingExit has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: 4 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d59db0794cf1959b0aa0118d95b755d6afc26b83e5d0aa642a53c4d8532bdfb"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtFor (cyclomatic 28): WebAssemblyFunctionNode.vstmtFor has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2f23f48e5cdc77b5cb10c0dc84522c254659fa15808f5bd586aec0544907bc"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyKernel._runThreaded (cyclomatic 28): WebAssemblyKernel._runThreaded has cyclomatic complexity 28 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 13 belong to 3 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/backend/web-assembly/kernel.js"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"54522ae0789681fc7334676912805c426f36dabd568d6195661603bbfa78313e"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.emitAssignment (cyclomatic 27): WebAssemblyFunctionNode.emitAssignment has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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/backend/web-assembly/function-node.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"107bc4fb7ef9ea7394332c85205b38c4b980b0698fc0942492c4fa819d4b6110"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtReturn (cyclomatic 27): WebAssemblyFunctionNode.vstmtReturn has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5194a263c086f7ea913680b783d70d0d7faf731f735de6112de275d22e9933"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtSwitch (cyclomatic 27): WebAssemblyFunctionNode.vstmtSwitch has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 7 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/backend/web-assembly/function-node.js"},"region":{"startLine":3349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7d856907fb64e5dc41d8ccaec1937f7b757454449b22630628a5b12eca2e6d"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.normalizeBlock (cyclomatic 26): WebGLFunctionNode.normalizeBlock has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13315b85435c80a30b6b86fce3121e686970c13d32b9f985ecf7f6c475f1c8"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.normalizeLoopHeader (cyclomatic 26): WebGLFunctionNode.normalizeLoopHeader has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 3 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/backend/web-gl/function-node.js"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d743cb6c26df9f169f2203662fb017dc4ad0be3b969fd9596f2771f5006b13ac"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGL2Kernel.validateSettings (cyclomatic 26): WebGL2Kernel.validateSettings 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/backend/web-gl2/kernel.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e782ea4add453d8764a8c11d7962292db883a21a2ec9726013babd2ee714c9c5"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astReturnStatement (cyclomatic 26): WGSLFunctionNode.astReturnStatement has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a4c23f526c96a149e6e0b86798bd4d5aae8e79d7a35e4fc6b337a613a0605f"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionNode.getVariableSignature (cyclomatic 25): FunctionNode.getVariableSignature has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ecca0998cca10d61a05c772d9b54c9afba9cffed1930722fce4a152c7cd639"}},{"ruleId":"D1","level":"warning","message":{"text":"kernel-string.cpuKernelString (cyclomatic 25): kernel-string.cpuKernelString has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 55, 74, 111, \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/backend/cpu/kernel-string.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1706a442ceeb6ab259dd786cfc06ab24e36f3ea6b6091e666ca7bf1c887bcb1f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astReturnStatement (cyclomatic 24): WebGLFunctionNode.astReturnStatement has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd76c13db3bdb1df70bf9d0b61859405bf9af2b9530f6aa6d30802cf2c495f8c"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astSwitchStatement (cyclomatic 24): WebGLFunctionNode.astSwitchStatement has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"583aabfe0ceb95024fe4a4b770150f5772cb55766af0fe2c72abda9d173393af"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLKernel.destroy (cyclomatic 24): WebGLKernel.destroy 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/backend/web-gl/kernel.js"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72e6453120f1e315b66d584adc6191b35aab6495d3d46e342d093963049bd66"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.stmtRootReturn (cyclomatic 24): WebAssemblyFunctionNode.stmtRootReturn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f961a58bad45d85c5272db0e9db975f3380a60de9e48e20d40e5dbd264e7c14"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::scanExprTaints (cyclomatic 24): WebAssemblyFunctionNode.vAnalyze::scanExprTaints has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::collectAssigned, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b647df3a01d4f210243d7e61b554e26a52804473c7e714750419b16fc60814"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyKernel.build (cyclomatic 24): WebAssemblyKernel.build has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1da0c9dae7d5a219e02203b487519351516973dfa11c460ef060134ebe1baa"}},{"ruleId":"D1","level":"warning","message":{"text":"GPU.chooseKernel (cyclomatic 24): GPU.chooseKernel has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gpu.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8efa9a1810f6d21b45181a711dcf474e0f804aa5b8bd11a6450a7e56a24abae"}},{"ruleId":"D1","level":"warning","message":{"text":"vAnalyze.scanExprTaints (cyclomatic 24): vAnalyze.scanExprTaints has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3aee3757a5c3189d4c2863168a7ca4f7ccda03411b99fcbd9a31f0e37fb2c6"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.loopIndexAssignedInLoop::walk (cyclomatic 23): WebGLFunctionNode.loopIndexAssignedInLoop::walk has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe08cb2d23ae70baf24819e139a9f698f60b483e7d0673b606feaf3e88441a3"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astVariableDeclaration (cyclomatic 23): WebGLFunctionNode.astVariableDeclaration 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/backend/web-gl/function-node.js"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"9343e40a45e7adff648f9df08a5dbd26b8f5805ec0fb76000745620433867113"}},{"ruleId":"D1","level":"warning","message":{"text":"function-node.statementContainsNestedIndexRead (cyclomatic 23): function-node.statementContainsNestedIndexRead has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 2 function items inside it that branch (containsComputedRead, walk). 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/backend/web-gl/function-node.js"},"region":{"startLine":2376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1ac2adb82c5ab3ddc0ccbee28036e45c03851378864340126ce7d109da7305"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.stmtVariableDeclaration (cyclomatic 23): WebAssemblyFunctionNode.stmtVariableDeclaration has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 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/backend/web-assembly/function-node.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850aa7159f36a7179f4589bbeb9f832b25303948d0b04d30bcc08964fd507f0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vLoopBodyExits::walk (cyclomatic 23): WebAssemblyFunctionNode.vLoopBodyExits::walk has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3316fd0a8cc4a961702ddcad1bef8a7597fb5d4553137bc64042d1252db81a93"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprMember (cyclomatic 23): WebAssemblyFunctionNode.vexprMember has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ba44ef7f4f0592e618dcbdd3d06c05753ca6f55f8f472aae2f735be0fc3430"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astFunction (cyclomatic 22): WebGLFunctionNode.astFunction 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/backend/web-gl/function-node.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d119d92064fd5dd0b1da7154f63c3ceefc09a5abb5561ced2949cc5d35ad25"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astSwitchStatement (cyclomatic 22): WGSLFunctionNode.astSwitchStatement 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/backend/web-gpu/function-node.js"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb248e546374f60bd23206cb847a167eb3840cd6186412525e60ba1758dad18"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyKernel._assembleModule (cyclomatic 22): WebAssemblyKernel._assembleModule 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/backend/web-assembly/kernel.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d353144f3d39eca287d58a68eb17dc5e9cb93647fef8abc3ac14991f6f125a7"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyKernel.run (cyclomatic 22): WebAssemblyKernel.run 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/backend/web-assembly/kernel.js"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f5684a2642e5413f1485b0d9bc960c51d57ce5529285003b7a288fdf6c4fbd"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline.call (cyclomatic 22): Pipeline.call has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 384, settle). 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/pipeline.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a9d2f28b21c3c91b6553f5895d6b81f234e4f34aa1aa157d3e628b9610338d"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.isThreadDependent (cyclomatic 21): WebAssemblyFunctionNode.isThreadDependent 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/backend/web-assembly/function-node.js"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827fc167f8caea5d09bcb7bb6f6268c8d757e33ff25d4b3274944160b7189ab"}},{"ruleId":"D1","level":"warning","message":{"text":"getVariableType (cyclomatic 21): getVariableType has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f925c774c8e98aa2e716f8f3d00fc2841074e58e3463c191bd7c172b49e31c"}},{"ruleId":"D1","level":"warning","message":{"text":"Kernel.mergeSettings (cyclomatic 20): Kernel.mergeSettings 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/backend/kernel.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"425f69c0d1179bcd2121db6e7ea0f54e157d9750517f0997ea99d702c5aaeb23"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionNode.getAssignedArguments::walk (cyclomatic 20): FunctionNode.getAssignedArguments::walk has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef60d859454a05bd8173b687f188d9e7842c2a666c6d9be94644af7418c056d3"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.walkFunction (cyclomatic 20): WebAssemblyFunctionNode.walkFunction 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/backend/web-assembly/function-node.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06328275f85a1c7fbba827a85ea097bce86c34a7a833114ded4f5e973787eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprConditional (cyclomatic 20): WebAssemblyFunctionNode.exprConditional has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. 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/backend/web-assembly/function-node.js"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad376f8e24a39649f972d0a206e751746e7d5c1dd389467ca5f5c465bcd7a5eb"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astSwitchCaseConsequent (cyclomatic 19): WebGLFunctionNode.astSwitchCaseConsequent has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-gl/function-node.js"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e302bdc7f27f9cea8f4f219711a919d61890de237be62e2e6f464a3ca80adab"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astSwitchCaseConsequent (cyclomatic 19): WGSLFunctionNode.astSwitchCaseConsequent has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-gpu/function-node.js"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"049f60dfa90779ac92d609cc932cc44e6089709119f5b4075a11bb18efb25f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGPUKernel.assembleWGSL (cyclomatic 19): WebGPUKernel.assembleWGSL has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c952fb3d88fabc07c4989b42e5102c920fc44c676c388021cb69768fdd3850"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.collectAssignedArgumentNames::walk (cyclomatic 19): WebAssemblyFunctionNode.collectAssignedArgumentNames::walk has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"61451c42bfb6aa7b23c657e4bf0bbe68cf6264469d202b2b59d77aa6b6ec3fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::collectAssigned (cyclomatic 19): WebAssemblyFunctionNode.vAnalyze::collectAssigned has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3103d7fcc84ea85eb5716f85f995b81771b9cfa0ae03426108199d612de0d44"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprConditional (cyclomatic 19): WebAssemblyFunctionNode.vexprConditional has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. 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/backend/web-assembly/function-node.js"},"region":{"startLine":3811}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1562d4296c90fefb93250ee3a6eb4646cc9a80077536bb902bce2a4463d3341"}},{"ruleId":"D1","level":"warning","message":{"text":"vAnalyze.collectAssigned (cyclomatic 19): vAnalyze.collectAssigned 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/backend/web-assembly/function-node.js"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63e7616bf7b24959acccde656eb85dd9f504bc8f8c33d5f3d35aa3eabe440c"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeDeclarations (cyclomatic 19): normalizeDeclarations 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/utils.js"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"340cd731862cf89155968b2346f1cff0dbb269c3482b508d6b9389760aaba3e8"}},{"ruleId":"D1","level":"warning","message":{"text":"function-node.prependBeforeContinues::visit (cyclomatic 18): function-node.prependBeforeContinues::visit has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28ee8f4cd01ca7e42b7ddc2073894163ad318701e50354522eda0fea0a0467b"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astVariableDeclaration (cyclomatic 18): WGSLFunctionNode.astVariableDeclaration 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/backend/web-gpu/function-node.js"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0b85d800f5ecd13a0d364a105058b9adbe22fdb4ed7cc01b6b02b1fd8f91e9"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.stmtReturn (cyclomatic 18): WebAssemblyFunctionNode.stmtReturn has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"be12f1c5d1f25b71c0fdea6109b484fd7d2bf39072862dbc98b5fe2708208ff7"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.collectSwitchCaseStatements (cyclomatic 18): WebAssemblyFunctionNode.collectSwitchCaseStatements has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-assembly/function-node.js"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2215a9164688521fe3470c4a797ff44dc7d71ee7d69d98310f8951608e98f10c"}},{"ruleId":"D1","level":"warning","message":{"text":"function-node.normalizeMinifiedStatement (cyclomatic 17): function-node.normalizeMinifiedStatement has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bc23572c019d254d1c169125c55ac7ae8a6c4078338dea81ff9ed221a40a4c"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLKernel.build (cyclomatic 17): WebGLKernel.build 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/backend/web-gl/kernel.js"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ce1bceea36ef6c369130eef34e78111a1e22284757064a92febfa6a4a6cff7"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astForStatement (cyclomatic 17): WGSLFunctionNode.astForStatement 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/backend/web-gpu/function-node.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"58845719af53bab4c6772b8851d1b4fdead9752eb717ae76a2be8850bebeacea"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astAssignmentExpression (cyclomatic 17): WGSLFunctionNode.astAssignmentExpression 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/backend/web-gpu/function-node.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25b772b77131295c7262ca62300a27eafea5fd2f9d4b3357c3cd47554d4e2a0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vCoerce (cyclomatic 17): WebAssemblyFunctionNode.vCoerce 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. This is NOT this file\u0027s highest cyclomatic complexity: WebAssemblyFunctionNode.vstatement (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7cf67fa277270d2c8a664a663157a341f210c6504fd1c8674f030f3a93e142"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vMathCall (cyclomatic 17): WebAssemblyFunctionNode.vMathCall has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: WebAssemblyFunctionNode.vstatement (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":4050}}}],"partialFingerprints":{"codehealthFindingId/v1":"1becd043b343b52183357fd1cb5ddde3d64100b922b2ec9aee53fb0ee6857723"}},{"ruleId":"D1","level":"warning","message":{"text":"GPU.createKernelMap (cyclomatic 17): GPU.createKernelMap 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/gpu.js"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c112796c7a03a9299173f023e53437a6a39582e00814cc9381a0b1c470c8109"}},{"ruleId":"D1","level":"warning","message":{"text":"Kernel.functionToIGPUFunction (cyclomatic 16): Kernel.functionToIGPUFunction has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/kernel.js"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"7328e279d4dfb451c788c53a4fb9154bea32b202474a86bc86173c4d05d5376a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLFunctionNode.astForStatement (cyclomatic 16): WebGLFunctionNode.astForStatement 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/backend/web-gl/function-node.js"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0da1af09995d8d159886825c001032e8c1b5193a5414b6110b9529589ad7bda"}},{"ruleId":"D1","level":"warning","message":{"text":"function-node.statementIsSideEffectFreeBesidesTopLevelAssignment (cyclomatic 16): function-node.statementIsSideEffectFreeBesidesTopLevelAssignment has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (walk). 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/backend/web-gl/function-node.js"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc6654033cc7cad2a4347a9d2e8eedee395f9337f704a607a0688d3df6eeee1"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGLKernel.run (cyclomatic 16): WebGLKernel.run 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/backend/web-gl/kernel.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cedf6458911a61cecec197fb70e00a872aadac4f0e93f5e5aa5d628b950e35c"}},{"ruleId":"D1","level":"warning","message":{"text":"WebGL2Kernel._detectTightRead (cyclomatic 16): WebGL2Kernel._detectTightRead has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80eb86e665c0ea8ed6e89c319645cade2a3e159646c856336238fe78e007f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"WGSLFunctionNode.astConditionalExpression (cyclomatic 16): WGSLFunctionNode.astConditionalExpression has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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/backend/web-gpu/function-node.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6f052f8b22946a636c02bfe457486871513126dee1fa259cbfbea005bc806f"}},{"ruleId":"D1","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAssign (cyclomatic 16): WebAssemblyFunctionNode.vAssign has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: WebAssemblyFunctionNode.vstatement (cyclomatic 18) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdc352627c10f7dac762437c8c0f8d810e194c9312b4c19bf9bb61d0a4b2249"}},{"ruleId":"D1","level":"warning","message":{"text":"benchmark-async.benchInPage (cyclomatic 16): benchmark-async.benchInPage has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (measure, a function literal at line 71, makeMatrix, \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":"scripts/benchmark-async.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"95884e91d45120ba04b48d5f35d1fd8eca3f2df827e3307fe4e1612b364c060b"}},{"ruleId":"D2","level":"warning","message":{"text":"GLKernel.pickRenderStrategy (cognitive 135): GLKernel.pickRenderStrategy has cognitive complexity 135 (threshold 15). Drivers by points: if/else 60 (120 pts), match/switch 5 (15 pts) (nesting depth added 70). 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/backend/gl/kernel.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d27e4a3b37c667bcff8cf7bc7a63230c0835a84fd324fb453b7e6e0fa49a609"}},{"ruleId":"D2","level":"warning","message":{"text":"_compile (cognitive 110): _compile has cognitive complexity 110 (threshold 15). Drivers by points: if/else 26 (57 pts), loops 20 (35 pts), ternaries 4 (14 pts), boolean chains 4 (nesting depth added 56). Of this number, 108 points are the body\u0027s own statements and 2 belong to 5 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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cbd0faf4080f7fe5bdf22bc3efe6e8fda836747f5766770ed3a452b33f6cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.getType (cognitive 95): FunctionNode.getType has cognitive complexity 95 (threshold 15). Drivers by points: if/else 30 (66 pts), match/switch 6 (15 pts), boolean chains 8, ternaries 1 (4 pts), loops 1 (2 pts) (nesting depth added 49). 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/backend/function-node.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75096d15cffd98f3374dc30db5da9e4fa7dd78c339264a6156633fecc0837d1"}},{"ruleId":"D2","level":"warning","message":{"text":"_compile (cognitive 93): _compile has cognitive complexity 93 (threshold 15). Drivers by points: if/else 22 (47 pts), loops 15 (29 pts), ternaries 4 (12 pts), boolean chains 5 (nesting depth added 47). Of this number, 87 points are the body\u0027s own statements and 6 belong to 5 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ac6c5cad99d6b1bd476a7c943215278147c4003ab0f91a723840d718c461f"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astCallExpression (cognitive 85): WGSLFunctionNode.astCallExpression has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (60 pts), boolean chains 10, match/switch 3 (9 pts), loops 3 (6 pts) (nesting depth added 36). 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/backend/web-gpu/function-node.js"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9e03b0c1a7ffeca16422c18000113c46e532125e23991c66fa2431af8d9d29"}},{"ruleId":"D2","level":"warning","message":{"text":"astCallExpression (cognitive 83): astCallExpression has cognitive complexity 83 (threshold 15). Drivers by points: if/else 28 (59 pts), boolean chains 11, match/switch 3 (7 pts), loops 3 (6 pts) (nesting depth added 38). 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/backend/web-gl/function-node.js"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bae3d04b9f456478bb50a0d082d5bc7019a00e8eb07798d4e637e3edc4a01a"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline._executeGeneric (cognitive 78): Pipeline._executeGeneric has cognitive complexity 78 (threshold 15). Drivers by points: if/else 23 (48 pts), boolean chains 15, loops 8 (14 pts), ternaries 1 (nesting depth added 31). 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/pipeline.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1038a59ef0ab98dad259a64312030e92b14a63c3962415e4de9adedd301e4e6"}},{"ruleId":"D2","level":"warning","message":{"text":"toBytes (cognitive 77): toBytes has cognitive complexity 77 (threshold 15). Drivers by points: loops 15 (41 pts), if/else 14 (22 pts), ternaries 4 (11 pts), boolean chains 3 (nesting depth added 41). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/wasm-builder.js"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72dc4a2617878064850588a22283eaaf2047e14895d14d84f3f7e139767f775"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astMemberExpression (cognitive 71): WebGLFunctionNode.astMemberExpression has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (47 pts), match/switch 8 (18 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2c94205f67a20a3b252f444967d952822e7752f54632db797062e9951f8f58"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vUserCall (cognitive 69): WebAssemblyFunctionNode.vUserCall has cognitive complexity 69 (threshold 15). Drivers by points: if/else 27 (52 pts), ternaries 5 (6 pts), boolean chains 5, loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 28). 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/backend/web-assembly/function-node.js"},"region":{"startLine":3935}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5cb6b7d581d2457477d0360d0d125a41564b1e6e997a3e903622ee2de83322"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGPUKernel._runInternal (cognitive 59): WebGPUKernel._runInternal has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (42 pts), loops 6 (10 pts), boolean chains 3, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 30). 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/backend/web-gpu/kernel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7497e642dab4ef32b7a9855e9bc363c7f5481c106ecc4eb04cb9da8462124f"}},{"ruleId":"D2","level":"warning","message":{"text":"createKernel (cognitive 57): createKernel has cognitive complexity 57 (threshold 15). Drivers by points: if/else 25 (37 pts), boolean chains 12, error handling 2 (3 pts), ternaries 3, loops 1 (2 pts) (nesting depth added 14). Of this number, 25 points are the body\u0027s own statements and 32 belong to 8 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/gpu.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad2fba19ac1e6a716e23752be50b41d77184787f311afe4632e66cb3a158784"}},{"ruleId":"D2","level":"warning","message":{"text":"_runThreaded (cognitive 53): _runThreaded has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (21 pts), ternaries 6 (18 pts), loops 7 (13 pts), boolean chains 1 (nesting depth added 23). Of this number, 30 points are the body\u0027s own statements and 23 belong to 3 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/backend/web-assembly/kernel.js"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dd5e44b2293151361769d91ce2a9275284deb4289990ae19319fe3fa29db85"}},{"ruleId":"D2","level":"warning","message":{"text":"GPU.chooseKernel (cognitive 51): GPU.chooseKernel has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (40 pts), loops 4 (10 pts), boolean chains 1 (nesting depth added 27). 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/gpu.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cb973dcf626f4094b847575d3a82989676a3639217b25a2fc69016a8cfbdf2"}},{"ruleId":"D2","level":"warning","message":{"text":"flattenFunctionToString::flatten (cognitive 51): flattenFunctionToString::flatten has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (40 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 21). 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.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db27cd76d318877c75c9d01484cc8a5b567bdf289163c7e32fa871c3176ee7e"}},{"ruleId":"D2","level":"warning","message":{"text":"astMemberExpression (cognitive 49): astMemberExpression has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 7 (22 pts), if/else 11 (18 pts), match/switch 5 (8 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/function-node.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c4ac044ee108c931ec4fa1e75ff4c0b2a6f65e1711ab4f3b1e3d0ecbea1b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astFunction (cognitive 48): WebGLFunctionNode.astFunction has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"44df284c3c579039f867237587ad6c3af19ad4772a192fe444fc1e21a9f3d7ab"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-webgpu.benchInPage (cognitive 47): benchmark-webgpu.benchInPage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 9 (11 pts), boolean chains 7, ternaries 5 (6 pts), error handling 3 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 31 belong to 9 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"scripts/benchmark-webgpu.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac2701d4099ca90a4a3ddd4bb2942473c75bc79b811c9d2d1abe62b09eda700"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.walkStatement (cognitive 47): vAnalyze.walkStatement has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (7 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 22). Of this number, 46 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1336859f575c40fa6fd057b29eeead1ee74967370ef966f14fcbc1e72da35a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"GLKernel.nativeFunctionArguments (cognitive 46): GLKernel.nativeFunctionArguments has cognitive complexity 46 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 10, ternaries 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded628600e4eae523369513323b7bc402ae067ca3552752557b5a9154465aaec"}},{"ruleId":"D2","level":"warning","message":{"text":"vDeclareVarying (cognitive 46): vDeclareVarying has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 4 (14 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 20). Of this number, 37 points are the body\u0027s own statements and 9 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfe5b21c597c2e4b5a2c04d6d789b348d535f53e70c0b62f91c8feb9102b359"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::walkStatement (cognitive 44): WebAssemblyFunctionNode.vAnalyze::walkStatement has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (7 pts), boolean chains 5, match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc779324a981708fcc8b7ee5a454ae8633b8d7f1073a42b90599164969c0d85"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeDeclarations (cognitive 44): normalizeDeclarations has cognitive complexity 44 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 4 (12 pts), ternaries 1 (5 pts), boolean chains 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils.js"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"0770d2062cec8f114cbfbfdb817f6feca7589b459c80a75361b62af044d732a2"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astBinaryExpression (cognitive 43): WebGLFunctionNode.astBinaryExpression has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 19, if/else 10 (15 pts), match/switch 3 (5 pts), ternaries 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ae65fc9e449f17ed5916f8b517501c3b3e4adb5e0f3ac1cbbb35812ac79502"}},{"ruleId":"D2","level":"warning","message":{"text":"kernelRunShortcut (cognitive 43): kernelRunShortcut has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 5, loops 4, ternaries 2 (3 pts), error handling 2 (nesting depth added 7). None of this is in the body itself: all 43 points belong to 18 function items inside it that branch (asyncRun, syncBody, snapshotValue, \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/kernel-run-shortcut.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a75bd254c4b2cda07d59512972471c8d5c599a5a3864a3e73c7f68c4396ba2e"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astSwitchStatement (cognitive 41): WebGLFunctionNode.astSwitchStatement has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (27 pts), match/switch 3 (9 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"395672bfb032dfbc9c66d54e97631b28ec6d5f5041bc360910bcb7ef6164a114"}},{"ruleId":"D2","level":"warning","message":{"text":"call (cognitive 41): call has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (27 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (nesting depth added 18). Most of this is not in the body itself: 10 of the 41 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 384, settle). 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/pipeline.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"901e358de455f7c37994c836886f46cb946e8e19091cd6d11079de74618ddbf7"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.walkFunction (cognitive 40): WebAssemblyFunctionNode.walkFunction has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 3 (9 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 22). 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/backend/web-assembly/function-node.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1750612a2d55bb5bcab6abde26311455fdcfca2cab52c158fc740542f60010"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtReturn (cognitive 40): WebAssemblyFunctionNode.vstmtReturn has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 3 (11 pts), boolean chains 3, match/switch 2 (3 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/backend/web-assembly/function-node.js"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e040c11661800bc15d4bf376541ab1eab70964e77ab0cc70e26551341179059c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtSwitch (cognitive 40): WebAssemblyFunctionNode.vstmtSwitch has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 5, loops 3 (5 pts), match/switch 2 (3 pts) (nesting depth added 16). Of this number, 23 points are the body\u0027s own statements and 17 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3349}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f1bbc2f7c1fd55d42008fa6f0644754d01c525ab8c3b046c7f5e36dfc55793"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astVariableDeclaration (cognitive 39): WebGLFunctionNode.astVariableDeclaration has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 7, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3d0846776d597567329a825c9e71bc23f6d2d239086cb76229c3076a1dbb67"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astSwitchStatement (cognitive 39): WGSLFunctionNode.astSwitchStatement has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 3 (9 pts), boolean chains 3, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce71f45f407df06f146e15415ef78b44027e88c3ad52ddc2eb09dde98a31f2a"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::scanExprTaints (cognitive 39): WebAssemblyFunctionNode.vAnalyze::scanExprTaints has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::collectAssigned, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6872ec79d7fb03aa8634e8e977994c99866201c76af80fed15fc58416f0e9bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.scanExprTaints (cognitive 39): vAnalyze.scanExprTaints has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 21). 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/backend/web-assembly/function-node.js"},"region":{"startLine":2121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62444d61539abd76bf836dae14d38e00cf2ec53d83c5b4520b0c4f3f185c2db"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.getVariableSignature (cognitive 38): FunctionNode.getVariableSignature has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 4 (14 pts), boolean chains 4, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5aafdfd7b1a5762696335877cdded9d2671b626f5673eeda5807b72375707fd"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astMemberExpression (cognitive 38): WGSLFunctionNode.astMemberExpression has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (25 pts), match/switch 4 (6 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 18). 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/backend/web-gpu/function-node.js"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac48cc72737be3030737469ed5b1bd7596e7d77152e9cc15e529c9764821c00"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprMember (cognitive 38): WebAssemblyFunctionNode.exprMember has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 3 (7 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"19dfeab775f00a399bce2ee3b9441a079109b5b6a0f5fa1d0ee68472af06f402"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionTracer.scan (cognitive 37): FunctionTracer.scan has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 2 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-tracer.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"451baa126ba9d405ec93a6bd03afbb374999b46356d3bb4fd30fb678e5581368"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.normalizeBlock (cognitive 37): WebGLFunctionNode.normalizeBlock has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (25 pts), boolean chains 6, loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"f820d4e28169c75e160423fb4f8cdd3e4b67498318d9b089112e95a35127d3a3"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyKernel._assembleModule (cognitive 37): WebAssemblyKernel._assembleModule has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bfbbaadf81bc964045c9bb55ac2a873483fe3d345a489e2e34e4416ef81d2e"}},{"ruleId":"D2","level":"warning","message":{"text":"vstmtFor (cognitive 37): vstmtFor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 2, ternaries 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/backend/web-assembly/function-node.js"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"070dee8c8ba27612b3be5726d3af08bfe0e1515643069300d8ea6a1f0afa8d96"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.getDependencies (cognitive 36): FunctionNode.getDependencies has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 2 (5 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1e55213d382cf5fa286a6f3a69575b4924280b73c847d8df4af41de143181e"}},{"ruleId":"D2","level":"warning","message":{"text":"stmtVariableDeclaration (cognitive 36): stmtVariableDeclaration has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 4, match/switch 1 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 16). Of this number, 23 points are the body\u0027s own statements and 13 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f05fdce4da33c54c60157f75dad4d39275eed9e50fe0b595814331dbbb235e7"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.linearizeStatement::linearize (cognitive 35): WebGLFunctionNode.linearizeStatement::linearize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 3 (6 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebc5f93bcfa4401175d3c987d6cc85819fbb17d72b7926a6171ee2aab39994d"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprCall (cognitive 35): WebAssemblyFunctionNode.exprCall has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 8, match/switch 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98f702917aad88fc1facf198b2753bfdd1b4d034f62a5c769fe6b7b0b07ae7c"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-pipeline.main (cognitive 35): benchmark-pipeline.main has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 3 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 20). Of this number, 33 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-pipeline.mjs"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89e8a3d1da6a465c2f99ca3cbab9df12bb42dac139b76703744056ab15176de"}},{"ruleId":"D2","level":"warning","message":{"text":"emitAssignment (cognitive 35): emitAssignment has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 12, ternaries 4 (8 pts) (nesting depth added 6). Of this number, 33 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56086e0a438793bae44e7a995c36e3a33bf9dfdc6a1dc871913d2e74e4d5031"}},{"ruleId":"D2","level":"warning","message":{"text":"glKernelString (cognitive 34): glKernelString has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 5 (7 pts), loops 2 (5 pts), match/switch 2, boolean chains 1 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 18 belong to 8 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/backend/gl/kernel-string.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"19eed5aa8ac63566666be7c0e234326ef51b8c44cd273189d3bbd9eee9cdb472"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.stmtRootReturn (cognitive 33): WebAssemblyFunctionNode.stmtRootReturn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (6 pts), match/switch 2 (3 pts), boolean chains 2, ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d70d32a7eb99403150b7ef32b6227c76094e869ed6f1a9c31bd8e2e2f73d15"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.getMemberExpressionDetails (cognitive 32): FunctionNode.getMemberExpressionDetails has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (29 pts), match/switch 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d30d4e3577ee9729d3d84436b93ebf7aac3d3ae2add864527c0cc8271fab7b"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeSettings (cognitive 32): mergeSettings has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (7 pts), ternaries 1 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/kernel.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8378a635dbb887acd52af248b81b6f59b261a6e1b6bd9e8bf5e53fe960d4f198"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernel.destroy (cognitive 31): WebGLKernel.destroy has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 6 (10 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8919fa42ff0e56ead75bab2779e7c60e6c45812611c7cf98f4df852ff2c532"}},{"ruleId":"D2","level":"warning","message":{"text":"run (cognitive 31): run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 4 (9 pts), loops 4 (5 pts), boolean chains 4 (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/backend/web-assembly/kernel.js"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c3b9f7775cd33768ef2b06c307e0e1a30da571860060c9baec18b500d8d06b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astForStatement (cognitive 30): WebGLFunctionNode.astForStatement has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd4042fc9e5d4a0f04fb661a208d178f85d4d23e3501d3584c3ca09450c1dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astBinaryExpression (cognitive 30): WGSLFunctionNode.astBinaryExpression has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 17, if/else 6 (8 pts), match/switch 3 (5 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1d3e6300885f9723d38ff5c984d7711f3e5012cfc427b8a50f89ffe33ddf39"}},{"ruleId":"D2","level":"warning","message":{"text":"validateSettings (cognitive 29): validateSettings has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 9, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"82afe0ca73c48636f054cf30840113509092770b7f89ab82a4105c370ad56bf3"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astForStatement (cognitive 28): WGSLFunctionNode.astForStatement has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d442520855e29f4b7024b21c5fee6f7658588bacd19e058e4f90c5d519145d7"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astVariableDeclaration (cognitive 27): WGSLFunctionNode.astVariableDeclaration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 6, 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/backend/web-gpu/function-node.js"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01208037cec628cfc5d3c1c37f16bed8bfa8dce75a3d3677344d7238fcb86a5"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::walkExprStatement (cognitive 27): WebAssemblyFunctionNode.vAnalyze::walkExprStatement has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e94e4dd32a8a33a3b72ddaaa135dad102a79ca0104a5afd332fdac4790ea0b"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline._eagerUploads (cognitive 27): Pipeline._eagerUploads has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (19 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pipeline.js"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"653ffe146d1f4a7f1cfab44019cca4a368f93bdf7e49f4bb54575131c243d6de"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.walkExprStatement (cognitive 27): vAnalyze.walkExprStatement has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef0b7fa871ebdfaa8875e5d76fd66029015af989e95475ab2c1e8bfd91a22d1"}},{"ruleId":"D2","level":"warning","message":{"text":"createKernelMap (cognitive 27): createKernelMap has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gpu.js"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"834d2ee7241d21080c71db1ef76c3ce4a9ec22333f4090627f33f31d82ffe9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"cpuKernelString (cognitive 27): cpuKernelString has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (11 pts), match/switch 4 (8 pts), if/else 4 (5 pts), boolean chains 2, loops 1 (nesting depth added 11). Of this number, 14 points are the body\u0027s own statements and 13 belong to 8 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/backend/cpu/kernel-string.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecf6bcd866eef80a980a871339fab2508a4970e849aae6bf2a957efb4a392c9"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astSwitchCaseConsequent (cognitive 26): WebGLFunctionNode.astSwitchCaseConsequent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-gl/function-node.js"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc330ba233975568a24115daf5ebe17fffbfa383d7fc2ffbc1329db19c454e29"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernel.run (cognitive 26): WebGLKernel.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 4 (5 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e882e19302c98b4abb2b58a20f300fb5e6f88efbde5a3197c40e3a7eaba5413"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astSwitchCaseConsequent (cognitive 26): WGSLFunctionNode.astSwitchCaseConsequent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-gpu/function-node.js"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"465308533705fc0a3025db72d6bd5e51cffe31ba72287e74b11ae3d6c54cb03e"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.hasVaryingExit (cognitive 26): vAnalyze.hasVaryingExit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 9, ternaries 2 (4 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 8). Of this number, 23 points are the body\u0027s own statements and 3 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ada3e1449ae54b0d2943b07c4bcc4fe1a515ec627b40ba8eb0031d3318a8b13"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionBuilder.lookupReturnType (cognitive 25): FunctionBuilder.lookupReturnType has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (9 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/backend/function-builder.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b42cc530eb60c65110476c939e411c4f13a58c5d4fbcbb42096500b63b4097"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.normalizeLoopHeader (cognitive 25): WebGLFunctionNode.normalizeLoopHeader has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 7 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 5). Of this number, 18 points are the body\u0027s own statements and 7 belong to 3 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/backend/web-gl/function-node.js"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b308340dab7fcc142358db7a63493eaf81398dd6bded10cfb13b6ef4f3c2515"}},{"ruleId":"D2","level":"warning","message":{"text":"CPUFunctionNode.astForStatement (cognitive 24): CPUFunctionNode.astForStatement has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2, loops 1 (2 pts) (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/backend/cpu/function-node.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05919e48bb2309c18c6d85db834ddc37bcacd4cf90089900dfc9ce0e03b3879"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astAssignmentExpression (cognitive 24): WGSLFunctionNode.astAssignmentExpression has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"913d594e3177bdb1e80b6ec1215fe1f37cb89ab2ab9369b78e736fd30d82fb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-pipeline-webgpu.benchInPage (cognitive 24): benchmark-pipeline-webgpu.benchInPage has cognitive complexity 24 (threshold 15). Drivers by points: loops 21 (34 pts), if/else 12 (21 pts), ternaries 3 (8 pts), boolean chains 5 (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (benchmark-pipeline-webgpu.benchInPage::weightedSum) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-pipeline-webgpu.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d369ba7226ac0252cbcc90f894ce4d26b3ad7cf552caeef1f63dbe3d2a011274"}},{"ruleId":"D2","level":"warning","message":{"text":"validateSettings (cognitive 24): validateSettings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"398e02a2d991fc20e72aa5aba41495f414dd08f987e0f121019aa445294fbc23"}},{"ruleId":"D2","level":"warning","message":{"text":"GLKernel.setOutput (cognitive 23): GLKernel.setOutput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 11). 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/backend/gl/kernel.js"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d231953d682557f4351f407965ed3f4d02d38397da6725e05c0817fa1e3ef3d"}},{"ruleId":"D2","level":"warning","message":{"text":"GLKernel.updateTextureArgumentRefs (cognitive 23): GLKernel.updateTextureArgumentRefs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). 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/backend/gl/kernel.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"208607cb8080b3cad1eb6d8f07d5d2b4def2184e978857f759a605f0dbe7e740"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astFunction (cognitive 23): WGSLFunctionNode.astFunction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c238efcf200d4932efaf572540d579b5213c8a5d818ee6c0e7c930592da3723"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::hasVaryingExit (cognitive 23): WebAssemblyFunctionNode.vAnalyze::hasVaryingExit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8, loops 1 (2 pts), ternaries 1 (2 pts), match/switch 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. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ac735237333084ccce82017d8cb0da0eeb2aeb5d6a56d483001485bda7d3d9"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astReturnStatement (cognitive 22): WGSLFunctionNode.astReturnStatement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (7 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0dc5cc3446fc5d469b819503c1ab387d3f6ba2e922600d323501411e118da4"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprBinary (cognitive 22): WebAssemblyFunctionNode.vexprBinary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, ternaries 2, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3548}}}],"partialFingerprints":{"codehealthFindingId/v1":"2795892e6c97fc09085fe3048fc28fc564b54a18c9cdf68f00b65bf0c9dd0f31"}},{"ruleId":"D2","level":"warning","message":{"text":"vLoopBodyExits::walk (cognitive 22): vLoopBodyExits::walk has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), boolean chains 5, match/switch 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/backend/web-assembly/function-node.js"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2844e3d4936aa90ea9a54a5a4b2c9382503fd7d8692cd4f4a0e9d0d4ce03fa39"}},{"ruleId":"D2","level":"warning","message":{"text":"isThreadDependent (cognitive 22): isThreadDependent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, ternaries 1 (2 pts), loops 1, match/switch 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/backend/web-assembly/function-node.js"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c44a87fd1dcf4e9e09273679951eb3cf6f60192b4b5ed52278a5c83fdf44d58"}},{"ruleId":"D2","level":"warning","message":{"text":"statementContainsNestedIndexRead (cognitive 22): statementContainsNestedIndexRead has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, loops 2 (nesting depth added 3). None of this is in the body itself: all 22 points belong to 2 function items inside it that branch (containsComputedRead, walk). 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/backend/web-gl/function-node.js"},"region":{"startLine":2376}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0394685012e2a7efa57895b3078b32505acb92159573bf9d293bc7e095865a"}},{"ruleId":"D2","level":"warning","message":{"text":"assembleWGSL (cognitive 22): assembleWGSL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 7, ternaries 3 (5 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2186d1ca746f60daee57dc0fb42c5aa1857b33d3c22c50fe8584f1e1675cfb"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernelValueMemoryOptimizedNumberTexture.updateValue (cognitive 21): WebGLKernelValueMemoryOptimizedNumberTexture.updateValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/memory-optimized-number-texture.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80c0766b819f8919b94c7a7328c51c8b4bacbdf8c0045ebb01c42b05015c2ec"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernelValueNumberTexture.updateValue (cognitive 21): WebGLKernelValueNumberTexture.updateValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/number-texture.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a1a800923d11d737a4717da9699b111e7191e69880d48f5e6f0a38e11c1027"}},{"ruleId":"D2","level":"warning","message":{"text":"kernel-string.findKernelValue (cognitive 20): kernel-string.findKernelValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts), boolean chains 2, match/switch 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/backend/gl/kernel-string.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd41f486e1dcba94b64f34a60d9c999ae8020d262e654ff01a96853ee792dabb"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGL2Kernel.getKernelString (cognitive 20): WebGL2Kernel.getKernelString has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (12 pts), ternaries 1 (4 pts), if/else 2, match/switch 1 (2 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel.js"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"162ca074e76c7f2549f91385cb9124212e6109bad6094b20ff0c8287f086fd68"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGPUKernel.destroy (cognitive 20): WebGPUKernel.destroy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e114c1da3cd5d78822e7b4e1c32510cc06309f2be9fe097cfa4daff9502985f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.forLoopIsSafe (cognitive 20): WebAssemblyFunctionNode.forLoopIsSafe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 1 (3 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/backend/web-assembly/function-node.js"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"4343547ed5f0d91172960c2dd957375274061156423be8e04ecdd7fdd4a4aea1"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprBinary (cognitive 20): WebAssemblyFunctionNode.exprBinary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, ternaries 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e7229650b4a44074927c0884f1d21eb43700bfe20de4154ec70cbb208ba2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.exprConditional (cognitive 20): WebAssemblyFunctionNode.exprConditional has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 3, match/switch 1 (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 10 belong to one function item inside it that branches. 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/backend/web-assembly/function-node.js"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c80861897153a7e3754d049a6ac57fe792deff1eb46bb0235e94ba73f800457"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vCoerce (cognitive 20): WebAssemblyFunctionNode.vCoerce has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2433}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2cb1fcfe0717402d12ba0686b695717568e14064152b06d868d025fd17499b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprConditional (cognitive 20): WebAssemblyFunctionNode.vexprConditional has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 3 (4 pts), match/switch 1 (nesting depth added 3). Of this number, 10 points are the body\u0027s own statements and 10 belong to one function item inside it that branches. 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/backend/web-assembly/function-node.js"},"region":{"startLine":3811}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e1b34d605c3f2fb2ed4ba2191286bb0327cee0d7566ea2f8048983d7acea38"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.traceFunctionAST (cognitive 19): FunctionNode.traceFunctionAST has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (4 pts), loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"825d01338d4c7790bf562c6d874fb0dfcbfa74241d3bebe4ec7535f8447eb8cf"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.loopIndexAssignedInLoop::walk (cognitive 19): WebGLFunctionNode.loopIndexAssignedInLoop::walk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"91676ecf08d57072856b5a3e0d3b5eb177552844993eb6f494368fb01e281824"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernel.getKernelString (cognitive 19): WebGLKernel.getKernelString has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (12 pts), ternaries 1 (4 pts), match/switch 1 (2 pts), if/else 1 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7ec3cb9b42af3ed80694f964312f55d55b04e7e4c5bd51fda609e8de808d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGPUKernel.validateSettings (cognitive 19): WebGPUKernel.validateSettings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e1314307ba9f305b2cda97438ce486f8ba8f7364fdc69703b8d1c41c3e1aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline.bindResults (cognitive 19): pipeline.bindResults has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 1 (2 pts) (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/pipeline.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63e16db86166f4ec285fa00dbe71bd16212bf36e2591743e9326cc274324907"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-async.benchInPage (cognitive 19): benchmark-async.benchInPage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 4 (5 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 5). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (measure, a function literal at line 71, makeMatrix, \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":"scripts/benchmark-async.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e19ccf0e95a106c4b9bc7aba9e817c8de70ee1849b0027a8cab557ca745abb5"}},{"ruleId":"D2","level":"warning","message":{"text":"stmtReturn (cognitive 19): stmtReturn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5bfaa038b8ccb5c2d987a46791dfe56dae48d542d8491c1461d4a6127b2f52"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.getAssignedArguments::walk (cognitive 18): FunctionNode.getAssignedArguments::walk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d338e63f7a903c60dd8a639fdb2f57e6bfb9d5a6f6343496eb1b889e166ae7d"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernel.build (cognitive 18): WebGLKernel.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e219d81bfb9a09fb3b4fae772e7d4f1f03b78206971139d1a60e5aabd7309c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.collectSwitchCaseStatements (cognitive 18): WebAssemblyFunctionNode.collectSwitchCaseStatements has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 3 (nesting depth added 4). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (containsBreak). 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/backend/web-assembly/function-node.js"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ab399c663129b2dc4681135534716ad47d6c482e81a0a3d5790049a06ca6c2"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::exprVarying (cognitive 18): WebAssemblyFunctionNode.vAnalyze::exprVarying has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7, match/switch 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. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::collectAssigned, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"8734c206382b53d746fc452a38e4183afece313ebb679f2fdf57bb115d8662a4"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAnalyze::collectAssigned (cognitive 18): WebAssemblyFunctionNode.vAnalyze::collectAssigned has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1, match/switch 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. This shape REPEATS in the file: 5 other methods here (WebAssemblyFunctionNode.vAnalyze::exprVarying, WebAssemblyFunctionNode.vAnalyze::scanExprTaints, WebAssemblyFunctionNode.vAnalyze::hasVaryingExit, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 6 times rather than 6 independent problems. Splitting this body alone leaves the other 5 exactly as they are. Where these are variations on one operation, the change that clears all 6 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b039a4e20b321ac7415ea57eb8c6b5115c9be6d181d3d9099d73b2829d1cf127"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vAssign (cognitive 18): WebAssemblyFunctionNode.vAssign has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2772}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa84a9f34dac9996b6516b405e4682fc0df67dba41a4618f0ccb1733bb96598"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vstmtDoWhile (cognitive 18): WebAssemblyFunctionNode.vstmtDoWhile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, 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/backend/web-assembly/function-node.js"},"region":{"startLine":3267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad00d40411e4cd96a3fbfe2eac644aaf05086b09dbef77eb2ba00ddca82791a"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vMathCall (cognitive 18): WebAssemblyFunctionNode.vMathCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), match/switch 2, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":4050}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91fe24cbfc435ab0a03d48cec1d482ab0dc191dd63afb15d5c07de9b2dc1555"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGPUPipelineExecutor.execute (cognitive 18): WebGPUPipelineExecutor.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5 (6 pts), ternaries 1 (2 pts), boolean chains 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"be028130eea0ecf88e8d1199fa64227fe3749c7df82f25f8ca37d27a4790f148"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline.assignBuffers (cognitive 18): pipeline.assignBuffers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 5 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pipeline.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"557dccec7177938577d855ad21cd202f98e4f0b60767d5430323590bd172937c"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.exprVarying (cognitive 18): vAnalyze.exprVarying has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7, match/switch 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/backend/web-assembly/function-node.js"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"9620e755f4cba9462230c8fc83430f3a6ee6cb6aa12a77f3bc459aeab45fbfd7"}},{"ruleId":"D2","level":"warning","message":{"text":"vAnalyze.collectAssigned (cognitive 18): vAnalyze.collectAssigned has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1, match/switch 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/backend/web-assembly/function-node.js"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdec20be96d33e6eea65c5685e8c51395f7bd8a48ca106c78a622924c1ec4814"}},{"ruleId":"D2","level":"warning","message":{"text":"getVariableType (cognitive 18): getVariableType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/utils.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab3182b7909ede601b5965668693c39e4dde2f5a67887725cf19196c4ada0c7"}},{"ruleId":"D2","level":"warning","message":{"text":"function-node.normalizeMinifiedStatement (cognitive 17): function-node.normalizeMinifiedStatement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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/backend/function-node.js"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2246f3f83023903c739c0e0e1e6866ba8ec3995c8b7d33ef21816cf2aa9807"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLFunctionNode.astReturnStatement (cognitive 17): WebGLFunctionNode.astReturnStatement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (5 pts), boolean chains 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/backend/web-gl/function-node.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"40956969c89b521ece08e43277e6921bd98a6c8a35311829f9cfd42872bac87f"}},{"ruleId":"D2","level":"warning","message":{"text":"WGSLFunctionNode.astConditionalExpression (cognitive 17): WGSLFunctionNode.astConditionalExpression has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (emitBranch). 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/backend/web-gpu/function-node.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"171682584388232032650ec95291b6168945c8a6e0e5d6e6d80d4bf15b81d638"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGPUKernel.computeParamsLayout (cognitive 17): WebGPUKernel.computeParamsLayout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), boolean chains 2 (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/backend/web-gpu/kernel.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e8f5d5ed3a62c4424c042bb7be741ccaea40cf3a47b59ab88f3773c22bce1d"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.vexprMember (cognitive 17): WebAssemblyFunctionNode.vexprMember has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, match/switch 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/backend/web-assembly/function-node.js"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf73a360ee4a34395f20d5829619805aba60743869a6e3be9d23d11fc2c06b2"}},{"ruleId":"D2","level":"warning","message":{"text":"GPU.constructor (cognitive 17): GPU.constructor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gpu.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79f50dc30aefec8c5eee32388fba916321672f461241898da1dd5a4f157a6b1"}},{"ruleId":"D2","level":"warning","message":{"text":"setupArguments (cognitive 17): setupArguments has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (6 pts), ternaries 2 (6 pts), if/else 4 (5 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/backend/kernel.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"420d23304daa6ccb749e7b68dd73d450cdcccc16ef266b700c7b0fd02bbfc1b6"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionNode.findLastReturn (cognitive 16): FunctionNode.findLastReturn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (4 pts), boolean chains 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/backend/function-node.js"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6996bc2f845cc8f4efc304cdd9113db9042d16804d28278378071fc39d7e0b20"}},{"ruleId":"D2","level":"warning","message":{"text":"function-node.normalizeMinifiedForHeader (cognitive 16): function-node.normalizeMinifiedForHeader has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (5 pts), if/else 3 (4 pts), loops 2 (4 pts), boolean chains 3 (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/backend/function-node.js"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9125e399ec3e0d1c98075f847c270d3228635a34581c1491ab3a5d738324d11"}},{"ruleId":"D2","level":"warning","message":{"text":"function-node.statementIsSideEffectFreeBesidesTopLevelAssignment::walk (cognitive 16): function-node.statementIsSideEffectFreeBesidesTopLevelAssignment::walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"874b9c083b588453964c2d5690405f8cf23166c054ddb9c698989e8c8393b512"}},{"ruleId":"D2","level":"warning","message":{"text":"WebGLKernel.initPlugins (cognitive 16): WebGLKernel.initPlugins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e26e818a4d4992ee755d32722fc23d75dcdcc7e2a70f9aa39c52e9f2f3558d0"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyFunctionNode.collectAssignedArgumentNames::walk (cognitive 16): WebAssemblyFunctionNode.collectAssignedArgumentNames::walk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b427d9dd721a19aa68226863315bcc3acc4fc4725ff928b219893e541fd29bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"WebAssemblyKernel._instantiate (cognitive 16): WebAssemblyKernel._instantiate has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (6 pts), ternaries 2 (5 pts), if/else 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"314ad25c95f3adaf8cbe2ed06abf28fffad135ffac933ae331f08b5839cfd74d"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-pipeline-webgpu.benchInPage::weightedSum (cognitive 16): benchmark-pipeline-webgpu.benchInPage::weightedSum has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), ternaries 2 (7 pts), if/else 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. This shape REPEATS in the file: one other method here (benchmark-pipeline-webgpu.benchInPage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-pipeline-webgpu.mjs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"be79ebeb155fb4d8888ea26531d8132946e38dd5b614feb3c19e7630923fa3bf"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark-pipeline.weightedSum (cognitive 16): benchmark-pipeline.weightedSum has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), ternaries 2 (7 pts), if/else 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":"scripts/benchmark-pipeline.mjs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a3f7ad308315d6db0195878bd8161a345da94271f3d6c0df1cf8e7283d17ff"}},{"ruleId":"D2","level":"warning","message":{"text":"emitVectorFunction (cognitive 16): emitVectorFunction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (3 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b9ae12413ea5ee8f414637988e21a40d73405e2ad0ad3b31726ed73f1f678c"}},{"ruleId":"D2","level":"warning","message":{"text":"constructor (cognitive 16): constructor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, ternaries 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e8ad01fb4f66bdd95ae487a48e685d2bda540f9b4487816689bddfec4d733c"}},{"ruleId":"D2","level":"warning","message":{"text":"_spawn (cognitive 16): _spawn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 2 (nesting depth added 3). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 7 function items inside it that branch (onMessage, die, fail, \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/backend/web-assembly/worker-pool.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f0e40ca7e00639eb8e62703d04f37947886787293aa3f569d06d1048867b82"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAssemblyFunctionNode: ClassTooLong \u2014 3147 significant lines (blank, comment-only and punctuation-only lines excluded), 113 methods. The bar is 400 significant lines; this is 2747 over it, 7.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"640c5b6f5dbdf016bd88001a5f42ac145eb32361fae7c9882e80827f2c7667b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-assembly/function-node.js: FileTooLong \u2014 3271 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 96% of them inside a single declaration: WebAssemblyFunctionNode (184-4351). The bar is 1500 significant lines; this is 1771 over it, 2.18\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/backend/web-assembly/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e59305021b7ee773813ac8d658b3638bbfdbc7be1662b0952499e760ce38ccf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebGLFunctionNode: ClassTooLong \u2014 1568 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 1168 over it, 3.92\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/backend/web-gl/function-node.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"da05ab2b40a0eb50c832165591c9639cb83edf619e84a6c5540259d1ac534478"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebAssemblyFunctionNode: TooManyMethods \u2014 113 methods. The bar is 30 methods; this is 83 over it, 3.77\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/backend/web-assembly/function-node.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d978d6bf9e9e1916633922356594b15d4342245dfa02c795df02fe9190b64c5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-gl/function-node.js: FileTooLong \u2014 1680 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 93% of them inside a single declaration: WebGLFunctionNode (17-2345). The bar is 500 significant lines; this is 1180 over it, 3.36\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24add84a2244c9314efc4125fc1b8616becb7c55c9bd00983bce1d92987b1d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WGSLFunctionNode: ClassTooLong \u2014 1147 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 747 over it, 2.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3917b1f032d64024d62109f9cba9a30a1d783e5d6de4c72c771f57128fa37423"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebGLKernel: 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/backend/web-gl/kernel.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bb0acc2d6ec6b15890b9a7b49dfaa2ef33f2acc9e15a3609a4f1398afad60d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/function-node.js: FileTooLong \u2014 1280 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 78% of them inside a single declaration: FunctionNode (79-1548). The bar is 500 significant lines; this is 780 over it, 2.56\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/backend/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d78564183f0947f661d64f00718010e6540f0d7820d5b8317236a3b22ccb7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGLFunctionNode.astMemberExpression: MethodTooLong \u2014 astMemberExpression runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56\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/backend/web-gl/function-node.js"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b9582abc1f87518cd537660938898b149cbfb9e32573ea9f0b4b957ffc5956"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebGLKernel: ClassTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 400 significant lines; this is 607 over it, 2.52\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/backend/web-gl/kernel.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbb5716fe3ceef146b8b3c4c0e7e5c18db18ff45fe2e0d8d81814ae6344ee52"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FunctionNode: ClassTooLong \u2014 992 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 400 significant lines; this is 592 over it, 2.48\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/backend/function-node.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fb110c90b2333b0cbfc4fa6f07c3bb0e0efca29635d75e05d593db6544d8f5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GLKernel.pickRenderStrategy: MethodTooLong \u2014 pickRenderStrategy runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4668a0bafa8decc2fb2427b3b1d759698dd9acb292ca30a1d557ce801e896313"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-gpu/function-node.js: FileTooLong \u2014 1171 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WGSLFunctionNode (17-1553). The bar is 500 significant lines; this is 671 over it, 2.34\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/backend/web-gpu/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ed8e9b6f6707f36344cdec718432a920089f76303d55635f1e3a7ecf745984"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssemblyPipelineExecutor._compile: MethodTooLong \u2014 _compile runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2020cf94822874f4965f05ad67d9b305a01ce0ce6c38164cd9bcfa3556dbb2b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionNode: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3326bb3b9903d66da30b8ce8be3a30d2a4c7c5ffb10f2b54a12df361f837aeb0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Kernel: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\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/backend/kernel.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c00fdf6306230c1248a6fcd7f1eabe33c25fcf89f4263063c35226df2bedde"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssemblyFunctionNode.vAnalyze: MethodTooLong \u2014 vAnalyze runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\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/backend/web-assembly/function-node.js"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"59276f66deb6b83ab2948a65744aeff66ddb6d97bddb259dff960a8bf338784f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGPUPipelineExecutor._compile: MethodTooLong \u2014 _compile runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f3ce1a905d9176e008f8aa426fc795f57768b5cc4f16e72d7b2feb9a5a3521"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-gl/kernel.js: FileTooLong \u2014 1026 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WebGLKernel (48-1647). The bar is 500 significant lines; this is 526 over it, 2.05\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/backend/web-gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6fad1c3c1708d91d328dfeea74ac34ecbba3c8b5c00d3f0cb4255954e7844e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: benchmark-pipeline-webgpu.benchInPage: FunctionTooLong \u2014 benchInPage runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"scripts/benchmark-pipeline-webgpu.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea146cc8ac4c7ec514ebb390b8a02152606bc39c22fd4f4035bff9fb461f9493"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebGPUKernel: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 395 over it, 1.99\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/backend/web-gpu/kernel.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"545712dafd6d22de4d2453575f2efad1aeb029b66984254540d85442d85bcb69"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionNode.getType: MethodTooLong \u2014 getType runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\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/backend/function-node.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5373599e9ec4bd0905ac7c73f746554f587f5bce18a2f6143656b8f6366290e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GLKernel: ClassTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 293 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/backend/gl/kernel.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed96a4b121f0464f6c75bcb21688ca1d2c0d6ccb59f7e75ecf4e30c06c5a7cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GLKernel: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.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/backend/gl/kernel.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c44b01c1c5ee36aa92c84c475176fcce19f271503c69bd812fd213ff464b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-gpu/kernel.js: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: WebGPUKernel (50-1237). The bar is 500 significant lines; this is 330 over it, 1.66\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/backend/web-gpu/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"622eaf991a2a8ba80f404020a881da00cfe90036add31bfc744c1a45b1ed3f8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAssemblyKernel: ClassTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 250 over it, 1.63\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/backend/web-assembly/kernel.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e977f175778646a49ad71b480b21b28a61c2744c40901bbba72a483f7cbae28"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: benchmark-webgpu.benchInPage: FunctionTooLong \u2014 benchInPage runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"scripts/benchmark-webgpu.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"290a9a6a3b67803d6f3884669b60448eece60d8dad62bad453b1ea6cc1bfc72b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionTracer.scan: MethodTooLong \u2014 scan runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-tracer.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd74a7504d828614f4fd0d90d7eeeff15a6b613ba50c5acbc597628df4a5ad3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGLFunctionNode.astBinaryExpression: MethodTooLong \u2014 astBinaryExpression runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c859f4fd7e7cc54345eeabb0dcf48bb97c2c304dda702bce0b6620b86d6fc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CPUKernel: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/kernel.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c244492f9bbc1748a3ca3d76206c0df29474dba5ffc8c64ad738e5eb887965"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionNode.getMemberExpressionDetails: MethodTooLong \u2014 getMemberExpressionDetails runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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/backend/function-node.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec35af397dd06be84105c940c38a2614dff99ed079ca3b9d224a7df6f573856"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebGL2Kernel: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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/backend/web-gl2/kernel.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4f73b95c5c80feada8a1b80241e66f101cb3700a379998fa8e3a5c8627c1c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CPUFunctionNode.astMemberExpression: MethodTooLong \u2014 astMemberExpression runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/function-node.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e58682de0b5302336536e8b50c824bba6ee43f4f98df6fb7c7504476ad8ebf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gl/kernel.js: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: GLKernel (27-1040). The bar is 500 significant lines; this is 222 over it, 1.44\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/backend/gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7afc1dd1abeabae2b0c8b0995d813925a1dce04ad0719ba17dad68730c9834a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FunctionBuilder.fromKernel: MethodTooLong \u2014 fromKernel runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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/backend/function-builder.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ea35c6fdf68645afd70f1da4a9a194b6b4bad690f2e91ee06486d1e520d3cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WGSLFunctionNode.astCallExpression: MethodTooLong \u2014 astCallExpression runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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/backend/web-gpu/function-node.js"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec702b4fcb28dc606ea633d016392cb3eecebf3a966d2c26dc516283d8f7b6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGLFunctionNode.linearizeStatement: MethodTooLong \u2014 linearizeStatement runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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/backend/web-gl/function-node.js"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f8d5ea94e3c69dd10f90ef6709196556f8ea8cd9f01ecfab800ecc6f50e610"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssemblyFunctionNode.vexprBinary: MethodTooLong \u2014 vexprBinary runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3548}}}],"partialFingerprints":{"codehealthFindingId/v1":"871b53273963a95722cfde12da1c4ccaf44494f07228b7d00e41969fd3725468"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGPUKernel._runInternal: MethodTooLong \u2014 _runInternal runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\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/backend/web-gpu/kernel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"840dc316adde57588d75e1f6d0a617b78649d9f354eaeac9b10be4779136c98f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WGSLFunctionNode.astBinaryExpression: MethodTooLong \u2014 astBinaryExpression runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\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/backend/web-gpu/function-node.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b93de69381ccf81016a2e0d4c4c4bc23e9c9e1c635c2aaf276345e9fea9e7a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-assembly/kernel.js: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: WebAssemblyKernel (46-1033). The bar is 500 significant lines; this is 173 over it, 1.35\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/backend/web-assembly/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c4a4610cfa2126a3b8239799abddd5c47809958ba9dcedb99e345843df322"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssemblyFunctionNode.exprBinary: MethodTooLong \u2014 exprBinary runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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/backend/web-assembly/function-node.js"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"6611a8849b7134e56595d01b7b2beb9bb121d127d20d217ffd88ad6cf76da4cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebGLFunctionNode: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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/backend/web-gl/function-node.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"078dbf2c6f6247f65b98b2a85f00cc1538f2afcf66daec8dd017d9aaed180a93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebGLFunctionNode.astCallExpression: MethodTooLong \u2014 astCallExpression runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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/backend/web-gl/function-node.js"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"1136744565d3f33ad486d7274c6dd4c7b69cd96cebecbe4de500164190f78018"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WGSLFunctionNode.astMemberExpression: MethodTooLong \u2014 astMemberExpression runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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/backend/web-gpu/function-node.js"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"514309fb3143625e9fdb609f29c7d7d204bf08688613df0d9562af1aa56fba54"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebGL2Kernel: ClassTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 101 over it, 1.25\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/backend/web-gl2/kernel.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd55ff5e40fe21bb0b3dc8df9bc6524f29b35e340bee75d0ba78a75836c43e86"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WGSLFunctionNode: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"89783d8b83fe610a08a9eb6541dddc903442506d51cce0a208e6ca29ea64e8f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebGPUKernel: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0deff82bf4af34d411e9acce63f7232dfda6c87bfd1ae70fb48f623d6ceee4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CPUKernel: ClassTooLong \u2014 467 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 67 over it, 1.17\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/backend/cpu/kernel.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8dad7724d3a307fcda06a1beaab3835bea53ec199198083a2ff4e8bdc52083"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebAssemblyPipelineExecutor: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 54 over it, 1.14\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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"775d443eb88b1e37aa409dfc6c442d9bde5a01355b8cc9a14fa0c0a9d918a5f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: kernel-string.cpuKernelString: FunctionTooLong \u2014 cpuKernelString runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/kernel-string.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7048a8b9e1109e457e4d2f2c74ab871f2bbfc3e4cfba657df36d9e6b986dfe5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebAssemblyKernel: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b201da0e82dd2e41643796bf836197610bc96024259c75ed5b1852ba70b74199"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CPUFunctionNode: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 27 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/cpu/function-node.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec940abe3ca04034df8d782ccd186d8380b57aa068b307de60cbedc614ae066"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: kernel-run-shortcut.kernelRunShortcut: FunctionTooLong \u2014 kernelRunShortcut 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/kernel-run-shortcut.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0c3119987911f4dcc57f7889e3be24d9afd4bb22d304a38fb0f7ebdbd618a0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Kernel: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 23 over it, 1.06\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/backend/kernel.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"621c198518765feb4224aef106857a68e0fd591853210ed015c6b565cc98a9c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebAssemblyFunctionNode.vstmtSwitch: MethodTooLong \u2014 vstmtSwitch runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":3349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a06b12c3538c01df925c7b6833880e79e3bbb604fea590e26ef4bb260505d51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web-gl2/kernel.js: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: WebGL2Kernel (31-830). The bar is 500 significant lines; this is 15 over it, 1.03\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/backend/web-gl2/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce7f0d3be5f5e6813cb7aead464750f213e3fd74b09b8d2b0fc99b9192a155c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Kernel (LCOM4 15): Kernel\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/kernel.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"01069764e92371cad8aa73f28aabdb171002bed35fa157721da35edcce5c662b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WebGL2Kernel (LCOM4 11): WebGL2Kernel\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ec77d1473c1d59b27279af266316259efcc01b09fbc1dd2c756fec2d325875"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WebGLFunctionNode (LCOM4 10): WebGLFunctionNode\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d645b88b6f0f25b214e8a3e6697ba33770d96e21fccb7e9adb489d4d493a774"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GLKernel (LCOM4 4): GLKernel\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"947e9661fc4d25c490df3209138cc3f88311c58ca22dead159ca3e7892e8688b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/texture.js: 41.7% line coverage (30/72)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/texture.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e136819bdb6b03504410122c6bc79c9191c2d7b79918e46a6a5fd6db6da6f9a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/gl/kernel-string.js: 8.3% line coverage (32/387)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel-string.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e2c9e02c103186ae058e779980cd1eb2a9d213ae803de43c2a158cac0838e7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/gl/kernel.js: 42.8% line coverage (450/1052)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab70572aca3ca1ae121ffde5a137b25930b244065cf915b37f52adcf6f63d74a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/gl/texture/float.js: 36.8% line coverage (14/38)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/texture/float.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6897ab45daf73656cb666aae6e9ab844f531765444c29d9456d68fc72800a858"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/gl/texture/index.js: 31.0% line coverage (40/129)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/texture/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed169c0b63a53823caafc5533474e99c3c49da109dee43088469e101deb89b4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/gl/texture/unsigned.js: 37.8% line coverage (14/37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/texture/unsigned.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2214e1fa50ed5564fcbcc82eae9894b99f9d77415e0c4f41797a2b3e845a358b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl/kernel.js: 44.3% line coverage (731/1651)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76a3db07d1e9fbc860dc9220418c2fd2107660612ef40960a4fa7660ba006ca"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl/kernel-value/array2.js: 48.3% line coverage (14/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/array2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9145d09990de80087693a7f5518c920bee8179a559d9a07a399915ec998adace"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl/kernel-value/array3.js: 48.3% line coverage (14/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/array3.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3631d730e0b5186e04bb865046643ff7206a0d96ee444f95c31d8029f9649987"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl/kernel-value/array4.js: 48.3% line coverage (14/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/array4.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a002c69cb4cea26fc16f854f92eea68b46204ea6f78f0666be708119d7b06ef"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl/kernel-value/float.js: 46.7% line coverage (14/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/float.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c6d891779a5befaf34d181149efd57cef40d03001f277c0904738f416174a1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl2/kernel.js: 32.5% line coverage (271/834)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fa08e4659d77cc876d7711210d684a80af86d0435746e1ebaaf0f2f153926d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl2/kernel-value/single-array1d-i.js: 45.5% line coverage (10/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel-value/single-array1d-i.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a122d1731979e8a36f499639bb98bb34a3a97e58cd95640a9a707f684e67c5c6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl2/kernel-value/single-array2d-i.js: 45.5% line coverage (10/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel-value/single-array2d-i.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d97f7cb351d65bd0e309acfb37234d814f8e1bc3cdc6afe8588e92e2cb0749"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gl2/kernel-value/single-array3d-i.js: 45.5% line coverage (10/22)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel-value/single-array3d-i.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d653025cb6b6187c71f65c00899d3c07b8807952f9bed0e3b4d90a071fcc40"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gpu/context.js: 40.9% line coverage (36/88)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/context.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"269f8fbd884339a6ee3a916fa2ed96d6ee9f60bb20f78e97cb56314a36be3c4f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/backend/web-gpu/kernel.js: 32.7% line coverage (406/1241)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0701e07e254b3b2fb669265db6ea374df0e0eaf7b55bcbf66f6bd6e40685d703"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/vendor/gl-wiretap.js: 23.1% line coverage (107/463)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vendor/gl-wiretap.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20febeb1a8104857446574cc53020a4c11cb41f1839f343cd819db27827c4f0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/playwright/qunit.spec.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1cdf0f71c3faad01f51d3da975bfce26f437d133e0835f52c24a65821a4e68"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a case-terminating break is consumed, not emitted: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8626c9fd2ab3bd28987e974584229888a2cf211069990687635821b8950b96e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a mixed int/float ternary promotes to float instead of rounding: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a336ec96f43363882545352f09507331055fc788cb02bd5ac64e4bbd24bb16"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a promoted ternary type-checks in its enclosing expression: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8054c8b6bada468418da9bf98946aff781ae76225347e5b64a260c9f1bbd237"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: prefix increment emits the postfix statement form: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7879499bcbc799ae97cffc689a82576f39eb14238d0e94d0a209078bbeca57dd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a helper named after a WGSL builtin keeps its definition: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e9e374f72cb07fb0e0534ed17be57bd7a401328d577f105383cf10d4b72c28"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: helper argument types still infer through the original name: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ef4dbd5902d7781b3263a8392deac3b0b8916171d278bac6c745ba06e48f17"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a comma for-update moves into the body, continue included: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f125e21a302f744bda8f8b4458e9f244cb1784cf74b092a4dbf7797ff2edf8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a comma for-init hoists to statements ahead of the loop: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7fd0da0d19737ed16c8e8348a15f2d46cac9db0281f29d7375edaa9e9cfdcc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: every user function name is mangled, reserved or not: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"165578dbabd1ff14c82e6282d7dbd5fd4d70ebc16dcd7147c9787251ac3c4114"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Math.random compiles to the seeded PCG generator: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"989cf5f73af0201f50e82a7fca2c02e978841bf92d27aedfbef03478979f213e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a kernel without Math.random carries no seed machinery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aebbb0a02dcc9ffa89518b5a7f665ac8ed666276701898918e576841f803536"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: a negated operand never fuses into a decrement (#874): This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/wgsl-codegen.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"facd2a5f0de16555cfd0bc9b30fe7d086dc6e2bb34ab5c4a7896b010b02106ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ${ name } cpu: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/features/pipeline/correctness.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940fdec83cb260f7e6194318cb7875c08e38527c84606f876af684e9651351e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ${ name } webasm: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/features/pipeline/correctness.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b5970fff0ffa574418a9de49bdb50819186b234879ee45c55f22efdd27b598"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ${ name } webasm (generic forced): This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/features/pipeline/correctness.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ec2646f4425324cb3898f4e7a051f12c9678ba85e1449231cd984d0a15e445"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 10.5.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\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":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a21a0f511e79bf1641d8781e0ca2d1a227ed4ef5f1fd822135ca3108ada0d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: prebuild-install: prebuild-install 7.1.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022No longer maintained. Please contact the author of the relevant native addon; alternatives are available.\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":2526}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37fa194cf8bba083d3ee45aa6f104c0e62e5a3135c5862549d48e21468d242"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/function-node.js: src/backend/function-node.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 98 in FunctionNode.getType at line 487. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/function-node.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c08db083204960daa31f5827b4acc113fd842a4d667f6d2871aac61b3377a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/gpu.js: src/gpu.js changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in GPU.createKernel at line 283. 6 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/gpu.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/gpu.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f630f1430348c16880945da2b8b35b69ba0b67753962908dd877aab372036f3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-gl/function-node.js: src/backend/web-gl/function-node.js changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in WebGLFunctionNode.linearizeStatement at line 1268. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-gl/function-node.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cceb96cbdc44005864513fb29d9f9e000a842e49c322ac7636ce5a1b6db72ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-gpu/function-node.js: src/backend/web-gpu/function-node.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in WGSLFunctionNode.astCallExpression at line 1284. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-gpu/function-node.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/function-node.js"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"219ce1c2a538aa0ec4dd5ec50dc470e93ab469bc0f6bb3014953fea4d78b853e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/pipeline.js: src/pipeline.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in Pipeline._executeGeneric at line 728. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/pipeline.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pipeline.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5ec545c6c1e84a1b35196483b90f77a797eb22197631dbc9a1f1c8b48740e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-assembly/function-node.js: src/backend/web-assembly/function-node.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 150 in WebAssemblyFunctionNode.vAnalyze at line 2057. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-assembly/function-node.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee999079105d8d83529590ad7ffff9584f5b8e5f80cd87d5d2dfbab666d53ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/kernel-run-shortcut.js: src/kernel-run-shortcut.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in kernel-run-shortcut.kernelRunShortcut at line 10. 3 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/kernel-run-shortcut.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kernel-run-shortcut.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be62012da60ccb242d3def1b71aeb39f1080b47d880604d1473081580b93244"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-assembly/pipeline-executor.js: src/backend/web-assembly/pipeline-executor.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in WebAssemblyPipelineExecutor._compile at line 140. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-assembly/pipeline-executor.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e705e579667ab4b78a238298580be9a3d51196358eab424302fc9e5028363ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-assembly/kernel.js: src/backend/web-assembly/kernel.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in WebAssemblyKernel._runThreaded at line 846. 3 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-assembly/kernel.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c583eaaa283cd99464b6dd74b5a952a263c4d7eed03515073c0fa3905fdba9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-gl/kernel.js: src/backend/web-gl/kernel.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WebGLKernel.build at line 501. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-gl/kernel.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a39fd2470ccb2a915d1051b86564a7cc8d12f670d2f2bfd4c5833b1914e85f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/web-gpu/kernel.js: src/backend/web-gpu/kernel.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in WebGPUKernel._runInternal at line 823. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-gpu/kernel.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gpu/kernel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daff40f9a86120413e0ad154d06b0e50303a638cfa4242238d3a7bebcdebf69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/backend/kernel.js: src/backend/kernel.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Kernel.functionToIGPUFunction at line 985. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/kernel.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/kernel.js"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71f9c0d941a6f9028ea9e231c797f1a0738603216fbf83d4553aa6cfb3f3a6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/backend/web-assembly/worker-pool.js: src/backend/web-assembly/worker-pool.js 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 13 (its worst body is WebAssemblyWorkerPool._spawn at line 201), 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: the fifteen findings of the final pre-merge adversarial review\u201D; \u201Cfix(webasm): bound the module cache; scrub released wasm memories (#870)\u201D; \u201Cfix: the twelve findings of the webasm adversarial review\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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-assembly/worker-pool.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/worker-pool.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3c1514d2695eb8413ff5c6ce0e1b0833087aa92d472dad1e0929beec7ed4ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: test/internal/hoisted-index-reads.js: test/internal/hoisted-index-reads.js 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 4 (its worst body is (anonymous) at line 154), 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: lift user functions called nested inside themselves (#300 follow-up)\u201D; \u201Cfix: cover loop headers in the FXC hoist (#300, no exceptions left)\u201D; \u201Cfix: linearize side-effectful statements so the FXC hoist covers them (#300)\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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- test/internal/hoisted-index-reads.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/internal/hoisted-index-reads.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc5dddd8f9a5c1ba59aba5e362cd77786ed4ace62a76a491b864b94db6db7c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/backend/web-gl/kernel-value/array.js: src/backend/web-gl/kernel-value/array.js changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is WebGLKernelArray.getBitRatio at line 72), 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: one kernel\u0027s arguments no longer clobber another\u0027s array constants (#862)\u201D; \u201Cfix: Kernels throwing on WebGL1 contexts without OES_texture_float\u201D; \u201Cfix: Int8Array and Int16Array arguments read as garbage\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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:20:29 \u002B08:00\u0027 --until=\u00272026-09-24 10:20:29 \u002B08:00\u0027 --full-history --no-merges -- src/backend/web-gl/kernel-value/array.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/array.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41f497318b31a640352c28cea5d68eed780f609a9e2f8eb1f015dc966c448c8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 27 significant file(s) lose their only recent owner: src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/function-node.js, src/backend/web-gpu/function-node.js, src/backend/web-gl/kernel.js, src/backend/web-gpu/kernel.js, src/backend/web-assembly/kernel.js, src/utils.js (\u002B19 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e8f0e41212fd4d4c0574aa0a85db7c1c0f37d4b77ace05759126ea39b932435b"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (30356 LoC, 164 module-visible types across 18 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f19ee62a31bba465cbf775a0074d8be77951d81b454aa867d454fa5cac0e1df"},"properties":{"commitSha":"4d808ac5ed8574ade571f81aaa69d23726fefcf5"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"dabfcc7344d3e87171887d58d9fdd5ad421c09db44658e3a4bd98781f2680a15"},"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":"9c7f1baafac569165e8c3468c8199378583d6b48229795df4c64fd48e4bd35f7"},"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":"bf65587981c3bf3a2c280eed84cac823d603bec3b0022328dcfbd0d8214507fe"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"a8ae3771714047df4e5a764cb282685b3440bea2e9fc27a5fa94d7111f4559a1"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"79201fd1c2932751f5801666834181ca264867c9ccbb92c5eda6129164f019b1"},"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":"2b50d6185f231a28fa9959e31861b0be76667502f1a2f794cc5c60d4fa797cb7"},"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":"b15e7c4516957eb0ce628a71875180462280b3da835590c3e3ea26dfe36c7cc0"},"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":"9ef572375c53653625b2b0025fe85582c472b2319dc3295c9d85153907c1e68a"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"f3fc77a73f9911a07c257a7fcf6dd88bade696b7346f8d07d87da001d419db8f"},"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":"D29","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":"e15959ae6d25b12efe51f98e678b5b41025acf2e0baa86682b9e69136712cabb"},"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":"D29","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":"4489a919d16a05960935f60756564bc130a0e44692e50a541804768aad493478"},"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":"D29","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":"9bf6e0e42d56cc7a7093fb99bfc480f58026a40ad9024a3466817b5e1bf64782"},"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":"D29","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":"0836fbde06980a688f438de353c60bb217d8e9ab3799c406c7d78d00404cfeb6"},"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":"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":"b38bc471a02a1d44fad9fc93e4ef956fc5f51f19be978843ed888a90f65576e3"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94789a8fe374074fbf6f6a72dc74da5bfb3e6c783e0998b8a54cac663db4f41a"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef7b61662aad73439eec0d494cf24b1cb31c781694acbc07a155ba26d21c4c4f"},"properties":{"dependency":{"package":"ip-address","version":"10.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-builder.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c28adfb2632d1695d85666e619139a3828405a0b8111190279a390254f84939"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 5 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/backend/web-gl2/kernel-value-maps.js, src/backend/web-gl/kernel-value-maps.js, src/backend/function-tracer.js, src/backend/cpu/kernel-string.js, src/backend/web-gl/kernel-value/unsigned-array.js (6 orphaned of 34 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; 34 of the 123 production source files in this repository met that bar). 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/backend/web-gl2/kernel-value-maps.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26eef55e46a1c28694bae8bc7469800c0ce3c0bcf41aee5f621777c40f80f42"}},{"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/backend/web-gl/kernel-value-maps.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b0ba0936ddbd20f782d56aef181a6c1b81186b41180236e8a5e12e9eaca59c"}},{"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/backend/function-tracer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"613ad3dbb937c4176a3627ea9095d087b21fcf75f5c3c36a1100cb7122edb723"}},{"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/backend/cpu/kernel-string.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"347e19665aa3a99b62345dc9894f5e52de893281f92d06c49f1f10ab050590c5"}},{"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/backend/web-gl/kernel-value/unsigned-array.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc645172291b7089bb17e29323bde0557591ca30825704420ccb6506d5f07cc9"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: fragment-shader.js \u2194 fragment-shader.js: \u0060src/backend/web-gl/fragment-shader.js\u0060 (context web-gl) and \u0060src/backend/web-gl2/fragment-shader.js\u0060 (context web-gl2) sit in DIFFERENT parts of the tree yet change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060423abc91\u0060 fix: index an internally defined matrix with loop counters on WebGL; \u0060dc39458c\u0060 fix: Bitwise NOT ignoring the sign of its operand; \u00605624a7fe\u0060 fix: Signed right shift losing a bit on exact operands \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/fragment-shader.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"177bdeba3755fcbcdd24e044fb4140da79fc90a1491d0c0a09ce32502ea9763b"}},{"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":"207628e2a7a2bb9f2817bfafbe1f073dffccb0710f380f4439d3bb47efdfcc5e"},"taxa":[{"id":"CICD-SEC-5","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":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: The \u0060if\u0060 and its \u0060else\u0060 contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"296d01f4d73d1d4de51a36149cbaaf9eb4cb9890f3b0206a08954dbe01c9c2cb"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: The \u0060if\u0060 and its \u0060else\u0060 contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"835a4ae6bb3cb350cf073068b5ca7ec16bbb14c80a9942042f5dce9d1095617e"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/playwright/qunit.spec.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57aeb1b86abc7935f804268f0f0ea8de9f5a1bbc3fbaaf48bd3aaea1376e8a"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"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 3254 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\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":"test/browserstack/run.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde2e895b399ae3652ef9fca1c6b77aaff0584b03141d076522f946905d260c3"}},{"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":"test/browserstack/run.js"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"330a55bc6ad8f0dfbceeea0764f3c5fd006b02d6a4a9d088c6989eba9fe4ac3c"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 471 plain JS \u2014 the untyped files are scripts/beautify.js, scripts/build-tests.js, scripts/build.js, scripts/dev.js, scripts/empty-module.js, scripts/lib.js (\u002B465 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (76 clone groups): 76 duplicated blocks under src/backend/ have copies in at least two of the sibling directories cpu, gl, headless-gl, web-assembly, web-gl, web-gl2 (\u002B1 more sibling(s) not listed) \u2014 61 of them are reported below, and 15 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 76 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 76 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 76 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b9e78500bfc051e8b63efb14727ba1030073aecbd5183f43d9a926e30f6f8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (436 matched lines \u00D7 2 locations): src/backend/web-gl/function-node.js:23 \u00B7 src/backend/web-gpu/function-node.js:108 \u2014 the two spans are one implementation copied and then locally edited \u2014 2776 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/backend/web-gl/function-node.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82ede7c19567d041fc7d95ca00e0f5af32372cfcfc447e1b3ef7d7b62ee2300"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (217 matched lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:641 \u00B7 src/backend/web-assembly/function-node.js:2666 \u2014 the two spans are one implementation copied and then locally edited \u2014 1570 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/backend/web-assembly/function-node.js"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"7338b92639e7e8d91696cf4336399387685d39d9a4eb340a6a41487943ac54aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (201 matched lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1939 \u00B7 src/backend/web-gpu/function-node.js:1239 \u2014 the two spans are one implementation copied and then locally edited \u2014 1146 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/backend/web-gl/function-node.js"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"197c127831c6661c9f68af18dffb18f1ad63fa09068ef3ea8724977ed2ad8678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (188 matched lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:360 \u00B7 src/backend/web-assembly/function-node.js:2407 \u2014 the two spans are one implementation copied and then locally edited \u2014 1189 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/backend/web-assembly/function-node.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"96070faedb5b5f6c33bb0bfd9b7c1c4e94b42fa63dc51c650c83b127d57a9819"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (68 matched lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:130 \u00B7 src/backend/web-gpu/kernel.js:86 \u2014 the two spans are one implementation copied and then locally edited \u2014 341 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/backend/web-assembly/kernel.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"68630f24d9693768d597bfed6acfbe881fa38ab5c85df339f41c6e650d0b8eda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1340 \u00B7 src/backend/web-assembly/function-node.js:3585 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e3354a32345496b5a3a51dc269059579f7e47b8173008dc0ed89e870623dab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1694 \u00B7 src/backend/web-gpu/function-node.js:1035 \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/backend/web-gl/function-node.js"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e40f5ca5c74672efa4b5fe39ddae5ba7853231b3f5040339ec60991f3cc3f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1263 \u00B7 src/backend/web-gl2/kernel.js:643 \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/backend/web-gl/kernel.js"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdfb9146a2c2fc5851ae85a31c98b7b67e0e2d5272fffd5d204ed4cbc0e22af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3 locations): src/backend/web-gl/kernel-value/single-array1d-i.js:4 \u00B7 src/backend/web-gl/kernel-value/single-array2d-i.js:4 \u00B7 src/backend/web-gl/kernel-value/single-array3d-i.js:4 \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":"src/backend/web-gl/kernel-value/single-array1d-i.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9637953f86248fc09a91d9c735b1465d63784ef69b3824452342f79790cdeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:963 \u00B7 src/backend/web-gpu/kernel.js:1056 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b3d23d30f97c35a9e6181ba9ad9763d18f6b722eaba7c15fc7e25a2eb45d00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1409 \u00B7 src/backend/web-assembly/function-node.js:3651 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7eaadb8a9b6c6284ca1986a29ebd64ebb39f24fe18e24fbc64e22d57cd5d6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1365 \u00B7 src/backend/web-gl2/kernel.js:719 \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/backend/web-gl/kernel.js"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"03889b1680ac63c3d7ac120ba591cea71b96bdca1672c77d4a6b49300972f204"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3 locations): src/utils.js:541 \u00B7 src/utils.js:582 \u00B7 src/utils.js:623 \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/utils.js"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79237fc5ad2fb6e10d53b4e3dc77ff706f85e0146cd04e18c1eeaa5e799faef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3183 \u00B7 src/backend/web-assembly/function-node.js:3261 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4ae092db1ea643ab0ad0b1bd3a74b5524520b30a294c0f2ccbf97bc082d1ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:819 \u00B7 src/backend/web-gpu/function-node.js:755 \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/backend/web-gl/function-node.js"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c67814e4fbf993275c098f8f2362ba498fddb6e869081f133ccf0a74680b0fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 4 locations): src/backend/web-gl/kernel-value/single-array.js:10 \u00B7 src/backend/web-gl/kernel-value/single-array1d-i.js:15 \u00B7 src/backend/web-gl/kernel-value/single-array2d-i.js:15 \u00B7 src/backend/web-gl/kernel-value/single-array3d-i.js:15 \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":"src/backend/web-gl/kernel-value/single-array.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"616309745b562b119820d353423b9d16d189982226b13b959b0ec0f718145e0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:276 \u00B7 src/backend/web-gl2/kernel.js:165 \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/backend/web-gl/kernel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3e468b7b77d9060089ab326435245e6e8f63f64f7ea0a125c4d7ba47e23dbc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/memory-optimized-number-texture.js:36 \u00B7 src/backend/web-gl/kernel-value/number-texture.js:38 \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/backend/web-gl/kernel-value/memory-optimized-number-texture.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2518fd543c9fb7d928dfd7f13336778f330657edd225900f87c4df7125ba4d70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/backend/web-gl/kernel-value-maps.js:177 \u00B7 src/backend/web-gl2/kernel-value-maps.js:180 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value-maps.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ec99ca234336027fe48925f963653bb5877fb1e5768607ef3024ea567003cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:721 \u00B7 src/backend/web-gpu/function-node.js:719 \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/backend/web-gl/function-node.js"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a2418097bda31dc21122c20531a894abc1a8834793dfd94154b5e2b2331b43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/single-input.js:18 \u00B7 src/backend/web-gl/kernel-value/unsigned-input.js:21 \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/backend/web-gl/kernel-value/single-input.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a0baa7d4c92e916506676c808b8759f98b9a256fb28dd9bbc111cbb3b4bec9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/backend/cpu/function-node.js:398 \u00B7 src/backend/web-gl/function-node.js:1589 \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/backend/cpu/function-node.js"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f8695827596f47c5c944e7282822df7ad464c6bac853f2a962a2670dc5459d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:738 \u00B7 src/backend/web-gpu/pipeline-executor.js:587 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7749f27238b7db41b2e115a055411a3f34d89f75125de2fcfa3972ee1a1e1ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3 locations): src/backend/cpu/function-node.js:218 \u00B7 src/backend/web-gl/function-node.js:725 \u00B7 src/backend/web-gpu/function-node.js:723 \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":"src/backend/cpu/function-node.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0862c07a034994fba7b52ca6d01c3566ef0fbf1f80ab8a424e376b0e9ebbfa36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:987 \u00B7 src/backend/web-assembly/function-node.js:1015 \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/backend/web-assembly/function-node.js"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"df030a9fd2bfb6ffda45342096214b7ca2d66d951b997eb7affcee045fd28be6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1934 \u00B7 src/backend/web-assembly/function-node.js:4242 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e7bc0dddccbe16615a16aa0864c95e7cbfc8a3063f7c161b25259c0b57aec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): src/backend/web-gl/kernel-value/array2.js:3 \u00B7 src/backend/web-gl/kernel-value/array3.js:3 \u00B7 src/backend/web-gl/kernel-value/array4.js:3 \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":"src/backend/web-gl/kernel-value/array2.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c463fd744669364382461ff0e24062e7c0ee135e1e69526afdb7c48c79f65a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:95 \u00B7 src/backend/web-gl2/kernel.js:94 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade51156c1d98e13b630aba98cd6bc6999d1bc40f6a4bae646631fd338299a74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): src/backend/cpu/function-node.js:249 \u00B7 src/backend/web-gl/function-node.js:819 \u00B7 src/backend/web-gpu/function-node.js:755 \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":"src/backend/cpu/function-node.js"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab33f957082061b111d13b3a552491685c0cb961466aff268bc79a882741d6d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/backend/cpu/function-node.js:346 \u00B7 src/backend/web-gl/function-node.js:947 \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/backend/cpu/function-node.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3fa86a6492104eec260167de99642b8f843d49efa8e255433a7bdc7eabb5dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:448 \u00B7 src/backend/web-gpu/pipeline-executor.js:423 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0a907ca4cb2b8587187ee28e263f7a80efa53f6ffefa7285c43fd84d8703db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:499 \u00B7 src/backend/web-gpu/pipeline-executor.js:471 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb849d21c8b5875669d08b332f9b46e75ce4267403a8c2c46e967a6595ed3541"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1780 \u00B7 src/backend/web-gpu/function-node.js:1124 \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/backend/web-gl/function-node.js"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"448808d14918fd6ecde9933f229456c12b06f4b3a84853867403ba16cfe1eb7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): src/backend/web-gl/kernel-value/float.js:4 \u00B7 src/backend/web-gl/kernel-value/integer.js:4 \u2014 the two spans are one implementation copied and then locally edited \u2014 116 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/backend/web-gl/kernel-value/float.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c7aa3eb4449bccf9a3ac5dd78ec3f67e10f1567fa7cc852bc1b51e4d7af324"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1556 \u00B7 src/backend/web-assembly/function-node.js:3823 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45c0af6043c2bb183d5bf6c899ec50488cad241ffb52e3daa22efb2ce0d56f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3359 \u00B7 src/backend/web-assembly/function-node.js:3409 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"933e520e415096d3b09c0e6135c72c1b1e9f3324f632823f5dd6c101239f02b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1846 \u00B7 src/backend/web-assembly/function-node.js:4194 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b39edc1b02d4e67a2db3875284073f3feba389d59e502382773e03a5332a724"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:305 \u00B7 src/backend/web-gpu/kernel.js:293 \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/backend/web-assembly/kernel.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8698d1bbd6221a6ffa0e512fc21a849ef4f03c81bd5c95fd58ebe4e54c379f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:473 \u00B7 src/backend/web-assembly/kernel.js:548 \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/backend/web-assembly/kernel.js"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed78dd4c2a5063b3f07a963220fa5e20e9aa5d650069e55161fe4a5a9b2e39e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:57 \u00B7 src/backend/web-gpu/pipeline-executor.js:46 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c865b597745624e27bd9cfafe58bde3575e6e5e3611172d90f7cae6cdc70d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:635 \u00B7 src/backend/web-gl2/function-node.js:18 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c24b0d4b887694218d20a35074b4af9ffff8f6f688494771a4537e99719d33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/dynamic-memory-optimized-number-texture.js:4 \u00B7 src/backend/web-gl/kernel-value/dynamic-number-texture.js:4 \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/backend/web-gl/kernel-value/dynamic-memory-optimized-number-texture.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba9f5e6cd5f867e900622cbfa82f86463977562da191fab606eb72332fd2fab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): src/backend/web-gl/kernel-value/single-array.js:26 \u00B7 src/backend/web-gl/kernel-value/unsigned-array.js:29 \u00B7 src/backend/web-gl2/kernel-value/single-array.js:10 \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":"src/backend/web-gl/kernel-value/single-array.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"341bf30824765fc0e3da1cdf431feea42661eda6ee0b86400758beb19dcba215"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/unsigned-array.js:12 \u00B7 src/backend/web-gl/kernel-value/unsigned-input.js:13 \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/backend/web-gl/kernel-value/unsigned-array.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3645955b9cd59a35208f228d871b088814902bf1e39fd24e761d8448b11846d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:797 \u00B7 src/backend/web-gl2/kernel.js:504 \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/backend/web-gl/kernel.js"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fbbda8f2da5b8bb571b62006212ebf7c68eb65324181e4366640db69c664f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3035 \u00B7 src/backend/web-assembly/function-node.js:3055 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3035}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35a5de7c7bd43ee13f2798f06b0ce5ec1f19a05544c01c87a67de117e4c0b47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1247 \u00B7 src/backend/web-gl/function-node.js:1447 \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/backend/web-gl/function-node.js"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dd39bedbb44c5cc0af2d0148598dcbf7be7b98ae01f3480ab871ce49d4965f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:27 \u00B7 src/backend/web-gl2/kernel.js:26 \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/backend/web-gl/kernel.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d2244398ba70991d2ce1e1455d7f0b2e485ada43d96573294b2ff7d63c6d79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): src/backend/web-gl2/kernel-value/dynamic-single-array1d-i.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-single-array2d-i.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-single-array3d-i.js:4 \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":"src/backend/web-gl2/kernel-value/dynamic-single-array1d-i.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71c0d802d8ccf47de4093b9e7dbb335815299dc0da2cbd3a2cb2e804d8e5810"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): src/backend/web-assembly/function-node.js:1170 \u00B7 src/backend/web-gl/function-node.js:1641 \u00B7 src/backend/web-gpu/function-node.js:983 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c201a79c04c64b17ac24246b70a91c8f2eb6e14fca5316c1904a5846bae5bfe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1210 \u00B7 src/backend/web-assembly/function-node.js:3506 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd40f641ddb69e2036afd5bc314eb98ed20c65a743f4e7a918435f647ed6b2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1701 \u00B7 src/backend/web-assembly/function-node.js:4057 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3688248fe56bfed37a14a2d413744e05c5e5712d88b1a840ef6e19d99b50ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:145 \u00B7 src/backend/web-gpu/pipeline-executor.js:164 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d166842fa1b84db12692ad6ea11a1860f6f16a9ae2ca1ecf1a0fd571e6dedeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): src/backend/web-gl/kernel-value/dynamic-single-array1d-i.js:4 \u00B7 src/backend/web-gl/kernel-value/dynamic-single-array2d-i.js:4 \u00B7 src/backend/web-gl/kernel-value/dynamic-single-array3d-i.js:4 \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":"src/backend/web-gl/kernel-value/dynamic-single-array1d-i.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcd8cfb5bcd8ae076858f590aec9001f9a65678680f026ba3ca21cab7ede685"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1462 \u00B7 src/backend/web-assembly/function-node.js:3732 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"a543b75eff25b0d1fe238f91666223d9f4a7f326245fd00c5bed36997db44617"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): src/backend/web-assembly/function-node.js:3117 \u00B7 src/backend/web-assembly/function-node.js:3215 \u00B7 src/backend/web-assembly/function-node.js:3291 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1ae0cbba5d4984bf4599ec17e8b7688c721ff0a541cc42ee8b657a79927714"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3225 \u00B7 src/backend/web-assembly/function-node.js:3301 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0c89cee16f17c8bf230545dddef8fbd4b53ec948b42e849ef8d1d031b29e32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:824 \u00B7 src/backend/web-gl2/kernel.js:530 \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/backend/web-gl/kernel.js"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53da2888d555db317dfc8ed456b975df871a24f82781205e9cfc1dc88637b14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1342 \u00B7 src/backend/web-gl2/kernel.js:697 \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/backend/web-gl/kernel.js"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c382d065eeb5ba2786d4a05f88a18a3b9fa1f366dbc7fa82b9ff5ff5625f76c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/backend/cpu/function-node.js:515 \u00B7 src/backend/web-gl/function-node.js:1875 \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/backend/cpu/function-node.js"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"188be0d4c434d01c9d7d3559c0dc8d36ba40187c4e0cc841604ff13162c3d46e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/backend/cpu/kernel-string.js:52 \u00B7 src/backend/cpu/kernel-string.js:71 \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/backend/cpu/kernel-string.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"671c137be8487a7f0aed3e37cb981549406e135fdf91d5def769fa3efa597f3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/backend/headless-gl/kernel.js:54 \u00B7 src/backend/web-gl/kernel.js:82 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/headless-gl/kernel.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f293bd88f5560cd648e8910cadd9bf870bd30cb400f8b30e945a145b9eb74e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:85 \u00B7 src/backend/web-gpu/kernel.js:63 \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/backend/web-assembly/kernel.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ae7eca9c3283f29eaf670d2b3814d73ba88950fd5934214312cf1fe04c974f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1753 \u00B7 src/backend/web-gpu/function-node.js:1090 \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/backend/web-gl/function-node.js"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"726662f23ef7ec3f1ae255c306a3146c6afb487291897058619642ff30749402"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6 locations): src/backend/web-gl/kernel-value/html-image.js:29 \u00B7 src/backend/web-gl/kernel-value/single-array1d-i.js:24 \u00B7 src/backend/web-gl/kernel-value/single-array2d-i.js:24 \u00B7 src/backend/web-gl/kernel-value/single-array3d-i.js:24 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 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/backend/web-gl/kernel-value/html-image.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"866c913a77194d0f8f17189e5a608202afa00a1b34cdd8b2499acdda1d4da25b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/backend/cpu/kernel.js:276 \u00B7 src/backend/cpu/kernel.js:322 \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/backend/cpu/kernel.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"901e9fc2c259a0a6331f72c393e5c8be5cdbc6d78d938021d1598020d996d65e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 8 locations): src/backend/gl/kernel.js:518 \u00B7 src/backend/gl/kernel.js:533 \u00B7 src/backend/gl/kernel.js:548 \u00B7 src/backend/gl/kernel.js:563 \u00B7 \u002B4 more site(s) not listed \u2014 all 8 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/backend/gl/kernel.js"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e9de4e04b075b6815d12d58395e83548d2433f4bd6acd98dd280b2a2f0fd5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/backend/gl/kernel.js:677 \u00B7 src/backend/gl/kernel.js:713 \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/backend/gl/kernel.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ff07882318f863cad18c8394486cef81460f9219e3bd276595271181c6f037"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:212 \u00B7 src/backend/web-gpu/function-node.js:91 \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/backend/web-assembly/function-node.js"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"63091dc5f90ad688179971d82351015d41799956e5588a7fefc938546102c098"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:767 \u00B7 src/backend/web-gl2/kernel.js:488 \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/backend/web-gl/kernel.js"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9940b0d594925b41e70c2990ec47573949702e69d25d5965cd368a1d33974ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/cpu/function-node.js:599 \u00B7 src/backend/cpu/function-node.js:617 \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/backend/cpu/function-node.js"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f13665a89a237a4d80f7f2f2c70b5fc6b15dc9f7a2ec035c15d350aa06d03a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/function-node.js:1232 \u00B7 src/backend/web-gpu/function-node.js:622 \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/backend/function-node.js"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"57030abd7140e654e091003ca8883309667246fdabcd3327858b033b57f91a39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): src/backend/web-assembly/function-node.js:1591 \u00B7 src/backend/web-assembly/function-node.js:3905 \u00B7 src/backend/web-gl/function-node.js:2092 \u00B7 src/backend/web-gpu/function-node.js:1317 \u2014 the 4 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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf41c54e73d23275e8cb12a537bb8681a63550b4412373cb8c95d94795322e9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3089 \u00B7 src/backend/web-assembly/function-node.js:3137 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3089}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a50889c70f9ecb2a6cae4f75a200abbd1199d5833cfe2680938485de2e358f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1520 \u00B7 src/backend/web-gpu/function-node.js:890 \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/backend/web-gl/function-node.js"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b73b9e3757224a93fd1e18d001763ff40a79d00ca23d894af795aa3297c95fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1897 \u00B7 src/backend/web-gpu/function-node.js:1231 \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/backend/web-gl/function-node.js"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5bbe7e7b361f43470dd5deba3f23eec3a44c4e8c06e630996e8f2df33dc19f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5 locations): src/backend/web-gl/kernel.js:887 \u00B7 src/backend/web-gl/kernel.js:902 \u00B7 src/backend/web-gl/kernel.js:918 \u00B7 src/backend/web-gl/kernel.js:934 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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/backend/web-gl/kernel.js"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5ec9b4589a7e699684526599dbb75cc8acce16d1aa94eec71bf23abd54245e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): src/backend/web-gl/kernel.js:912 \u00B7 src/backend/web-gl/kernel.js:928 \u00B7 src/backend/web-gl/kernel.js:944 \u00B7 src/backend/web-gl/kernel.js:961 \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/backend/web-gl/kernel.js"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"80337fed1fa4f6f759910af7ed95e9372549602d161c59342208d3bb8e912c2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/web-gl2/kernel.js:753 \u00B7 src/backend/web-gl2/kernel.js:776 \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/backend/web-gl2/kernel.js"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0feaed916ce2140684337dbda8b72c21fac3f658289ac4b1f592854a39ad7d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/backend/web-gpu/function-node.js:815 \u00B7 src/backend/web-gpu/function-node.js:830 \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/backend/web-gpu/function-node.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"2376ecd14e088ff7e39f9128e1fafe1b16dde7be582f2170562baa6ecc2facd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/backend/gl/kernel.js:375 \u00B7 src/backend/gl/kernel.js:434 \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/backend/gl/kernel.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"996a740c14aee93877bcc11728a78f7504d1f525b61d6a91d41915d640561710"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9 locations): src/backend/gl/kernel.js:414 \u00B7 src/backend/gl/kernel.js:519 \u00B7 src/backend/gl/kernel.js:534 \u00B7 src/backend/gl/kernel.js:549 \u00B7 \u002B5 more site(s) not listed \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bfa05ab4b9037b43c8a306aa72e3df9b587358f688e5bf3bba36a333592e33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): src/backend/web-assembly/function-node.js:428 \u00B7 src/backend/web-assembly/function-node.js:444 \u00B7 src/backend/web-assembly/function-node.js:2493 \u00B7 src/backend/web-assembly/function-node.js:2509 \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/backend/web-assembly/function-node.js"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"62001aa55f9b776d5ef2c4c9af9af49434d7d7d5212ce3927f0627f1f392e33d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:768 \u00B7 src/backend/web-gpu/pipeline-executor.js:628 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"342b809482e8966d90a950e3c852f89fa379d27364b5a01affaac8285b54a3f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/backend/web-assembly/worker-pool.js:360 \u00B7 src/backend/web-assembly/worker-pool.js:405 \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/backend/web-assembly/worker-pool.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"42806cdcf55aee05eb0fa33db39a991a7cffb8d346b9fc1ce14fec57d002c7f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1054 \u00B7 src/backend/web-gl/function-node.js:1094 \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/backend/web-gl/function-node.js"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"4167afe598be9a1a550ceed0c560c9a5e1a8be97a0a5c528ea3ed5ccf08109db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): src/backend/web-gl2/kernel-value/dynamic-html-image.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-number-texture.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-unsigned-array.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-unsigned-input.js:4 \u2014 the 4 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 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl2/kernel-value/dynamic-html-image.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a4cb36e7f0d92e9c16893da006c76b33eaf24f3614cead0b14b828d75225d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): src/backend/web-gl2/kernel-value/single-array1d-i.js:5 \u00B7 src/backend/web-gl2/kernel-value/single-array2d-i.js:5 \u00B7 src/backend/web-gl2/kernel-value/single-array3d-i.js:5 \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":"src/backend/web-gl2/kernel-value/single-array1d-i.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e77665cc561f8595a83013bbd86ca14c91c8a128c92b75c2a110e380d8b6379"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/backend/web-gl2/kernel.js:609 \u00B7 src/backend/web-gl2/kernel.js:625 \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/backend/web-gl2/kernel.js"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e43cfbcc95959cc10ad86b97496fa422a92a3924ac66c0609c7909303ee7103"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/backend/cpu/function-node.js:189 \u00B7 src/backend/web-gl/function-node.js:677 \u00B7 src/backend/web-gpu/function-node.js:698 \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":"src/backend/cpu/function-node.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09ba5c3c352b7490582a8f6c10270d7ad4e33f9ef4ff4c2f9615358863f7c88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/gl/kernel.js:54 \u00B7 src/backend/gl/kernel.js:80 \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/backend/gl/kernel.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"835e1dfce6c452513f0cbf6d3472d5161b99ce3899f2a9e6f0f0a0fa08686d33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/gl/kernel.js:124 \u00B7 src/backend/web-gl2/kernel.js:77 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/kernel.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25b8521f367c4a107b51450c56d158c7bd5b1554bfb422d325cf4701b0e2b67"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/gl/kernel.js:459 \u00B7 src/backend/gl/kernel.js:496 \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/backend/gl/kernel.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"a278da646509edaea479fedf4d5e1ebe4b49a5a9cae308dda3026c24a776eaad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7 locations): src/backend/gl/texture/array-2-float-2d.js:4 \u00B7 src/backend/gl/texture/array-2-float.js:4 \u00B7 src/backend/gl/texture/array-3-float-2d.js:4 \u00B7 src/backend/gl/texture/array-4-float-2d.js:4 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 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 7 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":"src/backend/gl/texture/array-2-float-2d.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e4bf0fb1983423688220fc13cd7259138f054e71c5a7d7ba0be6775109daef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6 locations): src/backend/gl/texture/array-2-float-3d.js:4 \u00B7 src/backend/gl/texture/array-3-float-3d.js:4 \u00B7 src/backend/gl/texture/array-4-float-3d.js:4 \u00B7 src/backend/gl/texture/float-3d.js:4 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 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 6 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":"src/backend/gl/texture/array-2-float-3d.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"0346b04642c84004d6af9b2eccd2c0f47eeedfa54fa5cf6ed6b445769e689119"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/backend/gl/texture/array-3-float.js:4 \u00B7 src/backend/gl/texture/array-4-float.js:4 \u00B7 src/backend/gl/texture/memory-optimized.js:4 \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":"src/backend/gl/texture/array-3-float.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4bcbc91170722a9609740669fb59449c685363b76b941429b9ed6a398ab7a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1126 \u00B7 src/backend/web-assembly/function-node.js:3470 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8988e83d34e61199784c50654084ff70498a182fd528e242b995e73a05af94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3817 \u00B7 src/backend/web-gpu/function-node.js:126 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3817}}}],"partialFingerprints":{"codehealthFindingId/v1":"5780a3580cfd842691cff1c08dda5d4e0a9ff68f3c0a0e72b6ec078712e15716"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:381 \u00B7 src/backend/web-gpu/kernel.js:517 \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/backend/web-assembly/kernel.js"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43ec91916b991c25175e0387ac25ad08089bd4a09bc03f487fc4dee9afa3d38"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:1025 \u00B7 src/backend/web-gpu/kernel.js:1229 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2bac89ccd9d1986c1c2b25e5ada4f72dac9eb08c13f26bc28d7c46fecd6396"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:520 \u00B7 src/backend/web-gl/function-node.js:533 \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/backend/web-gl/function-node.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da53431660dbe17c4919acfe63a5c105dfa64f1a32bc7e08140b9ab0e1f84b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/backend/web-gl/function-node.js:1978 \u00B7 src/backend/web-gl/function-node.js:1990 \u00B7 src/backend/web-gl/function-node.js:2002 \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/backend/web-gl/function-node.js"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"baac9b7c893ead93105bbe76b2e2144658d2af424b5d0f134c75d388e3e515c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/dynamic-single-array.js:4 \u00B7 src/backend/web-gl/kernel-value/dynamic-unsigned-array.js:4 \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/backend/web-gl/kernel-value/dynamic-single-array.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6f2513d071a14aec5353df4865bbb3b772d5f190d7e717ae67e1587acc394c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/dynamic-single-input.js:4 \u00B7 src/backend/web-gl/kernel-value/dynamic-unsigned-input.js:4 \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/backend/web-gl/kernel-value/dynamic-single-input.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f22e04efd009e29de2f6e7ec759050f11a97b37eaa958238cc05f902579481b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/backend/web-gpu/function-node.js:1301 \u00B7 src/backend/web-gpu/function-node.js:1493 \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/backend/web-gpu/function-node.js"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8902c274687181896d224b293ecec6d002b3c97fa29153a0445011e2184c2589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/cpu/function-node.js:130 \u00B7 src/backend/function-node.js:1268 \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/backend/cpu/function-node.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"682a49b3ac7fdca9bb22012a728d7137722f034f65ec26f3a8f73664c70e1930"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/function-node.js:1063 \u00B7 src/backend/web-gl/function-node.js:42 \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/backend/function-node.js"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"253472baaf0ce7400d7b1057c1a8365b8870d1d9c71cbc196abcd4db405c8afc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/backend/function-node.js:1418 \u00B7 src/backend/function-node.js:1434 \u00B7 src/backend/function-node.js:1452 \u2014 all 3 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/backend/function-node.js"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd625101c9bb183e78701b73078f2922619054d8d86f50d4baceff532f56db83"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/function-node.js:1488 \u00B7 src/backend/function-node.js:1514 \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/backend/function-node.js"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2281a34996cdf6f7ba5c266f76f43e6324fb849e035e6fcf671227a96f99fe9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:329 \u00B7 src/backend/web-gpu/function-node.js:184 \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/backend/web-assembly/function-node.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bf143db89b8c2f661907796425e8d66a651b078145168f3dd450874a9612ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/backend/web-assembly/function-node.js:1090 \u00B7 src/backend/web-assembly/function-node.js:3373 \u00B7 src/backend/web-assembly/function-node.js:3423 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"05efbb448263e0c7d14d750153f7ab49c1935a949af5b5e2c4904bc5bea8a398"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1726 \u00B7 src/backend/web-assembly/function-node.js:4081 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"0954007c8f7384eedccc0a877ef56862da58f36cf9c2164cb314ebe8bb2c5a33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:2125 \u00B7 src/backend/web-assembly/function-node.js:2140 \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/backend/web-assembly/function-node.js"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f069a55ee8cd60fd1bee315e74409e8a3f99de513dcb417b73c914acd3ab527"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:2245 \u00B7 src/backend/web-assembly/function-node.js:2259 \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/backend/web-assembly/function-node.js"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"476c238410a7e7b152a3eb4004d2a6189df5708a6c1b5fbc0030f69a65ff6234"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): src/backend/web-assembly/function-node.js:3151 \u00B7 src/backend/web-assembly/function-node.js:3239 \u00B7 src/backend/web-assembly/function-node.js:3315 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b90c906a6dced5460a9b1364db25eb49cb8473eb283016e7b9a73a4e8102cfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:689 \u00B7 src/backend/web-assembly/pipeline-executor.js:334 \u2014 the two spans are one implementation copied and then locally edited \u2014 100 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/backend/web-assembly/kernel.js"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39243f02648912ef394fc8aa72363c1434b7693fb03c42d4cae971a2334517d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:89 \u00B7 src/backend/web-gpu/pipeline-executor.js:88 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49ce1173d834757d92e27f423a690ea6608a615805fada0191489fe3a85c3c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:928 \u00B7 src/backend/web-gpu/function-node.js:842 \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/backend/web-gl/function-node.js"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"0216a023b6961965b56604c869dc7684b00a573d16305e4215a2bf671c3c69c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/dynamic-unsigned-array.js:18 \u00B7 src/backend/web-gl/kernel-value/dynamic-unsigned-input.js:19 \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/backend/web-gl/kernel-value/dynamic-unsigned-array.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a868cbea793bfd90ab61c4390880ff0fa2b079a1295b9faa8c363b39b39639"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:322 \u00B7 src/backend/web-gl2/kernel.js:211 \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/backend/web-gl/kernel.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e9796f0a9ae156cdfe8730ea86f6959dc19722f0240899515e015cf1c4e957"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/backend/web-gpu/pipeline-executor.js:44 \u00B7 src/pipeline.js:865 \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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a5aea54f5aa8d48b65dc11ac7fbfe7ba23f25ba81c740fe838ee674bfbbc08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/utils.js:458 \u00B7 src/utils.js:483 \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/utils.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c81b95d3c92a45950e2c78358336703608cf3914b4626a43acd37eed4b686d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/utils.js:519 \u00B7 src/utils.js: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/utils.js"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52f79f4e621556e3a25016b6fb731408c1f1476e1952548f91c02eb33222ec8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/cpu/kernel.js:86 \u00B7 src/backend/web-assembly/kernel.js:278 \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/backend/cpu/kernel.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b4005ece319d98da7cb87f05e528f18f9c4656da25aa9f36ce9ddd40d1acc6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): src/backend/gl/kernel.js:388 \u00B7 src/backend/gl/kernel.js:448 \u00B7 src/backend/gl/kernel.js:459 \u00B7 src/backend/gl/kernel.js:472 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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/backend/gl/kernel.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8f68b0216cff000156a30b114d4c323f236e1b24c4ba1049a44b089e92d6b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1510 \u00B7 src/backend/web-assembly/function-node.js:3788 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebd8ac7af9be6cd62a16ae1323782f80547b7460fd63d6bd39ccf2fa13bea16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:815 \u00B7 src/backend/web-assembly/kernel.js:887 \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/backend/web-assembly/kernel.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6cbc0ecc0acd9791bba3eaa60ea22f072db20cc10c7c32ffb5258b3c98e913"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:866 \u00B7 src/backend/web-assembly/kernel.js:915 \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/backend/web-assembly/kernel.js"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd39e4b2c1c73cc73c1805c7ef81a51fa68046b72cf52f1814863549502efc0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:175 \u00B7 src/backend/web-gpu/pipeline-executor.js:194 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"627f03cf2e458a8e2f0a3b8d0dcc5f5b2785a112cd01bc46c4390fbcc9d16e1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/backend/web-gl/kernel-value/boolean.js:10 \u00B7 src/backend/web-gl2/kernel-value/integer.js:6 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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/backend/web-gl/kernel-value/boolean.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc910d36783c71274c611c04451cecebbb82ab6c4ba0fb643a35ed55d014932"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10 locations): src/backend/web-gl/kernel-value/dynamic-memory-optimized-number-texture.js:1 \u00B7 src/backend/web-gl/kernel-value/dynamic-number-texture.js:1 \u00B7 src/backend/web-gl/kernel-value/dynamic-single-array.js:1 \u00B7 src/backend/web-gl/kernel-value/dynamic-single-array1d-i.js:1 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 10 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/backend/web-gl/kernel-value/dynamic-memory-optimized-number-texture.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"592b843e1997ae0718e644f783a863ef3a331771c2f5ff421bc572f1a5a04add"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1228 \u00B7 src/backend/web-gl2/kernel.js:600 \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/backend/web-gl/kernel.js"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ea5201ea38f996fa4fc0c76d91c0a451c2f0784aa7c68e84798af4166466b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): src/backend/web-gl2/kernel-value/dynamic-html-image-array.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-single-array.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-single-array1d-i.js:4 \u00B7 src/backend/web-gl2/kernel-value/dynamic-single-array2d-i.js:4 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 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/backend/web-gl2/kernel-value/dynamic-html-image-array.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6993a6cd25c4f0d857d485322dc5c82db846727e5448c26a0daa61fe1e768a50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/utils.js:470 \u00B7 src/utils.js:494 \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/utils.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70b6f7ce4d4871c2d767dfbfbe00fd4aaab1c3268a69aefadf0a95ddcd27f4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/function-node.js:331 \u00B7 src/backend/web-gl/function-node.js:800 \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/backend/function-node.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"52133c834fe620104af66fcb10a82699a39e1e2281cc3a261b8056abff66bd85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/backend/headless-gl/kernel.js:29 \u00B7 src/backend/headless-gl/kernel.js:91 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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/backend/headless-gl/kernel.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e119c0fe4b65af78d34c3ba9e479a9eb39c94b85cb7f723fda86365cb40bc387"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/backend/web-assembly/function-node.js:803 \u00B7 src/backend/web-assembly/function-node.js:874 \u00B7 src/backend/web-assembly/function-node.js:2952 \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/backend/web-assembly/function-node.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0872799fe0302df9c32e7bbc900a21ed4edef4e639afae9672e7b1cd53f6ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1626 \u00B7 src/backend/web-assembly/function-node.js:3941 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"58be75ce0c3114696430e46b84ec77cd715b0e722e26cbcbb3bb7ce92c8d97f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:2867 \u00B7 src/backend/web-assembly/function-node.js:3883 \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/backend/web-assembly/function-node.js"},"region":{"startLine":2867}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e59f6ac5a1ea778cb120d0e6e43dcd95516b54c13acc3870251397dcf7bb4ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-assembly/wasm-builder.js:245 \u00B7 src/backend/web-assembly/wasm-builder.js:255 \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/backend/web-assembly/wasm-builder.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c21bb4e393ac10b9b6f9c91b0929545df64b355f361abacc33187c9942ee84c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/backend/web-gl/function-node.js:46 \u00B7 src/backend/web-gl/function-node.js:851 \u00B7 src/backend/web-gpu/function-node.js:781 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cffae00698161d907baf9ce84e0f7d303dd00d20efd3a6e482ca88aadbc927"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-gl/kernel-value/dynamic-html-image.js:13 \u00B7 src/backend/web-gl2/kernel-value/dynamic-html-image-array.js:14 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel-value/dynamic-html-image.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7324caf15bf4428376a353ed8c94809fc409aa92a9c43f63afac8aaee09e4f50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1472 \u00B7 src/backend/web-gl/kernel.js:1481 \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/backend/web-gl/kernel.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c957e4b7ef05ce303badb9e646767ebdd138fb9a4b6806660946de6ed4264c3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-gl2/kernel-value/memory-optimized-number-texture.js:5 \u00B7 src/backend/web-gl2/kernel-value/number-texture.js:5 \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/backend/web-gl2/kernel-value/memory-optimized-number-texture.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"543b0d208b180e9d1693c3fa40b4de08d5ce246a56e457eca6ad7ae2f545cf4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/backend/web-gpu/function-node.js:943 \u00B7 src/backend/web-gpu/function-node.js:957 \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/backend/web-gpu/function-node.js"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1e11544389c4659c842e510bb4c5b424d3edb8a5b6f3b187bd1b46c190adde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/utils.js:1011 \u00B7 src/utils.js:1021 \u00B7 src/utils.js:1031 \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/utils.js"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"679a7e41fa508727ee716685e2a64493537dbfc4a546ccc4aa9fdb4f8478cb3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): src/backend/function-builder.js:525 \u00B7 src/backend/function-builder.js:559 \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/backend/function-builder.js"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"e149e986e8372f169950179313e956c6c8696a39604857737aefc515b534fafb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/kernel.js:854 \u00B7 src/backend/web-gl/kernel-value/array.js:73 \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/backend/kernel.js"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54bb9e09fd123d3666ad1b1bca79736f87889b510e0a97780d58e3e25bc4f37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3388 \u00B7 src/backend/web-assembly/function-node.js:3441 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"857692cd0db7794d2244847e7d0f4d9815087fbc01dd70590c3cb1a56379ea73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:804 \u00B7 src/backend/web-assembly/kernel.js:861 \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/backend/web-assembly/kernel.js"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed1387842215f0ad0170def95aa0280398c00909546a7d42d58c9d490f075d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-assembly/wasm-builder.js:633 \u00B7 src/backend/web-assembly/wasm-builder.js:676 \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/backend/web-assembly/wasm-builder.js"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec5d4a49ec2af6b10049016c2fbcdd6c59d007f52a0d47d4ada3df53bc723e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:913 \u00B7 src/backend/web-gl/function-node.js:921 \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/backend/web-gl/function-node.js"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4924dd2b1ddb01c7d06f7403f86818d63c94b8b169ee1b32546ba2a9f41c625"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-gl2/kernel-value/html-image-array.js:22 \u00B7 src/backend/web-gl2/kernel-value/single-input.js:5 \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/backend/web-gl2/kernel-value/html-image-array.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"504e10a0c1a54aff44ebcb6c98d5bdd7bb4d009b67663248292d634f4c875e52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/backend/web-gl2/kernel-value/html-image.js:5 \u00B7 src/backend/web-gl2/kernel-value/unsigned-array.js:5 \u00B7 src/backend/web-gl2/kernel-value/unsigned-input.js:5 \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":"src/backend/web-gl2/kernel-value/html-image.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"952e7270ae28a2c0f515f251997e98b09b1234498c9062e93217b256d8c5eab4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-gpu/kernel.js:606 \u00B7 src/backend/web-gpu/pipeline-executor.js:277 \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/backend/web-gpu/kernel.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2afcc62e5a71058ef0a4a10bb6e433d5e5f578f569c8e24cdf3a6d6fe42fb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/backend/web-gpu/pipeline-executor.js:115 \u00B7 src/backend/web-gpu/pipeline-executor.js:640 \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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be5fdfb68e0d2295cb5a9401c2141d534c7c084eefe1ca50670d43cb56ba202"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/pipeline.js:700 \u00B7 src/pipeline.js:760 \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/pipeline.js"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"0178aa0ed64716263be3eacefa352af13e78b4803f533ee23799b22c6cc3edef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): src/utils.js:955 \u00B7 src/utils.js:963 \u00B7 src/utils.js:971 \u00B7 src/utils.js:979 \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/utils.js"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f50fa8477284fcb44e09e1a343c8718a115a0fc264e7a5202537c54b2e6312"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): src/backend/gl/kernel-string.js:283 \u00B7 src/backend/gl/kernel-string.js:305 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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/backend/gl/kernel-string.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"733bb1aa67c02741c02f8977c99b12ab071b42023d63ffa6a7276ba7f4a806d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): src/backend/gl/kernel.js:229 \u00B7 src/backend/gl/kernel.js:241 \u00B7 src/backend/gl/kernel.js:253 \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/backend/gl/kernel.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6883d84b895ebb0f8f48e65b7ad6eecdb54a801f820b2b74733197cb46728a1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:1321 \u00B7 src/backend/web-assembly/function-node.js:3568 \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/backend/web-assembly/function-node.js"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8e5a7c0a3a1ba00a019fd674a74ce3f96eb984d2e8eb3e931ccdebed4bc94d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:2167 \u00B7 src/backend/web-assembly/function-node.js:2230 \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/backend/web-assembly/function-node.js"},"region":{"startLine":2167}}}],"partialFingerprints":{"codehealthFindingId/v1":"508ca052a1e7495c6eab25b92710213fdb8d96304a0f461135bc631c28db3e2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:283 \u00B7 src/backend/web-gpu/kernel.js:202 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-assembly/kernel.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e697401ae990fa522d6f52e9553ea7632232592ba3b03f356b59c62d6df8231"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:502 \u00B7 src/backend/web-assembly/kernel.js:582 \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/backend/web-assembly/kernel.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e8ae86eca5c3ccfb4dfdd54413c06f3ccbf67fd9ca1bca638a7a5071b58659"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-gl/kernel.js:1162 \u00B7 src/backend/web-gl2/kernel.js:582 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/kernel.js"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cb81085a980f1d72166c30d7804b9da9bc752a21f75cca63164a494fc55fa7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/backend/web-gpu/function-node.js:340 \u00B7 src/backend/web-gpu/function-node.js:347 \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/backend/web-gpu/function-node.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bfef8f76e74c71044eae9781e59df58c916dff7c579fb7e24b5b513cbc5e6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/cpu/kernel.js:481 \u00B7 src/backend/cpu/kernel.js:495 \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/backend/cpu/kernel.js"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a71740831ea0fa9556b9d19ceca9191ad1155ae6cd0451a124f32161cb14da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): src/backend/gl/kernel.js:236 \u00B7 src/backend/gl/kernel.js:242 \u00B7 src/backend/gl/kernel.js:248 \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/backend/gl/kernel.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a0f9a2669a3504d02ce6b9ad19483cbff4ad94f60a67599cd35599ff5f7bc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3553 \u00B7 src/backend/web-assembly/function-node.js:3579 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00e81e1410c2bc9183eff0454c3d2d3903dae0879707230d19e821d4e2f8239"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:363 \u00B7 src/backend/web-gpu/kernel.js: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":"src/backend/web-assembly/kernel.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5be511f1ec3dfc1879f86a507d63914ba47190b16eec475584f992fcfaad3bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/web-gl/function-node.js:1353 \u00B7 src/backend/web-gl/function-node.js:1380 \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/backend/web-gl/function-node.js"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41f671cf548a479f35fc9da6518de70671e90d850e47cb4ea87eb3862dbc68f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/web-gl2/kernel.js:485 \u00B7 src/backend/web-gl2/kernel.js:526 \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/backend/web-gl2/kernel.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"4091915dd6188cc1b12a1b9d792798819b3d8d602cb15154cdf18a22ffab7910"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/backend/web-gpu/kernel.js:535 \u00B7 src/backend/web-gpu/kernel.js:689 \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/backend/web-gpu/kernel.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22436d9533d4c2f6b68efe1a2e8e8184587a7897716070288e554a0a795dd0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/gl/kernel.js:828 \u00B7 src/backend/gl/texture/float.js:23 \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/backend/gl/kernel.js"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbce286a4a095ef657a96963345478573e2c00465db7bed2726f07d0bf68a674"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): src/backend/gl/texture/index.js:121 \u00B7 src/backend/web-gl/kernel.js:759 \u00B7 src/backend/web-gl/kernel.js:817 \u00B7 src/backend/web-gl2/kernel.js:480 \u00B7 \u002B1 more site(s) not listed \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/gl/texture/index.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"137f568dc430edc5caace04ab797f32996040692baca98a7f6a8cfa1a9d52777"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-assembly/function-node.js:3254 \u00B7 src/backend/web-assembly/function-node.js:3324 \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/backend/web-assembly/function-node.js"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f437bb727aae12d41c27f02f1d5a3ca4ec10a98ad8dd34171b36e69b2a292a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-assembly/kernel.js:496 \u00B7 src/backend/web-assembly/kernel.js:571 \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/backend/web-assembly/kernel.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"e884ba2d309f7cfcbf9f9313c23c3975a19645ba293e46a4a8052675b1f96b3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:198 \u00B7 src/backend/web-assembly/pipeline-executor.js:293 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2108621305bf79e8e4d9000865002af17b0aca9739d263681f4e1f4dcc2f8ac3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-assembly/pipeline-executor.js:223 \u00B7 src/backend/web-gpu/pipeline-executor.js:239 \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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1491a158e485302926850845a1cdcae5788e86d09203841bacf45eb22e2b64"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-gpu/kernel.js:1001 \u00B7 src/backend/web-gpu/kernel.js:1123 \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/backend/web-gpu/kernel.js"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e97cbd256b776e2ff42266fc9583572e2445d709056cbc4428e647a7b8f7b04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/backend/web-gpu/pipeline-executor.js:135 \u00B7 src/backend/web-gpu/pipeline-executor.js:191 \u00B7 src/pipeline.js:699 \u2014 the 3 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e50e72f819551145561a5867be3497a59b94c4606c7f947e3f7a576e3252e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/backend/web-gpu/pipeline-executor.js:246 \u00B7 src/backend/web-gpu/pipeline-executor.js:330 \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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1aaece3d313dc1e2781e50d599280df1751f4308cb129e5ee6d19feef9eb0a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getType (cyclomatic 98, cognitive 95): getType has cyclomatic complexity 98 and cognitive complexity 95; 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/backend/function-node.js"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d9522318c9cab5714991bd00de7755cc9ce7d389770af75773e4a543ed0ffb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astMemberExpression (cyclomatic 94, cognitive 70): astMemberExpression has cyclomatic complexity 94 and cognitive complexity 70; 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/backend/web-gl/function-node.js"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec9b67a7dc62b620f6b358e885a0516ebb00d5bdd0f53f2bc67d82a70d8b10c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pickRenderStrategy (cyclomatic 77, cognitive 135): pickRenderStrategy has cyclomatic complexity 77 and cognitive complexity 135; 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/backend/gl/kernel.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea5cea90e680a8b0065aa9e1e990e32e6da15e33050c4ce1d14dd0be2a74c8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astCallExpression (cyclomatic 66, cognitive 83): astCallExpression has cyclomatic complexity 66 and cognitive complexity 83; 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/backend/web-gl/function-node.js"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"4970fb54ba9a9e7fb0163964f00f1fd04d83eba821b5644a72e6289a850d83d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astCallExpression (cyclomatic 62, cognitive 85): astCallExpression has cyclomatic complexity 62 and cognitive complexity 85; 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/backend/web-gpu/function-node.js"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"af16b4b343250c19ebd814bace4e4e6d940fb747eabdf3711234fdd57e526479"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astMemberExpression (cyclomatic 53, cognitive 49): astMemberExpression has cyclomatic complexity 53 and cognitive complexity 49; 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/backend/cpu/function-node.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"399debc11bfed114748b3c57628b2d09353eafb6de06e843e4451ed4b404523a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astMemberExpression (cyclomatic 53, cognitive 38): astMemberExpression has cyclomatic complexity 53 and cognitive complexity 38; 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/backend/web-gpu/function-node.js"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ca515db59c7b1bbc0750f4d31299b53efc3f3accd4dcd98c8eb91f1376804"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flatten (cyclomatic 51, cognitive 51): flatten has cyclomatic complexity 51 and cognitive complexity 51; 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.js"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0a2698d0f51017bbc9233d5729f21268982a4755eacba18dc101cb12a0cf9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astBinaryExpression (cyclomatic 50, cognitive 43): astBinaryExpression has cyclomatic complexity 50 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/web-gl/function-node.js"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93cfd1354c78affadaf1269bca0e1c47e98f3fdc8d939c55546d394e5d47b58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nativeFunctionArguments (cyclomatic 49, cognitive 46): nativeFunctionArguments has cyclomatic complexity 49 and cognitive complexity 46; 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/backend/gl/kernel.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"711755e4b4ce5cc580af5f6b01d2a9b74b9215ae8fe9b8215971ed318e50a243"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _compile (cyclomatic 48, cognitive 108): _compile has cyclomatic complexity 48 and cognitive complexity 108; 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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"603591f29b219a337019ca3445bdcc6d7c4a7487f37b9514d9db167b794273e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scan (cyclomatic 48, cognitive 37): scan has cyclomatic complexity 48 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/backend/function-tracer.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e035d63ed9b277b750ca9fbf1bc1c82b26d561012307da389a96ef177021d4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _executeGeneric (cyclomatic 46, cognitive 78): _executeGeneric has cyclomatic complexity 46 and cognitive complexity 78; 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/pipeline.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ca63fad1faa0300d8e7457a1ec73e57f78c0538de07b3d8d97f5848366b133"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exprCall (cyclomatic 44, cognitive 35): exprCall has cyclomatic complexity 44 and cognitive complexity 35; 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/backend/web-assembly/function-node.js"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6937e39f61ce81964f5019a5360586741086d2ef14b9ae7038800e6432575570"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function astBinaryExpression (cyclomatic 43, cognitive 30): astBinaryExpression has cyclomatic complexity 43 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 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/backend/web-gpu/function-node.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"745b2edf657db3f9ad7e833674a97aade6270998e47218bcfb6f7bbda80231b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _compile (cyclomatic 39, cognitive 87): _compile has cyclomatic complexity 39 and cognitive complexity 87; 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"11635b446c6d73fe7b08f4c0037f3cc9606affdc8dfd956d016edd9cc8ae67c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDependencies (cyclomatic 39, cognitive 36): getDependencies has cyclomatic complexity 39 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/backend/function-node.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccaf7e617a27dc99186b24ced40e663b38e6e17d2ca79da00f8985ab74c3dc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function vUserCall (cyclomatic 38, cognitive 68): vUserCall has cyclomatic complexity 38 and cognitive complexity 68; 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/backend/web-assembly/function-node.js"},"region":{"startLine":3935}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3c6a5829a44471e9a04878e950f7f341cc39f358d4c880519d9378b93c3f2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exprMember (cyclomatic 38, cognitive 38): exprMember has cyclomatic complexity 38 and cognitive complexity 38; 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/backend/web-assembly/function-node.js"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c87ecf44c110d8a6d11b69aa8735e89dfe23ff136eea642cc0987ef49bd35c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getMemberExpressionDetails (cyclomatic 36, cognitive 32): getMemberExpressionDetails has cyclomatic complexity 36 and cognitive complexity 32; 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/backend/function-node.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"546100ebf8af95858cc0a9fe52f3431ba6b26d719f4c8dbb3c6e51939cbdb527"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-assembly/function-node.js: 4200 lines of code: src/backend/web-assembly/function-node.js has 4200 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/backend/web-assembly/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d19a9bf4ce54c32b269b86fa0383d4e51b3eb5eb75d3e63eb8378b755eddea7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gl/function-node.js: 2402 lines of code: src/backend/web-gl/function-node.js has 2402 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/backend/web-gl/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"908a06878984f65c59090bda4aff29f1b0977efcd80fe1960394c4c731d4c25d"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/function-node.js: 1790 lines of code: src/backend/function-node.js has 1790 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/backend/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a8b6d2c6d45f44fc7bcf1fb0ef6c844c1166df4ceea6a1bc0fcfc2ed3e579e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gl/kernel.js: 1518 lines of code: src/backend/web-gl/kernel.js has 1518 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/backend/web-gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebb0803ae8ab029d9e6b09e4e340e64b0e3db82b2beb5c6935be8cabd9db561"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gpu/function-node.js: 1515 lines of code: src/backend/web-gpu/function-node.js has 1515 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/backend/web-gpu/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212fb7b3a3955f4500a819cb0045a3b6381b96c0b95fa2c2ca9701cc199c4ecc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gpu/kernel.js: 1165 lines of code: src/backend/web-gpu/kernel.js has 1165 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/backend/web-gpu/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f3e33cff7e060362239ba5cf2ca3eecc52074638569bfec98407e65d41028a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/utils.js: 1037 lines of code: src/utils.js has 1037 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/utils.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c89e16cb1252e6a069c5d6fbbb8e878aa3b0acc0bffd698029c6c75d668554b"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/gl/kernel.js: 1000 lines of code: src/backend/gl/kernel.js has 1000 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/backend/gl/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db07034bf3c7cc695c562f329c2d454abf7cec242cef06df27ba7543909f7f88"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/kernel.js: 985 lines of code: src/backend/kernel.js has 985 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/backend/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50114efb92445c5affa6ffb6a3720ced5e59aff8a1b20fca704ef60f34c94533"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-assembly/kernel.js: 985 lines of code: src/backend/web-assembly/kernel.js has 985 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/backend/web-assembly/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0437cdb11e487a70302d838b7ba714422404e9976c7523b471bb5a18ec07a7c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/gpu.js: 871 lines of code: src/gpu.js has 871 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/gpu.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd06936b566c6b2085caa2bcb8123e6b76a63ee893800ba2285fb727a28297cc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/pipeline.js: 860 lines of code: src/pipeline.js has 860 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/pipeline.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6e68ad301afccd06f7e920595706f2fe19c57b4a8071b4b0dd8645303fc679"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gl2/kernel.js: 770 lines of code: src/backend/web-gl2/kernel.js has 770 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/backend/web-gl2/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cedcccd6f759fda50fbe40d25449dbfbf1b17482fd4b1341ffc63d34a59680"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-assembly/pipeline-executor.js: 768 lines of code: src/backend/web-assembly/pipeline-executor.js has 768 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/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b69ee8213e53de123feab952d433dfd931b66ea13f99e2114e6b3fb60b8a5c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/cpu/function-node.js: 669 lines of code: src/backend/cpu/function-node.js has 669 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/backend/cpu/function-node.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b7a6873473985edce19f856c072921af43777ea01bf6369bf7c52eb0918893"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-assembly/wasm-builder.js: 654 lines of code: src/backend/web-assembly/wasm-builder.js has 654 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/backend/web-assembly/wasm-builder.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fbc5eae4b889d8f69eb9b80b76d226b5a785497a84f49a08bf7a0a3acc25b6"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gpu/pipeline-executor.js: 630 lines of code: src/backend/web-gpu/pipeline-executor.js has 630 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/backend/web-gpu/pipeline-executor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabb6b84777d23c52ba1faf236d0147312878ae11562095f3f388f9d002637bb"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/cpu/kernel.js: 623 lines of code: src/backend/cpu/kernel.js has 623 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/backend/cpu/kernel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30abef0aeda73e568bc9c6912dcc1ad0a87723083b34dca8d102b00d6333de88"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/function-builder.js: 571 lines of code: src/backend/function-builder.js has 571 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/backend/function-builder.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e9a603ff0951330313a183e4d007b0b9d7b264b5f6ead02eeec7ba69d4f19f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gl/fragment-shader.js: 486 lines of code: src/backend/web-gl/fragment-shader.js has 486 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/backend/web-gl/fragment-shader.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d6dd5baa5f6d9b888c28adc1f5aa79a8f4f7526ead24f50463c56f8255ddeb"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-assembly/worker-pool.js: 450 lines of code: src/backend/web-assembly/worker-pool.js has 450 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/backend/web-assembly/worker-pool.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b053663c2a0a34324f04cef0bc2b8f12c99054acf681566f4e515aa53e2364"}},{"ruleId":"R3","level":"warning","message":{"text":"src/backend/web-gl2/fragment-shader.js: 449 lines of code: src/backend/web-gl2/fragment-shader.js has 449 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/backend/web-gl2/fragment-shader.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4243de84de380d80e6b1eea567ed3cc92b342bb58f532b6f3fa99f5660cb5c"}},{"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":"scripts/build.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bb40a3cec17b94456130e513d32d17bb865541b297dcf37200e68e8f85bf38"}},{"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/plugins/math-random-triangle-noise.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4102708e248ef1d9d2139c85d6fc308752c6fa63a6d8b372f9700a8597373315"}},{"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":"scripts/minify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254106dcbd009aeb8860fce488e58bfb0a237962f76db87dc561880b5c78e90"}},{"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":"scripts/beautify.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57059a1413819bb1ea04293b304d3ce85cb4a511e2ed370c787709894616695"}},{"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/browser.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c113071f68bde0927dfd66de442a900c4a891f971955a889433c782b0d34521"}},{"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":"scripts/build-tests.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a847d0f55ceadb3e7b078d3a6516858feafc1974023ae8a7da29fa51bda88b85"}},{"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":"scripts/make.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5f25023dec9b981583feb86c6c8c99a4be80b9646dbf009260e0ba90747988"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint or typecheck script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"658a995477a4f3b704a1d0c61d78cffb4c5cc1944c2f896c1bb70ee901a201cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~52 LoC): no import path from any entry point (366 application, 71 tooling, 349 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/plugins/math-random-triangle-noise.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd130ccc6a592f5245a863743583df4870e4d4ba6ade5832ec3706935a8bfd12"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027releaseValue\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/pipeline.js"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"5953d426ff4b7fb2edab76972af5e4673b936a4f745dfebacc948563b7e009e2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027dynamicOutput2DKernelMapShrinks\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/features/dynamic-output.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f52275dcaea366992b1e50ca26af5887db9db720efab13ba5572132510b9ef"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027webgpu\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":"87b443f3801c255f5f3369687b72a8d6fc2d66102a9dcc3c5affed8df04c733c"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): src/input.js \u2192 src/utils.js \u2192 src/input.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/input.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"487df8daa56070d62627744313437624a6117396d0757c7c64bc293944f276f3"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: \u0060http(\u2026).listen(\u2026)\u0060 serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (\u0060https.createServer\u0060, Fastify \u0060https\u0060, Nest \u0060httpsOptions\u0060), no redirect of plain requests to \u0060https://\u0060, no \u0060Strict-Transport-Security\u0060 (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it \u2014 so a browser may talk to it in clear text. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/dev.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"501873b6e3f4ba12a910cacd4cd93051a93810d1f2285917e1328d297a064b4c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!G || !G.prototype || typeof G.prototype.createKernel !== \u0027function\u0027\u0060 appears character-identically in 2 files \u2014 scripts/benchmark-pipeline-webgpu.mjs, scripts/benchmark-webgpu.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark-pipeline-webgpu.mjs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f586eb4027a60ebd66adb30ac3739228dcff84bb0110e7ec7e29cf5464bca18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cases[i].consequent || cases[i].consequent.length === 0\u0060 appears character-identically in 2 files \u2014 src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-gl/function-node.js"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"7486482b03ec61a3d645a47d7c20e4e4450fa7a5d45a0099266e00dd0ccdeeff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!declarations || !declarations[0] || !declarations[0].init\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4542b2ef75b83ae081297c50e06d07f0af38cdc63583243823656fa429ecfd2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!gpuKernels || gpuKernels.indexOf(shortcut.kernel) !== -1\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/pipeline-executor.js, src/backend/web-gpu/pipeline-executor.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":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"23052e171b841570a318b7aa6e76ac3e6102963a1b61ddfe24df89fe7c9893e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!testContext || !testContext.getExtension\u0060 appears character-identically in 3 files \u2014 src/backend/headless-gl/kernel.js, src/backend/web-gl/kernel.js, src/backend/web-gl2/kernel.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":"src/backend/headless-gl/kernel.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb60b150bda4e2bf8deedd38ac0594647e1255e686124f530fc4105257dc5667"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!this.graphical \u0026\u0026 this.precision === null\u0060 appears character-identically in 2 files \u2014 src/backend/web-gl/kernel.js, src/backend/web-gl2/kernel.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":"src/backend/web-gl/kernel.js"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d1aaa4fb8b004357ecfa749c613988e017a98f979a113be4a97c3c0c726ba3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!this.output || this.output.length === 0\u0060 appears character-identically in 5 files \u2014 src/backend/cpu/kernel.js, src/backend/web-assembly/kernel.js, src/backend/web-gl/kernel.js, src/backend/web-gl2/kernel.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":"src/backend/cpu/kernel.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2901e4f436e0c1aaea2e85832f629ddd323c2d143b45fd1d25171c9c96d061"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060alternateType === \u0027Number\u0027 || alternateType === \u0027Float\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6de18897ff2816eb225d413fbb2edff0ecc5f58146092ac163c78b6388b1655"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ast \u0026\u0026 ast.type === \u0027ConditionalExpression\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b459daeed3a3a6fdc78a2dfd31a9814d5706dbdb073bc680f30b78afb712d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ast.callee.type === \u0027MemberExpression\u0027 \u0026\u0026 this.getVariableSignature(ast.callee, true) === \u0027this.color\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cb25ed63931cad5336fb548d5f588b0c366000b4abc2a316d690edaf277777"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ast.callee.type === \u0027SequenceExpression\u0027 \u0026\u0026 ast.callee.expressions[0].type === \u0027Literal\u0027 \u0026\u0026 !isNaN(ast.callee.expressions[0].raw)\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7daf5cb8189616f4301f68007ad3348841f2dd9f8b08a43cce285fd30f78ae5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ast.value === true || ast.value === false\u0060 appears character-identically in 3 files \u2014 src/backend/function-node.js, src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/function-node.js"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede65e0033601dd3412d84f1baed373373aca69e233c8198ac16fc6dc286ced9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060binding.source === \u0027step\u0027 \u0026\u0026 stepPrograms[binding.step].kernel.componentCount !== 1\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/pipeline-executor.js, src/backend/web-gpu/pipeline-executor.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":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4c2ad2f7df3255eb77671f1dc04048dac317c1c5b3cc98913d9168f99670c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060branchType === \u0027Number\u0027 || branchType === \u0027Float\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8943c212b96f6d9eff86917a89267c8ae0d0a45b76032536fd0ac805a62728b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cases[i].consequent \u0026\u0026 cases[i].consequent.length \u003E 0\u0060 appears character-identically in 2 files \u2014 src/backend/cpu/function-node.js, src/backend/web-assembly/function-node.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":"src/backend/cpu/function-node.js"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2823359ba82b290de4565c98aa1285e521d644399b34d03402fd91a17f0710"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060consequentType === \u0027Integer\u0027 || consequentType === \u0027LiteralInteger\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e22165232644c0ad803cccca73dfcff948384f285da34d0e5beeec19c08d07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060consequentType === null \u0026\u0026 alternateType === null\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a813fde8151e1a2052b38b85037fa2a4f7cc7270ef168c917e4c363dcb06dcd3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060declarations[i].init \u0026\u0026 declarations[i].init.type !== \u0027Literal\u0027\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4395808052158ee2c4dc344356cc008b0ab0ffcb6b44c5f385f14cb898cb40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dims[0] !== region.dims[0] || dims[1] !== region.dims[1] || dims[2] !== region.dims[2]\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/pipeline-executor.js, src/backend/web-gpu/pipeline-executor.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":"src/backend/web-assembly/pipeline-executor.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7d5730b06ef8562ce08df212a36d354a018cbaf662a5e601c11315c07f861f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ifNode.alternate.type === \u0027BlockStatement\u0027 || ifNode.alternate.type === \u0027IfStatement\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/cpu/function-node.js, src/backend/web-gl/function-node.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":"src/backend/cpu/function-node.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa32a8502cae44b70b1d33094e173d2582ea915426918ee62c82d16dc37bdcb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isMathFunction || (ast.callee.object \u0026\u0026 ast.callee.object.type === \u0027ThisExpression\u0027)\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"9754bc8fd3ee57eca0ba94622bba02dfa3eff92083df0aa57e591c9882820f3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kernel.texture \u0026\u0026 kernel.texture.texture === inputTexture.texture\u0060 appears character-identically in 2 files \u2014 src/backend/web-gl/kernel-value/memory-optimized-number-texture.js, src/backend/web-gl/kernel-value/number-texture.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":"src/backend/web-gl/kernel-value/memory-optimized-number-texture.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff6f70e16b872ac744adc3fc38336a6b8886755d2190b0c96da3d3714fb5c71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === \u0027loc\u0027 || key === \u0027range\u0027 || key === \u0027parent\u0027\u0060 appears character-identically in 4 files \u2014 src/backend/function-node.js, src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/function-node.js"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f84aebbae6160bc8f0b10db5d2d16d7207ac9dd89255dad14fd39b6923bee1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060leftType !== \u0027Integer\u0027 \u0026\u0026 rightType === \u0027Integer\u0027\u0060 appears character-identically in 3 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gl/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"4775d7d2df0ad8137e06ca0d313c51bb8d2c9f43e8c2b91f062849311a52d074"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060leftType !== \u0027Integer\u0027 \u0026\u0026 rightType === \u0027LiteralInteger\u0027\u0060 appears character-identically in 2 files \u2014 src/backend/web-assembly/function-node.js, src/backend/web-gpu/function-node.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":"src/backend/web-assembly/function-node.js"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e681e106551d90f8b036bc43a109a81b87319905a0201429d147437ccf9796"}},{"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/pipeline.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"89abd91fab2685f28f9c9a8ef96ceb7acd2020119900f4fa42d3f95e8a12361e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.then(\u2026, noop)\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/pipeline.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb8afb8000668784934c1d4cb12fa41a951fb16f976b92c28b77c242e2aaa04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.then(\u2026, () =\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/backend/web-gpu/context.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4d968468952961c0037831a4dfca1858e521d1bf9f2a93794694e03f04f1e1"}},{"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/backend/web-assembly/worker-pool.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d556eb8a945f59e871c93e0e5fa60cd6ef92d7be2ca1913746d52a496f057bf5"}},{"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/backend/web-assembly/worker-pool.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cf4b7523d5be3bfaf68d6c841cf5d7fa75a896aefd0597ae4af2756ebc17d3"}},{"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/backend/headless-gl/kernel.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6351e2ebdded25f278b7da2640819cef507d9495bc8f938d8a7d382eee1c734e"}}],"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-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-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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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":21,"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."]}]}