{"$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":"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"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":"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":"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":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"zb_cli::commands::upgrade::execute (cyclomatic 43): zb_cli::commands::upgrade::execute 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":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a28d6930cb539627e2be31714411b1eb00a5b1be5ec6639aa2689d627428f3"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::installer::post_install::steps::run_step (cyclomatic 42): zb_io::installer::post_install::steps::run_step has cyclomatic complexity 42 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"943972bf5c438e89af208b939636bc325e2bda4db4afab601263601b8cc0d775"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::install::execute_formula_plan (cyclomatic 34): zb_cli::commands::install::execute_formula_plan has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"66080f6562888b7c3131f149f3fbb047d8c7f8da611d77b72ea7739358286b33"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::migrate::execute (cyclomatic 28): zb_cli::commands::migrate::execute has cyclomatic complexity 28 (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":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b99c88b0b1df758071ae736d158a797f397a59170d0c29dff3f88a0abe30708"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::diagnose_state (cyclomatic 25): Installer::diagnose_state 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":"zb_io/src/installer/install/doctor.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba5a147924f71c19dac28103dcd444830147671054ae61c29d2fa50a70a05f6"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::doctor::execute (cyclomatic 23): zb_cli::commands::doctor::execute has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec24e1bb5ac163240b3cdb89d4a4942cd2a2a16c189949f4f467f9209787900"}},{"ruleId":"D1","level":"warning","message":{"text":"Linker::link_recursive (cyclomatic 22): Linker::link_recursive has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d36bb708337378edb7e246f9725c055660f4238c72f6e171bed924edfed36"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::extraction::patch::linux::patch_elf_placeholders (cyclomatic 22): zb_io::extraction::patch::linux::patch_elf_placeholders has cyclomatic complexity 22 (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":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bad2ff194df192827b83df8014c81f77a500fd217c9ee3a5dac0c40b9e10c08"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::install_from_source (cyclomatic 21): Installer::install_from_source 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":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d8103482d0b0d9e6a6feda4c4c4eaad28d4751b5d0f8f78fc27e3c044618f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer::execute_inner (cyclomatic 20): Installer::execute_inner has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ee8765ca942222b86eacced12250b9574deb0cb84c95887c865a46f8806597"}},{"ruleId":"D1","level":"warning","message":{"text":"Error::fmt (cyclomatic 18): Error::fmt has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/errors.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b08c546dbac2d583087099130d07e2d7f86e129b05da83bc4a9b8fcbc839c9"}},{"ruleId":"D1","level":"warning","message":{"text":"Linker::collect_conflicts (cyclomatic 18): Linker::collect_conflicts 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":"zb_io/src/cellar/link.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e7592ccd30e0b87cd367b4c4476d9abf7a037cda8946fc09735f90184ec27"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::init::add_to_path (cyclomatic 17): zb_cli::init::add_to_path has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa29319a411aff621255f9e61bef31fc7d44736ebba9a4cd1f83a31f9282ffc"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_cli::commands::install_alias::set_alias (cyclomatic 16): zb_cli::commands::install_alias::set_alias has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install_alias.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d383fce7ec557ae15f4f90dac25606041b22d3907e639a2597cf07ce4d2763c6"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::installer::post_install::ca_bundle::purpose::is_ssl_server_ca (cyclomatic 16): zb_io::installer::post_install::ca_bundle::purpose::is_ssl_server_ca has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/ca_bundle/purpose.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"418040a6796315bfb595e1d6df9db0182ed85dd06bbeba89fc733c0e26a93bdf"}},{"ruleId":"D1","level":"warning","message":{"text":"zb_io::network::tap_formula::parse_source_url (cyclomatic 16): zb_io::network::tap_formula::parse_source_url 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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6567b28870a060120a7c8657512249668f75d869a682b7b75d896c2bf4872c36"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::link_recursive (cognitive 61): Linker::link_recursive has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (59 pts), boolean chains 1, loops 1 (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"81efc1d523af2fad98799d9fa8f6ba2dd7761e2b9b79648190c24104c96baa63"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::upgrade::execute (cognitive 57): zb_cli::commands::upgrade::execute has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (40 pts), loops 6 (9 pts), match/switch 3 (6 pts), boolean chains 2 (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":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9d439825354926ef7f1c9659d02737d7615b1b4942e483cb5a7798d23884bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::collect_conflicts (cognitive 45): Linker::collect_conflicts has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf38070bdaac38d3c26b1497eb4f9e180884067faf15b1406d842db47f8032a2"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::install::execute_formula_plan (cognitive 44): zb_cli::commands::install::execute_formula_plan has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 4 (7 pts), match/switch 2, boolean chains 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":"zb_cli/src/commands/install.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccbbd213656e05cd27ba0e513df4d747f8ea6db61df5e000f8024dca804c7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::diagnose_state (cognitive 38): Installer::diagnose_state has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 9 (11 pts), boolean chains 5 (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":"zb_io/src/installer/install/doctor.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6a88d641317218a73fc85951b61678cb5bb35a87033c68270291f9076fc988"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::install_from_source (cognitive 35): Installer::install_from_source has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 2 (5 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f80887de6f2143e9b98661c4d6f46e758b2fde9d9ed1118d9450150f35b941e"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::migrate::execute (cognitive 34): zb_cli::commands::migrate::execute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 7 (12 pts), boolean chains 4, match/switch 1 (nesting depth added 7). 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":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b54a41c22c3bb3a673b6117160058c6306a1cbcc5736901a7e252d225c746c"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::execute_inner (cognitive 34): Installer::execute_inner has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 6 (20 pts), if/else 6 (8 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"273be5a1d1242bc6ab23a10e6282cb14cedd21efe3d667a5a9f9a9679bd77102"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::reset::execute (cognitive 33): zb_cli::commands::reset::execute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/reset.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e43a4c9667ce0ae8bab411852d71f40574af5eed7d539e2a823860503720b8"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::linux::patch_elf_placeholders (cognitive 31): zb_io::extraction::patch::linux::patch_elf_placeholders has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 5, match/switch 1 (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":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c6ce992f656232adf310018cd3173b6a02ef7e2e3c0fc7453ab49c530d4571"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::installer::post_install::steps::run_step (cognitive 29): zb_io::installer::post_install::steps::run_step has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2586c152f1c5c436594fe2200dca10f3c2c45048e31361d7313d5bbd1c25319b"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::plan_best_effort (cognitive 28): Installer::plan_best_effort has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b9ad30b136908b016b3f02079f8c3aed4eb5a685a25f7b5d5e848ac58afc77"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::network::tap_formula::parse_source_url (cognitive 28): zb_io::network::tap_formula::parse_source_url has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 5, match/switch 2 (5 pts), 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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9de146a75f319248571b6c81558e9dc4a7c4b7d4c0ba4f3a5fc84d07517ed2c"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::init::add_to_path (cognitive 25): zb_cli::init::add_to_path has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 5 (7 pts) (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":"zb_cli/src/init.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f0abcd4414a668dd75852ffbf0e6abd523a9d07a05924859d6bd7c2cd0e24b"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiClient::get_tap_formula (cognitive 25): ApiClient::get_tap_formula has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (6 pts), match/switch 1 (4 pts), boolean chains 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":"zb_io/src/network/api.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f1fe78d956e0cd6be7f7d9d629cb34d4c896f24a7cfa4561ed786b2e34cae0"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::network::tap_formula::resolve_on_platform_blocks_inner (cognitive 25): zb_io::network::tap_formula::resolve_on_platform_blocks_inner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"374f2f93157bc6967bfb2e27da5185d40a109cfb674727e11bf48fe299818505"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::doctor::execute (cognitive 24): zb_cli::commands::doctor::execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (17 pts), loops 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e692bad59209de56d643914da21c338a789aa33b7e9afc20902fd964d0aaf5"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::fetch_all_formulas_best_effort (cognitive 23): Installer::fetch_all_formulas_best_effort has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (8 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Installer::fetch_all_formulas) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5990d695627a1f5db182b4c3f29c33d5b10f614901bbe700656ffb071059b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::fetch_all_formulas (cognitive 23): Installer::fetch_all_formulas has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (8 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Installer::fetch_all_formulas_best_effort) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"603719ad5ea87fa6aac798a1ae2d0980639feb021dbf0810045d9c28c48788a7"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::init::run_init (cognitive 20): zb_cli::init::run_init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e398e12ccad249274ee3eb079e6dcd117087c765fcc3c3a425843e172d1b1747"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::extraction::patch::linux::detect_zerobrew_glibc (cognitive 20): zb_io::extraction::patch::linux::detect_zerobrew_glibc has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (6 pts), loops 2 (3 pts), boolean chains 2 (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":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c55dab617c54efef24840884ad6d2036925d9d8e0f102e2070edc66bf0518b"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::unlink_recursive (cognitive 19): Linker::unlink_recursive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"54163c11b71257be1e612c9b582a6565ac5c5d47e30fc6e865a3835ec7829fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::install::execute (cognitive 18): zb_cli::commands::install::execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), match/switch 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce25089d14432eecb1813c411b385f8a7c371abce14233ca0e2e763bfdde918a"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::installer::post_install::ca_bundle::purpose::is_ssl_server_ca (cognitive 18): zb_io::installer::post_install::ca_bundle::purpose::is_ssl_server_ca has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"zb_io/src/installer/post_install/ca_bundle/purpose.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cfe7f2abdf7f388fd32ad668356270c639c9127b502db3af630cb1ab71be2d"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_cli::commands::uninstall::execute (cognitive 17): zb_cli::commands::uninstall::execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 6). 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":"zb_cli/src/commands/uninstall.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d7ddeeaf27c4854d57049c6c1637b8f9c79017150041de433fb4017036d180"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::collect_conflicts_merged (cognitive 17): Linker::collect_conflicts_merged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2975246d69eda8b70cbcbc34271514cd59e3d7c5549a8522a935b6bf547b36"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer::check_outdated (cognitive 17): Installer::check_outdated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 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":"zb_io/src/installer/install/outdated.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f9a70adcfcd66118e5a8d48fc7a9b99a759c65cbf3caefaf27c9a8dac056b"}},{"ruleId":"D2","level":"warning","message":{"text":"zb_io::installer::post_install::steps::run_command (cognitive 17): zb_io::installer::post_install::steps::run_command has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1, match/switch 1 (nesting depth added 4). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"05055711ab431dfc4f12b32cddefeddc984e3263b8dd3fe28363f0f53bc68362"}},{"ruleId":"D2","level":"warning","message":{"text":"Linker::is_linked (cognitive 16): Linker::is_linked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2763d12d8cb8a8d561996a1c38eccc4bb74e60c0b8062b1178e93fc6b22db6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::init::add_to_path: FunctionTooLong \u2014 zb_cli::init::add_to_path runs 243 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 143 over it, 2.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"208ef23ad3efd0eecc12dd4d1d3a026b0bbbec0131bcc925b1b1a253d62a7d94"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_io::installer::post_install::steps::run_step: FunctionTooLong \u2014 zb_io::installer::post_install::steps::run_step runs 218 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 118 over it, 2.18\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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c6d5a508177109abbb2d1e6a65047445fd60edf04c37f3577faa038ad3ce0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::upgrade::execute: FunctionTooLong \u2014 zb_cli::commands::upgrade::execute runs 173 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 73 over it, 1.73\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":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"72068fbfd509460e235acb42f16fa02eed0acc05ed55ba2860ab0402111f2ffc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::migrate::execute: FunctionTooLong \u2014 zb_cli::commands::migrate::execute runs 163 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 63 over it, 1.63\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":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"980c1f94bc841d8615c6ded4f1a406151ee3a01d82df724e67c94c56c5bcdc09"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Installer: TooManyMethods \u2014 47 methods, declared across 9 files: install/mod.rs (12), install/plan.rs (9), install/doctor.rs (6), install/source.rs (5), \u002B5 more file(s). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29595baf6e40c3b78a8daa9e7680126a03e2221417f64e231582c9919da5e3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::doctor::execute: FunctionTooLong \u2014 zb_cli::commands::doctor::execute runs 153 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 53 over it, 1.53\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":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bde0c753658149609ed28cdd9cdaf463fd93d0ab7ed23deaa75addeeefa886"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: post_install/steps.rs: FileTooLong \u2014 760 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 260 over it, 1.52\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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af72d931ab7ff728731d55494592dcd3279d4c12fe8d536de8a2ff00db7abcd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::commands::install::execute_formula_plan: FunctionTooLong \u2014 zb_cli::commands::install::execute_formula_plan runs 141 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 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78dc364e7f6bb880600ccc4a92f47723179a3db8590ad3ec0504ada674f6279"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Installer.execute_inner: MethodTooLong \u2014 execute_inner runs 122 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 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dca0dfedd047fc189431d3bb5c4dad8bd1b938f2e17a1173340ab69483b64e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Installer.install_from_source: MethodTooLong \u2014 install_from_source runs 112 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 12 over it, 1.12\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":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c5650d9b3170706ac958350c969d1211fc97a30a5c7fdf2d462352a41b9203"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_cli::init::run_init: FunctionTooLong \u2014 zb_cli::init::run_init runs 108 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 8 over it, 1.08\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":"zb_cli/src/init.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a06f60b64a80a6c91ffe612501f2468e635bd5c63d54e6830c5684a78d3226"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cellar/link.rs: FileTooLong \u2014 527 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), about 69% of them inside a single declaration: Linker (2 blocks, 157-833). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c480715ec5ac2266b283ebf79e7a10915b58434af3f1a680718b183e98fa93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: zb_io::extraction::patch::linux::patch_elf_placeholders: FunctionTooLong \u2014 zb_io::extraction::patch::linux::patch_elf_placeholders runs 103 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 3 over it, 1.03\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":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c4609619451d454ba8bab9612811c7efd7c51bb0b905bc5805c0bbbab8eba3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Linker.link_recursive: MethodTooLong \u2014 link_recursive runs 101 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 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12529c6646f414aef39068d93b9e76fb028b896fc7278bdb192bfde2fd408a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: network/tap_formula.rs: FileTooLong \u2014 502 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 2 over it, 1.00\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d6e14a3772cfad7f5ff8322c2a80957d2947131a36d5797fae42abfb15c347"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): zb_cli/src/commands/install.rs:138-326 | zb_cli/src/commands/upgrade.rs:17-253 \u2014 These two members are variants of one another: 86 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0078d4220d1189b8e9f395c1c9bd431063401cdbdd886e627596e8c946675ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): zb_io/src/cellar/link.rs:318-401 | zb_io/src/cellar/link.rs:492-637 | zb_io/src/cellar/link.rs:664-697 | zb_io/src/cellar/link.rs:699-731 | zb_io/src/cellar/link.rs:735-758 | zb_io/src/cellar/link.rs:779-809 | zb_io/src/cellar/link.rs:811-832 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"88238d65808567c03505a24ab02eb2ffca60ebe2a5d5873915d84f58527ed745"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): zb_io/src/installer/install/plan.rs:208-275 | zb_io/src/installer/install/plan.rs:281-336 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff338f0fe99b4859ff10b00b2cf5eee8de07467a40d9be85245b46365b02022a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): zb_io/src/network/tap_formula.rs:444-468 | zb_io/src/network/tap_formula.rs:470-493 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10f44dedaf0800cade4e76abb8ad0cf1a720a2e4eb3c1b107f14ea2643b8a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): zb_io/src/installer/post_install/steps.rs:359-383 | zb_io/src/installer/post_install/steps.rs:417-447 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd2d7eac2a3bcbba6047d5d404e7af51aa6e25d5e313dc56e28c1185fd3959a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): zb_io/src/installer/post_install/steps.rs:389-408 | zb_io/src/installer/post_install/steps.rs:648-662 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e632c03158c1464f5c0482f23dd20c562b7740e61228e72882d7ac25dbdaaf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): zb_io/src/network/tap_formula.rs:599-625 | zb_io/src/network/tap_formula.rs:653-679 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e4db179c02539dc37efb3a40fcd68a6d5df4d0f2c67c429ef9892684b8e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): zb_io/src/storage/db.rs:153-175 | zb_io/src/storage/db.rs:212-230 | zb_io/src/storage/db.rs:232-256 \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":"zb_io/src/storage/db.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"024349efb2990308b02c20a494c2de314cc8e4ee1c8792f3e514053ea9cb0cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): zb_io/src/installer/post_install/steps.rs:289-300 | zb_io/src/installer/post_install/steps.rs:691-699 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d021c5cbb2810ad34c3384d85846373b8b3c8df7650b8b6ddecb4e3f74089e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): zb_io/src/network/cache.rs:65-83 | zb_io/src/storage/db.rs:62-87 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"zb_io/src/network/cache.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7b269ec68b35bebd51e7110041aa9240d1f2066950a5c38badcc290e42f2cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): zb_io/src/cellar/link.rs:465-477 | zb_io/src/cellar/link.rs:639-650 | zb_io/src/cellar/link.rs:652-662 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"zb_io/src/cellar/link.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"adac1410638bb99e7c7499319f8eb8036082d3a88b96e8d6a47e7688d8163e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): zb_io/src/extraction/patch/macho.rs:185-191 | zb_io/src/extraction/patch/macho.rs:193-199 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"zb_io/src/extraction/patch/macho.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ec0e9cacd99282ae109e5516ea7a0db9c475fa8643e95d9f73336dc2679740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): zb_io/src/storage/blob.rs:15-23 | zb_io/src/storage/store.rs:17-28 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"zb_io/src/storage/blob.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3462f856b88e488afd7930ca1a8a6c511fef077c574c17daa97135a70e035151"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): zb_io/src/network/cache.rs:55-58 | zb_io/src/storage/db.rs:49-54 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"zb_io/src/network/cache.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa3771d82d46d10249761921a890d8b0ca55750b1154c9b83a4a8d74a1ff21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60\u201361 lines \u00D7 2): zb_cli/src/commands/install.rs:186-245 | zb_cli/src/commands/upgrade.rs:100-160 \u2014 before extracting anything, compare \u0060zb_cli/src/commands/install.rs\u0060 and \u0060zb_cli/src/commands/upgrade.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_cli/src/commands/install.rs:186\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":"zb_cli/src/commands/install.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f826c7f3c87e286768ae4cb55f3aef7f732d00d6de2b28b71429a1897bf2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): zb_io/src/installer/install/plan.rs:211-235 | zb_io/src/installer/install/plan.rs:285-309 \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 \u0060zb_io/src/installer/install/plan.rs:211\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, \u0060zb_io/src/installer/install/plan.rs:236\u0060 calls \u0060clone\u0060 and \u0060zb_io/src/installer/install/plan.rs:310\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":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d141812600fcca8b88acf57225dd938606c180b7a4f83790d79d9fbb1dc593fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): zb_io/src/cellar/link.rs:324-340 | zb_io/src/cellar/link.rs:500-517 \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 \u0060zb_io/src/cellar/link.rs:324\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"70aaad51280f9085952c29dea6a70533bfadf2cea896f01bb09c9fc3ddd248b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): zb_io/src/cellar/link.rs:563-576 | zb_io/src/cellar/link.rs:620-634 \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 \u0060zb_io/src/cellar/link.rs:563\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b3e269974563a4e445fa0ed216f4c187a55264576442551809da75de029a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): zb_io/src/network/tap_formula.rs:611-625 | zb_io/src/network/tap_formula.rs:665-679 \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 \u0060zb_io/src/network/tap_formula.rs:611\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"df88dc22ea4283bb3c2a6f6e617455cc2a212d19567b69f222319263d5bba079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): zb_cli/src/commands/install.rs:174-184 | zb_cli/src/commands/upgrade.rs:84-95 \u2014 before extracting anything, compare \u0060zb_cli/src/commands/install.rs\u0060 and \u0060zb_cli/src/commands/upgrade.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_cli/src/commands/install.rs:174\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 that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060zb_cli/src/commands/install.rs:170\u0060 calls \u0060heading\u0060, \u0060map_err\u0060, \u0060clone\u0060 and \u0060zb_cli/src/commands/upgrade.rs:82\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":"zb_cli/src/commands/install.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"148646c2bff593d24be483c8310ed65266dff4106f9bb94a1fa088b9ae782bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_io/src/network/cache.rs:72-83 | zb_io/src/storage/db.rs:76-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_io/src/network/cache.rs:72\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":"zb_io/src/network/cache.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"40329f2310d2f5efa2d59455d6c800cd7f4515cabf5476f0fadf0a968cb6a797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): zb_io/src/cellar/link.rs:369-379 | zb_io/src/cellar/link.rs:577-587 \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 \u0060zb_io/src/cellar/link.rs:369\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"765f8aa0f8bd2e925adb52620026fd2e657a4048152eb8c099c9b40789d0c807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): zb_io/src/installer/install/plan.rs:28-38 | zb_io/src/installer/install/plan.rs:96-106 \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 \u0060zb_io/src/installer/install/plan.rs:28\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":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfae25dd6b3476ffb9743805bcf82f5118965b9e735039c8e203b58b2523c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): zb_cli/src/init.rs:153-163 | zb_cli/src/init.rs:165-175 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb79226d326db6c34303378df9b0058f029c54826d6d322b44145489132584e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): zb_io/src/cellar/link.rs:532-541 | zb_io/src/cellar/link.rs:718-726 \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 \u0060zb_io/src/cellar/link.rs:532\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d1fc92a6e447c22b98fbdf44f3a9cf9ca037f5401aa8548f2067c2393c6b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/network/tap_formula.rs:445-454 | zb_io/src/network/tap_formula.rs:471-480 \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 \u0060zb_io/src/network/tap_formula.rs:445\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ef546865dabe110f4978af685b9a55c03b6ae26e0e50cd86c754bcb405cc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/network/tap_formula.rs:600-609 | zb_io/src/network/tap_formula.rs:654-663 \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 \u0060zb_io/src/network/tap_formula.rs:600\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c8ab8b183a8ffc3f3ff0d9bef76284356fd443a28718cebfe63ccb6a97db5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_cli/src/commands/install.rs:247-255 | zb_cli/src/commands/upgrade.rs:162-170 \u2014 before extracting anything, compare \u0060zb_cli/src/commands/install.rs\u0060 and \u0060zb_cli/src/commands/upgrade.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_cli/src/commands/install.rs:247\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":"zb_cli/src/commands/install.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9df3d73f351f12bbf10d1a9360f0e34c028d2e6c55b3780b938c2e62313751b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_io/src/cellar/link.rs:319-327 | zb_io/src/cellar/link.rs:414-422 \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 \u0060zb_io/src/cellar/link.rs:319\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef9def4b5e955530d45e7fbe4920489e09eb5b98ca908e9d3c683b343e38a7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): zb_io/src/cellar/link.rs:681-689 | zb_io/src/cellar/link.rs:713-721 \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 \u0060zb_io/src/cellar/link.rs:681\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd749a6fc71e31dd4274b44bdd3ee69f28a56ab0a090533ffbbf604a3c34ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): zb_io/src/installer/post_install/font_cache.rs:226-234 | zb_io/src/installer/post_install/font_cache.rs:240-247 \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 \u0060zb_io/src/installer/post_install/font_cache.rs:226\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":"zb_io/src/installer/post_install/font_cache.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f799ea722b24d6c09ebd26fc56b8b4d535b376564f6b640d4a8c48b912bae568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): zb_io/src/cellar/link.rs:376-382 | zb_io/src/cellar/link.rs:584-590 | zb_io/src/cellar/link.rs:792-798 \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 \u0060zb_io/src/cellar/link.rs:376\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9aaa6aad36e56ee852961e735d0133f3a708057b6f660fc907e107a90e92e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): zb_io/src/cellar/link.rs:377-382 | zb_io/src/cellar/link.rs:585-590 | zb_io/src/cellar/link.rs:684-689 | zb_io/src/cellar/link.rs:716-721 | zb_io/src/cellar/link.rs:746-751 | zb_io/src/cellar/link.rs:793-798 | zb_io/src/cellar/link.rs:819-824 \u2014 all 7 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 \u0060zb_io/src/cellar/link.rs:377\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 before the matched lines, \u0060zb_io/src/cellar/link.rs:376\u0060 calls \u0060symlink_metadata\u0060, \u0060is_ok\u0060 and \u0060zb_io/src/cellar/link.rs:682\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f308b3f64f7d055d9d2991b736283d096799c2b4a249ddeef0824dfe0c7aabd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): zb_io/src/cellar/link.rs:378-383 | zb_io/src/cellar/link.rs:531-536 | zb_io/src/cellar/link.rs:586-591 | zb_io/src/cellar/link.rs:685-690 | zb_io/src/cellar/link.rs:717-722 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_io/src/cellar/link.rs:378\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 before the matched lines, \u0060zb_io/src/cellar/link.rs:376\u0060 calls \u0060symlink_metadata\u0060, \u0060is_ok\u0060 and \u0060zb_io/src/cellar/link.rs:682\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecb5cb183f6c31ba4895662600508b42744c6b20f1f27ffd4c2664587274aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_cli/src/commands/install.rs:260-265 | zb_cli/src/commands/upgrade.rs:175-180 \u2014 before extracting anything, compare \u0060zb_cli/src/commands/install.rs\u0060 and \u0060zb_cli/src/commands/upgrade.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 88 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060zb_cli/src/commands/install.rs:260\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":"zb_cli/src/commands/install.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdee249adfeeb567fd43b0282f3fef3a61ff735ad4c1c6057199dd4640b86b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/cellar/link.rs:665-670 | zb_io/src/cellar/link.rs:700-705 \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 \u0060zb_io/src/cellar/link.rs:665\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f2a29758817d1f0a8adc2b35596d58554f7e5ab2f8827cec29c3818f6ef89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/installer/post_install/steps.rs:360-365 | zb_io/src/installer/post_install/steps.rs:418-423 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060source\u0060 to \u0060\u0026Path\u0060 in one and \u0060\u0026PathSpec\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":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb1f88b57be32f411e6b918c35cc50a55bb0670cf2a768de642b078287cd073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/network/api.rs:306-312 | zb_io/src/network/api.rs:468-473 \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 \u0060zb_io/src/network/api.rs:306\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":"zb_io/src/network/api.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d56a402d71d5d8e3eef08058d4791ddcf7e2ef913923482141044401a6306a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): zb_io/src/network/tap_formula.rs:242-247 | zb_io/src/network/tap_formula.rs:296-301 \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 \u0060zb_io/src/network/tap_formula.rs:242\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"42472b840958c2757718918cc1209b284aaddc41f3e732634d2b8d76cb17c1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): zb_io/src/cellar/link.rs:498-502 | zb_io/src/cellar/link.rs:704-708 \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 \u0060zb_io/src/cellar/link.rs:498\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":"zb_io/src/cellar/link.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7ae9111273bcd5a6bdcd06956f01c1244ef4ec1c2446019c7e35ad83546020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_cli/src/commands/migrate.rs:123-134 | zb_cli/src/commands/migrate.rs:216-227 \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 \u0060zb_cli/src/commands/migrate.rs:123\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060zb_cli/src/commands/migrate.rs:135\u0060 calls \u0060blank_line\u0060, \u0060map_err\u0060 and \u0060zb_cli/src/commands/migrate.rs:228\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":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"599e4c2543283481ca3f179c5c537590db3be8065ec746045cd4433da445dc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): zb_io/src/network/tap_formula.rs:457-468 | zb_io/src/network/tap_formula.rs:482-493 \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 \u0060zb_io/src/network/tap_formula.rs:457\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":"zb_io/src/network/tap_formula.rs"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc1a05c08ed40f79755531172a3f588277fa93d70254dea264aab3e29a25df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): zb_io/src/cellar/materialize.rs:61-70 | zb_io/src/cellar/materialize.rs:77-86 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/materialize.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"235d7637d6740336481f4a5e6f9fce82fbc77b4c7c9fb21c33e00922753f5feb"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: zb_core: zb_core: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c7e15eba44a3747ca908f401349f9d047558e3fb78627fbdfadf85033c8de30d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/bundle.rs: 43.1% line coverage (59/137)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/bundle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36ff077d59bcba07b6b660c67244d9d160e8664af1608f20ecaeb12069fe8d2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/completion.rs: 0.0% line coverage (0/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/completion.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de41e25f8e01bc6b6dcfcbce75022eaa47b95d53d5e52610cb03ba3bed119130"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/doctor.rs: 0.0% line coverage (0/149)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"376092fa53435a67e5ba764a56b463c7c6e1af6a716d9da795ceaebf1b5a4f4e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/gc.rs: 0.0% line coverage (0/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/gc.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e795785dafdc4cb9bd65f4c036c2418eac8776c2062b0e3f502a83c7874d785"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/info.rs: 0.0% line coverage (0/33)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/info.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe773cb1552ba59523c35e61d27bffc08ac2a0a4224d94f5f36df20fe0ac1ece"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/init.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4697d69d96896f5f34931ebc033f756149b0daaa4cf6b0f2bba81de5361b54"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/install.rs: 0.0% line coverage (0/241)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/install.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"722ae5ceed0a585eabc47a5f9a252e8bb0df9c9d831f2dfa4bd33026e1674ab2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/list.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/list.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6ef5732befce4453900ea1cfc10f60db52c05439479fc4538ee74826e1a232"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/man.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/man.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7338d9eb28e337515910ba3c354d20faa1a915f8781f1e53080cc0648ac630b7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/migrate.rs: 0.0% line coverage (0/199)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2eda309425741989aea2fb05418a6c503ade3c330f7ec1b5b98752985e4640"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/outdated.rs: 0.0% line coverage (0/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/outdated.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bff13d8dbedad2935f9e702d933703cefbe8ba9bcf6d32645d61cc789d300a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/postinstall.rs: 0.0% line coverage (0/28)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/postinstall.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12c404287af33cce071643b5d712a6fe9f4002a79664105efbdce03d0ea2c7f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/reset.rs: 0.0% line coverage (0/73)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/reset.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"155e29f3e89ef93f8b289450381ab5f7fd03ef2b5d261468c3ab093b6456256f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/run.rs: 38.2% line coverage (34/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/run.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48fff8407e297bbe86f0195aefedde0efadda89bbb14ac41ceca24fcec21da5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/uninstall.rs: 0.0% line coverage (0/45)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/uninstall.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17933b11935fdf2bbdb0f7453c10d8f247f6a4732a957e4d89214cfd2aa18215"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/update.rs: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/update.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98000e1c9ad3aef0a60f4965329545b3e3f8212ef41447232324874bd875e4e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/commands/upgrade.rs: 0.0% line coverage (0/191)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/upgrade.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbe01aff7271245d0e62092801c027774b6a35c98519953a738560be4dd3343"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_cli/src/init.rs: 42.2% line coverage (146/346)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7516085210d78e0c3df35160b4a27c48ffa843a31bc6a86c652c980a440e28"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_core/src/errors.rs: 41.9% line coverage (18/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/errors.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f8813c3a52416444f0cac32a7b67acb1bf263e07c141d13d4ec19290234840"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_io/src/installer/install/bottle.rs: 47.9% line coverage (190/397)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/bottle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fd9951a32aa97824aca98cd5b425190afa57265282eb3ad8c8a27c90e224d3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_io/src/installer/install/source.rs: 18.4% line coverage (35/190)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c3c5640090c32f3346d46e7fdf78fc1532b4ca27330161735a4a0a4aeb782a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: zb_io/src/installer/post_install/clang.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/clang.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a336cfe01f91fbb227fe6ff19a5afd131ab4001acd5f508994e688374b16e79f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/installer/post_install/steps.rs: zb_io/src/installer/post_install/steps.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in zb_io::installer::post_install::steps::run_step at line 33. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/post_install/steps.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/post_install/steps.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8b6cdd75f8785527e7aa1cb385912893c584434383c4e24b7d8ef9d38695bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/cellar/link.rs: zb_io/src/cellar/link.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Linker::link_recursive at line 487. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/cellar/link.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/cellar/link.rs"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fcfbe54e629bd52e60ebaa2575a04dc90d5aa00c4ab670844ef48b329644a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/installer/install/mod.rs: zb_io/src/installer/install/mod.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Installer::execute_inner at line 167. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/install/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e238a7d4c8e85f60504352f60dc98ef8043b32e3ccccde7d7115a07147dde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/installer/install/doctor.rs: zb_io/src/installer/install/doctor.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Installer::diagnose_state at line 126. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/install/doctor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/doctor.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecce6884feaafba7a6529ef449ab065f371b5237195263e71a8df8105c98116a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_cli/src/commands/doctor.rs: zb_cli/src/commands/doctor.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in zb_cli::commands::doctor::execute at line 5. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_cli/src/commands/doctor.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/doctor.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0bf33e2a8bc5be3612adc58622f9a62cc902f59befa50af391b0b5994de19d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_cli/src/init.rs: zb_cli/src/init.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in zb_cli::init::add_to_path at line 249. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_cli/src/init.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/init.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd60dc324da5660a231219d8b5d507da4992b8c2795d5dda36f477be94189cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/extraction/patch/linux.rs: zb_io/src/extraction/patch/linux.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in zb_io::extraction::patch::linux::patch_elf_placeholders at line 155. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/extraction/patch/linux.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/linux.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fc0a4815daaa28a3f622f19c3ff0fa043a82bab063c6a9c724a62992f8b59d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: zb_io/src/installer/install/source.rs: zb_io/src/installer/install/source.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Installer::install_from_source at line 12. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/install/source.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/source.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46f0f6baffc74ba55da5899aac7b2c9150897836b8f67ea90f62413f09cde5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: zb_core/src/formula/types.rs: zb_core/src/formula/types.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is Formula::is_keg_only at line 173), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(zb_cli): include build dependency on install when installing no-bottle formulae\u201D; \u201Cfix(link): link aliases and old names under opt\u201D; \u201Cfix(zb_core): remove test assuming versioned packages are keg-only\u201D; \u201Cfix(zb_core): respect keg-only designation for packages\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_core/src/formula/types.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/formula/types.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d075d4c0b94d40b0fd8675f2c4503b7c5bbd167c8b49116e5fdc7eb2624671b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: zb_io/src/installer/install/bottle.rs: zb_io/src/installer/install/bottle.rs changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is Installer::finish_bottle_item at line 22), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(link): link aliases and old names under opt\u201D; \u201Cfix(zb_io): fail the install when etc and var files can\u0027t be copied\u201D; \u201Cfix(zb_io): only rewrite the prefix a bottle was built in\u201D; \u201Cfix(zb_io): install bottles\u0027 etc and var files into the prefix\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/install/bottle.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/bottle.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"804d9ab1ba866ae9d34cd1edff1cb2be825863e2c5ff601f84409ac2a0ba1c49"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: zb_io/src/installer/install/plan.rs: zb_io/src/installer/install/plan.rs changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is Installer::plan_best_effort at line 45), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(zb_cli): include build dependency on install when installing no-bottle formulae\u201D; \u201Cfix(zb_io): record alias installs under the formula\u0027s name\u201D; \u201Cfix(zb_io): keep bottle cellars when parsing tap formulas\u201D; \u201Cfix(zb_io): build intel bottles pinned to /usr/local from source\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/installer/install/plan.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/installer/install/plan.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41fe0c920a6097f1327a9df8df2005a5aaea8b8bda4009b5069d49e629140a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: zb_io/src/extraction/patch/text.rs: zb_io/src/extraction/patch/text.rs changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is zb_io::extraction::patch::text::rewrite_text at line 28), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(patch): rewrite hardcoded paths in every binary file, padded with slashes\u201D; \u201Cfix(zb_io): recompute php archive signatures after patching\u201D; \u201Cfix(zb_io): patch placeholders in scripts with binary payloads\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-07..2026-11-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-07 16:51:11 -05:00\u0027 --until=\u00272026-11-05 16:51:11 -05:00\u0027 --full-history --no-merges -- zb_io/src/extraction/patch/text.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/extraction/patch/text.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b978ffe896d741f7d0401f76560208cce723255ec32dbb45bbae6fa80b2d8c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 17 significant file(s) lose their only recent owner: zb_io/src/installer/post_install/ca_bundle/mod.rs, zb_io/src/network/download/single.rs, zb_io/src/extraction/patch/macho.rs, zb_core/src/formula/post_install.rs, zb_io/src/installer/install/bottle.rs, zb_io/src/cellar/materialize.rs, zb_io/src/network/download/auth.rs, zb_io/src/network/download/parallel.rs (\u002B9 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b833fac533824fdebce7698f2dd6dbadfe09518417cc9e85326680ecdc8b1681"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (18 single-owned of 63 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 63 of the 89 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: zb_io/src/network/suggest.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Abstract this return type to a more structured type (e.g., a struct) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/migrate.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b02e932c19c2639de09b627af902e6427ee6c38765fd9520f8df1cbf115259"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Return just the first error up. TODO: don\u0027t return errors from this fn? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/commands/uninstall.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecbd148fb8bceec3e25eb63480cde594bdd17921021024704e440b399f44eaf"}},{"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 \u0060zb_cli/src/bin/zb-brew.rs\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/bin/zb-brew.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac7742c051faa204209b556db9c1a01abf2ba6905f387fc7b88f7778ace22fa"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060zb_io\u0060 (23447 LoC, 87 module-visible types across 12 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0063c758847f616c2c3e785572b6a1fc100eeb5784b319de72c4dbd9d1efdce9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5bf66f5e7d68d560e31890595924148a2f29517a30395ef5653442821cb20e6d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"240e021f035e6626dad8abda6dbc1c2b8a182c1bdf23494a243ca6d44b8de55f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"566fa5a4701f42cbfbeadbdb214c10316393b2e6bc1b27f09f55637870380d8a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96f88121b035a898a6759141862415469563ae4858d3bd2449d90d5e5ba04a57"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"14a9cfdb39241550d24c72572bb8b6297bbbda096276233895c9b1a114b087ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5b03b7c3c03864107de878ef1a3a6cf4be82037eb97d0af0a4671518d634047"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b7b0f6379057837f6e98551d80397ec59f14460af6dd1dfc78c7b79d04c8f4a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84b51697bbdd90e4135116c0f1bd376213b67cf561fd9363d9a719dff03d500e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58f873761f96f9df8f4e644a8b92d75c8b6f058a6e8e5487df6bfc9be59b455b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12c8ebb8e928d9ca9cb92676f6ca4a4d008d1bcebf691ce7c9f6c5dc6deeeeb6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a355b4f698388c1e1d34512a5d96622496ae343bbe158189c2bed6e68939e69"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"776d3fd79d3d00a577536c73f8d647ed155a5e5c06799ff34419fe0f066f14fe"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8dfabd57851c7bcb37baa8e9aafb9e1c51d861648a6ef22c4073e3d726c8c5f1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a3785f7900b67512b8c4737e8fb5418bda1bbc7a88dcc71d61802984b33a7cd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64478662fa5e1544368a8d37a73d78bfc90ea789fe52460bc2794d70b8e273b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64aee044c1f4dd4bb7a77441c8cfb2ad1960dbe2c5bbb6dcc4a3af1fa08e7b62"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a38828c4bcb7a6090c355e52037137f3256c09724683ca7433a766a1657c28d7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b923d2a6d4bf9f3d17a069114b8d29dce8e6bc49ce4ae2931de0efd9a515de40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1597cb6e125e16bcb40e806c82e73f45222913928a462f1a3a12b761c92de8c8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"101aea76057fce59420cb6c212119cd272b66eb0842832e04d83b6a6cb33ede3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"936b73ca20004d963608db1a6c76bb22f1125379616833b5be1a9bb4ff13852c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26dec96b0ff086bd153ee8d7eb3f42a3b6bd0022c6c0e402325d8ae4efb175c5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bc89d0b3ee24f33809e06fd209da380174001ba89919f59eb0f56ad9348a745"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a641278a6a3af72daec1f2b98f20d348dc56973468c108f4172404c38c74299"},"properties":{"dependency":{"package":"liquidjs","version":"10.24.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f588ba6e4f41a2e77c5d93d2be433719feee9459bb9161971769da850e2a8671"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5054b5ef6ca88a19b2a4fa2689cbae2481aef2a2d7596f87501f3e8c2e3f051d"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35ff55f5b4737c5a1dadfbbe51d7af1ce638a968db6ae1d67816a15ba74b6827"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02c30f85ca700280e0c5342eb2ae2193d6796d56a6232621aaea1e3452594a52"},"properties":{"dependency":{"package":"linkify-it","version":"5.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0482fd06409f8a068c2883418cc484fd46da4c49a249c5211a885613025d277b"},"properties":{"dependency":{"package":"markdown-it","version":"14.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"507e96270b331ba91e66fea89dac75519ab1f29de191636ff9ccf1c1ce92e8b8"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c365a72f08c5b08b10b1623af43c9503dad638a00d17253819dc7fb7c133302d"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97c7dfa4706b777239185bf10f3c5e512359b6cb9059b01ee60a624f5076987e"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8e874e2a33eb761ed2888f1451f63bd342d24f2906513ccc2ee42fb445610eb"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ace703f3aa92bc03a53fbb1940149252a8a62771d3f1d90dac8028a2d258f65"},"properties":{"dependency":{"package":"undici","version":"7.18.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19a500186c68cc1e7a14b8f33939e57607200f0ca2b511e0ad320d6beae8a7f3"},"properties":{"dependency":{"package":"ws","version":"8.18.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f76fa433e6ae3f4fa472fd57984cff5a6bc82c647ec22ad0df7d75f9a535406"},"properties":{"dependency":{"package":"ws","version":"8.19.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"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":"7b3f5e73f54279d8a385f3ccb6ce6659725cab3121019062bfd36c6500f66d85"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.38.2","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"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":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.5","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"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":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.53.2","advisory":"RUSTSEC-2026-0386","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":"d38736f2611cc8a68dd6d9310c78b5d2d83dfcca00f3553b710b7486c0d08717"},"properties":{"dependency":{"package":"ruzstd","version":"0.8.3","advisory":"RUSTSEC-2026-0344","reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 3 of 63 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 63 of the 89 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: zb_cli/src/ui.rs, zb_io/src/network/suggest.rs, zb_core/src/context.rs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_cli/src/ui.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8877b5cefc7e211c9e81839742854991341245cbb061169889e8a13637acc9f8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/network/suggest.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a64fec24eddeba3a4fbbb648173b7abd8b118c2ad6e3890a83b7edbc622cc7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077f0f2fdd3ba72b689f0189233d84fc5651547f55dfb9069a5e43d31d132738"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: bottle.rs \u2194 resolve.rs: \u0060zb_core/src/formula/bottle.rs\u0060 and \u0060zb_core/src/formula/resolve.rs\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060f72092de\u0060 fix(link): link aliases and old names under opt; \u00602b1efeaf\u0060 feat(zb_core): parse bottle cellar from the formula api; \u006023cbd57b\u0060 fix(zb_core): fix Linux bottle/runtime dep test build \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_core/src/formula/bottle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4376650af92a637ff1e2dcde0f4530acfa999b510e4576786bf3c7bc7f7912"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b1273c81a1ca9b5eb097489b2567416912a145951451afeec807249ffa5e5b8"},"taxa":[{"id":"CICD-SEC-4","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":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"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":"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 dependency-update automation: \u0060site/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":"site/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fc7104d1b889700645e2312f89b5048cdbbdcdbe5f839290b2566f989e2c8f"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Ruby code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"zb_io/src/build/shim.rb"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dedd9b521d340610ba230c19c76ce07588113de50b498dd906bca77e06635a"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":53,"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."]}]}