{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"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":"check_element (cyclomatic 195): check_element has cyclomatic complexity 195 (threshold 15). Of this number, 181 points are the body\u0027s own statements and 14 belong to 15 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e514528da45ababe3210e70d590f79901805eceb7f3f2f5c923d3b9fe58a9dcb"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze_component (cyclomatic 181): analyze_component has cyclomatic complexity 181 (threshold 15). Of this number, 163 points are the body\u0027s own statements and 18 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"79250bc31244badffd4754d10ce5da116034ca056532eae5277edae134f3796d"}},{"ruleId":"D1","level":"warning","message":{"text":"RegularElement (cyclomatic 136): RegularElement has cyclomatic complexity 136 (threshold 15). Of this number, 124 points are the body\u0027s own statements and 12 belong to 12 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e08a04bd203c39e15a3f00d8c0aa0e94bd77b02fbdd4b57d3901f1206412a4"}},{"ruleId":"D1","level":"warning","message":{"text":"index.svelte_visitors (cyclomatic 122): index.svelte_visitors has cyclomatic complexity 122 (threshold 15). Of this number, 119 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eddfe3972640a64fa711c5d27ed3c087c53b8a136c3de1cee4dda03dee6e99a"}},{"ruleId":"D1","level":"warning","message":{"text":"client_component (cyclomatic 108): client_component has cyclomatic complexity 108 (threshold 15). Of this number, 90 points are the body\u0027s own statements and 18 belong to 7 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a618083300a8b61f73d0e09dd5b26ef70a40fa2263ca54369e6ecac1620d297"}},{"ruleId":"D1","level":"warning","message":{"text":"Evaluation.constructor (cyclomatic 107): Evaluation.constructor has cyclomatic complexity 107 (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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bbbb8580c5e52364bbdb0a012129c5d73d3221d9017ed3fa8e7d6bfc4eb488"}},{"ruleId":"D1","level":"warning","message":{"text":"migrate (cyclomatic 91): migrate has cyclomatic complexity 91 (threshold 15). Of this number, 73 points are the body\u0027s own statements and 18 belong to 23 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c4692236a03b8a6f4ab1122df19fbb2a588ea21b2f1c840d1cb7024b5e6f74"}},{"ruleId":"D1","level":"warning","message":{"text":"element (cyclomatic 91): element has cyclomatic complexity 91 (threshold 15). Of this number, 89 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79421ae15668f1b47e600384c5c53e5522449a2e1867bbd7124ed596ee849cd"}},{"ruleId":"D1","level":"warning","message":{"text":"build_component (cyclomatic 91): build_component has cyclomatic complexity 91 (threshold 15). Of this number, 78 points are the body\u0027s own statements and 13 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"077e3244d1ab4aca806ea0fb435a98558e15fb1c11010027f65d72e87e4a7a6e"}},{"ruleId":"D1","level":"warning","message":{"text":"BindDirective (cyclomatic 82): BindDirective has cyclomatic complexity 82 (threshold 15). Of this number, 76 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0702230e0b89326754016598bfbdb466d86d60b6524d22560d465a67c1b96c88"}},{"ruleId":"D1","level":"warning","message":{"text":"BindDirective.BindDirective (cyclomatic 79): BindDirective.BindDirective has cyclomatic complexity 79 (threshold 15). Of this number, 72 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a07e049b6ba45ebe8aabf61106d203374598996b987b402bc71bdb5e0e8ea78"}},{"ruleId":"D1","level":"warning","message":{"text":"CallExpression (cyclomatic 79): CallExpression has cyclomatic complexity 79 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f625d0f4ff6b15431fc0d42a74deabb7bc49bb351322572a32904f0bd2fb279f"}},{"ruleId":"D1","level":"warning","message":{"text":"element.build_element_attributes (cyclomatic 78): element.build_element_attributes has cyclomatic complexity 78 (threshold 15). Of this number, 72 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e547824e4118ee8e36c7d393938b8b4aecc46a58332bbff3951bb12250d40534"}},{"ruleId":"D1","level":"warning","message":{"text":"VariableDeclaration (cyclomatic 78): VariableDeclaration has cyclomatic complexity 78 (threshold 15). Of this number, 68 points are the body\u0027s own statements and 10 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca7e04e1bd62de9e610c4d7f3ca57297910514fd271017df8be06d6798baf13"}},{"ruleId":"D1","level":"warning","message":{"text":"VariableDeclaration (cyclomatic 75): VariableDeclaration has cyclomatic complexity 75 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 16 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fae2167c257dc5554c090fb026d6add9256522dfdba82a14da572830acc4b57"}},{"ruleId":"D1","level":"warning","message":{"text":"create_scopes (cyclomatic 74): create_scopes has cyclomatic complexity 74 (threshold 15). Most of this is not in the body itself: 10 of the 74 points are its own statements and the rest belongs to 29 function items inside it that branch (EachBlock, AwaitBlock, LabeledStatement, \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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"80837c1f3c33708992c87f69f4f8c488fa9c6c29ae3708d4eff2200ed561fae4"}},{"ruleId":"D1","level":"warning","message":{"text":"attributes.set_attributes (cyclomatic 71): attributes.set_attributes has cyclomatic complexity 71 (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":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"116718636a01ddd1ac22ada6477eefab94cd1c41367a5d8f4774f46de3c390ca"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.clean_nodes (cyclomatic 70): utils.clean_nodes has cyclomatic complexity 70 (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":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4550ac8006204f1e8139be23ecd07081f0cebefe445eac22dca96e342d7eae0f"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.proxy (cyclomatic 69): proxy.proxy has cyclomatic complexity 69 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f84f69dd7837db807e6bd5c2931341a8aafdae410d92a5fd7ad6f7e20fc0f0"}},{"ruleId":"D1","level":"warning","message":{"text":"profile_to_markdown (cyclomatic 68): profile_to_markdown has cyclomatic complexity 68 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 20 belong to 9 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/utils.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcfb39317656504ff4e86508b92ee50947082d59132aa412b2b788b4474dc00"}},{"ruleId":"D1","level":"warning","message":{"text":"Identifier.Identifier (cyclomatic 67): Identifier.Identifier has cyclomatic complexity 67 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a7404614d17a39c802e337db7379acfe90e557f44ac04911416f184b4cb5dc"}},{"ruleId":"D1","level":"warning","message":{"text":"relative_selector_might_apply_to_node (cyclomatic 67): relative_selector_might_apply_to_node has cyclomatic complexity 67 (threshold 15). Of this number, 64 points are the body\u0027s own statements and 3 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a99b8e307c1646e11e5de022900e43d0764a29013176b775ce2fefadf4ac4af"}},{"ruleId":"D1","level":"warning","message":{"text":"RegularElement.RegularElement (cyclomatic 66): RegularElement.RegularElement has cyclomatic complexity 66 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39f67f04b5f25e3b01ed61ef8dcd430a0ea920f64bb4b02e53773f572323b7e"}},{"ruleId":"D1","level":"warning","message":{"text":"EachBlock.EachBlock (cyclomatic 64): EachBlock.EachBlock has cyclomatic complexity 64 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 8 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6f62820375f13d4f84b4bb169712bd9b8759401815594b4d97ca4c774fb097"}},{"ruleId":"D1","level":"warning","message":{"text":"build_assignment (cyclomatic 63): build_assignment has cyclomatic complexity 63 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 3 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d47357ba9c1b724b26599120a96a295dd00d6b10aa43b586391681b709ee5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"build_inline_component (cyclomatic 56): build_inline_component has cyclomatic complexity 56 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 10 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbf181370953a67bb8c9d1de8c09bbf2f152d12a30735be1a3754b55e77cf05"}},{"ruleId":"D1","level":"warning","message":{"text":"options.read_options (cyclomatic 54): options.read_options has cyclomatic complexity 54 (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":"packages/svelte/src/compiler/phases/1-parse/read/options.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce402a26b8a7b2bbeb1834cebcc0544054b6a58c17f9e0ad266ebfeb93ab9e3a"}},{"ruleId":"D1","level":"warning","message":{"text":"index.calculate_blockers (cyclomatic 51): index.calculate_blockers has cyclomatic complexity 51 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 14 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc62fdc3bba8a2809dc0a1923b1c8b0e2c9f67bf49d724b53b4335d2d7777d0"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.get (cyclomatic 50): runtime.get has cyclomatic complexity 50 (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":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b6b050ced8fefa4a768d8159667c39645f1d1c662698fb462d80eab9b586ec"}},{"ruleId":"D1","level":"warning","message":{"text":"VariableDeclarator (cyclomatic 50): VariableDeclarator has cyclomatic complexity 50 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5008627727d2690b33522fae52844fc42178f529d9d07608fc2c99eebd466748"}},{"ruleId":"D1","level":"warning","message":{"text":"server_component (cyclomatic 49): server_component has cyclomatic complexity 49 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 4 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/transform-server.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"787b51533e7d96830f17aa60b06f4fe11e8b839c09a2465532eb8d86a431a45b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.migrate_slot_usage (cyclomatic 48): index.migrate_slot_usage has cyclomatic complexity 48 (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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b2667cb1b2e27cf35b5be64a437133441ff3eab889385e55cfd038c43bebf5"}},{"ruleId":"D1","level":"warning","message":{"text":"each.reconcile (cyclomatic 47): each.reconcile has cyclomatic complexity 47 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a7a50db49be9a86668b800367ad819aa592aecb3870d23675382b1b63e7bbe"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassBody.ClassBody (cyclomatic 47): ClassBody.ClassBody has cyclomatic complexity 47 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"967424230b5ce446e66dc770e27091345bb3fc8714f43598154e470355931e6f"}},{"ruleId":"D1","level":"warning","message":{"text":"open (cyclomatic 47): open has cyclomatic complexity 47 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3a3fc8fb568326a5c3499f8c56a46fe1949a53f3295d5eefa1373e0fdd41e7"}},{"ruleId":"D1","level":"warning","message":{"text":"SlotElement (cyclomatic 46): SlotElement has cyclomatic complexity 46 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 16 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"63714861fe2c5ef20f491955dd18ac5c15e7c3df9033ac0d9e435a824e93d587"}},{"ruleId":"D1","level":"warning","message":{"text":"element.validate_element (cyclomatic 45): element.validate_element has cyclomatic complexity 45 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"633282a64601ba38e400761ddf9f9afcaf560aab5e3f77693355020c91252d18"}},{"ruleId":"D1","level":"warning","message":{"text":"index.run (cyclomatic 42): index.run has cyclomatic complexity 42 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 11 belong to 7 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/process-messages/index.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1fb3211af3398d84452a395866c8537e05342d2ab707c00d89ed9ddf4bf38c"}},{"ruleId":"D1","level":"warning","message":{"text":"ast.is_expression_async (cyclomatic 41): ast.is_expression_async has cyclomatic complexity 41 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. 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":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1fe7534edf5aba89806c764ce43e26cf0d3c3411adab79f503c1c4c57d8b3a"}},{"ruleId":"D1","level":"warning","message":{"text":"svelte_visitors::Fragment (cyclomatic 41): svelte_visitors::Fragment has cyclomatic complexity 41 (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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"007d2452cdc62343d2a62bd98d070cfad5a9937a04728d6417ad63bff32c7c33"}},{"ruleId":"D1","level":"warning","message":{"text":"VariableDeclaration (cyclomatic 41): VariableDeclaration has cyclomatic complexity 41 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 4 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"780d9144a405804f0013b57b4ec42daacaa2b3c2e51a2da24c8375dd9c12b925"}},{"ruleId":"D1","level":"warning","message":{"text":"each.each (cyclomatic 40): each.each has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 10 of the 40 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 268, 207). 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":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f815ec6acdcec0e3e0fb1f12234827ff3d5bb1820597e1c224667f859e2cee9"}},{"ruleId":"D1","level":"warning","message":{"text":"prop (cyclomatic 40): prop has cyclomatic complexity 40 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 21 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/props.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfb0e4b2f8878c111651e80ae19d701a77fc487af76b639353db76820dbded8"}},{"ruleId":"D1","level":"warning","message":{"text":"css_visitors (cyclomatic 38): css_visitors has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 24 function items inside it that branch (print_selector_list, Atrule, print_children, \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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f218c34e808c10477b92eac4b7d6f68e6de0fb99f1bc0fe5d9fbd228823935d"}},{"ruleId":"D1","level":"warning","message":{"text":"visit_component (cyclomatic 37): visit_component has cyclomatic complexity 37 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f88cf81a2472a3b26b51cfe6a073636f41ceff7185ede7e4a4735ac41fbd767"}},{"ruleId":"D1","level":"warning","message":{"text":"RegularElement (cyclomatic 36): RegularElement has cyclomatic complexity 36 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"465b6592eb2e98458f1dcd9982717aeb0ddd51831d963f076ad0272b1fbbd206"}},{"ruleId":"D1","level":"warning","message":{"text":"legacy.convert (cyclomatic 34): legacy.convert has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74ac85b374b3caddd6f48c752b84980f7bb69cb97f9a8ce8b91a1c44369032b"}},{"ruleId":"D1","level":"warning","message":{"text":"element.read_attribute (cyclomatic 33): element.read_attribute has cyclomatic complexity 33 (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":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d34488865bab22d2557ecda51e93055e645418f7c4cf0c793df6f13a4b9810"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.log_reactions (cyclomatic 33): debug.log_reactions has cyclomatic complexity 33 (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":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2dea0f60db4ef09fe378fa6dda90b78aed029d1a7e850cf1211ee1df791574"}},{"ruleId":"D1","level":"warning","message":{"text":"css-prune.get_possible_element_siblings (cyclomatic 33): css-prune.get_possible_element_siblings has cyclomatic complexity 33 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad310d26d3ff4743f5b0f56d7263849efe3cccfeecfda1903b7ebb8d3beea24"}},{"ruleId":"D1","level":"warning","message":{"text":"attributes.to_style (cyclomatic 32): attributes.to_style has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/shared/attributes.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9002a31fe275e5eec0dc438d3333528fbc7c73006df5b53d38c256eb2e5d3e98"}},{"ruleId":"D1","level":"warning","message":{"text":"handle_identifier (cyclomatic 32): handle_identifier has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc369138db4951b0b2d5826cbf1264768de7fe438f5c9a4e40fad9d830bd3fba"}},{"ruleId":"D1","level":"warning","message":{"text":"style.read_selector (cyclomatic 31): style.read_selector has cyclomatic complexity 31 (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":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4372b3dc9c2b7f4730974ca10a173151457be87120230ee719a6e1df4ee3cdc4"}},{"ruleId":"D1","level":"warning","message":{"text":"css-prune.attribute_matches (cyclomatic 31): css-prune.attribute_matches has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"805c9aabe722aba974120270ba2f47ebe3cccf87c2d53d3462737f57a2dc1f91"}},{"ruleId":"D1","level":"warning","message":{"text":"#commit (cyclomatic 31): #commit has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bc7dd6e5aee2a1ea9f7a3e5bf661c8ad35a87b01b563131d5bfc18e24cc3d3"}},{"ruleId":"D1","level":"warning","message":{"text":"CallExpression.CallExpression (cyclomatic 30): CallExpression.CallExpression has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6facd0ec8c4d45133966cf1f3add0a06a1eb7c955d2962a114e7ad732b0580fe"}},{"ruleId":"D1","level":"warning","message":{"text":"SvelteElement.SvelteElement (cyclomatic 30): SvelteElement.SvelteElement has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff6e17cf4abebd87443422d124957660b885dbaf09729e352d7512d0145df6d"}},{"ruleId":"D1","level":"warning","message":{"text":"async_derived (cyclomatic 30): async_derived has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 5 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), (anonymous)::handler, (anonymous)::handler::(anonymous), \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":"packages/svelte/src/internal/client/reactivity/deriveds.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1476f3b4d89367a2e30041d3335de239ede840a6f0d3479e974dfe4b6973d83c"}},{"ruleId":"D1","level":"warning","message":{"text":"bind_value (cyclomatic 30): bind_value has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 7 of the 30 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 81, 22). 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":"packages/svelte/src/internal/client/dom/elements/bindings/input.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4df663903e5258d27b9af4f3f8ab84c9d2e6949f93188c1472af8642287d74"}},{"ruleId":"D1","level":"warning","message":{"text":"ComplexSelector (cyclomatic 29): ComplexSelector has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8308e432d79e6af52442ca973d577a1a4eaeb148894bbb32c821fe53971e59ae"}},{"ruleId":"D1","level":"warning","message":{"text":"acorn.get_comment_handlers (cyclomatic 28): acorn.get_comment_handlers has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/acorn.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"49162d1d6bc95aedc4737c95bd7af9505247e2b3a6886a8593349f23c8e37e85"}},{"ruleId":"D1","level":"warning","message":{"text":"html-tree-validation.is_tag_valid_with_parent (cyclomatic 28): html-tree-validation.is_tag_valid_with_parent has cyclomatic complexity 28 (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":"packages/svelte/src/html-tree-validation.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b830989a34e494039ffea5c04eaa3022ea25b4adb46c5e825e5ebd9f46442804"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.log_inconsistent_branches (cyclomatic 28): debug.log_inconsistent_branches has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfc59fc5e283fb301ee3f3e8ff60d29761ac2959990e612296af1064e394388"}},{"ruleId":"D1","level":"warning","message":{"text":"attribute.validate_slot_attribute (cyclomatic 28): attribute.validate_slot_attribute has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60d84718d29f4c5974e8afb848e1bee0e56f7572fee914473625d0fa2cbcd74"}},{"ruleId":"D1","level":"warning","message":{"text":"Fragment (cyclomatic 28): Fragment has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to 5 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1a05d2c228d4c6fd30c8655bdfc430fdacdd8c244e9de5d00cb6fdafa3f1f5"}},{"ruleId":"D1","level":"warning","message":{"text":"AwaitExpression.is_last_evaluated_expression (cyclomatic 27): AwaitExpression.is_last_evaluated_expression has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/AwaitExpression.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f6677601b42a4c5116a395860e9c526807a1ae235648e8c6a4d168fb9023c4"}},{"ruleId":"D1","level":"warning","message":{"text":"LabeledStatement (cyclomatic 27): LabeledStatement has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc421cd10d14ac9519d1a1642d2fa076d942b00c9017d79e287b4b9daffee0f"}},{"ruleId":"D1","level":"warning","message":{"text":"validate_aria_attribute_value (cyclomatic 27): validate_aria_attribute_value has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bea10d67cf41ff0c083e893081900a695111ef20a2853e844dd2c127559fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"ComplexSelector (cyclomatic 27): ComplexSelector has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ded6e230868278e9d6878457a37553b961da256b76b7c8742cc322f8f30fce"}},{"ruleId":"D1","level":"warning","message":{"text":"html (cyclomatic 27): html has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 72). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/html.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"136cec8a7f55b5defcb9dc98d4cf9b68ffa66c9e1e04a3ead57159b14ab9b100"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze-compiler-profile.analyze_compiler_profiles (cyclomatic 26): analyze-compiler-profile.analyze_compiler_profiles has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/analyze-compiler-profile.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb8fa16278f86f7da19ed4d952534bead4a48ceb8b5ecb4c4141af8942967f1"}},{"ruleId":"D1","level":"warning","message":{"text":"svelte-element.element (cyclomatic 26): svelte-element.element has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 72, 58, 139). 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":"packages/svelte/src/internal/client/dom/blocks/svelte-element.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2932d12540f5866c41aaf625e94a10f98683864c19d1c8c40edfc524c1273df"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.gather_possible_values (cyclomatic 26): utils.gather_possible_values has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/utils.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacd3fe32acebb0fbc332579c1d54bfdbdd6dcc81e7f6fb5291b7284f64c364f"}},{"ruleId":"D1","level":"warning","message":{"text":"Batch.#process (cyclomatic 25): Batch.#process has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7294f6a6e305b999288ad0710edc093433f3a9ef075a3efec1f2e297abc880"}},{"ruleId":"D1","level":"warning","message":{"text":"effects.create_effect (cyclomatic 25): effects.create_effect has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/effects.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3d7ce58dc70bc9d2fc244ab503df9db9a7b55aa2c1cd343449888bbabbf5b3"}},{"ruleId":"D1","level":"warning","message":{"text":"events.handle_event_propagation (cyclomatic 25): events.handle_event_propagation has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/events.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5b68fdbb31d55ca5fd91264821c6a6fa68abbdaa6a9cd54c78920cf0b31bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"css-prune.apply_combinator (cyclomatic 25): css-prune.apply_combinator has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dec7b276c6368f7a4f1883d2b18977368da89c193311e2d628528dc2dfdfd7b"}},{"ruleId":"D1","level":"warning","message":{"text":"infer_namespace (cyclomatic 25): infer_namespace has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"39648540c6754e80410bf36827e87b785f49c10ee8ff3bbda7ea1ed987d64d85"}},{"ruleId":"D1","level":"warning","message":{"text":"SvelteBoundary (cyclomatic 25): SvelteBoundary has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c92299c5dd5d2dfb4749ff3d510e45a2d09277b33df87fe62c56a8392ae717"}},{"ruleId":"D1","level":"warning","message":{"text":"AssignmentExpression.build_assignment (cyclomatic 24): AssignmentExpression.build_assignment 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f6343cf5ed2feba66b6dbc6a355f8a42499f43a759127bb47fefed6c7bd957"}},{"ruleId":"D1","level":"warning","message":{"text":"fragment.process_children (cyclomatic 24): fragment.process_children 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"284b4874726af4420c346ba0d06c59d43bacc025590ed9961bef618d28f1a727"}},{"ruleId":"D1","level":"warning","message":{"text":"convert::AwaitBlock (cyclomatic 24): convert::AwaitBlock has cyclomatic complexity 24 (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":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b08d00ac09d4b64bf725a26118ef1539ac6bed8ee5b360e7d7ca19c31a2ee7f"}},{"ruleId":"D1","level":"warning","message":{"text":"build_template_chunk (cyclomatic 24): build_template_chunk 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"449b6d73a294811f8d70d18cfed0752481b8bccc7be9978428dc68ba5905878e"}},{"ruleId":"D1","level":"warning","message":{"text":"build_bind_this (cyclomatic 24): build_bind_this has cyclomatic complexity 24 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 9 belong to 2 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d845411c18be822008b07386970c9b20d589a4a9cf19e3716be4d57c253ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectorList (cyclomatic 24): SelectorList has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10c0ea5b826afc170521962720f4ae056e96dfad3766496c4a8cfa3c572e7ec"}},{"ruleId":"D1","level":"warning","message":{"text":"internal_set (cyclomatic 24): internal_set 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":"packages/svelte/src/internal/client/reactivity/sources.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc0f2c24332afad87a0d7f46b3025cc67c9ee0c7d8e94a4b2502a12e70e0b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ExportNamedDeclaration.ExportNamedDeclaration (cyclomatic 23): ExportNamedDeclaration.ExportNamedDeclaration has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7997f380f5660521c86ca629a969b46184b046c8f9b2524c0adf18084ffdb6cb"}},{"ruleId":"D1","level":"warning","message":{"text":"MappedCode.concat (cyclomatic 23): MappedCode.concat has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/mapped_code.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5851e175873ce8fb1515bd2c0f056073f417eae771a01455ba60069306bd779"}},{"ruleId":"D1","level":"warning","message":{"text":"log_reactions::log_derived (cyclomatic 23): log_reactions::log_derived has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"badd79ba29dd078d03ca240bd112830900780f00ceedd35e7a1e6ba9a7026386"}},{"ruleId":"D1","level":"warning","message":{"text":"Rule (cyclomatic 23): Rule has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f951affe6fa002e1442040af9dc3838f4d6919b3acc575dfaf7250de640b5fc"}},{"ruleId":"D1","level":"warning","message":{"text":"SvelteBoundary (cyclomatic 23): SvelteBoundary has cyclomatic complexity 23 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 5 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae00ce8649a680ab48e442275cbdf00e7d8a2c761166841ef8892325fdea72b6"}},{"ruleId":"D1","level":"warning","message":{"text":"style.read_value (cyclomatic 22): style.read_value has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fa23338d53d973f7b72c7acfd7698cbc52248944c77a28bde5a48564ac89db"}},{"ruleId":"D1","level":"warning","message":{"text":"clone.clone (cyclomatic 22): clone.clone has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/shared/clone.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bd6555762b21d0bc7df4dbcb369459d9345b36aade54f0c0a224f5d1f847de"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.validate_assignment (cyclomatic 22): utils.validate_assignment has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"430020bce973fc558ba801798c6f2932a0ae4e7ae968740bd0957eb6315dbc55"}},{"ruleId":"D1","level":"warning","message":{"text":"SnippetBlock.SnippetBlock (cyclomatic 22): SnippetBlock.SnippetBlock has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9537344384fb988edc0d76d599641eb948a6a2092bfcb48fbfb5acf88f263fc3"}},{"ruleId":"D1","level":"warning","message":{"text":"index.extract_type_and_comment (cyclomatic 22): index.extract_type_and_comment has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f19d1339ca40bbad034078a851136aa05da76c8c142839916561adc3689306"}},{"ruleId":"D1","level":"warning","message":{"text":"index.attributes (cyclomatic 22): index.attributes has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/index.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bef39917c843354d2936793031a409814540416999a0f15fe9a2613c42d5c"}},{"ruleId":"D1","level":"warning","message":{"text":"connectedCallback (cyclomatic 22): connectedCallback has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/custom-element.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6995590381e57feecdec18ee96f6f7c8001183c1ecf10f47cbd0b79c37679a"}},{"ruleId":"D1","level":"warning","message":{"text":"ast._extract_paths (cyclomatic 21): ast._extract_paths 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":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3daef07cfd880edc37e1c17995dfe7e14711888d864bab3b20abc3d1bf80e25"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-support.detector.build_detection_maps (cyclomatic 21): browser-support.detector.build_detection_maps has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/browser-support.detector.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb3f4754aa67e0ebba0ba0a743f8163e5bb75c60936d4a534655bd460857f68"}},{"ruleId":"D1","level":"warning","message":{"text":"Attribute.Attribute (cyclomatic 21): Attribute.Attribute 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e81c998cb59876e95fbc2802c578c9343e3f4a616853928233691198c85e76"}},{"ruleId":"D1","level":"warning","message":{"text":"EachBlock.EachBlock (cyclomatic 21): EachBlock.EachBlock 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"361f2968bf26b5b299ce5821e2ddfb79d2e8bcf15882c64c8e3e4599de66df8a"}},{"ruleId":"D1","level":"warning","message":{"text":"CallExpression.CallExpression (cyclomatic 21): CallExpression.CallExpression has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"061277dc6cfc981d628ad9eee00431449071c5e215c36579d4047604291208e9"}},{"ruleId":"D1","level":"warning","message":{"text":"Program.Program (cyclomatic 21): Program.Program has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/Program.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2385bbefd9d7c39993b2ebdcd72c1b6b3b3f9afbcc6431b6db5030726a1500e"}},{"ruleId":"D1","level":"warning","message":{"text":"animate (cyclomatic 21): animate has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 17 function items inside it that branch ((anonymous)::onfinish, (anonymous), (anonymous), \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":"packages/svelte/src/internal/client/dom/elements/transitions.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dc99164af231a1f17ff1f8b818dc76d7a9c04f6d91e55ffd26ba910934d9de"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassBody (cyclomatic 21): ClassBody 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"419f06ff148e270e34dbbad76461849c468e52f0260841aaab486034220988b9"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-support.detector.walk_source (cyclomatic 20): browser-support.detector.walk_source has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/browser-support.detector.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd87e38735d12925b3da042aa36ef8d0a43d6bb11459f2df8dc6e61e3307665"}},{"ruleId":"D1","level":"warning","message":{"text":"css-prune.get_ancestor_elements (cyclomatic 20): css-prune.get_ancestor_elements has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"8090a6c66532573a83886fccf85385e45d40cc98505b2787fb10d40eae91e83b"}},{"ruleId":"D1","level":"warning","message":{"text":"should_proxy (cyclomatic 20): should_proxy has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d4eb128f18335b2da6156fbaef899195bf6a0536a20e043e0cd4969c15939a"}},{"ruleId":"D1","level":"warning","message":{"text":"_mount (cyclomatic 20): _mount has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 5 function items inside it that branch ((anonymous)::(anonymous), (anonymous)::event_handle, (anonymous)::(anonymous), \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":"packages/svelte/src/internal/client/render.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b933335ff04b92a4f069cb960d7c21fd09d8c5f84d8666068723d94deb9d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.update_reaction (cyclomatic 19): runtime.update_reaction has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd33ea13cf14d82284e50d5ef99baa7d3ac0af4ea321de370643f65162f0d2d"}},{"ruleId":"D1","level":"warning","message":{"text":"custom-element.get_custom_element_value (cyclomatic 19): custom-element.get_custom_element_value has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/custom-element.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"172467271fcec38b42c016be592b86730818744da495d51ed7fdd4f297132cff"}},{"ruleId":"D1","level":"warning","message":{"text":"LabeledStatement.LabeledStatement (cyclomatic 19): LabeledStatement.LabeledStatement has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c822dec65ead8d177396127d232c604b6229736be1821b6611f1f5d5f630e6"}},{"ruleId":"D1","level":"warning","message":{"text":"tracing.log_entry (cyclomatic 18): tracing.log_entry has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/tracing.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f067714e7c49b9eb852f011eb79759347315f1f922a90ae3ca35c06ce9213b"}},{"ruleId":"D1","level":"warning","message":{"text":"await.await_block (cyclomatic 18): await.await_block has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 54, 77, 114, \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":"packages/svelte/src/internal/client/dom/blocks/await.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe220b069b07613f40affea4c8c9839c0992351911afecbc40462a1ee013466"}},{"ruleId":"D1","level":"warning","message":{"text":"LetDirective.LetDirective (cyclomatic 18): LetDirective.LetDirective 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/LetDirective.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb6bdfbce10e3846076c5627fc39d49fc9493b40ae62338c46b84877e78ebc"}},{"ruleId":"D1","level":"warning","message":{"text":"RegularElement.build_element_attribute_update (cyclomatic 18): RegularElement.build_element_attribute_update has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to 2 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7364515f6cb20732afc08a88ef2b4e778aee2b44798ecd7610f3185ba6603c"}},{"ruleId":"D1","level":"warning","message":{"text":"SvelteComponent (cyclomatic 18): SvelteComponent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"495ee4384411d9ce44055e6eea194587e2ec8578a9607ad5c76d295c34ed8590"}},{"ruleId":"D1","level":"warning","message":{"text":"next (cyclomatic 18): next has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef72544f54969d80ba2e815c9cf5d07845d74ff117654dcd633beff207d28377"}},{"ruleId":"D1","level":"warning","message":{"text":"RelativeSelector (cyclomatic 18): RelativeSelector has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to 4 function items 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":"packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81feef105a492910ae945b3003c6b7a1036d48e10ddfb46f7e4a84ba449c810"}},{"ruleId":"D1","level":"warning","message":{"text":"get_comment_handlers::add_comments::_ (cyclomatic 18): get_comment_handlers::add_comments::_ 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":"packages/svelte/src/compiler/phases/1-parse/acorn.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"294b0f9c1353bfeb8cc494ee64f298003da193be63849c886d647679c31f6d67"}},{"ruleId":"D1","level":"warning","message":{"text":"find_descendants (cyclomatic 18): find_descendants has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/nodes.js"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b054741ea8b930f332a9c96417ffe356b3aa0902712329c17dc356dbd1f3de1"}},{"ruleId":"D1","level":"warning","message":{"text":"element.read_attribute_value (cyclomatic 17): element.read_attribute_value has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9892f381a29adc39916f4c43ad31acfc742e98a59a51221a9f91400849bafb"}},{"ruleId":"D1","level":"warning","message":{"text":"batch.flush_queued_effects (cyclomatic 17): batch.flush_queued_effects 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":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0466e1aa887844b3c4ba2d18a1c8d0430d95c44dd84ca6ca67022fbd11f8c0a"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-report.generate_report (cyclomatic 17): generate-report.generate_report has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/generate-report.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cafc68d0692157d30e53df72e37904deaa64df11349316ad538220ce7a42e5"}},{"ruleId":"D1","level":"warning","message":{"text":"SvelteElement.SvelteElement (cyclomatic 17): SvelteElement.SvelteElement has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4441ba79c282485c4dda3de55e5ef5b862d08b7f67aeb293ba19f4c31f5874"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.get_prop_source (cyclomatic 17): utils.get_prop_source 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":"packages/svelte/src/compiler/phases/3-transform/client/utils.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c94dbef981679e83b823f93d613edad7741550df0132ca2670f9bf972a68cd"}},{"ruleId":"D1","level":"warning","message":{"text":"element.build_set_class (cyclomatic 17): element.build_set_class has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed1d7f0a64206eea24cae50c93b04da428b9e69541b52d00fc8da90452e7dbe"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handle_events (cyclomatic 17): index.handle_events 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"d216124ca6edeecb09f990c82ee44a01bda51eda8fa835396734399410b3636e"}},{"ruleId":"D1","level":"warning","message":{"text":"transition (cyclomatic 17): transition has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/transitions.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df51af86f7b2c66a494fb4e1ce4f02d46ed25dceb8622723cae873f3c745c89"}},{"ruleId":"D1","level":"warning","message":{"text":"build_attribute_value (cyclomatic 17): build_attribute_value 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e2f682df86aea921664c0679b5f9dd1ee3b2c83eac93e3616313d6f3343b92"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy::set (cyclomatic 17): proxy::set 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":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8a595a6e7fe85d80cbfaa0f77f221584bc5b603eb5d067822b9136145aa47f"}},{"ruleId":"D1","level":"warning","message":{"text":"visit_assignment_expression (cyclomatic 17): visit_assignment_expression has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/shared/assignments.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2591985fcea1b781e60e2666b35af7965491688c11a58fca907792d2a21c86"}},{"ruleId":"D1","level":"warning","message":{"text":"html.validate_code (cyclomatic 16): html.validate_code has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/utils/html.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1451be7710f27c33813eb12df702a2e6a9bbbeb50ef7245578c9b8732110d676"}},{"ruleId":"D1","level":"warning","message":{"text":"debug.log_effect_tree (cyclomatic 16): debug.log_effect_tree has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc8957f53d97b6002b3a7dfcee3db0ab5a5cadc2b40df4103959017cdf734fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Boundary.#handle_error (cyclomatic 16): Boundary.#handle_error has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 551, 519, 527, \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":"packages/svelte/src/internal/client/dom/blocks/boundary.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd37c05e24b5ff6e4d44775395cd965cdbcdd67f1b8386725e333577a6c0280"}},{"ruleId":"D1","level":"warning","message":{"text":"Batch.#traverse (cyclomatic 16): Batch.#traverse has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce0d67163e5d7d6c474a672a99ed8ec0c11eb9d41b2f2f165efd1a30afa50bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Batch.apply (cyclomatic 16): Batch.apply has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"274750fd4fe5771c4216a37c0f9ac98ddea4d77eff3c9f3fce0c12a69bcee7b3"}},{"ruleId":"D1","level":"warning","message":{"text":"sources.mark_reactions (cyclomatic 16): sources.mark_reactions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/sources.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60712b27fd865a1f3b26dc12f0d2b3392d8b23be9b7608eb1fe2618b203b9e6"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime.deep_read (cyclomatic 16): runtime.deep_read has cyclomatic complexity 16 (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":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"988cb7a624ae3a5178d94f73a4927f5b36c1366a095ac5ef144ea2ccfb912889"}},{"ruleId":"D1","level":"warning","message":{"text":"attributes.to_class (cyclomatic 16): attributes.to_class has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/shared/attributes.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d852a83ee4382d048da647015fc3a6602b00e0ffce8fe989ab3f49bdb38b7287"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.check_nodes_for_namespace (cyclomatic 16): utils.check_nodes_for_namespace has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd49d05650896f6e17858d7cee292ee20a956183e81f36d625b796639804e12"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassBody.ClassBody (cyclomatic 16): ClassBody.ClassBody has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa94e033afa5b03cbe1c1ea375149d54c42b86b9cf5307e399e1133341090d35"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.validate_mutation (cyclomatic 16): utils.validate_mutation has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"715cba66e3f3a2043ab448d9541a86e88a5ad816fb0c290f423a4589d8305894"}},{"ruleId":"D1","level":"warning","message":{"text":"index.transform_template (cyclomatic 16): index.transform_template has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-template/index.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a154e64fab033f69641d7aae377afc60033fd21f8708a59c8368f7e91598cd7f"}},{"ruleId":"D1","level":"warning","message":{"text":"process_children (cyclomatic 16): process_children has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad44274eaa827fa8ad9418231cad84a747008d1d05e2ed3a98e8e2eb2216697e"}},{"ruleId":"D1","level":"warning","message":{"text":"IfBlock (cyclomatic 16): IfBlock has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"76753e32938bf0e41cea88a7df35c414eab06e478ccba5837f7d0ea78c633bea"}},{"ruleId":"D1","level":"warning","message":{"text":"read_profile (cyclomatic 16): read_profile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/profile-diff.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacfcb7df896a4f48cfebb9193e94c6f6096c7787a87fd4c6d048f6fe73074f5"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze_component (cognitive 385): analyze_component has cognitive complexity 385 (threshold 15). Drivers by points: if/else 68 (205 pts), loops 30 (100 pts), boolean chains 56, ternaries 8 (20 pts), other 4 (nesting depth added 219). Of this number, 360 points are the body\u0027s own statements and 25 belong to 10 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe9bd568d32e6f86515935c69d0ab3ebdc2a7d75cb5c0bb1dcc682d39b6d9b9"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableDeclaration (cognitive 266): VariableDeclaration has cognitive complexity 266 (threshold 15). Drivers by points: if/else 37 (146 pts), ternaries 11 (70 pts), loops 7 (29 pts), boolean chains 18, other 3 (nesting depth added 190). Of this number, 229 points are the body\u0027s own statements and 37 belong to 7 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"988457b9c909d2b967dc9a423a39b8748844da45aee502687dab9d86756a17b1"}},{"ruleId":"D2","level":"warning","message":{"text":"check_element (cognitive 257): check_element has cognitive complexity 257 (threshold 15). Drivers by points: if/else 72 (182 pts), boolean chains 61, loops 4 (7 pts), match/switch 3 (5 pts), other 1, ternaries 1 (nesting depth added 115). Of this number, 243 points are the body\u0027s own statements and 14 belong to 15 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6796a343aeacbdb9f0bc84ec6fae0e7f4e6d324bb4b974bc69a8767c373537"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate (cognitive 179): migrate has cognitive complexity 179 (threshold 15). Drivers by points: ternaries 26 (89 pts), if/else 34 (62 pts), boolean chains 20, loops 3 (4 pts), other 3, error handling 1 (nesting depth added 92). Of this number, 130 points are the body\u0027s own statements and 49 belong to 23 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"df11cd92fbdc491c12d4b0b322b2b2d96e9e7ff32d66446e2c444edf64460c14"}},{"ruleId":"D2","level":"warning","message":{"text":"RegularElement (cognitive 178): RegularElement has cognitive complexity 178 (threshold 15). Drivers by points: if/else 50 (91 pts), boolean chains 52, ternaries 10 (24 pts), loops 5 (8 pts), match/switch 1 (2 pts), other 1 (nesting depth added 59). Of this number, 167 points are the body\u0027s own statements and 11 belong to 12 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ab3d082427109c0192551a7f7f2561cf3ba2ac009b259ff90a3782e48836a8"}},{"ruleId":"D2","level":"warning","message":{"text":"build_component (cognitive 170): build_component has cognitive complexity 170 (threshold 15). Drivers by points: if/else 51 (95 pts), ternaries 19 (48 pts), boolean chains 21, loops 4 (5 pts), other 1 (nesting depth added 74). Of this number, 150 points are the body\u0027s own statements and 20 belong to 14 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56b3b42a74fa06e2228ce9966fdaf5d715b150b1ead3bddcb8cf092b2dcebbf"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableDeclaration (cognitive 157): VariableDeclaration has cognitive complexity 157 (threshold 15). Drivers by points: if/else 30 (79 pts), ternaries 5 (24 pts), loops 7 (23 pts), boolean chains 22, other 7, error handling 1 (2 pts) (nesting depth added 85). Of this number, 138 points are the body\u0027s own statements and 19 belong to 10 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0109162225e30550ff6b6c683b46dcd53c4d4456f290ff972ae623ec754bcb3c"}},{"ruleId":"D2","level":"warning","message":{"text":"index.svelte_visitors (cognitive 156): index.svelte_visitors has cognitive complexity 156 (threshold 15). Drivers by points: if/else 66 (101 pts), boolean chains 29, loops 15 (19 pts), ternaries 4 (7 pts) (nesting depth added 42). Of this number, 154 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d44d2062dfdd037647795276e39abe24c6ae0407392434689fc49fec8a93442"}},{"ruleId":"D2","level":"warning","message":{"text":"client_component (cognitive 154): client_component has cognitive complexity 154 (threshold 15). Drivers by points: if/else 57 (85 pts), ternaries 11 (27 pts), boolean chains 16, loops 9 (14 pts), other 12 (nesting depth added 49). Of this number, 134 points are the body\u0027s own statements and 20 belong to 7 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"25208d0398e8d4423fff88137c5983fb56d82a4f5ea4e898590f1b4f9a079136"}},{"ruleId":"D2","level":"warning","message":{"text":"element (cognitive 152): element has cognitive complexity 152 (threshold 15). Drivers by points: if/else 53 (103 pts), boolean chains 26, ternaries 10 (16 pts), loops 3 (5 pts), other 2 (nesting depth added 58). Of this number, 150 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2cd38e03102c0dc76d453149c30470b828d72694834e71aa2a29687554b7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"relative_selector_might_apply_to_node (cognitive 145): relative_selector_might_apply_to_node has cognitive complexity 145 (threshold 15). Drivers by points: if/else 24 (77 pts), loops 8 (33 pts), boolean chains 21, ternaries 3 (11 pts), match/switch 1 (2 pts), other 1 (nesting depth added 87). Of this number, 142 points are the body\u0027s own statements and 3 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9cd72405b6659033517c0db53a20f054c1ac8ddf31e278085c94005d1e039c"}},{"ruleId":"D2","level":"warning","message":{"text":"element.build_element_attributes (cognitive 139): element.build_element_attributes has cognitive complexity 139 (threshold 15). Drivers by points: if/else 44 (98 pts), boolean chains 25, ternaries 3 (11 pts), loops 3 (5 pts) (nesting depth added 64). Of this number, 137 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0485db8553988e58c024e23fac584566b9e149b5e641463588f142b2b7812ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"BindDirective.BindDirective (cognitive 138): BindDirective.BindDirective has cognitive complexity 138 (threshold 15). Drivers by points: if/else 37 (95 pts), boolean chains 24, ternaries 3 (10 pts), loops 4 (9 pts) (nesting depth added 70). Of this number, 133 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"172c831a74d2fd29df040782c2ef9d41e3e228865b0dcbfc43e52fbac5e3fee9"}},{"ruleId":"D2","level":"warning","message":{"text":"profile_to_markdown (cognitive 135): profile_to_markdown has cognitive complexity 135 (threshold 15). Drivers by points: ternaries 20 (53 pts), if/else 16 (42 pts), loops 8 (19 pts), boolean chains 14, other 7 (nesting depth added 70). Of this number, 107 points are the body\u0027s own statements and 28 belong to 9 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/utils.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c8016c6449dc0ccf7138f4c99a0434e0794c422a755879f12b2150ec7da8bd"}},{"ruleId":"D2","level":"warning","message":{"text":"constructor (cognitive 131): constructor has cognitive complexity 131 (threshold 15). Drivers by points: if/else 34 (77 pts), boolean chains 21, loops 8 (20 pts), match/switch 4 (9 pts), ternaries 1 (4 pts) (nesting depth added 63). 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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b303ca344e58c7a08456bc0538eb5aba22a9372df6535dabbe7f652c911674c"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableDeclarator (cognitive 128): VariableDeclarator has cognitive complexity 128 (threshold 15). Drivers by points: if/else 21 (63 pts), ternaries 8 (37 pts), loops 4 (14 pts), boolean chains 12, other 2 (nesting depth added 81). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0679fecfe74e1af9a6cfa18e4ba2365c70f645bf53f3c67eb2994e6680b2e08b"}},{"ruleId":"D2","level":"warning","message":{"text":"element.validate_element (cognitive 122): element.validate_element has cognitive complexity 122 (threshold 15). Drivers by points: if/else 29 (86 pts), ternaries 4 (18 pts), loops 3 (10 pts), boolean chains 8 (nesting depth added 78). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ef1f7ee1f164069228016db70c1260a581bfc2886387ee0c2077beb326078e"}},{"ruleId":"D2","level":"warning","message":{"text":"each.reconcile (cognitive 121): each.reconcile has cognitive complexity 121 (threshold 15). Drivers by points: if/else 28 (68 pts), loops 12 (36 pts), ternaries 3 (12 pts), boolean chains 5 (nesting depth added 73). Of this number, 117 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bd549b07c8dac05703d2a552cc0c0d88282bb696e7ea37cbbe7af3956d5e85"}},{"ruleId":"D2","level":"warning","message":{"text":"index.calculate_blockers (cognitive 118): index.calculate_blockers has cognitive complexity 118 (threshold 15). Drivers by points: if/else 42 (78 pts), loops 9 (23 pts), ternaries 4 (14 pts), boolean chains 3 (nesting depth added 60). Of this number, 95 points are the body\u0027s own statements and 23 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20505ac0b25f6756ddc7a9fbda49bbd31654f38c66fa89d48faf31878aa1a25"}},{"ruleId":"D2","level":"warning","message":{"text":"open (cognitive 116): open has cognitive complexity 116 (threshold 15). Drivers by points: if/else 36 (80 pts), error handling 5 (15 pts), loops 5 (14 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 64). Of this number, 113 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afa1c6bb6e40f85ea5a95606668b6be6bb34f482f2dac131002e766a76f9446"}},{"ruleId":"D2","level":"warning","message":{"text":"options.read_options (cognitive 115): options.read_options has cognitive complexity 115 (threshold 15). Drivers by points: if/else 30 (89 pts), loops 4 (13 pts), boolean chains 8, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 71). 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":"packages/svelte/src/compiler/phases/1-parse/read/options.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a4c6bf635988ab23ceb1cd51b43081258d102df546921afca7e6194a78f386"}},{"ruleId":"D2","level":"warning","message":{"text":"RegularElement.RegularElement (cognitive 115): RegularElement.RegularElement has cognitive complexity 115 (threshold 15). Drivers by points: if/else 32 (82 pts), boolean chains 18, loops 6 (15 pts) (nesting depth added 59). Of this number, 107 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"af24a4aaf2a0d1b61d0e2538fc9322717ef9f2f7efc0bb9ae73c9d3f63c75f62"}},{"ruleId":"D2","level":"warning","message":{"text":"set_attributes (cognitive 113): set_attributes has cognitive complexity 113 (threshold 15). Drivers by points: if/else 37 (73 pts), boolean chains 26, ternaries 2 (12 pts), loops 2 (nesting depth added 46). 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":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56978ef9b57d70869f3438581f1c5cdefc1b69dbb067ca1d586a067c52e1fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"VariableDeclaration (cognitive 109): VariableDeclaration has cognitive complexity 109 (threshold 15). Drivers by points: if/else 19 (55 pts), loops 6 (24 pts), ternaries 5 (20 pts), boolean chains 8, other 2 (nesting depth added 69). Of this number, 95 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"39763befe086a5d186f12a99e337135d265ceaf07735ba76880282166e6644cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Identifier (cognitive 108): Identifier has cognitive complexity 108 (threshold 15). Drivers by points: if/else 26 (70 pts), boolean chains 23, loops 3 (9 pts), ternaries 1 (6 pts) (nesting depth added 55). Of this number, 107 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dffa401752fbfdbce6cf6641fc62217ac3740d78e4a54f7bbd4de039161cbed"}},{"ruleId":"D2","level":"warning","message":{"text":"scope.create_scopes (cognitive 103): scope.create_scopes has cognitive complexity 103 (threshold 15). Drivers by points: if/else 36 (51 pts), loops 21 (33 pts), boolean chains 10, ternaries 4 (9 pts) (nesting depth added 32). Of this number, 93 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea6ba9ed78efe6c30945599e87761e357b26059f57c3828c0875f65984688ba"}},{"ruleId":"D2","level":"warning","message":{"text":"EachBlock (cognitive 97): EachBlock has cognitive complexity 97 (threshold 15). Drivers by points: if/else 28 (39 pts), ternaries 17 (33 pts), loops 9 (16 pts), boolean chains 9 (nesting depth added 34). Of this number, 78 points are the body\u0027s own statements and 19 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2470bd588b0b495583e8062b12b5115ed3d367b98aa7bb339a4ecb078cd152ea"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.log_reactions (cognitive 95): debug.log_reactions has cognitive complexity 95 (threshold 15). Drivers by points: if/else 22 (58 pts), ternaries 6 (20 pts), loops 3 (10 pts), error handling 1 (4 pts), boolean chains 3 (nesting depth added 60). 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":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec162d5057e81e1091f6a6812a46b7c3d5f9dff07e44c1f463b536eb1650fa50"}},{"ruleId":"D2","level":"warning","message":{"text":"index.run (cognitive 95): index.run has cognitive complexity 95 (threshold 15). Drivers by points: if/else 25 (63 pts), loops 10 (22 pts), ternaries 2 (6 pts), boolean chains 4 (nesting depth added 54). Of this number, 77 points are the body\u0027s own statements and 18 belong to 7 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/process-messages/index.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b36301f059d8942ace2d86c7aff574f2d03519504df555625d3dc09f2eb5b6"}},{"ruleId":"D2","level":"warning","message":{"text":"build_inline_component (cognitive 91): build_inline_component has cognitive complexity 91 (threshold 15). Drivers by points: if/else 34 (61 pts), ternaries 7 (14 pts), boolean chains 13, loops 3 (nesting depth added 34). Of this number, 74 points are the body\u0027s own statements and 17 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9414cae408364ed30db6117bf40dfdb90ff7d35f99ce5487170b8185a403f28"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassBody (cognitive 91): ClassBody has cognitive complexity 91 (threshold 15). Drivers by points: if/else 25 (62 pts), ternaries 4 (12 pts), boolean chains 10, loops 5 (7 pts) (nesting depth added 47). Of this number, 78 points are the body\u0027s own statements and 13 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e3b747468be566b0751a2494c4f7fad6d3a1ce91a97e1bfc69025481dfc62b"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.proxy (cognitive 87): proxy.proxy has cognitive complexity 87 (threshold 15). Drivers by points: if/else 39 (60 pts), boolean chains 20, loops 3 (4 pts), ternaries 2 (3 pts) (nesting depth added 23). Of this number, 82 points are the body\u0027s own statements and 5 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2656c1a4c6a978865a1b52f751a29455100b2e6fc1e5b0f1190763b2b95e5aa"}},{"ruleId":"D2","level":"warning","message":{"text":"#commit (cognitive 87): #commit has cognitive complexity 87 (threshold 15). Drivers by points: if/else 19 (55 pts), loops 7 (21 pts), boolean chains 6, error handling 1 (5 pts) (nesting depth added 54). Of this number, 77 points are the body\u0027s own statements and 10 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f3a2ad38c045ddde9d27b5771b7a5bafe592268b9f976f582a1f74413eff4d"}},{"ruleId":"D2","level":"warning","message":{"text":"get (cognitive 87): get has cognitive complexity 87 (threshold 15). Drivers by points: if/else 29 (69 pts), boolean chains 18 (nesting depth added 40). 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":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2607f83f70d32f47efbfc082bb402ff3bf04f9ab960d787265581cf3f2b8d4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"CallExpression.CallExpression (cognitive 84): CallExpression.CallExpression has cognitive complexity 84 (threshold 15). Drivers by points: if/else 38 (70 pts), boolean chains 11, loops 1 (2 pts), match/switch 1 (nesting depth added 33). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1946439e91edaf03601bfb5d3691a6a1b427fed57888915db9bfa2a757658b9"}},{"ruleId":"D2","level":"warning","message":{"text":"css-prune.attribute_matches (cognitive 79): css-prune.attribute_matches has cognitive complexity 79 (threshold 15). Drivers by points: if/else 27 (69 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 44). Of this number, 64 points are the body\u0027s own statements and 15 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d13ea7a958004ed8fd51fe6162f9ac6df2c21d911ff2b71aad07063d904da9"}},{"ruleId":"D2","level":"warning","message":{"text":"to_style (cognitive 79): to_style has cognitive complexity 79 (threshold 15). Drivers by points: if/else 22 (66 pts), boolean chains 7, loops 1 (3 pts), ternaries 2 (3 pts) (nesting depth added 47). 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":"packages/svelte/src/internal/shared/attributes.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdff07ea9ec852c6ff9932c657a5079c1a188c178ace1baaca1fbc307aaa9e1"}},{"ruleId":"D2","level":"warning","message":{"text":"build_assignment (cognitive 78): build_assignment has cognitive complexity 78 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 24, ternaries 7 (19 pts), loops 1, other 1 (nesting depth added 28). Of this number, 74 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f9e3e040cc1f78026a13e37d2daae681375904a4ff528a63db7c9abe641516"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate_slot_usage (cognitive 77): migrate_slot_usage has cognitive complexity 77 (threshold 15). Drivers by points: if/else 22 (48 pts), boolean chains 13, loops 5 (12 pts), ternaries 2 (4 pts) (nesting depth added 35). 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dd22f2a267841d19138906d7eeb405a88bda5b35e60cbd709e30fef77745e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ComplexSelector (cognitive 74): ComplexSelector has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (58 pts), boolean chains 9, loops 3 (7 pts) (nesting depth added 45). 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":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eed60d549c13451c9ef5a427148f71cadc7b63346f0a9152558b5d42b8bdad4"}},{"ruleId":"D2","level":"warning","message":{"text":"each (cognitive 72): each has cognitive complexity 72 (threshold 15). Drivers by points: if/else 33 (56 pts), ternaries 5 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 29). Most of this is not in the body itself: 6 of the 72 points are its own statements and the rest belongs to 7 function items inside it that branch ((anonymous), commit, (anonymous), \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":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf32fca4da2220358cbb76bbed9a4845b476333173040d7c484f2136c718fc3"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectorList (cognitive 72): SelectorList has cognitive complexity 72 (threshold 15). Drivers by points: if/else 18 (48 pts), ternaries 2 (12 pts), loops 3 (9 pts), boolean chains 3 (nesting depth added 46). 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":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c96d6b1bbca2264d1cd5493cdd54b0790b47654026919443e35c6cd24e5d14"}},{"ruleId":"D2","level":"warning","message":{"text":"SlotElement (cognitive 70): SlotElement has cognitive complexity 70 (threshold 15). Drivers by points: if/else 17 (29 pts), ternaries 8 (26 pts), boolean chains 8, loops 2 (6 pts), other 1 (nesting depth added 34). Of this number, 65 points are the body\u0027s own statements and 5 belong to 6 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c659d9655382b13475c837ff4c3671db8f407959748be0b2c612571bca77f0c8"}},{"ruleId":"D2","level":"warning","message":{"text":"log_reactions::log_derived (cognitive 70): log_reactions::log_derived has cognitive complexity 70 (threshold 15). Drivers by points: if/else 12 (36 pts), ternaries 6 (20 pts), loops 2 (6 pts), error handling 1 (4 pts), boolean chains 2, other 2 (nesting depth added 45). 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":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ffa2842df986f73965c349ccb40b90e259fedd9ba0e70e0b4897345f17792d"}},{"ruleId":"D2","level":"warning","message":{"text":"clean_nodes (cognitive 70): clean_nodes has cognitive complexity 70 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 22, ternaries 2 (10 pts), loops 4 (7 pts) (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":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba1428ef835a082db66761e32a7ae34b8a9432feef6213f233274f56c6b20cf"}},{"ruleId":"D2","level":"warning","message":{"text":"handle_identifier (cognitive 67): handle_identifier has cognitive complexity 67 (threshold 15). Drivers by points: if/else 19 (43 pts), ternaries 4 (11 pts), boolean chains 7, loops 1 (4 pts), other 2 (nesting depth added 34). 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"16606564340f3e59f7339b306528ec88632bc0a5c0f3c4a16db1bfd14d17f8f5"}},{"ruleId":"D2","level":"warning","message":{"text":"get_possible_element_siblings (cognitive 63): get_possible_element_siblings has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 4 (10 pts), boolean chains 8, ternaries 2 (5 pts) (nesting depth added 34). Of this number, 62 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"514454f94a5e93435d8b617d99771eca008b1578f93caf6264ca4b316d97a37f"}},{"ruleId":"D2","level":"warning","message":{"text":"BindDirective (cognitive 62): BindDirective has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (29 pts), other 15, boolean chains 9, ternaries 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 17). Of this number, 57 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c69c84f1abf449114d9e7a2895acc569d55cef5413fa8c88a2589fd8d780a6b"}},{"ruleId":"D2","level":"warning","message":{"text":"attribute.validate_slot_attribute (cognitive 61): attribute.validate_slot_attribute has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (48 pts), boolean chains 7, loops 2 (6 pts) (nesting depth added 37). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f299523f6ce67e340874dddea10e5d54e7d53f06c3af76db7ac16bc3253252fa"}},{"ruleId":"D2","level":"warning","message":{"text":"read_selector (cognitive 58): read_selector has cognitive complexity 58 (threshold 15). Drivers by points: if/else 19 (36 pts), ternaries 4 (15 pts), boolean chains 6, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6533df898d230f21f9f8c505aa2a5a770aff7a661d94ed2525cd16a5368fffe4"}},{"ruleId":"D2","level":"warning","message":{"text":"LabeledStatement (cognitive 56): LabeledStatement has cognitive complexity 56 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 3 (13 pts), ternaries 2 (10 pts), boolean chains 5 (nesting depth added 32). Of this number, 55 points are the body\u0027s own statements and 1 belongs to 5 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc43d5dbf4d9affa9ea015aebeabb5f6d7ffe6a196b04e047795504df33558ee"}},{"ruleId":"D2","level":"warning","message":{"text":"prop (cognitive 56): prop has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (30 pts), ternaries 7 (15 pts), boolean chains 10, other 1 (nesting depth added 17). Of this number, 24 points are the body\u0027s own statements and 32 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/props.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2bda9e48ec5ed5f99e801a37bcc74703e998d462bca9322f202d48cece06d6"}},{"ruleId":"D2","level":"warning","message":{"text":"server_component (cognitive 55): server_component has cognitive complexity 55 (threshold 15). Drivers by points: if/else 22 (31 pts), boolean chains 9, loops 5 (8 pts), other 4, ternaries 2 (3 pts) (nesting depth added 13). Of this number, 51 points are the body\u0027s own statements and 4 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/transform-server.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"379d9cb7d1625b2fca9b6410b5b9d6dbdaf6af2b62c9f072e69b7528aecb50c9"}},{"ruleId":"D2","level":"warning","message":{"text":"visit_component (cognitive 55): visit_component has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (38 pts), loops 6 (7 pts), boolean chains 6, ternaries 2 (3 pts), other 1 (nesting depth added 23). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1ec62d637b1713136c6900a5a38a0e601a5e632711b9fa1d6d8f2abcc00d44"}},{"ruleId":"D2","level":"warning","message":{"text":"css_visitors (cognitive 54): css_visitors has cognitive complexity 54 (threshold 15). Drivers by points: if/else 24 (35 pts), loops 9 (11 pts), boolean chains 3, ternaries 2 (3 pts), other 2 (nesting depth added 14). Most of this is not in the body itself: 0 of the 54 points are its own statements and the rest belongs to 24 function items inside it that branch (print_selector_list, Atrule, RelativeSelector, \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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b75810c40a9a885cc83b15cacf7b3927e2748878c4a53a726d1151611ba4b0"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze-compiler-profile.analyze_compiler_profiles (cognitive 52): analyze-compiler-profile.analyze_compiler_profiles has cognitive complexity 52 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 5 (11 pts), ternaries 6 (11 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 26). 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":"benchmarking/analyze-compiler-profile.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d161e69f08b81583780785e7d2cb33e5dec4fbaf9e345e83076f68fe3b844208"}},{"ruleId":"D2","level":"warning","message":{"text":"ast._extract_paths (cognitive 52): ast._extract_paths has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (39 pts), loops 3 (8 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f47d0d0bd8647f0e899e77036e6aa92b61b5aacea87d9bca6ed77aedd72b538"}},{"ruleId":"D2","level":"warning","message":{"text":"element.read_attribute (cognitive 52): element.read_attribute has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (36 pts), boolean chains 10, ternaries 2 (5 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c552966eb36212353c21834d2796587e9291faae8d59606a4ed130f8cdc5a5"}},{"ruleId":"D2","level":"warning","message":{"text":"LabeledStatement.LabeledStatement (cognitive 52): LabeledStatement.LabeledStatement has cognitive complexity 52 (threshold 15). Drivers by points: if/else 10 (33 pts), loops 4 (16 pts), boolean chains 3 (nesting depth added 35). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83b80c30523e9ab326fda48f0c71d2a79a23fc2b21e8f5e3596b513ba054d1a"}},{"ruleId":"D2","level":"warning","message":{"text":"async_derived (cognitive 50): async_derived has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (33 pts), loops 4 (12 pts), boolean chains 3, error handling 1, other 1 (nesting depth added 19). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), (anonymous)::handler, (anonymous)::handler::(anonymous), \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":"packages/svelte/src/internal/client/reactivity/deriveds.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb936043999ef0c7cd108d1633506fbdb4505343ef6aaf133bc0fa49a8a6b2a3"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.gather_possible_values (cognitive 49): utils.gather_possible_values has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 3 (8 pts), boolean chains 7, ternaries 1 (4 pts) (nesting depth added 22). 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":"packages/svelte/src/compiler/phases/2-analyze/css/utils.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19173065a221bbbd48cd3120f3580f68b65cc261aac9cafeba63584a02c6e2c"}},{"ruleId":"D2","level":"warning","message":{"text":"internal_set (cognitive 49): internal_set has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 5, other 1 (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":"packages/svelte/src/internal/client/reactivity/sources.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a670a99ba5732a19e870986b127fb1031a39e08ac3b6471b7bd9e5baff5cb969"}},{"ruleId":"D2","level":"warning","message":{"text":"clone (cognitive 49): clone has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (28 pts), ternaries 3 (12 pts), loops 2 (6 pts), boolean chains 2, error handling 1 (nesting depth added 28). 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":"packages/svelte/src/internal/shared/clone.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f06df20903f103991d59df3733a056f25e66a33f3c82d37a30f3e2798a03990"}},{"ruleId":"D2","level":"warning","message":{"text":"svelte_visitors::Fragment (cognitive 48): svelte_visitors::Fragment has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 8, loops 3 (4 pts) (nesting depth added 22). 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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ba630e7cf6ea92aa3fc73fda4588bccac3c3081a5939bdabc8b0ed9542015b"}},{"ruleId":"D2","level":"warning","message":{"text":"SvelteBoundary (cognitive 48): SvelteBoundary has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (32 pts), ternaries 3 (7 pts), boolean chains 4, loops 3, other 2 (nesting depth added 22). 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f37860066851faaaceec5870122db1a56151c5f37fab55c94ec0c6a45a08505"}},{"ruleId":"D2","level":"warning","message":{"text":"flush_queued_effects (cognitive 46): flush_queued_effects has cognitive complexity 46 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 4 (15 pts), boolean chains 5 (nesting depth added 30). 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":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e97f62e29b2f07cf947363c17b62eb581333ceb0d9e8e0b2fdf02d2e6b7df8a"}},{"ruleId":"D2","level":"warning","message":{"text":"handle_events (cognitive 45): handle_events has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 5 (12 pts), ternaries 2 (8 pts), boolean chains 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc7fb44eaf49b0b72ce8ddc2ff03d9b3aeb9acc8cc38391c3d6d50291679a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"Rule (cognitive 45): Rule has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 4 (9 pts), boolean chains 7 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf57099c3cefc10dbb5d2827cb6d4078c0c0a415eaba44e56c16d134146978ce"}},{"ruleId":"D2","level":"warning","message":{"text":"connectedCallback (cognitive 45): connectedCallback has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 6 (13 pts), boolean chains 6 (nesting depth added 22). Of this number, 32 points are the body\u0027s own statements and 13 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/custom-element.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d565245ef8c0299b552a8e59cc47796a78002e21b7d7b82549fef686570961"}},{"ruleId":"D2","level":"warning","message":{"text":"ExportNamedDeclaration (cognitive 45): ExportNamedDeclaration has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 4 (14 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 24). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d7a046162961a9cc1ceb2a1373deb9c4bb2e0195a7bbe4a0ca94de67cf7098"}},{"ruleId":"D2","level":"warning","message":{"text":"MappedCode.concat (cognitive 44): MappedCode.concat has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 7 (17 pts), boolean chains 2 (nesting depth added 22). 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":"packages/svelte/src/compiler/utils/mapped_code.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"805f3e32b2332c3f9f9e49d057895479b94d32267eb7fa5eca76405c333ac611"}},{"ruleId":"D2","level":"warning","message":{"text":"ComplexSelector (cognitive 44): ComplexSelector has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 11, loops 3 (6 pts) (nesting depth added 20). Of this number, 42 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04405c3fafefa151fde202ce18fb2e858a60a295210aad60ebb694683d38db7"}},{"ruleId":"D2","level":"warning","message":{"text":"RegularElement (cognitive 44): RegularElement has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 11, ternaries 2 (3 pts), loops 1 (nesting depth added 9). Of this number, 41 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1de53699052dc42b0d72bfde61e3cb2d3f740dec7a45d1d5d889224033394fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Program (cognitive 43): Program has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 3 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 22). Of this number, 24 points are the body\u0027s own statements and 19 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/Program.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97cd63abbf6831070860d2dd8eb61e3e88ddc89a74a4fcfc88749bd98d25138"}},{"ruleId":"D2","level":"warning","message":{"text":"attributes (cognitive 42): attributes has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 6, loops 2 (5 pts), ternaries 1 (4 pts) (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":"packages/svelte/src/internal/server/index.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cc0a7685132bbb88c7dcc7a011c73a910949478cdf3c6b580a1b16635f0daf"}},{"ruleId":"D2","level":"warning","message":{"text":"next (cognitive 41): next has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (28 pts), error handling 3 (10 pts), loops 1 (3 pts) (nesting depth added 23). 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":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c695a471c5580048a018d9c8a78a296ca80371a8de319eddec13936be570a35"}},{"ruleId":"D2","level":"warning","message":{"text":"Batch.#process (cognitive 40): Batch.#process has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 9 (15 pts), error handling 1 (3 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":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1273924f61469f3a1af425fecad63774a9b0cb6fc475ba7f8dbf05533e42a601"}},{"ruleId":"D2","level":"warning","message":{"text":"build_template_chunk (cognitive 40): build_template_chunk has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 6, loops 2, other 2, ternaries 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfe108ffe332102a4419420eee6a93b7413a2f954d930f625430f3e2f1c4054"}},{"ruleId":"D2","level":"warning","message":{"text":"legacy.convert (cognitive 39): legacy.convert has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 5, loops 3 (5 pts), ternaries 4 (nesting depth added 6). 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":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cac7be16e30ad74bdc2c9fbb33273e7f82e0827c0f9da4bc9f1eb7e7cad59f"}},{"ruleId":"D2","level":"warning","message":{"text":"css-prune.get_ancestor_elements (cognitive 39): css-prune.get_ancestor_elements has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (28 pts), boolean chains 6, loops 2 (5 pts) (nesting depth added 22). Of this number, 38 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0556999b9d045a4d229198332874edd33bd1aff22e3a12ac4b4df67eb7cce8a"}},{"ruleId":"D2","level":"warning","message":{"text":"acorn.get_comment_handlers (cognitive 38): acorn.get_comment_handlers has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 13, loops 4 (9 pts), ternaries 1 (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/acorn.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74abaefd8c914916790a005af43405bd1fd1afbd1f4008359e84c77280df4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.log_inconsistent_branches (cognitive 38): debug.log_inconsistent_branches has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 7 (11 pts), ternaries 5 (9 pts), boolean chains 5 (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":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1d112b240ee71c270d3f3e2defe92e836032d9f59ba4a055fce6330feae004"}},{"ruleId":"D2","level":"warning","message":{"text":"element (cognitive 38): element has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 5 (8 pts), boolean chains 6 (nesting depth added 13). Most of this is not in the body itself: 6 of the 38 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 72, 58, 139, \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":"packages/svelte/src/internal/client/dom/blocks/svelte-element.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"156743aaf7f796a80717c7ffe6d5f0e212646f3cf4a6d15067a597493d2e9ef5"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-support.detector.build_detection_maps (cognitive 37): browser-support.detector.build_detection_maps has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 19). Of this number, 35 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/browser-support.detector.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8f9c384822ad913067b59616a56fa99dbcdffb8d2401124e2fcb11f1278959"}},{"ruleId":"D2","level":"warning","message":{"text":"SvelteElement.SvelteElement (cognitive 36): SvelteElement.SvelteElement has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 8, ternaries 5 (8 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f5201b8bd31976929c87fc006144f10f58e976a69af287a5bc2fc2e3a78d4"}},{"ruleId":"D2","level":"warning","message":{"text":"handle_event_propagation (cognitive 36): handle_event_propagation has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 9, loops 2 (3 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). Of this number, 35 points are the body\u0027s own statements and 1 belongs to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/events.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"399b4343e06a9d1b3f657003ede86912d3212971703c40fd0bb400f38d9385aa"}},{"ruleId":"D2","level":"warning","message":{"text":"html.html (cognitive 35): html.html has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 5 (7 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 9). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to one function literal inside it that branches (line 72). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/html.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5155621f0f907e17a35e68fe6721ac8797be598574dadedd7030fa606fd80106"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.validate_assignment (cognitive 35): utils.validate_assignment has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 7, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 17). 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6690cad11f0ab031188a13579913619c48257d381a17a7ff7dd6b51efb03d85c"}},{"ruleId":"D2","level":"warning","message":{"text":"fragment.process_children (cognitive 35): fragment.process_children has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 8, ternaries 2 (8 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d49d186e4f62c3923706c88b1c3ec8c18d4cbb52f3a93e1476e4f04c7196b4"}},{"ruleId":"D2","level":"warning","message":{"text":"bind_value (cognitive 35): bind_value has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 8, ternaries 4 (6 pts), other 2 (nesting depth added 7). Most of this is not in the body itself: 8 of the 35 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 22, 81). 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":"packages/svelte/src/internal/client/dom/elements/bindings/input.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cbbdf22dfb8a064aaf63755296fcd3e8497f8283edc821d7280a03ec2d40b0"}},{"ruleId":"D2","level":"warning","message":{"text":"to_class (cognitive 35): to_class has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 6 (12 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 19). 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":"packages/svelte/src/internal/shared/attributes.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf08c6bc0ee1b822ae8888bfbb96244aa75c19f065f603297372d1b0a841ea8f"}},{"ruleId":"D2","level":"warning","message":{"text":"AwaitExpression.is_last_evaluated_expression (cognitive 34): AwaitExpression.is_last_evaluated_expression has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (31 pts), match/switch 1 (2 pts), loops 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/AwaitExpression.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d1bda96546bbd7d9139272b3cddc5221c0119708db6d58603a659e2b02a669"}},{"ruleId":"D2","level":"warning","message":{"text":"_mount (cognitive 33): _mount has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 4 (6 pts), boolean chains 2, other 1 (nesting depth added 13). Most of this is not in the body itself: 0 of the 33 points are its own statements and the rest belongs to 5 function items inside it that branch ((anonymous)::event_handle, (anonymous)::(anonymous), (anonymous)::(anonymous), \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":"packages/svelte/src/internal/client/render.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d619c104e30ee85828320d133e351687a262712de0127d35bbe547a93a453d1"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-report.generate_report (cognitive 32): generate-report.generate_report has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 6 (10 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 16). Of this number, 27 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/generate-report.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e5e5710521152ba92afdb29801ac9aa4f03ee9abe5cd5c16a2ab09dad4006b"}},{"ruleId":"D2","level":"warning","message":{"text":"SvelteComponent (cognitive 32): SvelteComponent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (8 pts), boolean chains 3 (nesting depth added 18). 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5c18179b6e312c61ac4a326c054f31fe9b3a71bccf8de88b2446ef0376698f"}},{"ruleId":"D2","level":"warning","message":{"text":"build_attribute_value (cognitive 32): build_attribute_value has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 7 (11 pts), boolean chains 2, loops 2, other 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"534b3c6a4c85dd4e3988f4f4c93f771db9c631a6683e29f87f54be96bc6bb118"}},{"ruleId":"D2","level":"warning","message":{"text":"apply (cognitive 31): apply has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (8 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"b527b3e42829801671d092a21a9c48e2aa8cbc39d7393859c09bdbd711028768"}},{"ruleId":"D2","level":"warning","message":{"text":"animate (cognitive 31): animate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 1 (3 pts), boolean chains 2, other 2, ternaries 1 (2 pts) (nesting depth added 11). Most of this is not in the body itself: 3 of the 31 points are its own statements and the rest belongs to 17 function items inside it that branch ((anonymous)::onfinish, (anonymous), (anonymous), \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":"packages/svelte/src/internal/client/dom/elements/transitions.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3970894da4ee698f9c3984611243361bf8d39d12dd14316841a627ceb7caa6"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassBody (cognitive 31): ClassBody has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 6, ternaries 1 (3 pts), loops 2, other 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4215dc8f05f5ebe863fd3e0fe9669ed727bb26be563c572ff542a41f1c505d4"}},{"ruleId":"D2","level":"warning","message":{"text":"apply_combinator (cognitive 30): apply_combinator has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 9, loops 2 (4 pts), ternaries 3 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cff033357ea3468c4ce30eca74da9c12e78f19d542bec774df89dc870f44caa"}},{"ruleId":"D2","level":"warning","message":{"text":"create_effect (cognitive 30): create_effect has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 8, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/effects.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f00ca6e48d842393551c1f3401e7b34762d070c1080c03502432b6e13b7f972"}},{"ruleId":"D2","level":"warning","message":{"text":"Fragment (cognitive 30): Fragment has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 10, ternaries 1 (2 pts), loops 1, other 1 (nesting depth added 4). Of this number, 28 points are the body\u0027s own statements and 2 belong to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17128f2b43852dcec3120e7ac26881de31d68928fb87117f04b5d9cb0a932cd"}},{"ruleId":"D2","level":"warning","message":{"text":"index.extract_type_and_comment (cognitive 29): index.extract_type_and_comment has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 6 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d2d8b5261dcd033cdec7d584e51c0c459daaaa6a06a4bde080d412cf94c980"}},{"ruleId":"D2","level":"warning","message":{"text":"infer_namespace (cognitive 29): infer_namespace has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 3 (8 pts), boolean chains 6, loops 1, other 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"919e37c5ba731ac17678cb9cbc4e01dbeed11779d0beffb5c6592bff778abe69"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy::set (cognitive 29): proxy::set has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0fae56c5542a5f78020c4a66ece2d7495af20f25dddaccfd31f2da959307c7"}},{"ruleId":"D2","level":"warning","message":{"text":"nodes.is_customizable_select_element (cognitive 28): nodes.is_customizable_select_element has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/nodes.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a5e10c36d3fb5e91aa0899ce58699fdd72690cf95b2522e29209bffde999d8"}},{"ruleId":"D2","level":"warning","message":{"text":"update_reaction (cognitive 28): update_reaction has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (8 pts), boolean chains 4, error handling 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9947600ee0c08edcb4d4eff2a925f6f4b20e1b97bea9d9e0263590f4a6154aa"}},{"ruleId":"D2","level":"warning","message":{"text":"extract_svelte_ignore (cognitive 28): extract_svelte_ignore has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), other 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/extract_svelte_ignore.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b75dae087a7106630c03a966ee39200556d55f4de2ead1d68f575b129a81c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"transitions.transition (cognitive 27): transitions.transition has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (7 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/transitions.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10323cf805f4191bb6f29969465d756e5b5bdc95a789f220bfc57d8f3dda309"}},{"ruleId":"D2","level":"warning","message":{"text":"EachBlock.EachBlock (cognitive 27): EachBlock.EachBlock has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8680b96042e51b8049c36c31d8a5a80626978ccce68d22a3a1e4f1a2b4341ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.sort_const_tags (cognitive 27): utils.sort_const_tags has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 6 (9 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d004bb3af2712bf23cc21da258ddfec2a81b2e96592106e565648393543e957"}},{"ruleId":"D2","level":"warning","message":{"text":"index.migrate_css (cognitive 27): index.migrate_css has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 3, loops 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"451b8634d521bc1110035bc4e4e3dacbb25603ab8fc73324041cbe927f23f29c"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportDeclaration (cognitive 27): ImportDeclaration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (7 pts), ternaries 1 (5 pts), boolean chains 2, other 1 (nesting depth added 16). 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"5218c9887d12743a38ad571e9f6c0514b3141dc114f1422169f97ce56a5eec80"}},{"ruleId":"D2","level":"warning","message":{"text":"Declaration (cognitive 27): Declaration has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61f9cc742795eecba15d0d5cb1f2390e5ceb279bed9a42b4787246ed6160805"}},{"ruleId":"D2","level":"warning","message":{"text":"get_comment_handlers::add_comments::_ (cognitive 27): get_comment_handlers::add_comments::_ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 10, loops 2 (5 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":"packages/svelte/src/compiler/phases/1-parse/acorn.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc50bfd4634399a317a6a48c87c68b1a5fc780489c4f4c9293e823386d42d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"SvelteBoundary (cognitive 27): SvelteBoundary has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (11 pts), ternaries 2 (4 pts), other 1 (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 5 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7837e501cbc22acad43b345fd0c03b7a5e988d95942476ad28b0a21eb470e0b0"}},{"ruleId":"D2","level":"warning","message":{"text":"build_assignment (cognitive 27): build_assignment has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 8, ternaries 1 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bbc1ff8b81a5451e9c4035761bf4a02e55bf3506d2f281b75681834851ec2c"}},{"ruleId":"D2","level":"warning","message":{"text":"await.await_block (cognitive 26): await.await_block has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 4, ternaries 2 (nesting depth added 7). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 54, 77, 114, \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":"packages/svelte/src/internal/client/dom/blocks/await.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc9f08a91c76af6ddf4a108dd5348439a546387da5e4f1862f757a6a9157bc7"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-support.detector.walk_source (cognitive 26): browser-support.detector.walk_source has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/browser-support.detector.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"35de9aac75295febb8ec04ac0ba3fdf7974584450dbc3d1832a1120137ebd58c"}},{"ruleId":"D2","level":"warning","message":{"text":"deep_read (cognitive 26): deep_read has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (8 pts), loops 2 (5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c727383c331f3a84b3f272ac7f4434c73f0cc8b7d119ece4356e3e4ed74fed"}},{"ruleId":"D2","level":"warning","message":{"text":"build_bind_this (cognitive 26): build_bind_this has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 7, other 5, boolean chains 3, loops 2 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 12 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"0354c61ce690f6942cd59fa3959d949a09ce6f53fe9db6b32efcb9fb113a9b33"}},{"ruleId":"D2","level":"warning","message":{"text":"IfBlock (cognitive 26): IfBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 3 (5 pts), boolean chains 3, loops 1, other 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bef5ab5e0f25acee2311120374a02ffe9924410c839f908b3b4fe23bbc0869"}},{"ruleId":"D2","level":"warning","message":{"text":"SnippetBlock (cognitive 26): SnippetBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 4 (8 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SnippetBlock.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdc8033c9b925357eb1c27eebca6d26e7dd9dad2a71b17ae3486c8600fad55e"}},{"ruleId":"D2","level":"warning","message":{"text":"Attribute (cognitive 26): Attribute has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1b5c27a3baca39320333e91bd63af51f2cab9c151703704f8770518d4a558c"}},{"ruleId":"D2","level":"warning","message":{"text":"Batch.#traverse (cognitive 25): Batch.#traverse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da82f399a12c1df2948b351375de0e72bb2a9d93061a1db59052e845fedd375"}},{"ruleId":"D2","level":"warning","message":{"text":"SlotElement.SlotElement (cognitive 25): SlotElement.SlotElement has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 4 (7 pts), boolean chains 2, loops 1 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"142eb818cddd59978cc797c2bda35d5197aa1dbe4e3de76b2c07698a3a86dd62"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_aria_attribute_value (cognitive 25): validate_aria_attribute_value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, other 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4aa3b87ebd87469bd80a7799aa9af70ea0d3b154f8aa7a5d4ac966aa5ae29e"}},{"ruleId":"D2","level":"warning","message":{"text":"process_children (cognitive 25): process_children has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 3, ternaries 1 (3 pts), other 1 (nesting depth added 8). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to one function item inside it that branches (flush). 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89fe88fccec449da51ca75110e3e3c46eb87eb083166507f3e34a8af7d697f2"}},{"ruleId":"D2","level":"warning","message":{"text":"visit_assignment_expression (cognitive 25): visit_assignment_expression has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (2 pts), other 1 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/shared/assignments.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9455c059fef3d0fa7660e94c7c3fed606b2f5336a7cf46f42ad669addf8d1bf"}},{"ruleId":"D2","level":"warning","message":{"text":"bracket.find_matching_bracket (cognitive 24): bracket.find_matching_bracket has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/utils/bracket.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b01c0e181b075f8ddd007158c11b6bb52c051c6f6d1f998d4de2d67d14002f"}},{"ruleId":"D2","level":"warning","message":{"text":"sources.mark_reactions (cognitive 24): sources.mark_reactions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/sources.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14a06631eb52054ec870f8a2e98c06fcae3abc3b1401df75bab58174aa4f335"}},{"ruleId":"D2","level":"warning","message":{"text":"template.fragment_from_tree (cognitive 24): template.fragment_from_tree has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 3 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/template.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eb97663571b3004ba5d24bb2d6c38795a9e2feb517b4f4f935135498d57cda"}},{"ruleId":"D2","level":"warning","message":{"text":"BranchManager.#commit (cognitive 24): BranchManager.#commit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, loops 2 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/branches.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a0aef614bb8e3b79d2a90c0d86a9729a2d375e9cf2cafe62fa51a9ac2fca58"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.validate_no_const_assignment (cognitive 24): utils.validate_no_const_assignment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts), ternaries 1 (3 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd68827df97cec2cbe69c3cb53203ed6cf20d8f65f55e62c17f8d02017aca85b"}},{"ruleId":"D2","level":"warning","message":{"text":"index.is_semantic_role_element (cognitive 24): index.is_semantic_role_element has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (9 pts), boolean chains 3 (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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"594c5572150fc981c89a0a7231fd186971d1969eaa1a9d89c41af1a2cb2af9ce"}},{"ruleId":"D2","level":"warning","message":{"text":"index.has_content (cognitive 24): index.has_content has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"033e7e23105de7de12b6665a569ce1a5e0c55216fa0cb8c2042a30dc3e9c7f31"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.validate_mutation (cognitive 24): utils.validate_mutation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (8 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"0319221750e9d6b2183a1e3fad335abda83f22f812c6ec2ce1938452e9ee5bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"is_expression_async (cognitive 24): is_expression_async has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (10 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 4). Of this number, 12 points are the body\u0027s own statements and 12 belong to 5 function literals inside it that branch. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"32808481be866b9b1a46ecf17e893816ef53637fbb06cc5fb6c17e55cd0afb54"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, loops 2 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/branches.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7153148535bd8d5fa68c4168b21c0b76b4e81cbb94df07baeb34af07af0756ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SnippetBlock (cognitive 24): SnippetBlock has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, loops 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53ad9594f7afacc407b5cf8a7c7579eafb8f5556206f1fe7d9ad2fd633fd583"}},{"ruleId":"D2","level":"warning","message":{"text":"SvelteElement (cognitive 24): SvelteElement has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (8 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 11). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fe15d158d96e38c3f4e59c8b77924346815a598c1e5d53cc832202a2899398"}},{"ruleId":"D2","level":"warning","message":{"text":"css-prune.get_descendant_elements (cognitive 23): css-prune.get_descendant_elements has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (nesting depth added 7). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"2546a6dc5d01e188f281d19c43a5ebb949eb214f20f6dccbbfe89eaf07a32bd3"}},{"ruleId":"D2","level":"warning","message":{"text":"order_reactive_statements (cognitive 23): order_reactive_statements has cognitive complexity 23 (threshold 15). Drivers by points: loops 8 (13 pts), if/else 4 (8 pts), other 2 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3174ca2286e4a03cb04c83ee650f377b23a3041725fcf709c3221f8f6a1c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"get_custom_element_value (cognitive 23): get_custom_element_value has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (13 pts), match/switch 2 (4 pts), boolean chains 3, if/else 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":"packages/svelte/src/internal/client/dom/elements/custom-element.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c30288858ef90b195afd128a7e376a266032fcecbc1f7c538cbb500c75f888"}},{"ruleId":"D2","level":"warning","message":{"text":"style.read_value (cognitive 22): style.read_value has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"528cf2dd0c376bc7d03de219f3ce0eef8b62aca256ba0c3dda310e9c7f278a81"}},{"ruleId":"D2","level":"warning","message":{"text":"CallExpression.CallExpression (cognitive 22): CallExpression.CallExpression has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 3 (6 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dc7352f24d33794645a22f85a527f7ede86d707fcc716ab05eadbba643e188"}},{"ruleId":"D2","level":"warning","message":{"text":"#merge (cognitive 22): #merge has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4, boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). Of this number, 11 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"395a35e3289e548c0db92d56e17e18df24d7589731d37c6a4efa28154900c191"}},{"ruleId":"D2","level":"warning","message":{"text":"convert::AwaitBlock (cognitive 22): convert::AwaitBlock has cognitive complexity 22 (threshold 15). Drivers by points: other 11, error handling 5 (8 pts), if/else 3 (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":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00075cced1ae5a596200907446f6aa9c6d286ab4d21bbae6662678666d887c6"}},{"ruleId":"D2","level":"warning","message":{"text":"is_pure (cognitive 22): is_pure has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c320c2fd0af432a855dbfabe990bdc686a3e9d32ae0d2c0b948825667b287a31"}},{"ruleId":"D2","level":"warning","message":{"text":"ensure (cognitive 22): ensure has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/branches.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1475cf5feed76ad31d7cd355e7a76927bbbc58f80db1a30f3e5eff7bd5a8b5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"get_prop_source (cognitive 22): get_prop_source has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/utils.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"84934961299fd6e4269f13ec9e2bedce0cf0e50b029fa6dde734398efefd7965"}},{"ruleId":"D2","level":"warning","message":{"text":"log_entry (cognitive 22): log_entry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 3 (6 pts), boolean chains 4, ternaries 4 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/tracing.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"940a088123615b8ad3bb2b231b7cdc339854dafa8446a95d8a88857b02a734e5"}},{"ruleId":"D2","level":"warning","message":{"text":"init_array_prototype_warnings (cognitive 22): init_array_prototype_warnings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), other 3 (nesting depth added 9). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 4 function items inside it that branch (lastIndexOf, indexOf, includes, \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":"packages/svelte/src/internal/client/dev/equality.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479985c0e6954feffee99fe24266a6c84f959bf49d7f6f57cf8a6a5d0b81efd"}},{"ruleId":"D2","level":"warning","message":{"text":"script.read_script (cognitive 21): script.read_script has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/script.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"926bcce8af26706189075e83e48043d4c3536a389602ca95c43be91dcb85d3ad"}},{"ruleId":"D2","level":"warning","message":{"text":"fragment.is_static_element (cognitive 21): fragment.is_static_element has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffb70be1b3feade26fedba46b92c2361f8eee65efbefa4a9e7f7e440140fd6e"}},{"ruleId":"D2","level":"warning","message":{"text":"element.build_attribute_effect (cognitive 21): element.build_attribute_effect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, ternaries 1 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8a96aeda0a5638f12078813a581b3f2c3c434417b90363cd84fd477268fcdc"}},{"ruleId":"D2","level":"warning","message":{"text":"index.attributes (cognitive 21): index.attributes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 159). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"366de08a661291e38a376b06016adfa6ef60c1a3c34470f8dc128da5ba4542db"}},{"ruleId":"D2","level":"warning","message":{"text":"svelte_visitors::AwaitBlock (cognitive 21): svelte_visitors::AwaitBlock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (7 pts), ternaries 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"688decee94b9838e66b0254a67c00d1128afb506c5e3edf207112e888ce73f71"}},{"ruleId":"D2","level":"warning","message":{"text":"special (cognitive 21): special has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22ab3741559900ec687f2007b45569d7237fe6f8a2772277b0a3835ce0d29c9"}},{"ruleId":"D2","level":"warning","message":{"text":"html-tree-validation.is_tag_valid_with_parent (cognitive 20): html-tree-validation.is_tag_valid_with_parent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, ternaries 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/html-tree-validation.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1634fa4ddbcfa1e246e10c4c848872e74a39d74d18fc1af7a2b8276984f9a78"}},{"ruleId":"D2","level":"warning","message":{"text":"attributes.attribute_effect (cognitive 20): attributes.attribute_effect has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (nesting depth added 7). Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 532, 522, 577). 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":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28a55d6ce1e874fedfcf1bb2e981c3766b3d08d7f47290436cd548cc9a4db4d"}},{"ruleId":"D2","level":"warning","message":{"text":"Text.Text (cognitive 20): Text.Text has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/Text.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e073644ede646b81b7ac615dcee46b1ff21a1588fd7c58642cf9b0ccc4a40a98"}},{"ruleId":"D2","level":"warning","message":{"text":"element.build_set_class (cognitive 20): element.build_set_class has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 2 (nesting depth added 2). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5af7349b4408862a819da5379e856b7656677bb38cd38aafeeef0f359847283"}},{"ruleId":"D2","level":"warning","message":{"text":"create_scopes::AwaitBlock (cognitive 20): create_scopes::AwaitBlock has cognitive complexity 20 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 5 (7 pts), loops 2 (6 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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1a0c28717280465568a701fc8acf9e31c1d419de261b0eb4f196b7af41fd5e"}},{"ruleId":"D2","level":"warning","message":{"text":"loop_child (cognitive 20): loop_child has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5822f7db09e8e89e6eacede5e2604cd0f48cd28ecc8bfe5d2728fe9f1f42e924"}},{"ruleId":"D2","level":"warning","message":{"text":"element.read_attribute_value (cognitive 19): element.read_attribute_value has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7df43aacfd6791db0dccb0e9c0e0df2fc2806547d460ff3f5d06c3b28dae8fe"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.log_effect_tree (cognitive 19): debug.log_effect_tree has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (4 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf2be552f110f528bbe0f822a967d64a6eb93261103995d6a944d1d72fca33f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportDeclaration.ImportDeclaration (cognitive 19): ImportDeclaration.ImportDeclaration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/ImportDeclaration.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"114bfd1613ece062455c8a8e82fc61845d8cd79c7999ea28848d7f2a97522139"}},{"ruleId":"D2","level":"warning","message":{"text":"infinite_loop_guard (cognitive 19): infinite_loop_guard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (7 pts), error handling 1, other 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb59020389f8dde88437b5cbf5c407739f8034ca4d832828c3dbdda989633cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"boundary (cognitive 19): boundary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3 (6 pts), other 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/renderer.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8a3ee89168abcd12e7ed33dc69a4fc3e4d4001e564ce2e0b542052186e55fb"}},{"ruleId":"D2","level":"warning","message":{"text":"update_dependencies (cognitive 19): update_dependencies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb804c6fa8f0e7215411b9855e686c2c0a6d0d3e82cdb94ea8c1dd12f892e4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Rule (cognitive 19): Rule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b81f11d6db5bba546374c49607f8787b8928a24fa729935546fa2da0815e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"AwaitBlock (cognitive 19): AwaitBlock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (4 pts), boolean chains 3, other 2, ternaries 2 (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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c81c6ed428c8dfd79eb7f894085d183a596fc1d1a5a1d029c246b489ad1441"}},{"ruleId":"D2","level":"warning","message":{"text":"read_profile (cognitive 19): read_profile has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (6 pts), boolean chains 4, if/else 2 (4 pts), other 3, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/profile-diff.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b3da950fe0874b3205fd9cc24c9379c42911d1b287cffdbb420608ee61ef02"}},{"ruleId":"D2","level":"warning","message":{"text":"html-tree-validation.is_tag_valid_with_ancestor (cognitive 18): html-tree-validation.is_tag_valid_with_ancestor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/html-tree-validation.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1834a16b19e810517d457ff68a476826e34ce4b25cdc4cd72f4861cc940aa46a"}},{"ruleId":"D2","level":"warning","message":{"text":"class.set_class (cognitive 18): class.set_class has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/class.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18dbec595a89326b03df6a570336c9c4a891b8ceba2b0d90f13518793e4bf41"}},{"ruleId":"D2","level":"warning","message":{"text":"input.bind_group (cognitive 18): input.bind_group has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 168, 206, 154, \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":"packages/svelte/src/internal/client/dom/elements/bindings/input.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5aa6178817f02806e2ab91625ec35771fb3c023d45b9e1e179bf3a51ce5ec9c"}},{"ruleId":"D2","level":"warning","message":{"text":"SlotElement.SlotElement (cognitive 18): SlotElement.SlotElement has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SlotElement.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"643ea3e7ed6b11be390e233f791b45becfe58390b2935fda86bd738231d66466"}},{"ruleId":"D2","level":"warning","message":{"text":"StyleDirective.StyleDirective (cognitive 18): StyleDirective.StyleDirective has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/StyleDirective.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2690cbf403212097793596b33dd3697586e7a2e773dbd325775065f6c068df1d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassBody.ClassBody (cognitive 18): ClassBody.ClassBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 2 (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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad1259329791c00a454832df066096834b7fe4404814067239f5dbcf29959ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyDefinition.PropertyDefinition (cognitive 18): PropertyDefinition.PropertyDefinition has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 3 (5 pts), boolean chains 3 (nesting depth added 9). 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/PropertyDefinition.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b8b71bcaeedd75ced80a919f072b3715bee546a1997f230300209621a47c53"}},{"ruleId":"D2","level":"warning","message":{"text":"template.objectify (cognitive 18): template.objectify has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d312c9c8bdfb58082c3c4a94c04526ee2fe55321a8970fc766da5d2bf9ae41"}},{"ruleId":"D2","level":"warning","message":{"text":"index.transform_template (cognitive 18): index.transform_template has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-template/index.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"123f69489069ab066057c68b2b23837140d89b803ab8213d883f54bfaa9ab044"}},{"ruleId":"D2","level":"warning","message":{"text":"_ (cognitive 18): _ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"664edee6cd39671ad5ac92629ef470b7ec3c64b6e4f16710aed8ca2193c687de"}},{"ruleId":"D2","level":"warning","message":{"text":"read_declaration (cognitive 18): read_declaration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, other 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3e6b04e23cc1cc8bda02f9d95e84bc1f75eb53649c1c61e4e3c5bc39c45e14"}},{"ruleId":"D2","level":"warning","message":{"text":"object (cognitive 18): object has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (nesting depth added 7). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 235). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/validate-options.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9242c16f5e19b0559073dcb1a315f714556159f953f7b471ef0c3dc0e5bdfafc"}},{"ruleId":"D2","level":"warning","message":{"text":"deriveds.update_derived (cognitive 17): deriveds.update_derived has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 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":"packages/svelte/src/internal/client/reactivity/deriveds.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1b557bb1b83f3494d2c5dea29b67cc363e25fd67a18b2aab5192abb397bf7b"}},{"ruleId":"D2","level":"warning","message":{"text":"effects.pause_children (cognitive 17): effects.pause_children has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/effects.js"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e101f010aa5432816c98de314fd55f86d1a73cbe31232f3b9e6ca3e235e9ee60"}},{"ruleId":"D2","level":"warning","message":{"text":"index.writable (cognitive 17): index.writable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/store/shared/index.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf71ebd21ec43000a112329bbe650f19c590ac411b2e5a25a53a04ccb5b8eff"}},{"ruleId":"D2","level":"warning","message":{"text":"css-prune.is_global (cognitive 17): css-prune.is_global has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e7fb38890ad479d4e99963c1068c1526c481011c62d18650db7b8112a5d4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SnippetBlock.can_hoist_snippet (cognitive 17): SnippetBlock.can_hoist_snippet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a3bf71bacdb3f051dfa95e5b6a69ec4eb3b6886608294b0f7ce6e2894b7db8"}},{"ruleId":"D2","level":"warning","message":{"text":"index.is_empty (cognitive 17): index.is_empty has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/css/index.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9452107c25e8995138b180eef478f4caa065895109269750e1c4c94d288bc511"}},{"ruleId":"D2","level":"warning","message":{"text":"element.build_attr_style (cognitive 17): element.build_attr_style has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b82fac9343af6dc72c2ab3a191a785a2b57bddea9d5fd02b58f15c8899bed7"}},{"ruleId":"D2","level":"warning","message":{"text":"decode_sourcemap.decoded_sourcemap_from_generator (cognitive 17): decode_sourcemap.decoded_sourcemap_from_generator has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/preprocess/decode_sourcemap.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"045da8241b15ccdde0609020048dca8da62cfacf0404ad26e9f96effbdf91f49"}},{"ruleId":"D2","level":"warning","message":{"text":"pause_effects (cognitive 17): pause_effects has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 80). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63f0c762053d7725352008a30a3b6bb4ea70629ae8dd626f1f08ee3f738cfc4"}},{"ruleId":"D2","level":"warning","message":{"text":"#handle_error (cognitive 17): #handle_error has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 5, error handling 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 7 function items inside it that branch ((anonymous), handle_error_result, handle_error_result::(anonymous), \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":"packages/svelte/src/internal/client/dom/blocks/boundary.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9db5f3d3926851c64f26c520cd4c42357bf573a0dee163747353c7f1165f89"}},{"ruleId":"D2","level":"warning","message":{"text":"apply_default_select_value (cognitive 17): apply_default_select_value has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 2, other 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/bindings/select.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90008c9265529feffea6d729cf9de06e5304722e4969d5d9401934e0187a639"}},{"ruleId":"D2","level":"warning","message":{"text":"CallExpression (cognitive 17): CallExpression has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (6 pts), ternaries 2 (4 pts), match/switch 1 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d32b253cc0d7b29555f523ac243f601d6b24f73b478150b29da10054f093259"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.remove_reaction (cognitive 16): runtime.remove_reaction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 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":"packages/svelte/src/internal/client/runtime.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec07e86b1eca4e75500c0a418d2aefc39a372a2ecb90bb4d57ab5d6019ebf68"}},{"ruleId":"D2","level":"warning","message":{"text":"FuzzySet.__get (cognitive 16): FuzzySet.__get has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/fuzzymatch.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f370848a202f6b26d85d6e30b7ba0321999cc93fa990d471de6e961ccde53c7"}},{"ruleId":"D2","level":"warning","message":{"text":"AwaitBlock.AwaitBlock (cognitive 16): AwaitBlock.AwaitBlock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/AwaitBlock.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9360bd645a3dd8dc74e02448260828944f8b699388d00a48cdf6d966031b82"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.build_template (cognitive 16): utils.build_template has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1313747986caa126e2f18eb12bcf8aa3eb0a445521591844d002b8c44366daa"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderTag.RenderTag (cognitive 16): RenderTag.RenderTag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db28dfa998f96b6ddacb3af73b284019a7143d85b8455db2a0de3b33437a3df"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-browser-support.versions_from_features (cognitive 16): generate-browser-support.versions_from_features has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/generate-browser-support.ts"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f914215f0cb83c751d92897b08d65446d429d8e53b1e966f9f7e033f850808ce"}},{"ruleId":"D2","level":"warning","message":{"text":"read_identifier (cognitive 16): read_identifier has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"7194e1de2ff6a73d22602ab2a5840a682f1388d89df5ae15223392a259e68409"}},{"ruleId":"D2","level":"warning","message":{"text":"#init (cognitive 16): #init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 1, loops 1 (nesting depth added 9). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 75, 92, 113). 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":"packages/svelte/src/reactivity/date.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a62268105415dac176b1ff72eacad52c6bf81b6b7afa4cfadda588ab4cbec5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: legacy.convert: FunctionTooLong \u2014 convert runs 406 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 306 over it, 4.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9d16d620d914f6898c515f000b57df764b52a54f540391d142d584c330a84d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.svelte_visitors: FunctionTooLong \u2014 svelte_visitors runs 391 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 291 over it, 3.91\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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf5815ea9350b2c4708a48e2839b0e8d8b05d6fa2633009cf442e20b93aadef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.analyze_component: FunctionTooLong \u2014 analyze_component runs 386 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 286 over it, 3.86\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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"85db849251ad706502bb840cccb1b6475a282d9609495d2674f90c90f98a28a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.check_element: FunctionTooLong \u2014 check_element runs 324 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 224 over it, 3.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d8e59f8eab76b00a96227f6e20c85d2261a308131cd8d1af251aba940d9809"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: transform-client.client_component: FunctionTooLong \u2014 client_component 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":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f23996586a766016e28e502ceeec1c0208c0be13789418ba0ae6684ba7aaa67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RegularElement.RegularElement: FunctionTooLong \u2014 RegularElement runs 311 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebf8e0ff399b4effebd07f05234772dc09f06d49808cfa6c00201beef7ba0e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: component.build_component: FunctionTooLong \u2014 build_component runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c216f9b922e430526837c952daec8063b159c4a93ec4a8022f8fea83d256ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: scope.create_scopes: FunctionTooLong \u2014 create_scopes runs 279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 179 over it, 2.79\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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"d460ce723c8bab364f891d81199aa1ced5d534a6047f7edf39536d82ad8674f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: migrate/index.js: FileTooLong \u2014 1266 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). The bar is 500 significant lines; this is 766 over it, 2.53\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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f527439d5f83defe94fdf5ba4e20a6b7711e027c22cefe89acc0707d67f132"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.migrate: FunctionTooLong \u2014 migrate runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e3f859edb1f0a80a2fbf04842be960a4d839012044b64b8b0e233a2e828aaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Evaluation.constructor: MethodTooLong \u2014 constructor runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9a622ff0210b4a11d16a24d2ea9d6244be8437c97e0da38a660fd3c65f68c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: VariableDeclaration.VariableDeclaration: FunctionTooLong \u2014 VariableDeclaration runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aba4ae964ea0998c1756dc4a75420c15f5d91143372f5497894045bc800c92"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BindDirective.BindDirective: FunctionTooLong \u2014 BindDirective runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3050b5623f9d72cfa2ea700e49f418209c82df96beb89ce7d3b2ba17b2698ccc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: transform-server.server_component: FunctionTooLong \u2014 server_component runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\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":"packages/svelte/src/compiler/phases/3-transform/server/transform-server.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"86979b53305fb2bf80927c09351213301eff196a30774f2f2fa6dcc467191a1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EachBlock.EachBlock: FunctionTooLong \u2014 EachBlock runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f2307d9aeda6004648903c8a7958731d3478f969f0d5d95dc5d11c89f38459"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: component.build_inline_component: FunctionTooLong \u2014 build_inline_component runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e2709782ca6f0adadb644b3c7041faa40460b52509814eb971c1b84adfbc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: proxy.proxy: FunctionTooLong \u2014 proxy runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\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":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f523e26874108cdbe0a24fb59b37f0ac30c58e47c91e471f6d915d7efb606b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: element.build_element_attributes: FunctionTooLong \u2014 build_element_attributes runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4cc6f37ea6e09fb602d2905568c102241277d77f352304fa731f51c857a78c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.calculate_blockers: FunctionTooLong \u2014 calculate_blockers runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f41eb042cfcc5ab31f2b3cc9b3573e32582aee03bd57b3f971800755199dfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: 2-analyze/index.js: FileTooLong \u2014 834 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). The bar is 500 significant lines; this is 334 over it, 1.67\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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f8eced8ca053176b7b689bf7be2045614ff94b4434bc2f3820a2ed0ff7787b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: phases/scope.js: FileTooLong \u2014 819 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). The bar is 500 significant lines; this is 319 over it, 1.64\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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75ce7f8a18b277480584007f3672feee30d81576c3ba89470e54eaf6d6f299"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BindDirective.BindDirective: FunctionTooLong \u2014 BindDirective runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b9a43f45cd30031e79fb7141035889ac862eed905f5bdf8331ba6fee95d0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.css_visitors: FunctionTooLong \u2014 css_visitors runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dde0dca5463f97becb68e149af9c1f57069da3d6bc76cdabc89f273aeefb30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: style.read_selector: FunctionTooLong \u2014 read_selector runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a749f733753cfb521785209681ed0c799ae823970bde4ba9ca5f91618e487033"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: css-prune.relative_selector_might_apply_to_node: FunctionTooLong \u2014 relative_selector_might_apply_to_node runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"831d6428d3093819649459d35d060328c6999768da8ee8d6043c1bcbd4c4955c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: print/index.js: FileTooLong \u2014 673 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). The bar is 500 significant lines; this is 173 over it, 1.35\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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7f3c26d296a56051bf692e8462d2a3cb8f0d3141a522104b830bf797c1d2a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: css/css-prune.js: FileTooLong \u2014 669 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). The bar is 500 significant lines; this is 169 over it, 1.34\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":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ffa44bde774f69f243acf22ae49e2e723e46a8528bf9c66204eed912ce1ac2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reactivity/batch.js: FileTooLong \u2014 656 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 61% of them inside a single declaration: Batch (97-1023). The bar is 500 significant lines; this is 156 over it, 1.31\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":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae59f17d5d60df263c86a0a6daab07076c6b7e6142d4ece05d0a051dae783b9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: utils.profile_to_markdown: FunctionTooLong \u2014 profile_to_markdown runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"benchmarking/utils.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddfc1874c8b5337a82635a44a652217f5e6b50087d41ef34fbe07cee9e536bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RegularElement.RegularElement: FunctionTooLong \u2014 RegularElement runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce69453afb118e64c9a2c8b1a48184b2c9178c443f9664d9ad008e2612590ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: attributes.set_attributes: FunctionTooLong \u2014 set_attributes runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"daefe16574d7782ff6ce625143aa9cad737ec7710508bcb1053560f103cf1dbc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: options.read_options: FunctionTooLong \u2014 read_options runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/options.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ed2b49ef4ba155a28104db561469fd565cf58f4c9b865fee97e1de61f1fbb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: element.read_attribute: FunctionTooLong \u2014 read_attribute runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69acb1d9742c3cc398d142771d0df1c4a4eb22b59da8abbd473926f4b6e34c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: each.reconcile: FunctionTooLong \u2014 reconcile runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed2b0e678d7522546f1c3033685320592e236ca9bb78ec465e4489dabd04f3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: VariableDeclaration.VariableDeclaration: FunctionTooLong \u2014 VariableDeclaration runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"000de3771252b5cff413d49cbaeaf7b52ce88cc2ad7e4e38c724ca31ac3d9c65"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RegularElement.RegularElement: FunctionTooLong \u2014 RegularElement runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb14a053eebd05ea8ffc30b2e39790cf33f98ed814f83b4d843b6b9e9a9a722"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AssignmentExpression.build_assignment: FunctionTooLong \u2014 build_assignment runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbde88c2c819d3642e07dd0b0afef6683fab3048721fdc191fd3ba157bf6750"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/element.js: FileTooLong \u2014 592 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). The bar is 500 significant lines; this is 92 over it, 1.18\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":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8713b73f3865f43018154c3bd69920b8e30a0e4e61f64ca14d023a44aa043ac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: each.each: FunctionTooLong \u2014 each runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/each.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab3eabfd13fb6d18e0c3dfc1342ad2600cc6a4f93444e0b7f296749ac5692f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: a11y/index.js: FileTooLong \u2014 578 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). The bar is 500 significant lines; this is 78 over it, 1.16\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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"730397f116da1bc9f6a5415b68508a03fb4c99111c6b920e54ad80ba3d7a85bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: analyze-compiler-profile.analyze_compiler_profiles: FunctionTooLong \u2014 analyze_compiler_profiles runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"benchmarking/analyze-compiler-profile.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caa9ae539b4a860d0f9bbdac7d398e32b5c71653b3704765932c054d0a3151e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Identifier.Identifier: FunctionTooLong \u2014 Identifier runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826afc283d199cbcf3cba7581435f9f66ba24b0f3804a52b96e47559bba517d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Renderer: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/renderer.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db93b4c3dbcc055bf59b1a6f22ef2609453a363c07cf58f4ffeda0aeb95dc4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/tag.js: FileTooLong \u2014 531 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). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/state/tag.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46609f0da35d5addedb5000bf7385463e4f6aa77ee8a059b1ed20650459a458"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ast._extract_paths: FunctionTooLong \u2014 _extract_paths runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"859d79a7cd15b1a45e8d63291e93221c42457cb915fdf71413f04e1defff3ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.migrate_slot_usage: FunctionTooLong \u2014 migrate_slot_usage runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b0b1dd0ad7ed7e5e270624228aa16deb9f8b962675b0a9947bf2e661d9c850"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Batch: ClassTooLong \u2014 401 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 1 over it, 1.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a5c8835eddf26f3749d260abdae8079329d3c90b42fa6ac0361b7bb25108b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: REGEX_VALID_TAG_NAME no ReDoS: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/utils.test.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"71488914e0e1a54482d4439a1f42731fdd70f976475df7d08d5ae2dbec9f60e5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: (unnamed test): This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/signals/test.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"329390478e17ac70a905ab7db5268d9a74b1124af5f9907dc90974c8f69cfce5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/2-analyze/index.js: packages/svelte/src/compiler/phases/2-analyze/index.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 177 in index.analyze_component at line 333. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/2-analyze/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4291c5f52277ee5923a3dcdc97bfdbe4dd33d0437443d337d3fc4004fca1516c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/print/index.js: packages/svelte/src/compiler/print/index.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 122 in index.svelte_visitors at line 537. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/print/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7bf4e0ce2e686a35006d7ff2aaf618da39c7bc8aea006edd405d814b6e8c83"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js: packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 135 in RegularElement.RegularElement at line 38. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cff16118c90539cf3a1b7139182cfce78270b87365041533c38044902ca631"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js: packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 194 in index.check_element at line 56. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"886716a89995452d5d13f9fc2f54b50bc814a13d6d02965102707d7521e85f69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/dom/elements/attributes.js: packages/svelte/src/internal/client/dom/elements/attributes.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in attributes.set_attributes at line 271. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/dom/elements/attributes.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22b74114aa4909f3631f05793cf8746db5490f39ab496cc8dafb72eb6236c96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js: packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in element.build_element_attributes at line 36. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efec320c6ff1bfdcb14264ed43331bf4f99604adeab0ad62a45226f6443e1cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/scope.js: packages/svelte/src/compiler/phases/scope.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in scope.create_scopes at line 920. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/scope.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"142ddaaee03476339d151057ef81573d113903a8c38c864b94a2d1f1d9de18fd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js: packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in VariableDeclaration.VariableDeclaration at line 16. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bc33058b2bc99b8ba1aa58ff17ad0b4d473acefdea8ab2028744513774374f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/1-parse/read/style.js: packages/svelte/src/compiler/phases/1-parse/read/style.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in style.read_selector at line 167. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/1-parse/read/style.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ece12249b85b84e38a7cde02774aaf461fe929907e415d33e14ad2fc9842a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/proxy.js: packages/svelte/src/internal/client/proxy.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in proxy.proxy at line 40. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/proxy.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94c1507c0979f0a987fec549df20366b24265d1a745c14f0c7d682cae8bbea0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js: packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in EachBlock.EachBlock at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"358c9497b06257e1bc16d94a930daf27f2bd6c65519574dae85e624bd171da90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/reactivity/batch.js: packages/svelte/src/internal/client/reactivity/batch.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Batch.#process at line 329. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/reactivity/batch.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/batch.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5024448f2a9d7bf8afeae88bae5505f1ecf8b7b0ac113463b0bfebcfc5d8650c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/compiler/phases/3-transform/server/transform-server.js: packages/svelte/src/compiler/phases/3-transform/server/transform-server.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in transform-server.server_component at line 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/compiler/phases/3-transform/server/transform-server.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/server/transform-server.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd6e6e3fb05fdda884bed46f10cb1d7984e9af529fe1d5b701271cfa67913bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/reactivity/sources.js: packages/svelte/src/internal/client/reactivity/sources.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in sources.internal_set at line 189. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/reactivity/sources.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/sources.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b40405ef15dc70734a4326162453a8346ee49694fa488d3c07a393183d588a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/server/index.js: packages/svelte/src/internal/server/index.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in index.attributes at line 130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/server/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/index.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc619b3fdcc41f5ea1caea87267ed5fa177128aa6c3fe2a49831de27cb65ab7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/dom/blocks/boundary.js: packages/svelte/src/internal/client/dom/blocks/boundary.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Boundary.#handle_error at line 494. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/dom/blocks/boundary.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/blocks/boundary.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b34ddb613f1224fbb50503b86ec05a121e58c2576dc92f78c0a45a79a558a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/svelte/src/internal/client/dom/elements/transitions.js: packages/svelte/src/internal/client/dom/elements/transitions.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in transitions.animate at line 338. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/dom/elements/transitions.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/transitions.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a4038bd5d5223f84bf5a047a2f7b9010c73807af534bd8d8b5422bb12d64ed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: benchmarking/compare/generate-report.js: benchmarking/compare/generate-report.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in generate-report.generate_report at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- benchmarking/compare/generate-report.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/generate-report.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4857c7d9e294a8c9e1ff312475c5338781311cf646d3459a49c9ead675d6ebfe"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/svelte/src/internal/server/renderer.js: packages/svelte/src/internal/server/renderer.js changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is Renderer.option at line 450), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: reduce SSR render result garbage collection (#18798)\u201D; \u201Cfix: throw when \u0060setContext\u0060 is called after an \u0060await\u0060 during SSR (#18739)\u201D; \u201Cfix: render \u0060selected\u0060 options for \u0060\u003Cselect multiple\u003E\u0060 with an array \u0060value\u0060 on the server (#18720)\u201D; \u201Cfix: run \u0060onDestroy\u0060 callbacks when a server render throws (#18585)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/server/renderer.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/renderer.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f36ac857cbc4d4bf5e595c47f81b5d84fadc22eb165078df8f3344059151534"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/svelte/tests/signals/test.ts: packages/svelte/tests/signals/test.ts changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is (anonymous) at line 822), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: prevent untracked derived reads from retaining dependencies (#18829)\u201D; \u201Cfix: in non-async mode, only push variable to current_sources when active_reaction is updating (#18550)\u201D; \u201Cfix: commit a reaction\u0027s dependencies even when it throws (#18703)\u201D; \u201Cfix: prevent derived connection leak in untracked contexts (#18517)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/tests/signals/test.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/signals/test.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b9ff7e1bb576459f8818dee4ba122065c9fd795be24e4198b2342a3c19c4ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/svelte/src/internal/client/dom/elements/bindings/select.js: packages/svelte/src/internal/client/dom/elements/bindings/select.js changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is select.apply_default_select_value at line 43), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: keep the current selection of a \u0060\u003Cselect\u003E\u0060 when its \u0060defaultValue\u0060 is applied (#18719)\u201D; \u201Cfix: prevent \u0060selectedcontent\u0060 mutation from changing the selected option (#18495)\u201D; \u201Cfix: preserve select selection with spread attributes (#18561)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 23:31:46 \u002B02:00\u0027 --until=\u00272026-09-28 23:31:46 \u002B02:00\u0027 --full-history --no-merges -- packages/svelte/src/internal/client/dom/elements/bindings/select.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dom/elements/bindings/select.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e5ef8d8ae563728e811aa79dd4b6c46aeeffe26184e7ba2962b583ba67dc9c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: benchmarking/utils.js, benchmarking/compare/profile-diff.mjs. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cf51bb74d67d03d5f01d81e117269ceea3ee9b8bc893ef9232e303f53d101b81"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (4 single-owned of 167 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 167 of the 380 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO unify test interfaces \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/suite.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"704b4b3d4853d0e9504aa55804597b682b3417d2b336380b8899e7e1bb20e8cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO enable SSR tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/css/test.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03bd25e424c26771177a29a2d64b56b44f82e060b6243dc045dd4cc8bc5faba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO convert this to structured data, for more robust comparison? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/hydration/test.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0421c8ec099c239725db819de3d2ad5c4e37f5dce98edab03c3d4f839b1faf69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO convert this to structured data, for more robust comparison? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb15c07af109c73eab3242abf91b5bda12ccaad401407bf6cf9b07e6ed17aa2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this shim when we can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8aa58c29d10636a6dd00c29e5b46cd1dcacf659dd20a1c758106247ac508001"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this shim when we can \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/server-side-rendering/test.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdaa9f67a6aa2da1bd15e81ea2e36948e77727c263cb36e85175dee3619c73b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO huh? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85ea236cb58a2da3e7152dac3da960dbfa7978745cd84da29e814bc4bc5378"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack to support transition tests \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b082592cfa7734616aad1ee19bc68310d7b60a62ca20a64bb069085475d4ca2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d2d21752efe10a6bfb9b1e4b4fcdfd2f3b0eb8fa0d6e225a20c7c0a3fb2fba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Isolate the html comparison \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/server-side-rendering/test.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e6e938bd991501e98628da25f13c54b01c23e83d101732cda61b0e0d547705"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: happy-dom might be faster but currently replaces quotes which fails assertions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/server-side-rendering/test.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9004ffd0a75901cd6b0194a8a3af1773299ae369302d86b48b93c02dd2c2d454"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: in an ideal world, the effect wouldn\u0027t fire here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/signals/test.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19f85a145f37996c0772fdb1b24d0506d3c8aa265370f7a14d08dbb8ad7ee63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO figure out for which tests we still need this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/sourcemaps/test.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9562e12996139f958b4a2b4741424475402c427d948b31a828a0c3b5a189aff4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO feels like inference should work here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/store/test.ts"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a71fd38361bc2a09f62c2137e68c6b200871021cb26336577e3ec44884d752a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO feels like inference should work here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/store/test.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"d372e01118de6fbdbfe9d821772c154d88d48f0a26d0367a797d0c6fe5cf6328"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO feels like inference should work here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/store/test.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61e94e3331f4768ecba04a085be9d77f01508c86c92ab8fe92db2b64fe1b957"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-expect-error TODO feels like inference should work here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/store/test.ts"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b576d0b2f88dd01cd212b8b076d3f55fbf89fb702df9c59330b495bbed93f790"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no project overview: The overview begins with \u0027What is Svelte?\u0027 and links to the Svelte website, but it never states what the repository\u0027s purpose is or how readers can use the codebase (e.g. whether it compiles SvelteKit apps). Add a one-line description of what the repository does under the heading \u0027What this project provides\u0027 so an outsider can read it without leaving the README."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dbf18d06aa983c06246108610908ba99aae6784280b3aacd1a6655733d71be"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no installation or build instructions: There are no installation, build, or setup instructions in any document. Add a one-line install/dependencies line and a short \u0027how to get started\u0027 note under the overview so readers can run the repo without leaving the README."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa6bfcd5c6ae231d1b8ee99bced50b832d1f61cde9da6cbb533467b879a57db"}},{"ruleId":"D26","level":"note","message":{"text":"Split packages/svelte: A Svelte compiler and dev tool project whose namespaces are all named phases/visitors/shared/client/reactivity/server/dom/elements with no cohesive name. Suggested: "},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"02089905d529f065c86fe495e938993a99f419989c364f6c12838564fde81000"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8af93b54d7b6d09176d9c9016e65470b9e3497c2e30cd6af0b8b0a89230292a4"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1498825690ee691422757d83c6c8726aaf69040fa62a3b6b71a03075f0880320"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85f99189d964cdde824a816d83f2290af0a3f7efe42feb1d6495743a90e33e22"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2eac5a51ad902dafc1c93ac8d8ba2682d31b2ec1e13f5557c422c27d3ea21fdd"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59f2c161be3f039ad66c8134d364e321a7388427eaf118ac54c20dae1008680c"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4349157424111d1c040bf776c1cd0a36c07afc64047fbbc9ea839c17da130f44"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44be1602650154800f60a7e75df8dfb20a38993ab12602a008c5a7fa0ffa57c0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a301270cdbad80c35c199f849bb02d1a3d309c61edbde223ff537c4d86cdffa"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5bbfa67248d8dbb06cf99af71d5406fd4c96303fbcbc1f462a1b9739f7fcc0ff"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9e32a448cc007ced35f574ac851d62d56116470e427182b0cdc6268bd3dd0048"},"properties":{"dependency":{"package":"form-data","version":"4.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"635cde9860b68e56898d582225d882b3dab2d1ebe75d111465bf8a323e0e396b"},"properties":{"dependency":{"package":"minimatch","version":"10.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12edae6eae138c641b09b6214fb78a79a01e61d27b3814cf04454f7f613df914"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc0d4bfbc2dbf13b7b4678c7f750f00c9c46698f61534d37a6a18fd133b243d5"},"properties":{"dependency":{"package":"flatted","version":"3.2.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"685cba4514570b53bf9bc85812fa54c07fec7b3f62fc67d4712c038e9ec2e605"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24ca2b657a002371f47253ffc3d1042d7a3752a5b2076cdfa1568b90732fc738"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ea65af982fbfa7ee58dbe3fa40bd975ecb648d209c563eae9269b519d2be2a6"},"properties":{"dependency":{"package":"nanoid","version":"3.3.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df21b8127d24aeed9579f3ce44f2f84d2d4f9ae41d6b03d4309b75c4781747cc"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"659b17df3a297d0c761f05e64fbd7a7fec481b8fec3425db0f2590512d5583b5"},"properties":{"dependency":{"package":"ws","version":"8.18.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7bbcf727c11f3451b90e0c4181659fec15555399ba4dd1a967c87b3704c5ad8b"},"properties":{"dependency":{"package":"postcss","version":"8.5.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"691b7e2bf95c8af84df5ce832211dd11cd5da521b87c95df1fe446031c2b4fca"},"properties":{"dependency":{"package":"immutable","version":"4.3.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"addbeeceadb4c5bc8ee5caeb04de03ac44d22d147c99d7f88af5a778dea0b9c6"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7bda289298f8c7b577c3df21f51a6fc17f92b7e23b2a76b5f7c4731a8327d8c"},"properties":{"dependency":{"package":"ajv","version":"6.12.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cab2098e551f88d096756eea896ab201fc72ec0275bddc366f276c5eb947889d"},"properties":{"dependency":{"package":"yaml","version":"1.10.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c9f2b13c6a336b54109e800da29dea76d8f37314d544b01defed619e8571569"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"834f339ab60fdb5e3d637025f83041201baea7bedd2c5be0dccd090246e05709"},"properties":{"dependency":{"package":"vitest","version":"4.1.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"packages/svelte/tests/helpers.js","line":6}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcaff5d1e287866fb15ab08f33c0744f85cfc07f596d7af736c916f57cc95099"},"properties":{"dependency":{"package":"uuid","version":"11.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16bc49aac72eafef4ac9a880a9755121d0367a6bdf3e48689c49c4d9d8c09a58"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.32","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"packages/svelte/scripts/generate-browser-support.ts","line":30}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b717e9dd303f73b8b7ce5922ca68dede6a38dec9452f848a70f0889e9aafb7d7"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"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":"eba7fb25d0b8d38048d1fab612533e16c381b81645728bbe7213282cfb7a64f5"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"3f54d1f4607fdaea22194262dabcf05db6136d2d813d8619ac129c6b6f33edda"},"properties":{"dependency":{"package":"esbuild","version":"0.27.7","advisory":"[GHSA redacted]","reachability":{"kind":"test-or-tooling","file":"packages/svelte/tests/runtime-browser/test.ts","line":2}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 167 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 167 of the 380 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: packages/svelte/src/store/shared/index.js, packages/svelte/src/compiler/preprocess/decode_sourcemap.js. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SlotElement.js \u2194 component.js: \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js\u0060 and \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js\u0060 change together 91% of the time (10 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060b5e23a6d\u0060 chore: tweak memoizer logic (#17042); \u00609a488d6b\u0060 fix: place \u0060let:\u0060 declarations before \u0060{@const}\u0060 declarations (#16985); \u0060f6a2599e\u0060 chore: remove memoize_expression (#16358) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c267ff224a73c8263953ef328edb7552ee5cf4d7a3fb2305a445fa13d3011fe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AwaitBlock.js \u2194 IfBlock.js: \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js\u0060 and \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060f2648b35\u0060 fix: end a restored reaction context at the end of its synchronous se\u2026; \u006032882a95\u0060 feat: add parent hierarchy to \u0060__svelte_meta\u0060 objects at dev time (#1\u2026; \u006018d71fd5\u0060 chore: reuse expression nodes (#15513) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"555339a77bd2489cfff2b78f77e37ab185153d762cff83fdca76ab9fb9e14544"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EachBlock.js \u2194 IfBlock.js: \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js\u0060 and \u0060packages/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060f2648b35\u0060 fix: end a restored reaction context at the end of its synchronous se\u2026; \u0060bc4dc1d1\u0060 fix: avoid erroneous async derived expressions for blocks (#17604); \u006032882a95\u0060 feat: add parent hierarchy to \u0060__svelte_meta\u0060 objects at dev time (#1\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6be8c7649d9088a9605db3a7f5cdc52b04e31d1ec46a639017d400c23ff6cd7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/errors.js"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7b725d1bc0e7829df8449ad5524f8e5f6f5473aba87c58f6cff035efb556d0"}},{"ruleId":"AC7","level":"note","message":{"text":"Accessibility enforcement below the top rung: An a11y linter is configured (Documented) but there\u0027s no automated a11y test or CI gate. Add vitest-axe to verify at runtime, then gate it in CI. What was searched, so you can tell an absence from a miss: the 3 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"M1","level":"warning","message":{"text":"README may be stale: 189 code files changed in the last 6 months but the README was not touched \u2014 it may no longer reflect the system."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e973e7a8d5d866995cbf78b120250fe7f132bf928812d48ca62e69aba11b9910"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 14500 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":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060with_cpu_profile\u0060 is async and calls mkdirSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/utils.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"770af6b5629e4e86b8a58f4999d49ba0c9eee993d57e578ccb5b24d6401dc6b0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060find_all_conditional_features\u0060 is async and calls writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/generate-browser-support.ts"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12f29f6775ef6592880499758f26bde99b6893bf5e091565b47a59e597f7392"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060main\u0060 is async and calls rmSync, mkdirSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/generate-browser-support.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1300be35227739f79c92399c1d3f40003e2af2dace1f713bcb4ea772963000"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060for_each_dir\u0060 is async and calls readdirSync, existsSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/suite.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c0a8410addf078776718ed420144144f1b4c214bf2945d9ab0e20026afa331"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060compile_directory\u0060 is async and calls rmSync, readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/helpers.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b40e5c122937aad163aaf2778890ba759ca5e01e6915f17e357b733e4da160"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run_ssr_test\u0060 is async and calls writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-browser/test-ssr.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5279d539aef14ba0c2b41c1b5146317257fa4c728a38bc2ec3dee1909b51985d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run_test\u0060 is async and calls readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-browser/test.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d2a2a7499934a4d04171c3b9b29008f2039b070f28ee7248dc0bb2760f9c5c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run_test_variant\u0060 is async and calls readFileSync, writeFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd19165f7260b609adc6c3fbd7421649a7d48bccf730b89a30c390b3babb6dd5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060download_stackblitz_project\u0060 is async and calls execSync, unlinkSync, readdirSync, statSync, renameSync, rmdirSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"playgrounds/sandbox/scripts/download.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf0927cb2974315b4f27acc53825440ef65f884c0aa6cb3e435db9d4df72a4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060with_tmp_dir\u0060 is async and calls existsSync, rmSync, mkdirSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"playgrounds/sandbox/scripts/download.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6b3a711686554d61c816fa01e72c4cd0f1f48aa20bb3133fefe6f82323a772"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060polka().use().use()\u0060 is async and calls readFileSync \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"playgrounds/sandbox/ssr-dev.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a54085c85f3eaf6dece25a84bf84e6981cdf68517e79f4602fb3a89a58285d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (17 clone groups): 17 duplicated blocks under packages/svelte/src/compiler/phases/3-transform/ have copies in at least two of the sibling directories client, server \u2014 16 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3a0ba260a6b72bd9d4f4b0c4f88a28299a18ee9d229057548134b2e8a9cdc4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (132 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js:16 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 935 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87d2ef20a5566009a0f091525dd10ea9d057c4d43951e1d725f32e2b99a9f17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (120 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js:71 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js:51 \u2014 the two spans are one implementation copied and then locally edited \u2014 835 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f06fb537ea1c0f2fabc43c7c055aa429c9e09a3c4ad47b4fb04db9d2c19e48e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (64 matched lines \u00D7 2 locations): packages/svelte/src/reactivity/map.js:53 \u00B7 packages/svelte/src/reactivity/set.js:47 \u2014 the two spans are one implementation copied and then locally edited \u2014 335 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":"packages/svelte/src/reactivity/map.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d0c99a0d9c51f11e0f6f2c25663622d7008f182ccad92671ce985465d70a0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/DeclarationTag.js:27 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/DeclarationTag.js:22 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/DeclarationTag.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"663b867d76c149b9fea0ccea99e20e31b6a74af9ac9b7f403ed5e5f62041ca7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js:13 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 234 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc34346c8341d7103f089a18de723b9bd2e7aa71ca4b0be63f642d0bb72b3ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/transform-client.js:106 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/transform-server.js:65 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30f3be7518a59b3aa8c906c115b37bc879679f61d13965ac063604150a5ef73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/svelte/src/motion/tweened.js:109 \u00B7 packages/svelte/src/motion/tweened.js:239 \u2014 the two spans are one implementation copied and then locally edited \u2014 116 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":"packages/svelte/src/motion/tweened.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea7a6d98233189ef98dfc544fef78f27ba8610fafc72ee551e98a0a48eaacb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/svelte/src/reactivity/map.js:96 \u00B7 packages/svelte/src/reactivity/map.js:131 \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":"packages/svelte/src/reactivity/map.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65be54c51989193f552e55678cc89fe894d09cfd26263179c337c5fbe07164a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/svelte/src/compiler/utils/ast.js:300 \u00B7 packages/svelte/src/compiler/utils/ast.js:357 \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":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a046c37920f897540bec17da8353b21670e43cedbc0f526f948b346a9289df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): packages/svelte/scripts/check-treeshakeability.js:13 \u00B7 packages/svelte/scripts/generate-browser-support.ts:293 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"packages/svelte/scripts/check-treeshakeability.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4233f47313c0f9aec8aa2b3fe28185ade74882871e5014c794a4f101c32b614"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js:40 \u00B7 packages/svelte/src/compiler/phases/3-transform/client/visitors/KeyBlock.js:26 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b231e524b6add78dad2f4c828e69c0ccbb4e1bbe24dd743151590b9314dc66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): packages/svelte/src/index-client.js:157 \u00B7 packages/svelte/src/legacy/legacy-client.js:250 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 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":"packages/svelte/src/index-client.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1946a45242d2e990862bac7b2040ea2438b870ab4c7f6aa308f8fddd6a80cd0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/transform-client.js:446 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/transform-server.js:283 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ccd381fcff3cdeec42836e1e6ae4f20e032b64a4a8791a07c3428cff5f54cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js:73 \u00B7 packages/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js:76 \u2014 the two spans are one implementation copied and then locally edited \u2014 114 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1466163d6a4e9e9ec8bf77eee2996252955c919826c6472140540144f8e19c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js:164 \u00B7 packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js:234 \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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f28b91e56d7835868bc622ead510dfb045742b432bd6d52033550d7e3140161"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/svelte/src/internal/client/proxy.js:170 \u00B7 packages/svelte/src/internal/client/proxy.js:234 \u2014 the two spans are one implementation copied and then locally edited \u2014 91 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":"packages/svelte/src/internal/client/proxy.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a6b66171d6038e6bde3db28f9ea6d082ca013a53aedbf0f17da01308980c5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/svelte/src/internal/server/renderer.js:288 \u00B7 packages/svelte/src/internal/server/renderer.js:329 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 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":"packages/svelte/src/internal/server/renderer.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4317bd6a69e83125e9dbcfde3ab98d2fa382e77a8acab45adc974ed97b89227b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/svelte/src/internal/client/context.js:67 \u00B7 packages/svelte/src/internal/server/context.js:7 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/context.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab49d8f315b6fce7d1bd0dc8083712b360f640b4894e9d63f0d61f6caddbc681"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/2-analyze/index.js:577 \u00B7 packages/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js:52 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5040bdc140eed55f39515ceb605412739421b6ba4ee553558354c305d965ec37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js:20 \u00B7 packages/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js:26 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"142a1483405a65a594a6975717efbc54651bcfaadbfc0fa9303f36744f8f8186"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/svelte/src/internal/client/dev/assign.js:28 \u00B7 packages/svelte/src/internal/client/dev/assign.js:52 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"packages/svelte/src/internal/client/dev/assign.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2be81a04fe046655da0b5086b5b2f9cd8e0b6ff5dba28d42528a2d34dfa1bb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/svelte/src/motion/spring.js:112 \u00B7 packages/svelte/src/motion/spring.js:253 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"packages/svelte/src/motion/spring.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"371e76833b5610e5f07d18eba15b082bbce3ca096ef08f54ddcbf792707586f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/svelte/src/compiler/migrate/index.js:1645 \u00B7 packages/svelte/src/compiler/migrate/index.js:1665 \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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8dea7f6e36d940cead2dff4fc4b42f4dab7578feeeb3257c38f686c3ff6b26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/2-analyze/css/utils.js:118 \u00B7 packages/svelte/src/compiler/phases/2-analyze/css/utils.js:163 \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":"packages/svelte/src/compiler/phases/2-analyze/css/utils.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"057a5e90c5900cc03a0308d642dcf105287c523f98c86d6dc4671f8a9ca4748c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/transform-client.js:667 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/transform-server.js:403 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf10576511ade773397847125d94d210dcda2e84e13ad5d96a8bf9e7fb4a067"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/svelte/src/compiler/print/index.js:982 \u00B7 packages/svelte/src/compiler/print/index.js:1141 \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":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"166d03904c15edd0e7a5a5a275a03910e12cec59d93335d74b4d524e3d39e205"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/svelte/src/reactivity/window/index.js:68 \u00B7 packages/svelte/src/reactivity/window/index.js:91 \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":"packages/svelte/src/reactivity/window/index.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa915c7809bbc71167440cb2fa8317eabd858d8eb131baa4fb3f996b71d43e7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5 locations): packages/svelte/src/compiler/legacy.js:479 \u00B7 packages/svelte/src/compiler/legacy.js:494 \u00B7 packages/svelte/src/compiler/legacy.js:543 \u00B7 packages/svelte/src/compiler/legacy.js:557 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41deb59b1d59cedb249bfe2192d9166fe41f9589bdbde2dcd8fd8f5663a929b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/1-parse/read/style.js:207 \u00B7 packages/svelte/src/compiler/phases/1-parse/read/style.js:320 \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":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f065e9555db5b3fb613aa5707da5bf7bfe594d863cb901112d3a98b0c4af2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/1-parse/state/element.js:539 \u00B7 packages/svelte/src/compiler/phases/1-parse/state/element.js:558 \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":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5662c0586740869a904b9096d666a67b5cb97a72a138173c1a90ebca4bcc2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/2-analyze/index.js:968 \u00B7 packages/svelte/src/compiler/phases/2-analyze/index.js:1028 \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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"471dce751bd75cf009879f7e7b93446ffb4c67969f39aecfc92ec0de5fff0943"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/transform-client.js:529 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/transform-server.js:385 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b00472d60e167f2622070488105a2bbe0d71c9e24ff16aff87d45f99c6ec6d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js:16 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 121 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c45574ed2f3a26b09657df1b03c5f4d27302a8e774ff79a6f6db6fd39f87ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): packages/svelte/src/compiler/print/index.js:706 \u00B7 packages/svelte/src/compiler/print/index.js:804 \u00B7 packages/svelte/src/compiler/print/index.js:976 \u00B7 packages/svelte/src/compiler/print/index.js:1147 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/print/index.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5ee4ac18d1d589fa83bc39a992ed3d9178c957d5101e1736262c9c175acd2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/svelte/src/internal/client/reactivity/props.js:65 \u00B7 packages/svelte/src/internal/client/reactivity/props.js:132 \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":"packages/svelte/src/internal/client/reactivity/props.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fb8a63298b7793cbf6658bc7ed898f2de1e6694aa59fae2cec8bff5e657352"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/svelte/src/compiler/legacy.js:433 \u00B7 packages/svelte/src/compiler/legacy.js:447 \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":"packages/svelte/src/compiler/legacy.js"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"805c4c274f4f0adaef2c33e40dd735476ebdd97f6814d73e9574fdb8248af7d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/1-parse/read/style.js:236 \u00B7 packages/svelte/src/compiler/phases/1-parse/read/style.js:253 \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":"packages/svelte/src/compiler/phases/1-parse/read/style.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47a94a266784e896a7f54bd8784f342a67aefbadf0daea8e376cc6b69643a8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/AttachTag.js:12 \u00B7 packages/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js:35 \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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AttachTag.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb216f0bfaf8b755364dc6cad068cb8392b70c037a26ae6deade017fa582ca9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js:10 \u00B7 packages/svelte/src/compiler/phases/3-transform/server/visitors/Fragment.js:5 \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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde83c2e1bf5f73516690cc3dba46f4a8498a0a7e84721ce6bee7040df8b2419"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: benchmarking/benchmarks/reactivity/tests/kairo_broad_block.bench.js:3 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../../../packages/svelte/src/internal/client/reactivity/effects.js) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/benchmarks/reactivity/tests/kairo_broad_block.bench.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d28d958443f38b5608777e7cbfca9e6d9f7d8b72d006c5d45686a62a3087ad7"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: benchmarking/benchmarks/reactivity/tests/kairo_deep_block.bench.js:3 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../../../packages/svelte/src/internal/client/reactivity/effects.js) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/benchmarks/reactivity/tests/kairo_deep_block.bench.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ece9b628edc9bec39671b2acc0b5db8dac5f65e6550dadb44954fb3398f9f33"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: benchmarking/run.js:3 reaches into another package with a relative path (../packages/svelte/src/internal/client/index.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/run.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"504558d7594814902633fb49121db41ae2c3e6fbdd9943d71dbc66a0bb02c4e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function check_element (cyclomatic 181, cognitive 243): check_element has cyclomatic complexity 181 and cognitive complexity 243; 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d54eb41b9ec72b0503894b677b502e8c9687347726c8b31464c4cc9acff008"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyze_component (cyclomatic 163, cognitive 360): analyze_component has cyclomatic complexity 163 and cognitive complexity 360; 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":"packages/svelte/src/compiler/phases/2-analyze/index.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceaac40d4da230d88af12bdf5509ab42493dfef04e6777e443822bdee61a4b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RegularElement (cyclomatic 124, cognitive 167): RegularElement has cyclomatic complexity 124 and cognitive complexity 167; 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b7e73f91bd6e93fcb544ecab1d017b783baec9ae05c719975fd8ff7a24de7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function constructor (cyclomatic 107, cognitive 131): constructor has cyclomatic complexity 107 and cognitive complexity 131; 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":"packages/svelte/src/compiler/phases/scope.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"783ee13f1c6282220ecc0b4381b6da821039261c5fdaf24472fe1b9e78cae83e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function client_component (cyclomatic 90, cognitive 134): client_component has cyclomatic complexity 90 and cognitive complexity 134; 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":"packages/svelte/src/compiler/phases/3-transform/client/transform-client.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f7a19d70e843d4b2e71573fde92a3ae5f22c47b15d34d76909104f750cfbed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function element (cyclomatic 89, cognitive 150): element has cyclomatic complexity 89 and cognitive complexity 150; 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":"packages/svelte/src/compiler/phases/1-parse/state/element.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c228279c2b72eb38ef8c463bac574360cf02e8dcdb849782b80de69cfbf5ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CallExpression (cyclomatic 79, cognitive 84): CallExpression has cyclomatic complexity 79 and cognitive complexity 84; 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d9af6e0e7e8113f51098718b45f5bbacb4f9cc98f4438e66fd6e3aecef3f0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function build_component (cyclomatic 78, cognitive 150): build_component has cyclomatic complexity 78 and cognitive complexity 150; 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f88e3c9293b09abfe33cdc09ca3b6acdb0f3f75c89c00348180fb6b148d16a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BindDirective (cyclomatic 76, cognitive 57): BindDirective has cyclomatic complexity 76 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1a7bd7b54162ff99f601c3b737139bd030c6ad7d0c55ba7d995b2c38c0ed45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run_test_variant (cyclomatic 74, cognitive 119): run_test_variant has cyclomatic complexity 74 and cognitive complexity 119; 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":"packages/svelte/tests/runtime-legacy/shared.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2403611372e6d36b7344acaa1c58e42cc19289045fe1c5a776be0c5bab0c66c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrate (cyclomatic 73, cognitive 130): migrate has cyclomatic complexity 73 and cognitive complexity 130; 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":"packages/svelte/src/compiler/migrate/index.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab00a0f2c0b1edddc159e604335f429e87980858a0ddedfa12fba2f0dc137490"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BindDirective (cyclomatic 72, cognitive 132): BindDirective has cyclomatic complexity 72 and cognitive complexity 132; 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c8953e32375ba821c8f8cc49ac9bc3b62e4e14cfd5f7033948eda5bc03683b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function build_element_attributes (cyclomatic 71, cognitive 136): build_element_attributes has cyclomatic complexity 71 and cognitive complexity 136; 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":"packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23f93e901dfdf4519653224c076d0fdf7df2f8fc561086894b412d975159ee0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function set_attributes (cyclomatic 71, cognitive 113): set_attributes has cyclomatic complexity 71 and cognitive complexity 113; 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":"packages/svelte/src/internal/client/dom/elements/attributes.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30d408c8d4ed299fbc60dda0c3b609705012441ec91031217604f5e08bc3219"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VariableDeclaration (cyclomatic 68, cognitive 229): VariableDeclaration has cyclomatic complexity 68 and cognitive complexity 229; 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6b305069cd763a6aaca0f00b95124131746f16b788d4407abeb16f11fc0b61"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clean_nodes (cyclomatic 68, cognitive 70): clean_nodes has cyclomatic complexity 68 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"packages/svelte/src/compiler/phases/3-transform/utils.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9aa97a4e88a5e316c3426883cf191e9e075ca0b4aee95d7c4eeba8362a34ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Identifier (cyclomatic 66, cognitive 107): Identifier has cyclomatic complexity 66 and cognitive complexity 107; 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f11a51798f3844b3694b523919ac640765a7e4634069bff13845bce0d3f9cfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function relative_selector_might_apply_to_node (cyclomatic 64, cognitive 142): relative_selector_might_apply_to_node has cyclomatic complexity 64 and cognitive complexity 142; 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":"packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6701b633c3a1ae61bca3e56f59e36abcbb94faf61c4d27fb52c17ab36ea3721"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RegularElement (cyclomatic 60, cognitive 106): RegularElement has cyclomatic complexity 60 and cognitive complexity 106; 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":"packages/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8defdf27d2a13fe778717c98bf1e48259202253f2ca353e93b2525112ec137"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function build_assignment (cyclomatic 60, cognitive 74): build_assignment has cyclomatic complexity 60 and cognitive complexity 74; 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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"44da6370d603b38769f82ebce36be6b1077c1bc87cdfee96c076639f07d17a33"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 33 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: packages/svelte/src/compiler/phases/1-parse/utils/entities.js (2234), packages/svelte/src/compiler/migrate/index.js (1829), packages/svelte/src/compiler/phases/scope.js (1316), packages/svelte/src/internal/client/reactivity/batch.js (1227), packages/svelte/src/compiler/phases/2-analyze/index.js (1205), packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js (1088) (\u002B27 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/attribute-sequence-expression/main.svelte:2 imports \u0027./Child.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/attribute-sequence-expression/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3745db161c19676eeda473493f3b2c11f90b16e818a3dc4c6bc9255d45fb7ecf"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-2/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-2/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"811bcef688aa360c6b079e9b6b2cb20089a16094c41b1b7813c8d7fa466e6e2a"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-3/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-3/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc42ac21edffd8e758306b40ddc60c0ea00ea5e1dbf2d3b63f3348dbdf114ec"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-4/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-4/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c254242d7b30c03c607ca524fa4ff40a97b8b763b7fa5fd7328764c4bf5ef8bd"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-5/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-5/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cff80af68b14dcfae7b2b3476caed6e04ddb09108aee576f604e1a0aaf4e138"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-6/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error-6/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb3daae28b6aa5568c217d4fd86122ca110e3a55bcf1e76752d8603323796dd"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-duplicate-error/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbec7bae44017d04c0da5cf8df35689536f4f9585595ebd51c14c7ed6dac4f99"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-nested-error-2/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-nested-error-2/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60da48c4ccd983a596be5c8b0537f83923200ad7e0303f799f8683d7dd2f7cf"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-nested-error-3/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-nested-error-3/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd97e39f201d599a10883234473c11ba1eeff2f61afef754e54f7185b33cfb53"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/component-slot-nested-error/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/component-slot-nested-error/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dbd2ced8a3167aadd9cd68b5df5810ddc3727cc4420cd8d99dfa6fd14abf47"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/dollar-binding-import/main.svelte:2 imports \u0027./somewhere\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/dollar-binding-import/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6921a54ec52458b77dbe33f33764a79c63cb0f75b5ea94db45c94dff4d43ede"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/let-directive-children-snippet-expression/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/let-directive-children-snippet-expression/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9b5019cce8f229b8915bb2881864943eb589e7c9568d526ca12513ac42f7d0"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/let-directive-children-snippet/main.svelte:2 imports \u0027./irrelevant\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/let-directive-children-snippet/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"286ce66c55b8431286ba88be841662f6b7e1187e2a3a01d3a7b15bf2f360d768"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/compiler-errors/samples/unbalanced-curly-component/main.svelte:3 imports \u0027./Component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/unbalanced-curly-component/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5976c1b1929ea2b155a493a98f38c2a2489dd61e1b13cd3ef41bf62cd1389fd0"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/migrate/samples/named-slots/input.svelte:2 imports \u0027./Component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/migrate/samples/named-slots/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34603387631a791268f6a35bf71e6818b1ac083656e0159e7b6f9b800eb94a67"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/migrate/samples/reactive-statements-reorder-not-deleting-additions/input.svelte:5 imports \u0027./blah.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/migrate/samples/reactive-statements-reorder-not-deleting-additions/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da490a94fd8f85f7542ee04288230c7ec70e8dfaa0fe558111fc3cabede4e130"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/migrate/samples/slot-non-identifier/input.svelte:2 imports \u0027./Component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/migrate/samples/slot-non-identifier/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b4cd0794af23624822b87939ec63c6deeaabdc9b220749500a78f02e75fd62"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/migrate/samples/slot-shadow-props/input.svelte:2 imports \u0027./Component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/migrate/samples/slot-shadow-props/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d619a095d6c0628055175589a58f96ad53a20865a2eb501431dcfecd16042596"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/migrate/samples/slots-below-imports/input.svelte:2 imports \u0027./Foo.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/migrate/samples/slots-below-imports/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a7e6e3ee1ff02289371e1dfb7dcdac9d543bf5b5d26ef7442bbec4c605da0b"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/parser-legacy/samples/dynamic-import/input.svelte:5 imports \u0027./foo.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/parser-legacy/samples/dynamic-import/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51709f0bd2e1a351b7c8aaa1d1a7ff62ed17230359b99cd95cb7830f724cebf1"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/print/samples/component/input.svelte:2 imports \u0027./C.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/print/samples/component/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe45a47b98c6842d5d6a694deae14787d9677681789cef75dc3360315876ff1"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/print/samples/component/output.svelte:2 imports \u0027./C.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/print/samples/component/output.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1953f0fbad13f80145c0973f9dce9d61243892a1cf28978f1626396d5786220a"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/print/samples/svelte-fragment/input.svelte:2 imports \u0027./Widget.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/print/samples/svelte-fragment/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8573047ef985937348f9aeed257c3754103da7ea6789f9e8ab9f384ee89dc1"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/print/samples/svelte-fragment/output.svelte:2 imports \u0027./Widget.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/print/samples/svelte-fragment/output.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91679aef3f6523b39b3fddd40ba13076ad5c2b84f6784326c453f623c4b7df33"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/snapshot/samples/bind-component-snippet/index.svelte:2 imports \u0027./Child.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/snapshot/samples/bind-component-snippet/index.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34f6d59d0fb40330d119eaec0664b0f5de0f2018aff5559ae71cc87911d13be"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/suite.ts:96 imports \u0027./_config.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/suite.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fdf446297c28aa5c13039ac5fec34c65f3137a4530a38a3eaab9c47e1ce834"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/types/component.ts:345 imports \u0027./doesntexist.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/types/component.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a213d1b4cd7bd7cd0b1a482172581eee0853fef3f8708298c03fb6276f29ad"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/a11y-label-has-associated-control-2/input.svelte:2 imports \u0027./component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/a11y-label-has-associated-control-2/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2916e4d7d14dec1bb5808c0281f79a90827000be905ad99ae17a43917e2bdd"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/a11y-label-has-associated-control-3/input.svelte:2 imports \u0027./component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/a11y-label-has-associated-control-3/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d42ea77eed036f1b5f40cb7e19e39a9f7a0cd35630abbc48021325d89457ab6"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/a11y-label-has-associated-control/input.svelte:2 imports \u0027./label.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/a11y-label-has-associated-control/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2440998e076165d52a6c2e586de069512bf16cda82e11cdaa803ab8f9404eac4"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/a11y-not-on-components/input.svelte:2 imports \u0027./Widget.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/a11y-not-on-components/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b0b5e9209e554145b3a97efd7ca717f3763c3844b10ff4564b3adb9438208c"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/action-on-component/input.svelte:2 imports \u0027./Widget.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/action-on-component/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a054c61da668c730a25c67d668bfcf6340102889e0b6eb1a2f9176b5dc3f97d4"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/animation-on-component/input.svelte:2 imports \u0027./Widget.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/animation-on-component/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fe49467f6ccad837cdcef71809ff6f07cd8b6d42ffc3e197c518cc151b17ad"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/await-component-is-used/input.svelte:2 imports \u0027./Component.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/await-component-is-used/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"366d1867dad36bc43ccb7227504f7ea3c2725529bf1bb8279446e55842e91f66"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/binding-import-component/input.svelte:2 imports \u0027./Input.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/binding-import-component/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b68eca91e04994152a31ff9bf6bea8446f886705472e142b8c7eedddaf0dce"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/binding-import-element/input.svelte:2 imports \u0027./dummy.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/binding-import-element/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c057a522a915f09a183920fb5a80504bba5a54c812417aabc0b3350a6e602c2d"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/component-event-modifiers-invalid/input.svelte:2 imports \u0027./Button.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/component-event-modifiers-invalid/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42de8ee713c4484a313e5b12c9239281f6721146c92fa0a666925c2cb38e4e2c"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/component-legacy-instantiation/input.svelte:2 imports \u0027./Somewhere.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/component-legacy-instantiation/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"629045193e603a028ff0186083b454f857658082d1b6fcfe55698e7807ff88c5"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/component-name-lowercase/input.svelte:2 imports \u0027./MyComponent.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/component-name-lowercase/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2447ad2bce367a660d4948b1ff3282b06213b7c05884f761344b544eb97f295"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/svelte/tests/validator/samples/component-slot-dynamic-attribute/input.svelte:2 imports \u0027./Nested.svelte\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/validator/samples/component-slot-dynamic-attribute/input.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1483609b24c0baecea8b1f708e3618292c658c0cb4bad2d1148c484efaf4790e"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but packages/svelte/tests/compiler-errors/samples/attribute-sequence-expression/main.svelte and 56 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/tests/compiler-errors/samples/attribute-sequence-expression/main.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71e4a67d21f19de21a4b95e67ff8a819e10b6df2c10d756776c7104a3212824"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~429 LoC): no import path from any entry point (56 application, 44 tooling, 7491 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/scripts/process-messages/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d83d6801deb8655b885b2db5a1a00c7eb56d2b90d7d1ad9241a513dccbd924"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~67 LoC): no import path from any entry point (56 application, 44 tooling, 7491 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/compare/runner.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3d146d90393ccf8c4b67c373ce13429eed34875321f1f63b591d4a6050566b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~24 LoC): no import path from any entry point (56 application, 44 tooling, 7491 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmarking/benchmarks/ssr/wrapper/App.svelte"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25c1eeaa02065a46dffff98f5a3da9587af0cf1f67ad6e97a2f937ea663c690"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~19 LoC): no import path from any entry point (56 application, 44 tooling, 7491 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vitest-xhtml-environment.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65610b8f123dff747a4269e269ddb828612ed425491bc0eb20d093a217afa75f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027log_reactions\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"683cc1b6b2f292d05b7d1fa4eef75c6fb3b06004ad56603441c2b6fca56a9933"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027log_inconsistent_branches\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/dev/debug.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d94c8c5c8ef9106f49616393dcf92fadbf32c383d43c5565e3e8b1f4cacab0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027not_equal\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/reactivity/equality.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc1883f083b5ead6cdacbe1900b46523a736029c57e34b5909c7b4e6e1525b5"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): packages/svelte/src/attachments/index.js \u2192 packages/svelte/src/index-client.js \u2192 packages/svelte/src/internal/client/index.js \u2192 packages/svelte/src/attachments/index.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/attachments/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5beec1f3bc3fcb954f4f995cbc96af05fea526c430200836e22845361d1043ab"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js \u2192 packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js \u2192 packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad965c4c55bedca87428111fee3d49ee61a74d1b8924d74cdae347fa24c806c"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/svelte/src/compiler/utils/ast.js \u2192 packages/svelte/src/compiler/utils/builders.js \u2192 packages/svelte/src/compiler/utils/ast.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/compiler/utils/ast.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d6fe7e1b594d0f34ad5f760f6bf6319dd87d6d9893bd6a87b2c68897a99ecc"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/svelte/src/internal/client/context.js \u2192 packages/svelte/src/internal/client/reactivity/effects.js \u2192 packages/svelte/src/internal/client/context.js (one verified cycle inside a mutually-dependent group of 18 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/client/context.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9300f3ceb818c903a1a910bbb841f3c8d6b7ff4b8aab95da34e8bf78e8c54d"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): packages/svelte/src/internal/server/dev.js \u2192 packages/svelte/src/internal/server/renderer.js \u2192 packages/svelte/src/internal/server/index.js \u2192 packages/svelte/src/internal/server/dev.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/internal/server/dev.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab0e0ea00537cfdccfc5b1055e3b52a0c6e3364423a4f7d0263885f7a212200"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/svelte/src/reactivity/url-search-params.js \u2192 packages/svelte/src/reactivity/url.js \u2192 packages/svelte/src/reactivity/url-search-params.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/svelte/src/reactivity/url-search-params.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d2aee906a0e12fa5f0e60f2fb7452f83210ef01d5951c382fca9caa29d224b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attribute.type === \u0027Attribute\u0027 \u0026\u0026 is_event_attribute(attribute)\u0060 appears character-identically in 3 files \u2014 packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js, packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteDocument.js, packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.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":"packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8eba4461300dca755cf5319b7cecec2ff1d4d924e6a46232219e218d4fcd99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_ignored(element, \u0027hydration_attribute_changed\u0027) \u0026\u0026 b.true\u0060 appears character-identically in 2 files \u2014 packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js, packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07ee72983974d68f98137c672a79c27980608354900b9e67b222ed018d3f7ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_ignored(node, \u0027state_snapshot_uncloneable\u0027) \u0026\u0026 b.true\u0060 appears character-identically in 2 files \u2014 packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js, packages/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.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":"packages/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bbab77107e8ac64b6af4073c834220a5c47b2ceff463eabf22f6531592650b"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":32,"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."]}]}