{"$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":"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":"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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"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":"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":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"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":"element.Snap.plugin() (cyclomatic 109): element.Snap.plugin() has cyclomatic complexity 109 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 77 belong to 22 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/element.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1696e2e4854e0f5e90714e8255e9b20bd87214b98b7e73f5ae262e0ef1037f0f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 109): (anonymous) has cyclomatic complexity 109 (threshold 15). Most of this is not in the body itself: 1 of the 109 points is its own statement and the rest belongs to 35 function items inside it that branch (getBBox, extractTransform, transform, \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/element.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f7aab0f5c8a3ba9fcda1774d2a3a9707738ae33c38025856d9b1317bd366b1"}},{"ruleId":"D1","level":"warning","message":{"text":"paper.Snap.plugin() (cyclomatic 104): paper.Snap.plugin() has cyclomatic complexity 104 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 83 belong to 24 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/paper.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf71826b8ccc7d28d5fdb3652ad3bc23a7de96be41be372932ff74d28f554d6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 104): (anonymous) has cyclomatic complexity 104 (threshold 15). Most of this is not in the body itself: 1 of the 104 points is its own statement and the rest belongs to 34 function items inside it that branch (ptrn, svg, (anonymous)::GgetBBox, \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/paper.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec16125115f11735b3318a81ab695572e36b7667863a603564fc0ba46b78b1a5"}},{"ruleId":"D1","level":"warning","message":{"text":"attr.Snap.plugin() (cyclomatic 84): attr.Snap.plugin() has cyclomatic complexity 84 (threshold 15). Most of this is not in the body itself: 1 of the 84 points is its own statement and the rest belongs to 25 function items inside it that branch (a function literal at line 94, a function literal at line 248, a function literal at line 65, \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/attr.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4f10f9fc597dbf93f92b4d39f7570d5b064b1837010371f66c202e145d0151"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 84): (anonymous) has cyclomatic complexity 84 (threshold 15). Most of this is not in the body itself: 1 of the 84 points is its own statement and the rest belongs to 39 function items inside it that branch (a function literal at line 94, a function literal at line 248, a function literal at line 65, \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/attr.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3fa3c79d815ee95987d363f502186ce3024ce3aeab0e18881180842ab36b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"mouse.Snap.plugin() (cyclomatic 57): mouse.Snap.plugin() has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 13 of the 57 points are its own statements and the rest belongs to 13 function items inside it that branch (dragMove, a function literal at line 322, addEvent::f, \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/mouse.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2cc13cb1d8eb93921be660356ce65a8f25a759d4b44fada3d631fdbe966116"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 57): (anonymous) has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 5 of the 57 points are its own statements and the rest belongs to 21 function items inside it that branch (dragMove, a function literal at line 323, drag::start, \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/mouse.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81a4e98d20d71e569c01ec3cd0a24a9a0f73ac54c82799c07d0dd885d64cc0c"}},{"ruleId":"D1","level":"warning","message":{"text":"set.Snap.plugin() (cyclomatic 40): set.Snap.plugin() has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 7 of the 40 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 234, Set, a function literal at line 106, \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/set.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2791a29f857835224349237a9eafd5208073a3b8823b21acccae3693ca084e0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 40): (anonymous) has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 8 of the 40 points are its own statements and the rest belongs to 26 function items inside it that branch (frame, mina, easeinout, \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/mina.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed886926cb5df0b6987167f3f26acd305537e46a644c70aa78fd0eebfd15158d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 40): (anonymous) has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to 20 function items inside it that branch (splice, animate, Set, \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/set.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"723715835d6d5670233b4d64462ff6842ef44a8465ceaf62919de6516340f762"}},{"ruleId":"D1","level":"warning","message":{"text":"matrix.Snap.plugin() (cyclomatic 34): matrix.Snap.plugin() has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 45, a function literal at line 281, a function literal at line 327, \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/matrix.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ca1b9d01fcf72e83795d56eccd5ceea188a999f2ed6cfc060e500fdbc28f69"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 34): (anonymous) has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 23 function items inside it that branch ((anonymous)::split, (anonymous)::toTransformString, (anonymous)::scale, \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/matrix.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a55654e156a8444c3c87737309f950ca0013f82fe898a8a534b34394962fe31"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::pathToAbsolute (cyclomatic 32): path.Snap.plugin()::pathToAbsolute has cyclomatic complexity 32 (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: 5 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::a2c, \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/path.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"90efa18ba60b26ba1d81543fffc0cb0f630b60b119b92eeba6f04bbc6e0b3d54"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::pathToAbsolute (cyclomatic 32): (anonymous)::pathToAbsolute has cyclomatic complexity 32 (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/path.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"823d6f569db8d76ea8c2ae38288d5087484bc6b964b8c1da46825f20b0f18997"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::path2curve (cyclomatic 31): path.Snap.plugin()::path2curve has cyclomatic complexity 31 (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. This shape REPEATS in the file: 5 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, \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/path.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c34042c20b75a359e6768d2f08c79d650a733f39a4f162dcb3ccdcd909a5d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::path2curve (cyclomatic 31): (anonymous)::path2curve has cyclomatic complexity 31 (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/path.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f792c7c12495ba4735385888701b708cdc79b0940fbc33979c4e0ca3fc6e40"}},{"ruleId":"D1","level":"warning","message":{"text":"class.Snap.plugin() (cyclomatic 24): class.Snap.plugin() has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 115, 29, 64). 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/class.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"842906b42f2ab79ff08d6caf99557be13ded73956e1835c62f3aec67e0dad8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"filter.Snap.plugin() (cyclomatic 24): filter.Snap.plugin() has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 134, 63, 55, \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/filter.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f655b6809917d42bd4f40efd95b2a318c5c9fcfcb4ff0a68073e35a47bdd35d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 4 function items inside it that branch (toggleClass, addClass, removeClass, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/class.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b69c600d7c8e137020b34468cdadc2e612573618ec29294d1cdf36f717fd065"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 21 function items inside it that branch (shadow, a function literal at line 63, a function literal at line 55, \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/filter.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b497f5740b7e57e8a3288b971eabb1a1bb7dbeac14800334e32b9716a2bd493d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::transform2matrix (cyclomatic 24): (anonymous)::transform2matrix 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/svg.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df33ec1679d1eb2e1535b86da30d6efe9db5b88be959f28dc2b50925eec1b46"}},{"ruleId":"D1","level":"warning","message":{"text":"animation.Snap.plugin() (cyclomatic 23): animation.Snap.plugin() has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 156, Animation, a function literal at line 20, \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/animation.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42c603523af627adc80118cb52bfbec2753030ae714fc12f974256bcfcbf474"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 23): (anonymous) 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 14 function items inside it that branch (animate, Animation, animate, \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/animation.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9868e62f86a4839ec8b84f0b59952168d8a9bf671ef5594420f2e2cb7e9b4da8"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::a2c (cyclomatic 21): path.Snap.plugin()::a2c 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. This shape REPEATS in the file: 5 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, \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/path.js"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0943afb407ba65dc1bb5b6b9955724d08c28ef2df0996c45451808c872e320"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::a2c (cyclomatic 21): (anonymous)::a2c 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/path.js"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8063c35e72ef3421f54e534a0f02331e8b9034f1976a3f319c88d8213157c0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::$ (cyclomatic 21): (anonymous)::$ 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/svg.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae0cf102fbbdd4875bc8a397ee1c10a09a54f10933200a4987c022a0c255fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"equal.Snap.plugin()::equaliseTransform (cyclomatic 18): equal.Snap.plugin()::equaliseTransform has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e246bf86ea8e03650376a3c024cff79fadfe7ecd65e9632505dfb528255b7c"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::pathToRelative (cyclomatic 18): path.Snap.plugin()::pathToRelative has cyclomatic complexity 18 (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: 5 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToAbsolute, path.Snap.plugin()::a2c, \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/path.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"770efa36112d53e8adc3ed9edb5a907d7416dd245f1d0d247633b01d06e93c98"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::equaliseTransform (cyclomatic 18): (anonymous)::equaliseTransform has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a61948ee0b768a0a1a22e903c951a71f878f323e52ea79c3368ec33fc4d278"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::pathToRelative (cyclomatic 18): (anonymous)::pathToRelative has cyclomatic complexity 18 (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/path.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e37f208729b61a617027ea85b47c9fb8876c7f37cebfa653f9ffebf35c35775"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::interHelper (cyclomatic 17): path.Snap.plugin()::interHelper 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 shape REPEATS in the file: 5 other methods here (path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, path.Snap.plugin()::a2c, \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/path.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8a2e8ed8c10329207ba0effde0d74edd1326397dd21c9720fbd44390f86829"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::interHelper (cyclomatic 17): (anonymous)::interHelper 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/path.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"21295d9b646b128747d29561faf22837fe62bc0e5c1a31c50ae7005a4271d838"}},{"ruleId":"D1","level":"warning","message":{"text":"path.Snap.plugin()::path2curve::processPath (cyclomatic 16): path.Snap.plugin()::path2curve::processPath has cyclomatic complexity 16 (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. This shape REPEATS in the file: 5 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, \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/path.js"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7094ba5603de2b72445c237d08d704a77bed597afe80df50147fdd044e4610d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::isBBoxIntersect (cyclomatic 16): (anonymous)::isBBoxIntersect 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/path.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0374c6cef33bf2eeb6bf1155362cafed184646f95e83c4cacf18cb3d0827c92c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::path2curve::processPath (cyclomatic 16): (anonymous)::path2curve::processPath has cyclomatic complexity 16 (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/path.js"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae308781063bc581647760d2269b9464114004c724c761f1e63e01b091127c84"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 137): (anonymous) has cognitive complexity 137 (threshold 15). Drivers by points: if/else 59 (92 pts), boolean chains 21, loops 10 (20 pts), ternaries 3 (4 pts) (nesting depth added 44). None of this is in the body itself: all 137 points belong to 39 function items inside it that branch (a function literal at line 248, a function literal at line 94, a function literal at line 65, \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/attr.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b9e5966f7c1c7a064a2b6da2ec86f5782d4c46c65291e498466e18a0f8d5e7"}},{"ruleId":"D2","level":"warning","message":{"text":"attr.Snap.plugin() (cognitive 134): attr.Snap.plugin() has cognitive complexity 134 (threshold 15). Drivers by points: if/else 58 (91 pts), boolean chains 21, loops 10 (20 pts), ternaries 1 (2 pts) (nesting depth added 44). None of this is in the body itself: all 134 points belong to 25 function items inside it that branch (a function literal at line 248, a function literal at line 94, a function literal at line 65, \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/attr.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"80158f71093faa586dd6db32361a9a86444fe09727afb9491b989366ea67977a"}},{"ruleId":"D2","level":"warning","message":{"text":"paper.Snap.plugin() (cognitive 54): paper.Snap.plugin() has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 29, if/else 17 (21 pts), loops 4 (nesting depth added 4). Of this number, 20 points are the body\u0027s own statements and 34 belong to 24 function literals inside it that branch. 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/paper.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6af0a9f4fc36f8d240826a430b0b5bb0d13a79893deeba2da88355e64185901"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::transform2matrix (cognitive 53): (anonymous)::transform2matrix has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (42 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 26). 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/svg.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"b926409d0b8a6d3253db28fd258c690bec25727d8ad2b8b16b4b71270942ff21"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 52): (anonymous) has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (26 pts), loops 16 (17 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 9). None of this is in the body itself: all 52 points belong to 20 function items inside it that branch (splice, Set, animate, \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/set.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48333cd16d9d99d4fc0d2f630b5ef3d295231289610da4dc738310c3331fc29"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 51): (anonymous) has cognitive complexity 51 (threshold 15). Drivers by points: if/else 25 (35 pts), boolean chains 7, loops 4 (6 pts), ternaries 3 (nesting depth added 12). Most of this is not in the body itself: 3 of the 51 points are its own statements and the rest belongs to 26 function items inside it that branch (frame, bounce, mina, \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/mina.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69c0b3464851e2984547cb4fbbb6d883dd9b3409dfb17c0915ac301f7cbdb22"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::$ (cognitive 49): (anonymous)::$ has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (44 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 27). 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/svg.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e778c8277af3249ea1f60e4ac69a8c134e860eef41fddd9d776f3d761e2e8d7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 39): (anonymous) has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 21, if/else 11 (12 pts), ternaries 3 (6 pts) (nesting depth added 4). None of this is in the body itself: all 39 points belong to 23 function items inside it that branch ((anonymous)::toTransformString, (anonymous)::split, (anonymous)::scale, \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/matrix.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0f8b36f7c665b19acc3fdb209fc71d908a50b76ac0d9940fe8ed3ca6a4cab8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::pathToAbsolute (cognitive 39): (anonymous)::pathToAbsolute has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 4 (12 pts), match/switch 2 (6 pts), ternaries 1 (5 pts), boolean chains 4 (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/path.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b33fef2e05f1515545d72522ecc0da30754b4e26adc4861fe9d22dbba50dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::path2curve (cognitive 37): path.Snap.plugin()::path2curve has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 21, if/else 7 (14 pts), loops 1, ternaries 1 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToRelative, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cea8c0ea32f30975b78a81575978b4aea24e6ec3c0cca2d7231213ee1a4f93"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::path2curve (cognitive 37): (anonymous)::path2curve has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 21, if/else 7 (14 pts), loops 1, ternaries 1 (nesting depth added 7). 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/path.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"f196a8247ff6dfe643d031af4dfe055ba0b7a7514a497090cf5ef340f60903f7"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::interPathHelper (cognitive 35): path.Snap.plugin()::interPathHelper has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (10 pts), ternaries 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: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53625349696c3c0403cd5344939c40b770c1a38a0dbc03eb97b1e7ede7b935b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::interPathHelper (cognitive 35): (anonymous)::interPathHelper has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (10 pts), ternaries 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/path.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"9665ccf86240563ba7e471b71b308dd6770605a15dc87ef75b069d4352244e88"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::pathToAbsolute (cognitive 34): path.Snap.plugin()::pathToAbsolute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 4 (12 pts), match/switch 2 (6 pts), boolean chains 4 (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. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToRelative, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"691a7a73a772a9bb739ebfab283eef9a7c0eb944b4da4479f1656b52b19bb667"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::interHelper (cognitive 33): path.Snap.plugin()::interHelper has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 4 (9 pts), loops 4 (5 pts), boolean chains 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. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToRelative, path.Snap.plugin()::pathToAbsolute, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f00c564f3f6913938ad1b498e3d694249c40fcb97c439cee41f37f48b6fecab"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::interHelper (cognitive 33): (anonymous)::interHelper has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 4 (9 pts), loops 4 (5 pts), boolean chains 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/path.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dea54336b7a63e4a8719c1243042389b02844fec8034f0124cd80c188cebbe"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 32): (anonymous) has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, loops 3 (5 pts) (nesting depth added 10). None of this is in the body itself: all 32 points belong to 4 function items inside it that branch (toggleClass, addClass, removeClass, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/class.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe21ca202436db28876cf59486ee04ebaa2526a6830da1cf05d0ebc68d525bf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::a2c (cognitive 32): (anonymous)::a2c has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 5 (11 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60b722058d0a1c0fbfe64c10e29139f487fefb485fef93e0bc1a3dc89d000e6"}},{"ruleId":"D2","level":"warning","message":{"text":"element.Snap.plugin() (cognitive 31): element.Snap.plugin() has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 42, if/else 24 (32 pts), loops 5 (9 pts), ternaries 1 (nesting depth added 12). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (element.Snap.plugin()::extractTransform) 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":"src/element.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab12440bf97ad94310d1c716cc104001ead9be87cafce8300f0a4f799ba4b83"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 30): (anonymous) has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 4, ternaries 2 (4 pts) (nesting depth added 7). None of this is in the body itself: all 30 points belong to 14 function items inside it that branch (animate, Animation, inAnim, \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/animation.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4aecdd2d9b9522122c8c1503bef54e47b26ce39b1ded5cad2abb23562be783"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::pathToRelative (cognitive 29): (anonymous)::pathToRelative has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (8 pts), match/switch 2 (5 pts), ternaries 1 (5 pts), boolean chains 2 (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/path.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e5216ae5cb90ef21570ece31882ec7b6e0c615f855fc7e007403c5657f1df9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 26): (anonymous) has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 4, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 26 points belong to 21 function items inside it that branch (shadow, a function literal at line 63, a function literal at line 55, \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/filter.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d801551ff9496a72b59616edd13e6fd675d4afd7e43a3f3c5087535291d046a8"}},{"ruleId":"D2","level":"warning","message":{"text":"matrix.Snap.plugin() (cognitive 24): matrix.Snap.plugin() has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 21, if/else 3. None of this is in the body itself: all 24 points belong to 7 function items inside it that branch (a function literal at line 45, Matrix, a function literal at line 252, \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/matrix.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ce331641c8aebd9eafb637f618c1d067e4c290843ea542c50ee8c8eb5bbebf"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::pathToRelative (cognitive 24): path.Snap.plugin()::pathToRelative has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (8 pts), match/switch 2 (5 pts), boolean chains 2 (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. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToAbsolute, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d03a2ad7177709b31de56727d76fa84006db3b0c5eda0122f030308a4f3d5f"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::curveDim (cognitive 22): path.Snap.plugin()::curveDim has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToRelative, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b93c1449866c181a8b4b997924f5de0ff4963fee6192c185e178d07d22b2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::curveDim (cognitive 22): (anonymous)::curveDim has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c66104b0729e7dc6a7e98aecbeba4fd9280eda16d83256a7407061cf8497cc8"}},{"ruleId":"D2","level":"warning","message":{"text":"path.Snap.plugin()::a2c (cognitive 21): path.Snap.plugin()::a2c has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, loops 1 (2 pts) (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. This shape REPEATS in the file: 6 other methods here (path.Snap.plugin()::interHelper, path.Snap.plugin()::interPathHelper, path.Snap.plugin()::pathToRelative, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 7 times rather than 7 independent problems. Splitting this body alone leaves the other 6 exactly as they are. Where these are variations on one operation, the change that clears all 7 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/path.js"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc4c0b33e6b2d73ece0d2e2b34cc4c703a19fc3a7e74db9ea431c3f13548e67"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::extractTransform (cognitive 20): (anonymous)::extractTransform has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (3 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/element.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c50bc0c653f07a9f191f7b12d87d81f2a219a9629c29fb23d3c37b324c5ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::ptrn (cognitive 20): (anonymous)::ptrn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 7 (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/paper.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"090cca565c8e8db03f2ce99c61578712bf1e5225f782bf4c92e25986646b9059"}},{"ruleId":"D2","level":"warning","message":{"text":"mouse.Snap.plugin()::dragMove (cognitive 19): mouse.Snap.plugin()::dragMove has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 1 (5 pts), loops 2 (4 pts), boolean chains 3 (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/mouse.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6829b2a2cc2f6533b8cc960a3c50fb79db7fa7c06d2117da6daaec478e1ed2"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::dragMove (cognitive 19): (anonymous)::dragMove has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 1 (5 pts), loops 2 (4 pts), boolean chains 3 (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/mouse.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8152e808a3da2eddd4711936a4de14205d0fa9400cec472aa7b9848869dbd00"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::ajax (cognitive 19): (anonymous)::ajax has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fcc72aad60d4897d1e95c1b70b2abb3aab820e4c91180a274b765093283698"}},{"ruleId":"D2","level":"warning","message":{"text":"equal.Snap.plugin()::equaliseTransform (cognitive 18): equal.Snap.plugin()::equaliseTransform has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, loops 2 (3 pts), if/else 1 (2 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"490c31b51ad950e7a501f53811e896534aedb5fca794fa4fb032c16e726f6697"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::getBBox (cognitive 18): (anonymous)::getBBox has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/element.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f96dac75af7990eb33a3aeff229c2e3e6d6802d4732455f783530ab1a90b39c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::equaliseTransform (cognitive 18): (anonymous)::equaliseTransform has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, loops 2 (3 pts), if/else 1 (2 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"207b2409080018e017e287d5074444ef22098b3a54cf83c21726b2d1712bd0c5"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::color (cognitive 18): (anonymous)::color has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b8b6179233ca77417e6b9c8f4544eae04e39ff486683a188b95d4fd7f501b4"}},{"ruleId":"D2","level":"warning","message":{"text":"element.Snap.plugin()::extractTransform (cognitive 17): element.Snap.plugin()::extractTransform has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (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. This shape REPEATS in the file: one other method here (element.Snap.plugin()) 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":"src/element.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"10276befb15c9c1f52a8c5ea41c15eca05050dfdab81f407df9c8c5a05826d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"attradd.Snap.plugin() (cognitive 16): attradd.Snap.plugin() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). None of this is in the body itself: all 16 points belong to 2 function literals inside it that branch (lines 40, 64). 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/attradd.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"19661323f16db6050f65ffe73e3ddf0e03197f853770a4b3075b7abb2c6fda82"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). None of this is in the body itself: all 16 points belong to 9 function items inside it that branch (a function literal at line 40, a function literal at line 64, \u002B, \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/attradd.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcb3e7f81b0d49ec861208ef7cfef7d18553e26f8a05edca5a354df2da0142a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::transform (cognitive 16): (anonymous)::transform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/element.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7515e9e9d26b2b4ec4ce6e6f086e3cd764f929441fb2426c06f57ec7dafa352"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::svg (cognitive 16): (anonymous)::svg has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4 (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/paper.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b180e10acb451560eff980141f66b30c1bd1d4614cf4aecdbf8157d1db96ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: path.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 970 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 870 over it, 9.70\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/path.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d464bc1ac59c785742fcbbfdaf3e61cdc171e2cece3a258a4224072a0be4dc00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: element.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 381 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 281 over it, 3.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/element.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4790b28c441e0e84c9a20efba9747f3f7d29965b643e4e687ec40cc867332871"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: attr.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 357 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 257 over it, 3.57\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/attr.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca5bbc51e51a40350d700238ed84967f444b95669937a073083512153113509"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: paper.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 321 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 221 over it, 3.21\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/paper.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"58daebdbd965801c12b52f9d169f37f3eb764ffeb7e5f7e0df7835c1ae98a24b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/svg.js: FileTooLong \u2014 1051 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 94% of them inside a single declaration: Snap (15-1862). The bar is 500 significant lines; this is 551 over it, 2.10\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/svg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece0991f006734d218426856308f59e600d570ce49aa40a062e9f2bbb7dc4e34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/path.js: FileTooLong \u2014 970 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 470 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6687db00e4e217df23b0fefbdbb437664fc5f5e1191f19d735769ce233e609b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mouse.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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/mouse.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f3135ccdf21d055dc9c1123f4a87c20102c7f4ee1d3bcda2c338a3eca35037"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: set.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.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/set.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535a6b1a11c927454ab1aac41ad914617181829e7f3ce09f978090c916a2cc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: matrix.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/matrix.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"262845719efff973ccd383a6e2ff3c7bd42a96b0c60be51c9ef0f61c37664100"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: filter.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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/filter.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2863df608cd285c42d001986eddf1761b876d7171d8e9c0c31a66bb7542532f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: equal.Snap.plugin(): FunctionTooLong \u2014 Snap.plugin() 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/equal.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0aba3bd809b3e19931fe3e31923604e395bf2342e7b811993d3e72f6384f97"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd0befca199e500a3764193fd17a53d06dc8139cf3d0119370a215db2a2a6208"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf1e621143688719be457a649b3251b418817edf66ec232c140c89159f16adb0"},"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":"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":"0a675af107ea5ec495c0a4900177cf18fab6b6eecc37787c64a95925fe63d38d"},"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":"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":"6052bc62f4170a1262d4433cf5652d9a5a4893a8fd45a44804abd0a4fb163958"},"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":"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":"61cd420188b56f92cabab644fa5671c18e929e44e73bd1b4e39b87ec55ff8601"},"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":"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":"7f77087c784877afc1b96483b636b701868be2434a5118a4afc14c9fde396cbe"},"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":"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":"e5005186b02dd117f4c6472a443f44c6893072943ea83db5b4a71f889dae8be8"},"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":"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":"5192c2c3c723df58b29a1d06159db2f66531a0bebf7662077cce9aae45968ed8"},"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":"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":"a6332188f99d6689fb3fbcf968d280d83ed457e3e9ec690b04d2f8aacd94ff16"},"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":"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":"cdd294978e4bcd27f8e2e1691eadc9cd3ecad3499070b6418c0bd2b9a104c05b"},"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":"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":"0a2556d2dcc2b639b12163cb26497a1a6a56bc912ecc4844702a4c0e157ca8a3"},"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":"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":"b1fb501c33dd607045bc51feae4e56631fedff7b426d42d3dcaa571e649d6944"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e3f5bcc53c00a5add2920f1042b60eafb97d99c49d9257e6017d6b25290d82a3"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82ab0a6edff0ca8bdc6dd7dd13b175fb09f9d307a2f5c4c193a3b34809029e71"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ca925265827cb7f50a02a9335099d920907bc0bcee1d270521fa0ae24b91f30"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8592e9a97d6386dd88b3e696cc81946c592e0847a262aed050c571d3d2121b56"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b1c79cb3801856331c16acd969ebe6f8267d447ad1925eb8fdca1e553d81127"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef305591ab0618e117f4ac6d89e8d7f01312232448536783d7d64d70ced735ac"},"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":"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":"46a1522a53dbd61670eda9b12285230808f255779dc6cc7b29ad64569825e912"},"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":"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":"a15506b8901a5bdb375ad415b9b1de0993d6f496434f1645d55425ec3e27ebdd"},"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":"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":"9eb4e687596fafb42051aa3be0d99649dee87493b1ffb66982351ee74fbf4ded"},"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":"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":"5a195f31355c61ed1335a00c20643ff63b8d5df79701b672ce4f76ba2a99c609"},"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":"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":"350b72c4dd5f354affdb01f82be05db16fee188ddacae696dc7cc6faf5796df8"},"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":"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":"9154a600ae3d928af8009981c7e0a1c48aae1b0aef23be95194a45d82d43e32d"},"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":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"83624e2a75b102d656da943ab10c203006d969612030d1669428c03d4067940e"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 26 of 26 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 26 separate risks. Counted over 26 of the 35 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demos/animated-game/js/snap.svg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb185aaabe7c5d5f0f2d5f0f2299653d7e7f2ab99f6971601933c9e3f4adbf23"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"demos/animated-game/js/backbone.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5809b47539a490db4129a33a92af959b8cbe6a0938f0b360d77e7d7533aee9"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6e4a3eb1adfbe9781bd05c4fb4bbd1de019c19805e9265a7a2623da73fcaed"}},{"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/path.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc78ccdd74f095424a8de2cf552a8806a4c42938dccba2a44830494a69d7bfa7"}},{"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":"demos/animated-game/js/underscore.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe1c536b5fe447e6312e0a03a6536b274ce43afaa18612b9bc5ab427350d5bd"}},{"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/paper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff72b43c96348bd91fe29eda5903ea2249f2c50666dd6526923cd999468f4588"}},{"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/element.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8732d4b5daf4becf5ee2bd5c57c5609e61d545c78183ddcd3e48ae24abc1e52e"}},{"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/mouse.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdef962517661182a7c4a130bc4817be8297c8501f645eecd9d2210c64e8a90"}},{"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/attr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a09e431a35420be5acb145b8a2885135a9334a2c73f848feb24e973c00af284"}},{"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/matrix.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d762dc60b63b8d9dd768e4a0d0c49f02cae9dc36aac44eb3bae8daf4888aae74"}},{"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":"demos/animated-game/js/seedrandom.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd0f137dd81341683b333efc211cef0827a119731447c8c75e9687537d59662"}},{"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/filter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c762044582078dd23d30e7b71ff84b232288899b9849c5cf91102e61b3f964c"}},{"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/set.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfae66ef116840612aee74ff46fbf14f591883da17d4860124a4e5e5d2afe1b"}},{"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/mina.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25a72c66849167bb3fef8406c4fb3ea45282581a41804405558f0d646bc4cc9"}},{"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/animation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca798ad01fd0ea7c30c638218dce7c78b30c68f840d0c80e1295f9134cdc725"}},{"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/equal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a467f9bd397fc3df125c3128c4d345eb4b5b83834f1511fc7d7b3ff59f7c96"}},{"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/colors.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d68f1e504109da22cb780b37a70ba80c0971f867d42e25f7e3f8e440625c8f"}},{"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":"demos/snap-ad/src/js/app/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"866cc91344d0f6f3c30cfcbedd43de16ec45ad084a9ccc41f210ea0717d5bc89"}},{"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/class.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"445475e9403f2c28c0d4a3720ede1bba163cff4ee36a704f43818e5648ec2a46"}},{"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":"demos/snap-ad/src/js/app/device.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dbacad403095d43890a3b1d2e0382b1048efed877ce380754390d1ee533342"}},{"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":"demos/snap-ad/src/js/app/mesh.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f390d6dddc229f599d019fec0bad88ac389d39ed9fff79dbbe28a22a98e239"}},{"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/align.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbac5cad3b6eb503574a595a23ee2c2f05e5ac156212e194400bcbdff64c581a"}},{"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/attradd.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bbb5899b40261b7124fb8d5b29fcef29dacbb906adc4b357ef641ee220ac64"}},{"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":"Gruntfile.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f75535e6ade9dd872bb1d90e62afb0cee4394124b3699350a22bfbc1503131"}},{"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":"demos/animated-game/js/path-animal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"783c98dfd84046819d8e4d87ae9831be02d3d13d3ba53acd602dc0f509802c14"}},{"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":"demos/animated-game/js/main.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff193e02c4c2aefd699fdc92a9437f79c05b069d532442a1c35e68eb240b723"}},{"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":"D43","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca77df8ac0ed56a2e42b0923be81cca477f3174e98a1dc599981adac6a376eef"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"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":"P1","level":"warning","message":{"text":"CI pipeline targets a decommissioned service: The pipeline is well-formed, but the only CI definition is \u0060.travis.yml\u0060, and its \u0060README.md\u0060 build badge still points at \u0060travis-ci.org\u0060 \u2014 a service shut down in June 2021. No other CI is configured in this repository, so nothing has been building or testing changes here since that shutdown \u2014 the steps below describe a gate that is not running. Porting it is mostly mechanical: the build and test commands already written here are what a replacement pipeline would run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"94fa49939f4e75dfcbfaabad72be66184852fe80bd9db87538e6e15223919a47"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add brakeman for Rails apps, otherwise \u0060semgrep --config=auto\u0060 or CodeQL\u0027s ruby pack as a CI step. What was searched, so you can tell an absence from a miss: the 219 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 35 plain JS \u2014 the untyped files are src/align.js, src/amd-banner.js, src/amd-footer.js, src/animation.js, src/attr.js, src/attradd.js (\u002B29 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/class.js:19 \u00B7 src/class.js:54 \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/class.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ac74f4ad9fca8f2451c293abf6bfd6713d53e41b4f70e7ab0ca36de4dce655"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/path.js:361 \u00B7 src/path.js:376 \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/path.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e004971bf5efe6f844c6f5f71a5db276df6adc0bdafeb6ca1359386c98a38a2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/svg.js:1186 \u00B7 src/svg.js:1200 \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/svg.js"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9585b695121a40987e4311d40041f0d68c1e24c77c63d0317ca5eded18d211"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/animation.js:139 \u00B7 src/set.js:78 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 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/animation.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2f3a2ea147c03da019919bfdc4a8eaff0e304e15c37c4d907ae0923f933bce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/paper.js:168 \u00B7 src/paper.js:454 \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/paper.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49024334e5e39df83272a2e0998ee7564aa5caf81c5760ac624f9fab13b8185"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/paper.js:461 \u00B7 src/paper.js:489 \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/paper.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"818be90252877b89f6a22bca5ae4e100ec829c76658f6bc5db35a99f119d9d7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/paper.js:245 \u00B7 src/paper.js:304 \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/paper.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"385255c637607bcb2ec33d7928f7129309b502fd7fe03250fa4fbbf81870f87b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/svg.js:612 \u00B7 src/svg.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/svg.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"0297fcd94ec4089a65815ff08d921df73dab30579235cf6950eec98cac2526d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/element.js:590 \u00B7 src/element.js:632 \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/element.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c39dab251ad350dda2729cd8f943678aaad49a3629bf32bed7ac2a496df2aa7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/filter.js:257 \u00B7 src/filter.js:299 \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/filter.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd1f4ea11c9b2faac6ba9da21fc9cacca76f712526f17d69c97c26646aa6687"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/path.js:665 \u00B7 src/path.js:693 \u2014 the two spans are one implementation copied and then locally edited \u2014 141 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/path.js"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a40f2dc32ff1ff03c55fe7ed70627a8d52d9cefa62086546d1c45df82ac72c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/paper.js:72 \u00B7 src/paper.js:166 \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/paper.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba90ea86ce5320b699a910b1f19aaa72cc686344be06abbdefd8273afac3d1e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/paper.js:424 \u00B7 src/paper.js:452 \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/paper.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8537b9225ef60618ad9a065fcb46cd7099e880d2ca1eeb4a1cfcf5543ae75c13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/element.js:322 \u00B7 src/element.js:344 \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/element.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc906b0969ded724dc9b046c7228edd29a456cfed7c946f18b61a557800979a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/element.js:484 \u00B7 src/element.js:499 \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/element.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"176e402f19bb200dd390cfca238e2dc45868758fc4c59e7d6f8cac1d855d14b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/path.js:1010 \u00B7 src/path.js:1026 \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/path.js"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f8d4805e2b0b2f1061c03c568fc591bf744c8a2322f6739fdd2c1c0d0ae3f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/svg.js:837 \u00B7 src/svg.js:877 \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/svg.js"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d83ccf34e7e46ad1660a3001ff8fab5cf6eaf417d6c1b227685b8a441ec3400"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/svg.js:883 \u00B7 src/svg.js:915 \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/svg.js"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"589fff3f41158431b74fcc8d1814ea8fdb356710c4a2041a2db3653437cd1694"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/element.js:422 \u00B7 src/svg.js:1291 \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/element.js"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f818b6ba872074cd1f88401a0703986bb3d6f2eeb8e46f2ece02f4ac53e3914"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/path.js:504 \u00B7 src/path.js:512 \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/path.js"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f59e515ee057d5d12008a7c75880e548b4c52d52f2f9ed4c6d842e062fdc8d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/path.js:561 \u00B7 src/path.js:649 \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/path.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86aa598a53e4ab2bbdb2185aa86dca8b4e1a6e8b57af6742491fd012ca8f272"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/svg.js:775 \u00B7 src/svg.js:782 \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/svg.js"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"3452422e41d313c509d356cc919e93c851a79e4953a46b7aea2c59097c109b58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/svg.js:807 \u00B7 src/svg.js:843 \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/svg.js"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18aa17aeb9f4fb7493a533dbe2d94a46555969e89347acb12059d1799e631c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/svg.js:908 \u00B7 src/svg.js:941 \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/svg.js"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"7560321dc1e9e9147ff733c9a969ed9d12d8bb073c695c8f4ada7b367418bfff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/svg.js:1100 \u00B7 src/svg.js:1113 \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/svg.js"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b14711c79086a99acc2430335b81884ef995021acd27292d9dc3f8cbe2510d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 38): (anonymous) has cyclomatic complexity 36 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/svg.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9cad3c8a4efb9af5fb0a61094b2119b5f462fce4eb4da7413639e287d52ca2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pathToAbsolute (cyclomatic 32, cognitive 39): pathToAbsolute has cyclomatic complexity 32 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d150e269510ef2ce6a0c79ed72d9fc16e57e1396f5604d5f374f0cf7b4dc56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function path2curve (cyclomatic 31, cognitive 37): path2curve has cyclomatic complexity 31 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaf88af385198693ec358d29c76b578a2b2440d7793d14b05781cb45d0ea6d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transform2matrix (cyclomatic 24, cognitive 53): transform2matrix has cyclomatic complexity 24 and cognitive complexity 53; 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/svg.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b10df7b8cff10fb86b62720dd6f60e9cedf1601a5f7a133eb3eb15e07731986"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function $ (cyclomatic 21, cognitive 49): $ has cyclomatic complexity 21 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 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/svg.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d30c000dd081c10884772fda6bc794a2612ffa5e25e327aa3cbd90ae5a60ed3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function a2c (cyclomatic 21, cognitive 32): a2c has cyclomatic complexity 21 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 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/path.js"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"18065f91583d74db3443360d1f53e67dd3f47966e5029364b3ec30f4a37cfa52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pathToRelative (cyclomatic 18, cognitive 29): pathToRelative has cyclomatic complexity 18 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"92edb413700dcc560b126f9e54e60400c8f619c566c09d50048ed9d53279f534"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function equaliseTransform (cyclomatic 18, cognitive 18): equaliseTransform has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaa74c2ef59e8c53e0940e37a5e9c5546ab424ce28c15f8dd46845acb179da8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function interHelper (cyclomatic 17, cognitive 33): interHelper has cyclomatic complexity 17 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5470721bcb071694f926a518a4573a7e5550715ea8172982d4352f3f83faf6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 18): (anonymous) has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/equal.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"33037d54638abfc7bca23d71645866312fc101e0959481976344b52d23f87713"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isBBoxIntersect (cyclomatic 16, cognitive 13): isBBoxIntersect has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4a7afb40b179fdd8921b1589e5962e47ce7f7ef8e2b5bace403314f196f91a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processPath (cyclomatic 16, cognitive 11): processPath has cyclomatic complexity 16 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"9059010da44ac6e94f20fe633714643f3e1d2c7af2a3bdc7d74e42daf143d6ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function color (cyclomatic 15, cognitive 18): color has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ff9ed89bc1b05a6fde2892f5c57d84aca256d08d57fe5b57072c9c39fb80f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 23): (anonymous) has cyclomatic complexity 14 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/attr.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"595deca8232b08674af45f3a1d5c18b9d5d8bf35e36def8530b4b356e4448f9c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ptrn (cyclomatic 14, cognitive 20): ptrn has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/paper.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"382090853e950518791ad4763085772d30d492bd2506543d12606b7900c7360f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getBBox (cyclomatic 14, cognitive 18): getBBox has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/element.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91dbf99e9e0433d9114788b0b10cd498aedbd7ce48e604458ec93938525c652"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersect (cyclomatic 14, cognitive 13): intersect has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9d45b798d58755ac5ef1e8faefa4625c01730fa2c7504e7a57cf791e0b838b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function curveDim (cyclomatic 13, cognitive 22): curveDim has cyclomatic complexity 13 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"af62f27e0652ad92fceb0d6a5226a953e04ec2c20980af9d8e9a1f3fd20c642c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 25): (anonymous) has cyclomatic complexity 12 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/path.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a692897359f09ae28857f91029847059d92047b2831fd4cb7f982df571595b36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function is (cyclomatic 12, cognitive 11): is has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8bdbc20a83f2b793fb76584b63f0b5586552a96b800cd11d92565bafa0c049"}},{"ruleId":"R3","level":"warning","message":{"text":"src/svg.js: 1844 lines of code: src/svg.js has 1844 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/svg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ec6c8541a1552c2622ee3c02def05e262d9cae3c8aa16110dcbc5279336871"}},{"ruleId":"R3","level":"warning","message":{"text":"src/path.js: 1439 lines of code: src/path.js has 1439 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/path.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedb1e9186d4669a42ff51dd4822e6aa61f53febc1190b4e1c8c9a6a69a5b517"}},{"ruleId":"R3","level":"warning","message":{"text":"src/element.js: 794 lines of code: src/element.js has 794 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/element.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c84052138d9f95bf382b15d91f84fbee754df8e7f8a710174220910660ec3e1"}},{"ruleId":"R3","level":"warning","message":{"text":"src/paper.js: 770 lines of code: src/paper.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/paper.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33127598182b2ec9dc9471cb38957071ba63d9d50d86ad539cb700445062089"}},{"ruleId":"R3","level":"warning","message":{"text":"src/attr.js: 464 lines of code: src/attr.js has 464 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/attr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"140772c8ea912a11eeed4e435bdfce34c3d58f3758c773ed7271ed94333292ef"}},{"ruleId":"R3","level":"warning","message":{"text":"src/mouse.js: 462 lines of code: src/mouse.js has 462 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/mouse.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2c6225d231fde4049ab801221952d4f4a60a0bcf7f3c068e66af1e7b2897de"}},{"ruleId":"R6","level":"warning","message":{"text":"No test, lint or typecheck script: test \u2717 \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":"a9372ffc30204d52cc3368af49ceaa995574db973935e30b3946f83785dea15b"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027webpage\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/test.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eccfd35b8b44e1cc0854a2b0fef844700fa1d0605b96311a6d67ee9ef6cf3c"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: No package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock \u2014 JS installs aren\u0027t reproducible (SSDF PW.4.4). Commit your package manager\u0027s lockfile and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"40a08798dc9f9c819eaa9f7c084938e1cf2517a9281aed2c31563d6f7d5ba90d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof easing == \u0022function\u0022 \u0026\u0026 !easing.length\u0060 appears character-identically in 2 files \u2014 src/animation.js, src/set.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/animation.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d7ed50f938d9e9f3aa5c96bc08eca77ac2a172a6ac917fc5c88b055bf02e2c"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060svg\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/svg.js"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf8a1a65447028644814eed9a6a2f7dd89840195324995cefd9a8c0c94342a0"}},{"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/mouse.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7991663b52daf4e14314965b9746324b374bd0c48e88717f7185fb6ead273a"}},{"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/svg.js"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2e5bf307cd4b40bace29a91ee994f6642d57a3f07fc636b8aaae16e7ca16e5"}}],"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-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.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-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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":"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"}]}],"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":27,"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."]}]}