{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"install.installPackage (cyclomatic 43): install.installPackage has cyclomatic complexity 43 (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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67c538c71b8a0843ea593deaa4022949a75ccd9b5b6f254ce641a625e472cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::cli::cmd_install (cyclomatic 40): rosie::cli::cmd_install has cyclomatic complexity 40 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54cd06444878f78305f11d929fb921ddbaaef3b7f5336de97d65d07e928c15e"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::install_package (cyclomatic 39): rosie::install::install_package has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"57205dc6f7b62716750a3d5b381e80da86ed3c1ca82538d95265dd36a265c17e"}},{"ruleId":"D1","level":"warning","message":{"text":"install.updateSkills (cyclomatic 35): install.updateSkills has cyclomatic complexity 35 (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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a0a525e8517486d2b4a735e702668dd372c8d0eff11d3280dad817d22340fc"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::update_skills (cyclomatic 31): rosie::install::update_skills 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":"src/install.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11fc9a979b5c165629e45b22a244d3ab0b1e9cb4b09dbacaa8cafb257843f67"}},{"ruleId":"D1","level":"warning","message":{"text":"install.installLocal (cyclomatic 31): install.installLocal 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"729f6fbd39ad2369b4ffe557c35feaeb565bab35ad94c818f2544ec874eef403"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::install_local (cyclomatic 28): rosie::install::install_local has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e4c4ad890ca13fc3958e7f02683270de63213f428d316b01bf87ce1edafeb0"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.cmdInstall (cyclomatic 26): cli.cmdInstall 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":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0194ba6b60a9883d0a334d212e59ba3210451bc50063071e9054aaf48f3f994"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::install_from_lockfile (cyclomatic 25): rosie::install::install_from_lockfile has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b92137616d382611c00b98191d21131f8cd527554c51db880896babeb60a386"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitize.stripHtmlCommentsOnLine (cyclomatic 25): sanitize.stripHtmlCommentsOnLine 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":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a3abfd0888b270c8374f6b15b73d15b35fa03e2a9e2c6de4d1ed0318df7b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"install.installFromLockfile (cyclomatic 25): install.installFromLockfile 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c60f39c6f53d678e6a9c3577f3f771b8868ac4e9edf7c3f3db5887da6893a5"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::remove_skill (cyclomatic 21): rosie::install::remove_skill has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d793557bbc11cba4ebe1942d780cf52a6485629a0a9b491018caa2715d73e28d"}},{"ruleId":"D1","level":"warning","message":{"text":"unified-diff.diffLines (cyclomatic 20): unified-diff.diffLines has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1606d628c361d9a2f4252c89a219afc87c5e64db69347e6ebbc4fe9b0b74fbb7"}},{"ruleId":"D1","level":"warning","message":{"text":"unified-diff.createUnifiedDiff (cyclomatic 20): unified-diff.createUnifiedDiff has cyclomatic complexity 20 (threshold 15). Of this number, 19 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":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cdec0e445eaa714b701c9b9b7a64a8396bdd6a958bc33c17c80d30bb1e9f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"install.removeSkill (cyclomatic 20): install.removeSkill 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9eff04644efb578fb764a43fb7ca35f1a0eb6bb15561c6d481ed5bcab997b51"}},{"ruleId":"D1","level":"warning","message":{"text":"install.installReferenceFromExtracted (cyclomatic 19): install.installReferenceFromExtracted has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"af94a4919e96de6a24be1277089a4ac16ace51cf96c3a4947b6f4e1619d90279"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::skill::parse_skill_file (cyclomatic 18): rosie::skill::parse_skill_file has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/skill.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91363aebdde6f99f1f24c3ff256aa32dd32e5e6b83453a078e958bfe1815d99"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.parseRefs (cyclomatic 18): resolve.parseRefs 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":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9003390ebd6cc56412857c9e8789b430371714800d97dbf4b47848c89addf1"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::update_npm_package (cyclomatic 17): rosie::install::update_npm_package has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e77a31c067d7eccb57d48afd14823e1e78abcd3e9d4292fc322ef977a93cd7"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::util::read_json_string_field (cyclomatic 17): rosie::util::read_json_string_field has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/util.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"57955b20c3b9bd27ed104c647078c59690a995c33efee1d1a5b47bc9e27fddee"}},{"ruleId":"D1","level":"warning","message":{"text":"resolve.parseSemver (cyclomatic 17): resolve.parseSemver has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d4f7e007109366510ce34d0f8ac0a25661c75b3ecad50052c6816e2b1c5fdb"}},{"ruleId":"D1","level":"warning","message":{"text":"skill.parseSkillFile (cyclomatic 17): skill.parseSkillFile 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":"npm/rosie-skills/src/skill.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a08076379606a5750c484fb794731ffc0e4683d8bb018f95debb03260c5a23b"}},{"ruleId":"D1","level":"warning","message":{"text":"install.updateNpmPackage (cyclomatic 17): install.updateNpmPackage 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad925095dc164239c0f539ec4503fd64ac5aa5c7d381cb397511a7ffa8bb1c5"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::install::install_reference_from_extracted (cyclomatic 16): rosie::install::install_reference_from_extracted has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77571987c72d007a223068e07db854189af8ba0c879af6ea409bf5211fe7819"}},{"ruleId":"D1","level":"warning","message":{"text":"rosie::sanitize::strip_html_comments_on_line (cyclomatic 16): rosie::sanitize::strip_html_comments_on_line has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sanitize.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bdbf76904c23d7f57b4b95fc4f8cca8767a7bf8fee28882d1df796cf7b1887"}},{"ruleId":"D2","level":"warning","message":{"text":"install.installPackage (cognitive 85): install.installPackage has cognitive complexity 85 (threshold 15). Drivers by points: if/else 30 (46 pts), error handling 5 (13 pts), ternaries 6 (13 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc240142ce43977f3c47c1b4ea7b73bb3139e082b968fbc790450173252a380"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::install_package (cognitive 80): rosie::install::install_package has cognitive complexity 80 (threshold 15). Drivers by points: if/else 38 (59 pts), loops 5 (11 pts), match/switch 6 (10 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb04a7b2c79f412f3914ec60c9e7704e2b5d5807cf886975070296520e0675a9"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::update_skills (cognitive 63): rosie::install::update_skills has cognitive complexity 63 (threshold 15). Drivers by points: if/else 27 (51 pts), match/switch 3 (6 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0101134c7f54f98a4f1844b0423deffb62ebfb6ce9d305f69374d6b6974d5546"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::install_from_lockfile (cognitive 60): rosie::install::install_from_lockfile has cognitive complexity 60 (threshold 15). Drivers by points: if/else 26 (49 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"454c05dbb4ac9f96c2e68f3f0d90919753b7567f9caf8aeb856d3bbef1b7e96c"}},{"ruleId":"D2","level":"warning","message":{"text":"install.installLocal (cognitive 57): install.installLocal has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (31 pts), error handling 6 (15 pts), ternaries 4 (7 pts), boolean chains 3, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c65755ff27d1a18457d30386c3cced5f2aaa043e64fe9ed3788270830038fc"}},{"ruleId":"D2","level":"warning","message":{"text":"install.installFromLockfile (cognitive 57): install.installFromLockfile has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26 (51 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4064c15574c11b5832a845587eadaf7a654bfac770f52634ab7492a353c658e"}},{"ruleId":"D2","level":"warning","message":{"text":"install.updateSkills (cognitive 53): install.updateSkills has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 6, loops 3 (4 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"559fe19cc95361516dca04344640bc145642ee7ed539663c21b73dcc20be544f"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::install_local (cognitive 45): rosie::install::install_local has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26 (39 pts), match/switch 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4614f270fc26e9fb63a05515a902cc053efb8b4b6dc1cfd1e4ef3f0727c544"}},{"ruleId":"D2","level":"warning","message":{"text":"unified-diff.createUnifiedDiff (cognitive 39): unified-diff.createUnifiedDiff has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 6 (9 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 18). Of this number, 37 points are the body\u0027s own statements and 2 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":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"49107638188b18db4031f048aea0b1f4a45f45f53b175c976d994c125670bff6"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::skill::parse_skill_file (cognitive 34): rosie::skill::parse_skill_file has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (26 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (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":"src/skill.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d993cba52693441374cfe31cd01cffefd80ef5d892c6292fe0098ae6656ef2a"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::sanitize::strip_html_comments_on_line (cognitive 33): rosie::sanitize::strip_html_comments_on_line has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sanitize.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3caae92c0a9853b413dfc30bdcae5516d4d12dc0e900a7232521435c86ee8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.parseRefs (cognitive 33): resolve.parseRefs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (7 pts), boolean chains 4 (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":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d032b215fb25fafd0297cc6362020fedd46f8fa5a0a2e803aa1ddd380d2d7917"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitize.stripHtmlCommentsOnLine (cognitive 33): sanitize.stripHtmlCommentsOnLine has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"206d31ef988f903af6fb9193630ddb771a6b8a16e24772eb3e7967ac08062e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::remove_skill (cognitive 32): rosie::install::remove_skill has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (25 pts), match/switch 2 (4 pts), loops 2, 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":"src/install.rs"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e36af37e23b5b09497745b2e6c0d9a3e26773124d74afc6aa06375dbb68d02"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.cmdInstall (cognitive 32): cli.cmdInstall has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 7, ternaries 2 (4 pts), error handling 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":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45f002f1220b67f036e4af9293a5913a10618c3df46e8cdfcb5187e85fb53d4"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::util::read_json_string_field (cognitive 31): rosie::util::read_json_string_field has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (8 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/util.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b0be7955d413d15f6e53c4cbc083aaaddc8bda2231e7b46f96ce28a976a5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"install.removeSkill (cognitive 31): install.removeSkill has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (18 pts), error handling 4 (9 pts), boolean chains 2, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1385c6a696c1567b24716ee977d0723a21e3938845d13aeb90ea086cf2af57"}},{"ruleId":"D2","level":"warning","message":{"text":"skill.parseSkillFile (cognitive 29): skill.parseSkillFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 3, error handling 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":"npm/rosie-skills/src/skill.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"af33644b6bfe9e96ac1e1feffe3f59063ba526f1577f258f8fd5e3d044d094d7"}},{"ruleId":"D2","level":"warning","message":{"text":"install.installReferenceFromExtracted (cognitive 28): install.installReferenceFromExtracted has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 5 (6 pts), error handling 2 (3 pts), boolean chains 2 (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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca83c8c9970a38aca82f0d02663c2eda701de85c99186468a5da4f972fd37e0"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::cli::cmd_install (cognitive 27): rosie::cli::cmd_install has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, match/switch 1 (2 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":"src/cli.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff22dca7988218a590e91c184cb477381987debe7e947300c8001f1caffe16d"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::update_npm_package (cognitive 26): rosie::install::update_npm_package has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 4 (7 pts), loops 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"503c647de059d368cbd8ded397bbcee4e7dc29a51a9696858c62af1e9de5b630"}},{"ruleId":"D2","level":"warning","message":{"text":"unified-diff.diffLines (cognitive 25): unified-diff.diffLines has cognitive complexity 25 (threshold 15). Drivers by points: loops 8 (14 pts), if/else 5 (6 pts), boolean chains 5 (nesting depth added 7). 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":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d5c86f98f1173fe5637a9da1bd19ca9a92ebd26195711178b35c500bd748b5"}},{"ruleId":"D2","level":"warning","message":{"text":"install.updateNpmPackage (cognitive 25): install.updateNpmPackage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3, boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ec5f00c1d0a909c8ba146c05f3370d555df2dc2fb127cdccef7685d2cc9be9"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::install_reference_from_extracted (cognitive 24): rosie::install::install_reference_from_extracted has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 7 (9 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c0d09014b845f73d2fbb4d217ab0ef3cccc69e6643b0a6922d95986529f8a1"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::list_installed_skills (cognitive 24): rosie::install::list_installed_skills has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbcd6846b31f10d9aa520d11ae978792573583c53f00feb50ff2732ca6b3f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::resolve::parse_refs (cognitive 22): rosie::resolve::parse_refs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (3 pts), match/switch 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":"src/resolve.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1387c2ae437ade8c9948877aea9c9a2661f0ee48c30baa8179d5781910549a"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::install::install_npm_references (cognitive 20): rosie::install::install_npm_references has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"183a564c72398889790a94d764f14f2caf5f206b3408510200c2386859a4b4ae"}},{"ruleId":"D2","level":"warning","message":{"text":"npm.collectFiles (cognitive 20): npm.collectFiles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/npm.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a611376742a2fcf452a6f4f50483b456fd8bb5b2f618bdca0ade4d7a91285dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::npm::collect_files (cognitive 19): rosie::npm::collect_files has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (6 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/npm.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"289c56850dbd446ba0e333944d3adaa10982becbd14b13b38d9f42740f921605"}},{"ruleId":"D2","level":"warning","message":{"text":"install.installNpmReferences (cognitive 18): install.installNpmReferences has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3, error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f3e9e60974b3393b796dfb7304a46061e3be60033967f4abc593cd52a1395d"}},{"ruleId":"D2","level":"warning","message":{"text":"install.listInstalledSkills (cognitive 18): install.listInstalledSkills has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (5 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34f149592e630ab03b5ac70a787285bbc49c36bd28fc53e7686a590de1970bf"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::skill::strip_yaml_frontmatter (cognitive 17): rosie::skill::strip_yaml_frontmatter has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (5 pts), match/switch 2 (4 pts), 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":"src/skill.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f7ab698d785fa89bc8e5ded6bbfb2f2306e8e8717e1cd2921e84f9cff0626"}},{"ruleId":"D2","level":"warning","message":{"text":"agentsmd.extractFirstH1 (cognitive 17): agentsmd.extractFirstH1 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1, 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":"npm/rosie-skills/src/agentsmd.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69eb2772f91ab0353345e2c99b7a885258691ae2f8c4cc00a6709f722405999"}},{"ruleId":"D2","level":"warning","message":{"text":"agentsmd.rebuildBlock (cognitive 17): agentsmd.rebuildBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 2 (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":"npm/rosie-skills/src/agentsmd.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac037f1692642a2ae79ef6ae50e55bdc011386927b5102dff908b30a5bd89f35"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.parseSemver (cognitive 17): resolve.parseSemver has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae44010163a91f5b015bf396d7847f440c885d938325619fa680f519badb6448"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve.bestTag (cognitive 17): resolve.bestTag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 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":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"85040e9721fd044ba74ebecc7bd7e3db3a9554d81f95016f111246cca02e1b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"rosie::agentsmd::extract_first_h1 (cognitive 16): rosie::agentsmd::extract_first_h1 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 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":"src/agentsmd.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d94a6b1976c04e6f3f5a310743a79d9e62d5593101bad96eb2d2814075f1b7"}},{"ruleId":"D2","level":"warning","message":{"text":"unified-diff.lcsRegion (cognitive 16): unified-diff.lcsRegion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ffa743235eadf40c43aca5933267a5cca14c25f6325e54b52e34780505bf8d"}},{"ruleId":"D2","level":"warning","message":{"text":"install.npmInstallOne (cognitive 16): install.npmInstallOne has cognitive complexity 16 (threshold 15). Drivers by points: error handling 6 (8 pts), if/else 5, boolean chains 2, ternaries 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f6432172891d8848bf0e457e84db34a7875701ccf6f03660034cedb15aa957"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/install.rs: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 704 over it, 2.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbd70e4c9cfe0668bea2871365124fbb8b5f0ab60cda6477b1ab6bc0d42241d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rosie::install::install_package: FunctionTooLong \u2014 rosie::install::install_package runs 216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1096bab17f61f7f7f76841de6bc2b1f6d10cdc5e2644d573c457dced9c95a3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/install.ts: FileTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 572 over it, 2.14\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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b25ab1233d804ac3a9c8a184cb9067a4fa42bd2d39355feac257c2bd16c63f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: install.installPackage: FunctionTooLong \u2014 installPackage runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"345e27ed367d4918e81a1dbafdd5184da3810fa8486ef0a131561ffcd88fff9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rosie::install::install_from_lockfile: FunctionTooLong \u2014 rosie::install::install_from_lockfile runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f398451ae06aad943d8fa4946df8569e29f46179df2797040bb4d1a63716ba92"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rosie::install::update_skills: FunctionTooLong \u2014 rosie::install::update_skills runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff71e3a10108e783b4e81c2a595528b6f747bdae6f72dd888fc54054a28b5d4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: install.installFromLockfile: FunctionTooLong \u2014 installFromLockfile runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9d145fb7322dab6dd15bf9432efacf61517600820ed556f04016aac214a9ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rosie::install::install_local: FunctionTooLong \u2014 rosie::install::install_local runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"src/install.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c6942d7c2b8825eb9e6582c2216a60f6a9a614f6e2819af8a3320a1dc8b148"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: rosie::os::wasm: TooManyFunctions \u2014 32 free functions. The bar is 30 free functions; 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":"src/os/wasm.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"965817b82caf37e752bc0ed754c649ecd2b17d02bb4b03b1075682306e3fc827"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: rosie::os::native: TooManyFunctions \u2014 31 free functions. The bar is 30 free functions; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/native.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55ab1a8091e816deb70488fff088ebb50116a3012ac7137f3d103ebe126f538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/install.rs:169-189 | src/install.rs:247-266 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62b5fe354a7f15ed73bac4464d1ada9d8f82cf1db631dd9eb3ce07980b9a7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/os/wasm.rs:240-263 | src/os/wasm.rs:316-334 | src/os/wasm.rs:372-391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d326a0901164ab49470c99f9161193a568d5ac2dced49510ebce21be717f69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/os/wasm.rs:176-188 | src/os/wasm.rs:190-202 | src/os/wasm.rs:340-360 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6163b28db3dd7c9b05971648c0913df0afea883aadc6061a2aa1774016daff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/install.rs:143-152 | src/install.rs:154-163 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bdb0680132fbadf2f5e9df0da1532c8c00788b41560bc36b8337dd97f4d2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/os/wasm.rs:143-151 | src/os/wasm.rs:204-212 | src/os/wasm.rs:214-225 | src/os/wasm.rs:227-238 | src/os/wasm.rs:459-467 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c1d61e1ec85495d1f284cabd98ff105ec4f31d6a9b4c80cc45e0e381f5c8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/os/wasm.rs:409-414 | src/os/wasm.rs:416-421 | src/os/wasm.rs:423-435 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6011907cf13d67cff83479efe0727fceb7b1459c6f9ba08b897b454b2da980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): src/cli.rs:211-236 | src/cli.rs:336-360 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli.rs:211\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09d11c0c17917462ad011ba0872a0546efb351c72189672f18e62b22071dc3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/install.rs:937-948 | src/install.rs:1002-1013 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/install.rs:937\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a75909c947118b5d15f432ec2f9cfda3eae816e185d691b3cb16d9c1e31be70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/install.rs:401-410 | src/install.rs:998-1007 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d929890dc81b2c322d3fb8ba11afc1622f16fa75af14a7585ea3bf95aead1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/install.rs:615-624 | src/install.rs:754-763 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/install.rs:615\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf81829f0e62668633a345db829fb381ea0860f9547d6da84169cb5d3ff1a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/cli.rs:223-231 | src/cli.rs:348-356 | src/cli.rs:387-395 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli.rs:223\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"790556fe92292316ef4322f95948962de99125cb3d1bf11e1ca9f214390059e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/install.rs:1095-1103 | src/install.rs:1193-1201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a926cd079293c56b092b60449cb4f2c2b9c5f31fbf11ebca538985e7fb046d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/install.rs:303-310 | src/install.rs:1132-1139 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/install.rs:303\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060opts\u0060 to \u0060\u0026InstallOptions\u0060 in one and \u0060\u0026RemoveOptions\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"603264284c52729f0af9b847c5abe116bc225d34efd0beae69573898addce89b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/os/native.rs:340-347 | src/os/wasm.rs:474-481 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/os/native.rs:340\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/native.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8c501a55bf67d2a56784760133d3773852833b9101331a139b4ab6b25c5b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/install.rs:301-308 | src/install.rs:897-904 | src/install.rs:1130-1137 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/install.rs:301\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060opts\u0060 to \u0060\u0026InstallOptions\u0060 in one and \u0060\u0026RemoveOptions\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/install.rs:905\u0060 calls \u0060remove_dir_all\u0060 and \u0060src/install.rs:309\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7cf0778895e25286421e302c9623c53d98150fcbfbadd26b58ba85dc2c986e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/install.rs:144-150 | src/install.rs:155-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/install.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22d4366977b57589d4d9b7fd090570b28ea623ccb1d636200611fd61d2e0960"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/cli.rs:189-195 | src/cli.rs:373-379 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli.rs:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd8edb973995c1b6a333fd8565948231b4d78365d21dfec8dc91bd86f90c4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/cli.rs:207-213 | src/cli.rs:380-386 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/cli.rs:378\u0060 calls \u0060Short\u0060, \u0060Long\u0060 and \u0060src/cli.rs:206\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"762a0e3474f4a1118db14c5f3d88f3eab98a2d70be2a900958747265d592ca55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/cli.rs:185-193 | src/cli.rs:322-330 | src/cli.rs:369-377 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cli.rs:185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/cli.rs:379\u0060 calls \u0060Short\u0060, \u0060Long\u0060 and \u0060src/cli.rs:332\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"70079fbb1fd9c38521b3eaef4289546054e512869314f03c57b3313b9a3bd8e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/os/wasm.rs:180-188 | src/os/wasm.rs:194-202 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/os/wasm.rs:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aafd93e9d8e88def7b718549864772f802e399933917b26b606d161d179d3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/os/wasm.rs:247-254 | src/os/wasm.rs:323-330 | src/os/wasm.rs:379-386 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/os/wasm.rs:247\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"5217aceaceb70407f1492c99e69eec19f6271cc6a2514fd36ae79dcbda7134da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/os/wasm.rs:160-167 | src/os/wasm.rs:247-254 | src/os/wasm.rs:323-330 | src/os/wasm.rs:379-386 \u2014 all 4 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/os/wasm.rs:160\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/os/wasm.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd2bb15f1ee0d00c9c3ac43788dffeeac3a8d279e6f8b6816d5cd2f15224e33"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the node:test suite in npm/rosie-skills/ ran and not one test passed (throw new ERR_MODULE_NOT_FOUND(), so the coverage would describe the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Cargo.toml\u0060 makes this repository a deployable product (line 15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cargo.toml"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a1f320edebd162aecb630322055fab9fa4bd5274ac8a03cd339206970700a5"}},{"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":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.6","relation":"transitive","reachability":{"kind":"unknown"}}}},{"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":"d7481fb93c86b503a82a3e06a3172c7e27c5da26b8a178702a1e8028944c7596"},"properties":{"dependency":{"package":"rustls","version":"0.23.40","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"severity":"medium","fixedVersion":"0.23.45","relation":"transitive","reachability":{"kind":"unknown"}}}},{"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":"7ec937081c3ad6882e9c07735996d40cd6d5332ac535d70bb5252c6040e1f211"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.13","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"0.103.16","relation":"transitive","reachability":{"kind":"unknown"}}}},{"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":"0b4d0bd0ea0d3a81846d91c999f1c98d63806893d9b8b2fd8c703eaa81f667a7"},"properties":{"dependency":{"package":"tar","version":"0.4.45","advisory":"[GHSA redacted]","severity":"medium","fixedVersion":"0.4.46","relation":"direct","declaredRange":"0.4","reachability":{"kind":"unknown"}}}},{"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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.7","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"1.0.10","relation":"transitive","reachability":{"kind":"unknown"}}}},{"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":"d8107b5fc7d71331d0df5a0971d951c1ceae725831cf21d13bc2ec2293bcc2ff"},"properties":{"dependency":{"package":"diff","version":"7.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"8.0.3","relation":"direct","declaredRange":"^7.0.0","reachability":{"kind":"test-or-tooling","file":"npm/rosie-skills/test/diff.test.mjs","line":14}}}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5928b81075799790cb18fed2980a6b6e8aa5072772041c9951633efe8eb3542"},"taxa":[{"id":"CICD-SEC-1","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.96: rust-toolchain.toml declares Rust 1.96 as this project\u0027s toolchain file, and Rust 1.96, superseded by 1.97 on 2026-07-09 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-07-09 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d8e9b51cd4b2493b326110bfe409c9598039c510d25150fcc40f653a675ac1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060print_usage\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cli.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e8cc1a65adad149ed58b0877c6d8fa29bc60d8b95bc259bf118e26ad63940e"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add cargo-audit / cargo-deny (or clippy) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yaml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060npm/rosie-skills/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/package.json"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2886a130ef155e517239f4235d6b6a23be8b71ebffbf8fd44a241b244896a566"}},{"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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yaml"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P4","level":"note","message":{"text":"Irreversible deploy step: sync deletes the live copy: This step syncs the release over the live copy with delete (\u0060rclone sync ./pages/freebsd/ r2:pkg-rosie/freebsd/ --checksum --s3-no-check-bucket\u0060): files the new build lacks are removed in place and the rest are overwritten, so the previous release is gone and a half-finished sync serves a mix of both. There is no staged copy to switch back to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yaml"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a1cc5180cf15a15f607308290608e68f2e32ed27e0f9b2a2d2eba9abe4abe4"}},{"ruleId":"P4","level":"note","message":{"text":"Irreversible deploy step: sync deletes the live copy: This step syncs the release over the live copy with delete (\u0060rclone sync ./pages/debian/ r2:pkg-rosie/debian/ --checksum --s3-no-check-bucket\u0060): files the new build lacks are removed in place and the rest are overwritten, so the previous release is gone and a half-finished sync serves a mix of both. There is no staged copy to switch back to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yaml"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec52b613c7917de9d5bdeaee2592df9c1b3f4da7dfeda9abc835629e7d55977"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): npm/rosie-skills/src/cli.ts:248 \u00B7 npm/rosie-skills/src/cli.ts:415 \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":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d558c9eb2f07859be6a4c59b1743b2d4603c7e919d8b8d096a4053a6550461c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): npm/rosie-skills/src/npm.ts:75 \u00B7 npm/rosie-skills/src/skill.ts:118 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 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":"npm/rosie-skills/src/npm.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa37da9f9b7943452be35c0c85a95f8d886f5e88ca307020955e0d25b0add6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): npm/rosie-skills/src/cli.ts:269 \u00B7 npm/rosie-skills/src/cli.ts:377 \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":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be0b851fe05d9ae2aef1190b0c8ea0bbcb6f61a54400fdea39ab9bcfa478969"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): npm/rosie-skills/src/install.ts:501 \u00B7 npm/rosie-skills/src/install.ts:645 \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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a918ecf9b7073db4a678d3ebbae148d5fd94b6ad748ee208ad041aa2a7e7c4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): npm/rosie-skills/src/install.ts:376 \u00B7 npm/rosie-skills/src/install.ts:872 \u00B7 npm/rosie-skills/src/install.ts:1174 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd11ddec7bac26ea2410d75a940164833d83bb41a2ffbfe872c6930989294f10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): npm/rosie-skills/src/sanitize.ts:104 \u00B7 npm/rosie-skills/src/unified-diff.ts:39 \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":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf65b229f4f5a0b0b18c2e37d162318c695231815dfd9a53b113904808fa387e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): npm/rosie-skills/src/cli.ts:222 \u00B7 npm/rosie-skills/src/cli.ts:343 \u00B7 npm/rosie-skills/src/cli.ts:400 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4977235517567521d865694c5d8530d9463320778526a9079659ed4d4687f416"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): npm/rosie-skills/src/index.ts:361 \u00B7 npm/rosie-skills/src/index.ts:412 \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":"npm/rosie-skills/src/index.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0bccf8397bf0dde0dc1d22d49077f42dbf3843f708ce4fca1081226c3e5b0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): npm/rosie-skills/src/install.ts:570 \u00B7 npm/rosie-skills/src/install.ts:678 \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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f97788d2cb6a41e14bd1caeca0e55dc41568591541b1e4656d7450c3f0c3256"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): npm/rosie-skills/src/install.ts:963 \u00B7 npm/rosie-skills/src/install.ts:1046 \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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea94fee38291cf38c6a8b560f87240f3eda2b040557356e019ba5b09bba662ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): npm/rosie-skills/src/install.ts:835 \u00B7 npm/rosie-skills/src/install.ts:876 \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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"83278b3ec002cd557a22160c093ba34bd5d3429fbed774030c1170e3c953babe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): npm/rosie-skills/src/resolve.ts:224 \u00B7 npm/rosie-skills/src/resolve.ts:235 \u00B7 npm/rosie-skills/src/resolve.ts:247 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1d279f050f73eb9b197dfc4d0fdc6dc28dbc5034ac12cf6062419ed02ba255"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): npm/rosie-skills/src/resolve.ts:236 \u00B7 npm/rosie-skills/src/resolve.ts:248 \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":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5877b6e547d975a1198222748a9102e659b58571f83e2e2a9989ef74952481"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installPackage (cyclomatic 58, cognitive 97): installPackage has cyclomatic complexity 58 and cognitive complexity 97; 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"29593826ef5cdc28778b92ad9cf886476bf3e318cf2adc2aae3393f98ff5044d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cmdInstall (cyclomatic 40, cognitive 46): cmdInstall has cyclomatic complexity 40 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9624cf65d399f5f865c5a8c9fc0bfbc61176c2da16508fb4adc6119d6f26299"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSkills (cyclomatic 36, cognitive 54): updateSkills has cyclomatic complexity 36 and cognitive complexity 54; 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2515d51257ca3967335c617ce1ce74d839f1ec06b658bc4d9acdb7a57a1c5c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installLocal (cyclomatic 31, cognitive 57): installLocal has cyclomatic complexity 31 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d259ceaa2f34e7b722f51ed21f650ccd3bc1c1327f1e3a62d6514b131680db5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installReferenceFromExtracted (cyclomatic 28, cognitive 37): installReferenceFromExtracted has cyclomatic complexity 28 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca02d8eeec9e7427b7de009e24724497d71385602472f034cd631c2fe88d9bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installFromLockfile (cyclomatic 25, cognitive 57): installFromLockfile has cyclomatic complexity 25 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"f025dbe29d7f807ea8be090a7f5d0d49eaf19d92ee01658464aebf06b4e9583b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripHtmlCommentsOnLine (cyclomatic 25, cognitive 33): stripHtmlCommentsOnLine has cyclomatic complexity 25 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"405de0362cdcc16f4d01ba9f9214c41828252b350422fe46a45812b4447e9e21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyUnified (cyclomatic 22, cognitive 33): applyUnified has cyclomatic complexity 22 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/test/diff.test.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"774286353d90e764ddda4ef8e4bce22e7b73237e2d8b14d9f49916b4dfc11897"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function removeSkill (cyclomatic 20, cognitive 31): removeSkill has cyclomatic complexity 20 and cognitive complexity 31; 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":"npm/rosie-skills/src/install.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ac701b5b5ad08f31db285461f9fc21978a2c3d7aba69fd7d4b721d0bb96353"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diffLines (cyclomatic 20, cognitive 25): diffLines has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6e55374369a7b861304d47a9e13921096993539b49497dd3723c97796ff93c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createUnifiedDiff (cyclomatic 19, cognitive 37): createUnifiedDiff has cyclomatic complexity 19 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7098bd3989137ba547c6d52292d28cd86cd340af446faa41294514696510791"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cmdUpdate (cyclomatic 19, cognitive 19): cmdUpdate has cyclomatic complexity 19 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"883b9f773c33cd08a231794ff90257e7821c7656954aa05317328899c0e1bae4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRefs (cyclomatic 18, cognitive 33): parseRefs has cyclomatic complexity 18 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5dcab5b3d18c5ac5191564f56f13cd85ebd84b41b033cd376c710c1b4d0cd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSkillFile (cyclomatic 17, cognitive 29): parseSkillFile has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/skill.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"225393ffec699ce1f0a9ad7898e3b6ee4660af2f3b9a25fb11adfbf3d2f8534b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateNpmPackage (cyclomatic 17, cognitive 25): updateNpmPackage has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e14bd4466641ce9c566ad802f39ffbe6fc3a2ee1c0f1b1b5b0fc3091c3f31f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rebuildBlock (cyclomatic 16, cognitive 19): rebuildBlock has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/agentsmd.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fd1189f30c51aebf95272ae399ae6115a500f001fdc8ee71c750fe579c2ddc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function installNpmReferences (cyclomatic 15, cognitive 18): installNpmReferences has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7ec70c4838027e5a6f6d1ffa502d00e7182362f2ad1d817d1dcf85eabf6495"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function npmInstallOne (cyclomatic 14, cognitive 16): npmInstallOne has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fb33770530d9b3073443eef8dd3b6ebe7c597ef28dabedc9601f63c6b6a5bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function looksLikeLocalPath (cyclomatic 14, cognitive 9): looksLikeLocalPath has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/download.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaab1bf94fb5f4499cd77f63e04f2c5904fb635e0fb19b7cd00e337eeb018c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSemver (cyclomatic 13, cognitive 14): parseSemver has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb0ac7f53a47abe02fba179f54689351109dd77a82e4621cbeb7f293057d1db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function lcsRegion (cyclomatic 12, cognitive 20): lcsRegion has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/unified-diff.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7e23187b175c9811ca2807e83ed2c381c0469d98ecf66d9fce9ef0ebd2c455"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listInstalledSkills (cyclomatic 12, cognitive 19): listInstalledSkills has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e829d3b6d91415e5dbdec05d2c72ffba54c6e707c5243e8f6d2442eb75c1b140"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coreInstallOptions (cyclomatic 12, cognitive 11): coreInstallOptions has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/index.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"c245fe160876bbc6b34f36760001c5fd46d7d6a10aa584246ca1d7c35a1fe7cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isInvisible (cyclomatic 12, cognitive 10): isInvisible has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"249848c9c552228c9a82cb0b6b40750d59f6c8b6358c4683595f121da59c1bd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function walkForMd (cyclomatic 11, cognitive 14): walkForMd has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/npm.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5885eb5bef672bfe3376ad893e7cb760ba6b2da3f246c6cda1e72b0333755e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parse (cyclomatic 11, cognitive 12): parse has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/download.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7fd8c1404e1af9e51cc29c1178c7099428ec16a3c80eaae3ffbfa0c4ce2e50"}},{"ruleId":"R3","level":"warning","message":{"text":"npm/rosie-skills/src/install.ts: 1365 lines of code: npm/rosie-skills/src/install.ts has 1365 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/install.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1166fc06fa8bec656dbe1cc1c6fca1a4e34b0e654fc2dfa3d6f6dc1a0ecc41b4"}},{"ruleId":"R3","level":"warning","message":{"text":"npm/rosie-skills/src/cli.ts: 408 lines of code: npm/rosie-skills/src/cli.ts has 408 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9e48058ad95df5ec666dd75a42f7634486352f31d363ebd30d60a39e920598"}},{"ruleId":"R3","level":"warning","message":{"text":"npm/rosie-skills/src/index.ts: 405 lines of code: npm/rosie-skills/src/index.ts has 405 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce086d146b58f9b1992ca1b3c0089bb6527b2359f50409af5c95e543bfd77c28"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027main\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"04af549892c888b74b6e0eafa8f30f88835249544a49f75231a5bffb7b65465d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027specIsRemote\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/download.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3004ad652fe37cc01f0b6fd963be2e23e717f0bc14ff88a0825e53d5873a08"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027tmpArchivePath\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/download.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead510d46f8ce9ec70c478c48b3dcb2a0c26949adedb0c7066fb598d85d4c5e2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027verbose\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/log.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f37f0b04be088437469dd3de1199afbab8df938eb436382dfdc6e893b693ed4"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027read\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/os.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c161a3f33b4d73c6015573a8c841a038c4dbbb0e2afc67928166e50d5f6fc3c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027copy\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/os.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0429b37b5f726379a9bef501182f1b67d741326b71fb7cd0e9ea13c6d5146bc3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027exists\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/os.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a793e5df7cf9943b046bdd45ca67cf80e07ec503409184aad77bcf59d76849"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027tempDir\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/os.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a394e85aa903996e869c1e3bd26505d68243e3835b53d24eca577fec5a201a6a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027resolveLatestTag\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/resolve.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0f971c1f383b052e67e01316b4b7abeba6f5efbaf472b12d0f168b27782738"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027SANITIZE_ALL\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee1bae97ef7bb39c1010fe328e28efc0c5689eba42f76db6a5abc7ae72cef4c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027SANITIZE_INVISIBLE_ONLY\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"182bd448d21db52c1a9255b412c290afaf6bd5d70712147bd51134af05884406"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027SANITIZE_NONE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3168995b24ac18e46ab8dff0a3e682274b24351ebb14efd18ec427c23a5faf3a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027sanitizeAny\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/sanitize.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0639b1f5867077ae4a36a151477d87bfbb7ca6d8b9e197c94026d074ec7466d"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060_headers\u0060 configures this repository\u0027s static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/public/_headers"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62be0ad7263d48719c019ced1a0c358fd7e5a94a40da2d367f46cb34c432b07"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/2 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchToFile: \u0060fetchToFile\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/http.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b140cbfd21c64e0454d4bc0ea217b06e470491d45d05baf8b276ed8c9ad315"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchToBuffer: \u0060fetchToBuffer\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/http.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d9770c789e36d939a02a3ef1c674a4ca166bd6bc7bede944dbb7e0c74830d2"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060body.as_ref()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060rebuild_block\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentsmd.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c75b868450755cd02ad158553d16b95025e81003ce1a390259fe0fc68b064"}},{"ruleId":"X5","level":"warning","message":{"text":"Symbol treated as nullable, then dereferenced unguarded: \u0060rest.chars().next()\u0060 can be absent \u2014 it is an \u0060Option\u0060 or \u0060Result\u0060, which is why it is forced \u2014 and \u0060.unwrap()\u0060 in \u0060is_link_form_comment_line\u0060 forces it with nothing on this path excluding \u0060None\u0060/\u0060Err\u0060: no \u0060if let\u0060 or \u0060match\u0060 arm that matched it present, no \u0060let \u2026 else\u0060, no \u0060is_some()\u0060/\u0060is_ok()\u0060 test (or \u0060is_none()\u0060/\u0060is_err()\u0060 test that leaves), no \u0060assert!\u0060 of it, and for a lookup no proof the key or index exists. This line panics the first time the value is not there. Handle the absent case where it arises: propagate it with \u0060?\u0060, branch on it with \u0060if let\u0060 / \u0060match\u0060 / \u0060let \u2026 else\u0060, or give it a default (\u0060unwrap_or\u0060, \u0060unwrap_or_default\u0060, \u0060unwrap_or_else\u0060)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sanitize.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72b45ab12d96ec7bd5b3832831bbc5f8b88dbb55d95223214c2dae5288d5838"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readVersion\u0060 swallows every exception into \u0060return \u00220.0.0\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"npm/rosie-skills/src/cli.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"285ddd391390d379da5f112a20ec9b8e2e050a1f35677d5451134dc8fd5ab421"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.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":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-1","guid":"a40d9a4c-89f5-4b5d-b2dc-32dc9cbfe814","name":"Insufficient Flow Control Mechanisms","shortDescription":{"text":"Insufficient Flow Control Mechanisms"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-01-Insufficient-Flow-Control-Mechanisms"},{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":11,"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."]}]}