{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::merge_globals (cyclomatic 93): codemark_cli::cli::handlers::merge_globals has cyclomatic complexity 93 (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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"256a1b1edf9e981208df7064646a656c9bd7f03254c67abaa58581d93b2a37ff"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_tui::entry::run_app (cyclomatic 82): codemark_tui::entry::run_app has cyclomatic complexity 82 (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":"crates/codemark-tui/src/entry.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e400ff860b7ed2d8115f17972e60988abd1683e5c42847d6dab00113bbb293"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownPanel::parse_to_text (cyclomatic 67): MarkdownPanel::parse_to_text has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/markdown_panel.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7132d776eac448e0c1c8c3e4de0100f7d23b5bcaa7b1fb0431e66d631e904cb2"}},{"ruleId":"D1","level":"warning","message":{"text":"codetours_server::handlers::tours::create::handler (cyclomatic 49): codetours_server::handlers::tours::create::handler has cyclomatic complexity 49 (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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9df52efd33409f67b70a0179765a1f7452ed62afca729f4e5002ae3a19dad67"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::handle_key_event (cyclomatic 47): BrowserLayout::handle_key_event has cyclomatic complexity 47 (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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f666824dad9b5472d6e0c10923c68e17fdb62ace867fa5d6147b3949bb36b4"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::handle_app_event (cyclomatic 46): BrowserLayout::handle_app_event has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db947632ec81fdea49d0d32cefde6a2ff4a5551a3758db93532def4ff66ffd6"}},{"ruleId":"D1","level":"warning","message":{"text":"CodePreview::render (cyclomatic 31): CodePreview::render has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e1800a365bbe11040240cc16535b7e0c281f4e6672fee0b1230fe96d9ac56b"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::merge (cyclomatic 28): Config::merge 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":"crates/codemark-core/src/config.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fff3be8df36a49f68a40a1a9fd23d78885a90a99a837df9c1fdee908f36f14"}},{"ruleId":"D1","level":"warning","message":{"text":"CodePreview::handle_input (cyclomatic 28): CodePreview::handle_input has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdb547c9dd4f523e5120e234a1656a9e29f2c631696d1cf974650be5b6e0f0d"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::engine::projection::project_resolution_status (cyclomatic 27): codemark_core::engine::projection::project_resolution_status has cyclomatic complexity 27 (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":"crates/codemark-core/src/engine/projection.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16ea9c268fc5461cf59695e8397269e8cf170663fb51c64db65a7ccdf49b306"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsOverlay::handle_key (cyclomatic 27): SettingsOverlay::handle_key has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/settings.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"224570d838ee02a01e45200e5fa63b97ba566c9dc227374aedeb30003a21d5be"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::query::generator::build_tier1_query::build_node (cyclomatic 26): codemark_core::query::generator::build_tier1_query::build_node has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2f240a16dfd7b090655fa1af5f6c6cb2930c120b16d56c4d70a4971600fb19"}},{"ruleId":"D1","level":"warning","message":{"text":"RightPane::route_event (cyclomatic 26): RightPane::route_event has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"767fc0d814921cabeffefb0405db7b4e99af4982bd8a4b64e39ec84a4b47cca4"}},{"ruleId":"D1","level":"warning","message":{"text":"Panel::handle_event (cyclomatic 26): Panel::handle_event has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b3329daadfbbc186abf81af0d4b07608149cdec67045b7836c8078b63c8691"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add (cyclomatic 25): codemark_cli::cli::handlers::bookmark::handle_add 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5ef12062ada28879309a4deaf3fec29c166a951f856e7c9e3803a874fd8feb"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::collection::handle_collection_list (cyclomatic 25): codemark_cli::cli::handlers::collection::handle_collection_list has cyclomatic complexity 25 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d01aad8763c09db376928a24df213e50ae4579a88cf7cf71e417ec00068bad4"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::languages::handle_validate (cyclomatic 25): codemark_cli::cli::handlers::languages::handle_validate 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":"crates/codemark-cli/src/cli/handlers/languages.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8307ffc1f12a0ee2eac7bce38581946195373090c739aad529ec29bbb444af80"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add_from_snippet (cyclomatic 24): codemark_cli::cli::handlers::bookmark::handle_add_from_snippet has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (codemark_cli::cli::handlers::bookmark::handle_add_from_query) 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"915e1f0b13b21e1ed03f7d8ca958b5c3397d1d23f0add5543c8bc7df060a8d51"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add_from_query (cyclomatic 24): codemark_cli::cli::handlers::bookmark::handle_add_from_query has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (codemark_cli::cli::handlers::bookmark::handle_add_from_snippet) 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6dc5d8f22847002346d13f8a5f3c231fa88d617d52b0230d68a93416847315"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchBar::handle_event (cyclomatic 24): SearchBar::handle_event has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/search.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"203188c9f7160c42a6fb13d3d709bb03d5d9a4b09bb448952f7a336eef718a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::get_help_bindings (cyclomatic 23): BrowserLayout::get_help_bindings has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2ef54eeb740ce4b09a66855ae4ea628fce9507d371e8367a0f1ce6f33b7d96"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::get_context_bindings (cyclomatic 23): BrowserLayout::get_context_bindings has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d96944e76fbd0a8577b16b22cc51754612b812c17659a6690933016ca6ddf72"}},{"ruleId":"D1","level":"warning","message":{"text":"CodePreview::line_motion (cyclomatic 23): CodePreview::line_motion has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec84ff89a7cd7bd03c84df1244c936311ae08e531720d1b50bb755c169ca782"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_semantic_search (cyclomatic 22): codemark_cli::cli::handlers::search::handle_semantic_search 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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"892ec365850605e422138bd696af9571e2ac333ffcf6250f105b69e4366ca178"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::query::generator::extract_name_info_direct_toward (cyclomatic 22): codemark_core::query::generator::extract_name_info_direct_toward 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"216f5724f9e655063b90adc885a268feb271b8bef084d5c621659e79bbc8da8d"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_annotate (cyclomatic 21): codemark_cli::cli::handlers::bookmark::handle_annotate 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc22b6f3ee6e9fc37f1390d7b455fa8362de359a254a19f5eb719bba2c79d635"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::update_tours_collections (cyclomatic 21): BrowserLayout::update_tours_collections 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"08dede5d605384ce4a35810d115945826e7bd9d3db73fc6b18ebf08afcab78eb"}},{"ruleId":"D1","level":"warning","message":{"text":"TabbedPanel::handle_event (cyclomatic 21): TabbedPanel::handle_event 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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"6407181f48d93af93450901fd4c5488a0f558bb9debb0e5556feefa64d1636a9"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState::handle_event (cyclomatic 21): AppState::handle_event 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":"crates/codemark-tui/src/state.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7a00f10725502e1dda0de5a9134323abe36287ce82c2bc79a55a96930f2441"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::engine::heal::heal_bookmark (cyclomatic 20): codemark_core::engine::heal::heal_bookmark has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/heal.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acff3d96c33bfb7f338e393b52db289d36ac5a021a8d22ec28d7eb6d3ee2fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::parser::profile::lint (cyclomatic 20): codemark_core::parser::profile::lint has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/parser/profile.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"631270fee6dda1378a33306eff6c3cb06ed6afeca11e30c11742ef6caae48bd3"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::refresh_all_panels_inner (cyclomatic 20): BrowserLayout::refresh_all_panels_inner has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa56dd9545330503d03f7de557faff5d551e5d3c8661595aa953a1b0a9e87f47"}},{"ruleId":"D1","level":"warning","message":{"text":"PanelItem::to_line (cyclomatic 20): PanelItem::to_line has cyclomatic complexity 20 (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":"crates/codemark-tui/src/component/panel/item.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d052c832383467e214d2565ffdbf41bbd1c53449f931bb4281187119d62fbe3f"}},{"ruleId":"D1","level":"warning","message":{"text":"codetours_server::handlers::tours::list::handler (cyclomatic 20): codetours_server::handlers::tours::list::handler 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":"crates/codetours-server/src/handlers/tours/list.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b899edc7faebca5d3bb14d82b91045a35562792e43760715ab40d18089ae2dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::handle_preview (cyclomatic 19): codemark_cli::cli::handlers::handle_preview has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: codemark_cli::cli::handlers::dispatch (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c8c9e27cd9134d7d323b9d2f50ecaad6aa97769740e65cfcae410b54a03436"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::handle_delegation (cyclomatic 19): BrowserLayout::handle_delegation has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cef677d4558af58868ac41e4cfb28bd63cb7c66b61b847eccd0eecead1fc9b6"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::transfer::report (cyclomatic 18): codemark_cli::cli::handlers::transfer::report 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":"crates/codemark-cli/src/cli/handlers/transfer.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1f7a11992f1782ea49e8e84130d55ba7f16aeb4e80812884808620dfbea02e"}},{"ruleId":"D1","level":"warning","message":{"text":"Panel::render (cyclomatic 18): Panel::render 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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"6321e98abf78f48339f0d3ef66337e5754dadf7f5b2ba2131d9ea0895ecdf1af"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguagesTab::render (cyclomatic 18): LanguagesTab::render 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":"crates/codemark-tui/src/languages_tab.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e41d2df6ddeee59b6449f7638ac952d6a292692e9bbdbc83c51b5783e15205"}},{"ruleId":"D1","level":"warning","message":{"text":"codetours_server::handlers::tours::get::handler (cyclomatic 18): codetours_server::handlers::tours::get::handler 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":"crates/codetours-server/src/handlers/tours/get.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2efa9feba67e260e187f618fa4a51bc0e3f3b04bbce1534494d3fd69e04a8e"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_show (cyclomatic 17): codemark_cli::cli::handlers::bookmark::handle_show has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"a527b08406f99129ed342ba63603bc1217107ad0d0068d89b065639cd0347b81"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_search (cyclomatic 17): codemark_cli::cli::handlers::search::handle_search has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dbf624e2509f1aac646465ee21cf2f80e874ac9f96cf101af7b282ab6952e4"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_cli::cli::output::write_bookmark_markdown_fallback (cyclomatic 17): codemark_cli::cli::output::write_bookmark_markdown_fallback has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: codemark_cli::cli::output::escape_markdown (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459ce4987ea694fb0079ab2103a4392f7fed5b204ba6ddd9be9931fd287f597"}},{"ruleId":"D1","level":"warning","message":{"text":"Database::list_bookmarks (cyclomatic 17): Database::list_bookmarks 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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd65355f22613f9b043a95d081d410c59b6b36e945dd0c511482484de31dd58"}},{"ruleId":"D1","level":"warning","message":{"text":"codemark_core::query::generator::disambiguate_query_in (cyclomatic 16): codemark_core::query::generator::disambiguate_query_in 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2efff0d37316988c724cc30a55ca8de7fe4deac9fd76676943d253c098eea6"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserLayout::handle_event (cyclomatic 16): BrowserLayout::handle_event 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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fb0da4d68602cd4d2773f7aa4c1abfdd40add643c8e48f5fc3237ba13a41dd"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguagesTab::handle_key (cyclomatic 16): LanguagesTab::handle_key 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":"crates/codemark-tui/src/languages_tab.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f64ddd4958dfbeb90bca330bdb84b955bef655b9c6175aca4a6bccea3ec8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::entry::run_app (cognitive 176): codemark_tui::entry::run_app has cognitive complexity 176 (threshold 15). Drivers by points: if/else 32 (104 pts), match/switch 11 (48 pts), boolean chains 13, loops 4 (11 pts) (nesting depth added 116). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/entry.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd9b0de24ad2d8525ee5843db453b4152b2f8befbb2ead5472b5480e6aa4b09"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownPanel::parse_to_text (cognitive 123): MarkdownPanel::parse_to_text has cognitive complexity 123 (threshold 15). Drivers by points: if/else 31 (100 pts), match/switch 4 (12 pts), boolean chains 9, loops 2 (nesting depth added 77). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/markdown_panel.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f121bdfaa995fdfaa2331478540ab962b6ebeedf44b759addd3781a2e5577710"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::languages::handle_validate (cognitive 67): codemark_cli::cli::handlers::languages::handle_validate has cognitive complexity 67 (threshold 15). Drivers by points: if/else 14 (33 pts), match/switch 5 (19 pts), loops 4 (14 pts), boolean chains 1 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/languages.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51043c65e29622940cb9aeecf37e38b531beafb5f18eb9f71060e40c79eb7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"codetours_server::handlers::tours::create::handler (cognitive 63): codetours_server::handlers::tours::create::handler has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (37 pts), match/switch 16 (24 pts), boolean chains 1, loops 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9734d55cfd000f982185d4deb4f84fc8f884d5e1c5f3dbaa8417a939351c79ed"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_app_event (cognitive 61): BrowserLayout::handle_app_event has cognitive complexity 61 (threshold 15). Drivers by points: if/else 17 (40 pts), loops 4 (10 pts), boolean chains 7, match/switch 2 (4 pts) (nesting depth added 31). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"36527659ee514bb7a3a6667199f75bc989d950e617e407b02cf39b2594ee4b7a"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::collection::handle_collection_list (cognitive 59): codemark_cli::cli::handlers::collection::handle_collection_list has cognitive complexity 59 (threshold 15). Drivers by points: loops 11 (33 pts), if/else 11 (21 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 34). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be604ae253169595a449e39f8dc4e8a6a6b4175333eb08d4472a1daa67b7d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodePreview::render (cognitive 56): CodePreview::render has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (39 pts), loops 5 (7 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c6ad3fbcd212937e6388edde2ca743bd1cbe283ecef39954dd421415d50b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Panel::handle_event (cognitive 56): Panel::handle_event has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (50 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 35). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc14968add395d8c4dc3dca246b7658be6c27d1db883f811009390f39cca601"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::generator::build_tier1_query::build_node (cognitive 55): codemark_core::query::generator::build_tier1_query::build_node has cognitive complexity 55 (threshold 15). Drivers by points: if/else 25 (41 pts), match/switch 3 (9 pts), loops 1 (3 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b78004255cb94056cbf4599ffeb8cff16dbef7614df6a5294656ace3b8af68"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_semantic_search (cognitive 47): codemark_cli::cli::handlers::search::handle_semantic_search has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 4 (10 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"258247b7c2a7fe028d50acb354e34f44b0c51ba288aa8903e455d84ee3a59584"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState::handle_event (cognitive 47): AppState::handle_event has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (40 pts), match/switch 3 (6 pts), boolean chains 1 (nesting depth added 27). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/state.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f1000b7c7ecbf1a3e45877f8c1bb6df3d8242b84682258578ac729fb6d0e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::update_tours_collections (cognitive 44): BrowserLayout::update_tours_collections has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (31 pts), boolean chains 6, loops 3 (5 pts), match/switch 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b15757f13562817bd490a294d7bc2ab56e4c820becce81533f0fb3e428f9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add (cognitive 40): codemark_cli::cli::handlers::bookmark::handle_add has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23 (32 pts), match/switch 4, boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf054e92bdab4d3cb0ebf89c70155fbf9cd1043204b7d15f290562a1819e509e"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsOverlay::handle_key (cognitive 40): SettingsOverlay::handle_key has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (37 pts), boolean chains 2, match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/settings.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6cc8e7db9291cccae201241b63450ea1509adb7eabc2e39e57d2bfde49e75b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add_from_snippet (cognitive 38): codemark_cli::cli::handlers::bookmark::handle_add_from_snippet has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (30 pts), match/switch 4, boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (codemark_cli::cli::handlers::bookmark::handle_add_from_query) 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a74bc0bfd720ee864288f41614fac8ad577ed2e7887552d974ae826be9172f"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_add_from_query (cognitive 38): codemark_cli::cli::handlers::bookmark::handle_add_from_query has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (30 pts), match/switch 4, boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (codemark_cli::cli::handlers::bookmark::handle_add_from_snippet) 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a3d06ef4ebd31a7d973e594e7824c42d44a1fac5d628b1ece46bfb8c0d5c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::engine::heal::heal_bookmark (cognitive 37): codemark_core::engine::heal::heal_bookmark has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (25 pts), match/switch 2 (6 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/heal.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb7daa7d08b66c0a2dc66a78afaa3cfa65bdc5152634a8968fa1ba9df6f8cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::parser::profile::lint (cognitive 37): codemark_core::parser::profile::lint has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 4 (7 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/parser/profile.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c420f889e1b29f6691aa35b894ba0a6a9810a3ac7f43d13031b9748c8cd199f"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::generator::extract_name_info_direct_toward (cognitive 36): codemark_core::query::generator::extract_name_info_direct_toward has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a2568f8f12fad2f705694d739c441f277384454b29aeaf549bf92010ccc123"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_search (cognitive 35): codemark_cli::cli::handlers::search::handle_search has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 4 (11 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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cded4b9832c1113ce87cff41cc272b70c240e3c9d1494895b69446a0fc9b1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Panel::render (cognitive 35): Panel::render has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (30 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d8abc102b4574e8f48b6b5f81666fc79f162d6f73ca0e52365fe7d4562832e"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::transfer::report (cognitive 34): codemark_cli::cli::handlers::transfer::report has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 3, match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/transfer.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a7af5e81c4c971f6a24676496458f5666441836408f4cd6d4ef34d965a2924"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchBar::handle_event (cognitive 34): SearchBar::handle_event has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (29 pts), match/switch 2 (3 pts), boolean chains 2 (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":"crates/codemark-tui/src/browser/search.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"719090dbc3f6608d723c5344fa0a25087ca7ed74b72ab271b8d28dcaf239a366"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_collection_search (cognitive 33): codemark_cli::cli::handlers::search::handle_collection_search has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (10 pts), match/switch 2 (5 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"22655ee74a8a1040c5c2f709471dabdbf76bd6423ed39341ec51c991019f4461"}},{"ruleId":"D2","level":"warning","message":{"text":"CodePreview::handle_input (cognitive 33): CodePreview::handle_input has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (26 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eac9ac4a26b6f4a569ab4feb13023dc6e5b90634485669e5e2528b1da78591"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::refresh_all_panels_inner (cognitive 32): BrowserLayout::refresh_all_panels_inner has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (24 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d703b37d190d554597b42da07e36e5eca8dcd172b94d4bf3825a632365e899b"}},{"ruleId":"D2","level":"warning","message":{"text":"TabbedPanel::handle_event (cognitive 32): TabbedPanel::handle_event has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (19 pts), match/switch 3 (7 pts), boolean chains 6 (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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b53b1cb9c112cbc381597de8f6f52836d4aff12682ae8c2637f40e484f7fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::merge_globals (cognitive 31): codemark_cli::cli::handlers::merge_globals has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 14 (28 pts), if/else 3 (nesting depth added 14). 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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6799fa83933476104cd2ba926afa007441df32ad25266b1e5273fcb905839ea"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_annotate (cognitive 31): codemark_cli::cli::handlers::bookmark::handle_annotate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c028f2895a3478b1da92d114b4135488866ea9fb8dc90de285f56d979289ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::merge (cognitive 31): Config::merge has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24 (27 pts), loops 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/config.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc50f8a22deb9742a1247dd7324cbb510a6c1afd14045757653d3f16b7cbaf9"}},{"ruleId":"D2","level":"warning","message":{"text":"Workspace::open_all (cognitive 31): Workspace::open_all has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/workspace.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbff261e7e6be395c8e41855c7cd025858805ffc42560a2556025e081c66d64"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_mouse_focus (cognitive 31): BrowserLayout::handle_mouse_focus has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 6 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca7f4a6ebb3cbc67db31f9d6b2debd9afbbcf99a0febd30e368b335286729a1"}},{"ruleId":"D2","level":"warning","message":{"text":"RightPane::route_event (cognitive 31): RightPane::route_event has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 6, match/switch 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"f115079abad4c5cd8a8f1bb8d6ca1e596e617417687a118483bd904c0fc48267"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::handle_preview (cognitive 30): codemark_cli::cli::handlers::handle_preview has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2 (6 pts), match/switch 2 (5 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1f339265892de7633fc82e7c2fd5357943f2be1f7080adaca3bb095675a6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageRegistry::discover_in (cognitive 30): LanguageRegistry::discover_in has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/parser/registry.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1b1aa86f532114df7f975a3c463f56feedfb6bf7fc6d91d2ae9c0474d21744"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::event::event_loop_with_sender (cognitive 30): codemark_tui::event::event_loop_with_sender has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (23 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/event.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb4b815829fad003ae781893a19cb7a6d169e31f3dda0b41d0f69c3e6b6a33a"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::engine::transfer::plan_transfer (cognitive 29): codemark_core::engine::transfer::plan_transfer has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 5 (11 pts), boolean chains 3, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/transfer.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9d954d5a33a409764cbbd3d1b22e7a378fc69fb3e63b274b4b267cd083a6ef"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_key_event (cognitive 29): BrowserLayout::handle_key_event has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 18, if/else 5 (10 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"025fd060fe6b76262ff93d28d378f1682d95ca7b361b29f5d434b11c455a614b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_show (cognitive 28): codemark_cli::cli::handlers::bookmark::handle_show has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a0c8b5881dfeb1ec5348617b6044a134410b8fa9128303f1327b7a5a404c6"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::get_help_bindings (cognitive 28): BrowserLayout::get_help_bindings has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad97f87993a2e3459c447cd1120d0a915a5b9fe647770ffd9dae75aa5f211dbe"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::generator::build_structural_path (cognitive 27): codemark_core::query::generator::build_structural_path has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"0240b16700b00cee68fa17f9d9a39546568b3f8da513db03da11b4c521ac0689"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::browser::transfer::render_picker (cognitive 27): codemark_tui::browser::transfer::render_picker has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/transfer.rs"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5250be992735795a7cac000b21cdb8fc4ae480cccc67c20fbc6665d075e59"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::get_context_bindings (cognitive 26): BrowserLayout::get_context_bindings has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0502c677c29de72b6c8419af3d606ff0ae5c989ddc0a4c668747c008c96fc2cc"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::component::panel::path::shorten_path (cognitive 26): codemark_tui::component::panel::path::shorten_path has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/path.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48c20f1ad59ee7758d31fe51046bdc86cc7483b5172ded5dc017e5a7fbd3e92"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_delegation (cognitive 25): BrowserLayout::handle_delegation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cea51c9abf86aae4d53271a341b6015abdc5ea25c0d05f2ec99ed0f73930d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodePreview::line_motion (cognitive 25): CodePreview::line_motion has cognitive complexity 25 (threshold 15). Drivers by points: loops 6 (13 pts), boolean chains 7, if/else 3 (4 pts), match/switch 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ad8725b1b867fb8e78d89822c9e15b4874efea5906d58442d755d06f065909"}},{"ruleId":"D2","level":"warning","message":{"text":"PanelItem::to_line (cognitive 25): PanelItem::to_line has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (17 pts), match/switch 2 (5 pts), boolean chains 3 (nesting depth added 4). 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":"crates/codemark-tui/src/component/panel/item.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec17d00cf6a90836548f847456c993b0b9d990b889035c2296332d1a91d632b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguagesTab::render (cognitive 25): LanguagesTab::render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 4 (8 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/languages_tab.rs"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9802e7fe86311aac2da40144032bbe4ca59dbc358e01b7236f9cc888e21ab5f3"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::output::write_bookmark_markdown_fallback (cognitive 24): codemark_cli::cli::output::write_bookmark_markdown_fallback has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 5 (9 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4f455124cd88e80a79187d577daf647acb49f0d2e1ac92373531b8d66de2f7"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_o_key (cognitive 24): BrowserLayout::handle_o_key has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 3 (9 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"3010b6b336ec91af4de86d0713332045123ea3cb2ec1a0b4f34ee1653d09eb53"}},{"ruleId":"D2","level":"warning","message":{"text":"codetours_server::handlers::tours::get::handler (cognitive 24): codetours_server::handlers::tours::get::handler has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 7 (11 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":"crates/codetours-server/src/handlers/tours/get.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe9982737e23b59fbf9299ab991f05fe24574ed110c664c5e1e31356875e172"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_resize (cognitive 23): BrowserLayout::handle_resize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3 (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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"c343f909978c5c9e0008fa24c990a2e38da8d24078bdc4c8a60ebe559bd7f83b"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::execute_collection_search (cognitive 23): BrowserLayout::execute_collection_search has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (12 pts), match/switch 4 (6 pts), loops 2 (5 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfa4a6542a7e82244527007de2cda5524eb4df4ac6b920fe942b683b5d9643e"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::browser::data::perform_heal (cognitive 23): codemark_tui::browser::data::perform_heal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 4 (10 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/data.rs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d1b12fa614f64c99170319103f5f24e979214c125b98fe34fabccd202547ea"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::collection_semantic_search (cognitive 22): codemark_cli::cli::handlers::search::collection_semantic_search has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"be78f56f236fccd44801436470226cd2535fcec8c7a10d98fff2f7c6a274bac7"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::spawn_collection_health_task_for (cognitive 22): BrowserLayout::spawn_collection_health_task_for has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4 (7 pts), loops 2 (3 pts) (nesting depth added 11). 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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66670366ce3a35f3a386b5fba282216f9a7d4665cf70ef119950332c7f8fa56"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::execute_bookmark_search (cognitive 22): BrowserLayout::execute_bookmark_search has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts), match/switch 3 (5 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d622a5bb7aae970171a5842ae73c139fddc4b36bb41922080973d89595e1c55"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::resolve_batch (cognitive 21): codemark_cli::cli::handlers::resolve_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b9d812dc5b1a91dbe27873d39ac1dfd54d389e24d0f9de1f5adfe7b90c2276"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::handle_list (cognitive 21): codemark_cli::cli::handlers::handle_list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ca21a907793cf63eb49c0e4be083181206083406424fff9852463f2c390ecd"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::maintenance::handle_diff (cognitive 21): codemark_cli::cli::handlers::maintenance::handle_diff has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/maintenance.rs"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b56e3547bd15bd9599bb55deafbc5f23c6d34912bf66ec6ce33b816a82c394c"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::summarizer::compact_identifier (cognitive 21): codemark_core::query::summarizer::compact_identifier has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/summarizer.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4861045c6affca4ccb13887c1508171366106b7d2fb25d8677aa159486649c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Panel::activate_selected (cognitive 21): Panel::activate_selected has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c519ed1943a495b77dd158b661edbb5a5d45d6491e740cd1adbd3cfe14dc1897"}},{"ruleId":"D2","level":"warning","message":{"text":"LayoutManager::split_area (cognitive 21): LayoutManager::split_area has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0644f01faa66e05be48e6b48be3fba55a8704f815c48adf48027e6719a57c8de"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::component::inline_comments::wrap (cognitive 21): codemark_tui::component::inline_comments::wrap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/inline_comments.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8782370edc8f248a89fc856b209219ed36d016557596154a89c6f31fcca082"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_resolve (cognitive 20): codemark_cli::cli::handlers::bookmark::handle_resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9a06afafc84e05ff7227d909e0d2d3ec32026c845b5b69d07521f24dcd6c07"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::engine::resolution::resolve (cognitive 20): codemark_core::engine::resolution::resolve has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 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":"crates/codemark-core/src/engine/resolution.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee28087c933802ecaf71c6c410809e284123a2d3c33f2653f22b6e45a816c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::generator::find_tightest_node (cognitive 20): codemark_core::query::generator::find_tightest_node has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (8 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81743bea4cd0c39ac038fd78165931e32d4b4dabaa9b8b126cf27b4e0d9ebfd"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::query::generator::disambiguate_query_in (cognitive 20): codemark_core::query::generator::disambiguate_query_in has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"828b6014bd76c2a9b11bbd3e7628afc4b182556d3f9d620076a6d58caaa846ab"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::rebuild_tours_panel (cognitive 20): BrowserLayout::rebuild_tours_panel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (5 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed2abc415ee5646244d2fa725271414e046773615ea424aa4607c67eca0d875"}},{"ruleId":"D2","level":"warning","message":{"text":"RightPane::load_tour (cognitive 20): RightPane::load_tour has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc43953ffdc85e9c046b790d996ca450ae0173d2d0b0e44686f21af413474d89"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguagesTab::handle_key (cognitive 20): LanguagesTab::handle_key has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/languages_tab.rs"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2654b5fc731712cf0b4f4e2b5afba079823acc85760bb8953154a65200860f"}},{"ruleId":"D2","level":"warning","message":{"text":"codetours_server::handlers::tours::list::handler (cognitive 20): codetours_server::handlers::tours::list::handler has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 6, loops 1 (2 pts) (nesting depth added 5). 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":"crates/codetours-server/src/handlers/tours/list.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3881cd49180873dd5f07f41497e5ec96254e4bfb54dcb5a99c4bcfa0d5b7f49c"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::output::write_annotated_bookmarks (cognitive 19): codemark_cli::cli::output::write_annotated_bookmarks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57cd876861e7c4a63e5b75d6438ad2142c53e36a9ca1c2215d00154afed30ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Database::list_bookmarks (cognitive 19): Database::list_bookmarks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 3 (5 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"36506ec7f75bf5196b6b42f2ee8c0e020ae06659c110eba053d81d0ea270fb53"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::engine::hash::normalize_for_hash (cognitive 19): codemark_core::engine::hash::normalize_for_hash has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/hash.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2bdfc4d3bb1db5c5e67269a6469374068e64b3a4c023ac9256f3dbcfc9fc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::grammar::profile_gen::collect (cognitive 19): codemark_core::grammar::profile_gen::collect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/grammar/profile_gen.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86dd51051ae1f5474e7a218a2f43dc5c9b6b4af25bb4546e77b33eaeb5693ce"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::grammar::profile_gen::label_for (cognitive 19): codemark_core::grammar::profile_gen::label_for has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/grammar/profile_gen.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"06effcb7a3b40a603e456736f72b61786657a8642c6e2cb01f058551d0d6d267"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::start_heal_selection (cognitive 19): BrowserLayout::start_heal_selection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 4 (9 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c09885e63076627f1a7aaa18f46039fc108b5e53ebc15b433a9fef8aeb9de"}},{"ruleId":"D2","level":"warning","message":{"text":"RightPane::render (cognitive 19): RightPane::render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c5d9ab50fe1cffadc99fdd8e35db3108928bf8388d7b38d45eb32db9b1289d"}},{"ruleId":"D2","level":"warning","message":{"text":"TabbedPanel::build_tags_branches_items (cognitive 19): TabbedPanel::build_tags_branches_items has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 6, boolean chains 2, loops 1 (nesting depth added 6). 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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73295d2d17465f99dc369266a300c61afe0f43de76d4887554b4a2a46b4a332"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::browser::shorten_path (cognitive 19): codemark_tui::browser::shorten_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc865ef5e7a103ac3299bbf864d5e677fdcf0e1ac511e544c14ee6f9e0005e"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::write_collection_results (cognitive 18): codemark_cli::cli::handlers::search::write_collection_results has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc136c8f145f016655c2b3ad39ec865424c8ab734e2181c8453622e7bbbf064a"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::skill::scan_installs (cognitive 18): codemark_cli::cli::handlers::skill::scan_installs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/skill.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c7ed85c68c2662d15ecef53aa3175521c7d87b2cb33ce1d5d89f9d4f338082"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::engine::transfer::apply_in_txn (cognitive 18): codemark_core::engine::transfer::apply_in_txn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5 (8 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/transfer.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1836bfad0e1a461468eb96c4cd7137114d11cafdd325684874550bf2977295bb"}},{"ruleId":"D2","level":"warning","message":{"text":"App::run (cognitive 18): App::run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), match/switch 1 (3 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":"crates/codemark-tui/src/app.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9f78b7050b65ed588e8bd9ba83d4586a9d7ccf618c3839f4a464ca60b91764"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::start_push_collection (cognitive 18): BrowserLayout::start_push_collection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f301153c015fcc84dfa67f5e92e4bafb1947731346041ff201c86c49eb27cc6"}},{"ruleId":"D2","level":"warning","message":{"text":"CodePreview::render_rail (cognitive 18): CodePreview::render_rail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"8969d2829403ce16c4486d7c02583cb05739eed9ff177cf35c0ef82cf7c76feb"}},{"ruleId":"D2","level":"warning","message":{"text":"Pager::render (cognitive 18): Pager::render has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 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":"crates/codemark-tui/src/component/mod.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"243bf4d22d6906c85666db49cee01b85f6bcd81cfd52206d00f1afd3b2b22143"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::auth::handle_device_login (cognitive 17): codemark_cli::cli::handlers::auth::handle_device_login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/auth.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d9e566a672f2d4284bcc3aa5e10f2a860e7cc828c80a2d5709eb8336bc7f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::comment::build_threads (cognitive 17): codemark_cli::cli::handlers::comment::build_threads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/comment.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8561a978cebc67194e889d923b791f1fba546fa86ed654b18b0b0c54d20b3109"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::search::handle_reindex (cognitive 17): codemark_cli::cli::handlers::search::handle_reindex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"291f607c9010f98d48e6922cf1ec5ba655767ded49fa91ad9bb83bd3cf9fa57b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::git::remote::parse_remote_url (cognitive 17): codemark_core::git::remote::parse_remote_url has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/git/remote.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a51394c858bfdd647b77e07299a92bbd652bdd92c920510ebae31472f6234db"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_core::sync::import_pack (cognitive 17): codemark_core::sync::import_pack has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 4 (6 pts), match/switch 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/sync.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6e007a375f445bcfcfddab2147fdd7d122fd45acb9ba420c72f0d76bbe7c37"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserLayout::handle_event (cognitive 17): BrowserLayout::handle_event has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 3). 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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9639656470ca081f4161e6a685162e76c03d194b7430a12f8e7fdc1dec661f45"}},{"ruleId":"D2","level":"warning","message":{"text":"RightPane::load_bookmark (cognitive 17): RightPane::load_bookmark has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c06341435217d2bc956d1bdec03ba8c2a8c4f0a4cc1e8e22df8118ee98c661"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusManager::remove (cognitive 17): FocusManager::remove has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/state.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"572bc9d0b96094f348e480abc3d5182d570e88d867e2bfe7a7cac7394040b71b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::theme::load_schemes (cognitive 17): codemark_tui::theme::load_schemes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 2 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/theme.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fcf1e79d9a22e5bd1586eab156cda2ed1d96203041e2a35a1433b9bf39f882"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthContext::from_request_parts (cognitive 17): AuthContext::from_request_parts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/auth/extractor.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"add9186cdef45124096bce01f8d0c00439ef31dd0f634743e7d19c78b1c19041"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::bookmark::handle_remove (cognitive 16): codemark_cli::cli::handlers::bookmark::handle_remove has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e3235d3225b18024bf1cd8dded6692907ee39a98137e6f67809e2fd7ab59a2"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::collection::handle_collection_tag (cognitive 16): codemark_cli::cli::handlers::collection::handle_collection_tag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (5 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"192494aa9a36150f794d18b2ee23ec88631a447e7d8aa46966d8d431891dedc7"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_cli::cli::handlers::maintenance::handle_import (cognitive 16): codemark_cli::cli::handlers::maintenance::handle_import has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/maintenance.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec28cbff7eab0d67ab87bb18b290ee17bb8a2e6f5bf7d2b2026a4103ded0b35"}},{"ruleId":"D2","level":"warning","message":{"text":"StartupOptions::parse (cognitive 16): StartupOptions::parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 3 (7 pts), boolean chains 1, 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":"crates/codemark-tui/src/startup.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c04540ca47843c9f3b66d3f1cfed32eb61ababb647a09d7810a8c15e73d91fc"}},{"ruleId":"D2","level":"warning","message":{"text":"codemark_tui::ui::render_confirmation (cognitive 16): codemark_tui::ui::render_confirmation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/ui/mod.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5d45ca80052df82ac43a7525157042a5bb6d70bdbd734bd22ed9cc1b686ec4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codetours_server::handlers::tours::create::handler: FunctionTooLong \u2014 codetours_server::handlers::tours::create::handler runs 518 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 418 over it, 5.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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"85435052e69700288ff7f0b6fbf776e7dd4d1bf25efacfd7468bcd226de0bf9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrowserLayout: TooManyMethods \u2014 140 methods, declared across 7 files: browser/mod.rs (74), browser/events.rs (35), browser/comment_draft.rs (11), browser/transfer.rs (9), \u002B3 more file(s). The bar is 30 methods; this is 110 over it, 4.67\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"daff34a28862e985b23cf2ba012bbf8b2b7d0a15bb75d6b45020223bacf79feb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserLayout: ClassTooLong \u2014 1639 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), 140 methods, 4 blocks, lines 138-3244. The bar is 400 significant lines; this is 1239 over it, 4.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0a762bbf6c4e663a70cec1dbbe1b27bf6b0288df111f9387a2a7551658e6f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: browser/mod.rs: FileTooLong \u2014 1736 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 94% of them inside a single declaration: BrowserLayout (4 blocks, 138-3244). The bar is 500 significant lines; this is 1236 over it, 3.47\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80c0c45b5cd5e6b22333931abe8b7e659dbdee8126f71cd9009d2af8e5be3c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_tui::entry::run_app: FunctionTooLong \u2014 codemark_tui::entry::run_app runs 320 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 220 over it, 3.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/entry.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c14172f022457ebe27614b24577d142c97519a2894adb9ca51845f719d70798"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Database: TooManyMethods \u2014 91 methods, declared across 8 files: storage/bookmark_repo.rs (23), storage/collection_repo.rs (21), storage/db.rs (17), storage/comment_repo.rs (9), \u002B4 more file(s). The bar is 30 methods; this is 61 over it, 3.03\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":"crates/codemark-core/src/storage/db.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24c600e892a71743f79288ecf64127767c3a916a23fed4b1ad3300ae28e5eaa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RightPane: ClassTooLong \u2014 1200 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), 71 methods, 2 blocks, lines 76-2291. The bar is 400 significant lines; this is 800 over it, 3.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135c0cf2e69b5014d4550db192aefd08f98f213c74a5c7c701e7b77264a5994"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/handlers.rs: FileTooLong \u2014 1418 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), declaring 51 free functions. The bar is 500 significant lines; this is 918 over it, 2.84\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc54168b63ea2ee81cc5d6d40b1d7751d2eaa2d51f53db250cb95bfa5d6af8ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodePreview: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e54c46dadfdcb2ab79fa55451bffa04e96c717dc03e5ad41a5891d664ef0d60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: browser/right_pane.rs: FileTooLong \u2014 1270 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 94% of them inside a single declaration: RightPane (2 blocks, 76-2291). The bar is 500 significant lines; this is 770 over it, 2.54\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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc23b15c4677ffc1e71def3d2e1b81b231ed7a44c497a65efc18f6689b3c7507"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RightPane: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2e7b2760057e80030d82ccd590b3baa56cc5b408ba20d30df5f59ad8bd1572"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodePreview: ClassTooLong \u2014 910 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), 80 methods, 3 blocks, lines 95-1710. The bar is 400 significant lines; this is 510 over it, 2.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"238559d193ff6185014ebd2e3389aa15f6485868a3d35d31a87ddfe36af504e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: browser/events.rs: FileTooLong \u2014 1128 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 99% of them inside a single declaration: BrowserLayout (20-2089). The bar is 500 significant lines; this is 628 over it, 2.26\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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5780ab3c1624d49bc9fa1f5173b769ecc290df4afdc89d6a7f845e1091792b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: component/code_preview.rs: FileTooLong \u2014 1006 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 90% of them inside a single declaration: CodePreview (3 blocks, 95-1710). The bar is 500 significant lines; this is 506 over it, 2.01\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":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15543761e09394b96e3e0db0f41091277f54e324fe473249cc05c8ac5c12a62a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/mod.rs: FileTooLong \u2014 967 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 467 over it, 1.93\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":"crates/codemark-cli/src/cli/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6d21a434ac67edb089bc28ecd01313fca8d6c677c42692686a201d235fab97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/bookmark.rs: FileTooLong \u2014 921 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 421 over it, 1.84\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da2c34227ed341fb9f55b76d6539f69056726cafed58d13c2947405c26a234a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::bookmark::handle_add: FunctionTooLong \u2014 codemark_cli::cli::handlers::bookmark::handle_add runs 180 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72597e773b4f269ae45b18f22a7bda04d21fc0fa41dd7b8f0a4bff75d9d7660"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::bookmark::handle_add_from_snippet: FunctionTooLong \u2014 codemark_cli::cli::handlers::bookmark::handle_add_from_snippet runs 180 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1562f82fe7ce1394c5fa892bbcb95ae7ca20ae3c4f039e86b547c40c87372e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::bookmark::handle_add_from_query: FunctionTooLong \u2014 codemark_cli::cli::handlers::bookmark::handle_add_from_query runs 180 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 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1604936a547b470a3321727bbb1c05ada4d5c89685c5a825db2d2603c5baa33"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: query/generator.rs: FileTooLong \u2014 870 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), declaring 36 free functions. The bar is 500 significant lines; this is 370 over it, 1.74\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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfa1627069c291ba8129b0cb64dd052422b339210b455166cdd1ddab5235fc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::collection::handle_collection_list: FunctionTooLong \u2014 codemark_cli::cli::handlers::collection::handle_collection_list runs 157 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 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"595245288b8cbc0974b9a2056ba30e5a014100568e9d159261dd70e349248429"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Panel: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb0d897bcf4e08c287ef3162936054b547f34c5f38c548bfdef4efdc6a3c5ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codetours_server::handlers::tours::list::handler: FunctionTooLong \u2014 codetours_server::handlers::tours::list::handler runs 149 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 49 over it, 1.49\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":"crates/codetours-server/src/handlers/tours/list.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1918c6e07c2a55c987792434abc405a3b932a93d9b6f52e10c6d2bcf69235e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MarkdownPanel.parse_to_text: MethodTooLong \u2014 parse_to_text runs 147 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 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/markdown_panel.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"202a127bfea76860b6d4b5edc7ac560c5c8cab411bf54d2847c045e9be730eb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::query::generator::build_tier1_query: FunctionTooLong \u2014 codemark_core::query::generator::build_tier1_query 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97e2f7568c3a4cf8abce96d8614b88d6f2a081254271bf8ef7a1a3b6b70ced5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: BrowserLayout: TooManyFields \u2014 41 stored fields beside 140 methods. The bar is 30 stored fields; this is 11 over it, 1.37\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcc4b2c760c3264ba671edbf69e6a4aca6009c8afb783c5b9156681e4f25282"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codetours_server::handlers::tours::get::handler: FunctionTooLong \u2014 codetours_server::handlers::tours::get::handler runs 135 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 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/tours/get.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"da48341bff32177fa21354e835545d93e0071063fb2f2b9155fd7ee232e0219f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/templates.rs: FileTooLong \u2014 665 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 165 over it, 1.33\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":"crates/codemark-core/src/templates.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc0a933f1c09cb3ca509168f38f1cc893874b3b9cabb6e1d874e0fb90fe4143"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/collection.rs: FileTooLong \u2014 659 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 159 over it, 1.32\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53ced4dd905e2f48b94dedfe69cc7c0a6bbec4d03057c110ec8e9f688486c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodePreview.render: MethodTooLong \u2014 render runs 131 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 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee6a9386cdf16168fe1c68882f56ee1be6bd0b230b2626fec8d67f45a870ec9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TabbedPanel: ClassTooLong \u2014 522 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), 38 methods, 2 blocks, lines 22-1142. The bar is 400 significant lines; this is 122 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ea48092c655414f0ec6fa60b373039a2d8ed27b4dbcc3671a11f9eb3991b9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: browser/tabbed_panel.rs: FileTooLong \u2014 647 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 81% of them inside a single declaration: TabbedPanel (2 blocks, 22-1142). The bar is 500 significant lines; this is 147 over it, 1.29\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e99a41eadb99a6081324a9692449417273bf0b0b3bd79f292e8c588e1952284"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Panel: ClassTooLong \u2014 512 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), 46 methods, 3 blocks, lines 36-962. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6910b9c4c2737af7507b7c8734b55c6ccd08a5b45ffb7eea2cfac5ed1f6809"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::engine::heal::heal_bookmark: FunctionTooLong \u2014 codemark_core::engine::heal::heal_bookmark runs 127 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 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/heal.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab9a1453444333fc1f9f94e1fc1ca88d22d82fe788f4c770e1904f4fda41a77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserLayout.handle_app_event: MethodTooLong \u2014 handle_app_event runs 127 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 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2aebbccd68aeae7cff4f6be92f038b7e05fb8e1a7ecebb3ddff6dea2607d31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TabbedPanel: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc7a017f53c1592c17782698a71dd4d8ae4a035e37eff3a7420528a03b244b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::merge_globals: FunctionTooLong \u2014 codemark_cli::cli::handlers::merge_globals runs 125 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 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d51a2e34394f1aa8ed1decfaf6bf5acba6abf5f7853b57a81c0c559affba93e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::search::handle_semantic_search: FunctionTooLong \u2014 codemark_cli::cli::handlers::search::handle_semantic_search runs 125 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 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"29faab50c0b836767f257cdef0a4d03c641782e34f0f663075dd947db8bdcaa7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserLayout.update_tours_collections: MethodTooLong \u2014 update_tours_collections runs 120 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 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"7290e4134ae1e49166fbff13576ea98c0986884c0ccd848e94d119f5d0c68346"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/output.rs: FileTooLong \u2014 597 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 97 over it, 1.19\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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1b5a673ae553a03cc81798eb7dc63cfeec9628c2ed567e02051c45bafde54e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: RightPane: TooManyFields \u2014 34 stored fields beside 71 methods. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"43963ac69f7b7f33da6a9d5076e7db6ec7364629985a87d34e03571572b7c65d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Packer.insert_snapshot_data: MethodTooLong \u2014 insert_snapshot_data runs 113 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 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/pack/writer.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7607824cbc1eba45df8e328795e4e3708f75d3d953d3426adb933faeb98512c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::handle_preview: FunctionTooLong \u2014 codemark_cli::cli::handlers::handle_preview 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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b79cfac7e25118cd797587a76f11298fd14dcb9fdd5ecf7209f54cb2af4f249"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::bookmark::handle_annotate: FunctionTooLong \u2014 codemark_cli::cli::handlers::bookmark::handle_annotate runs 111 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 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c54c0e78936f7dd00b5c1a7e8a20bc1b34f59c64956717962bbf20e480992c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PanelItem: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/item.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c231fc1dea6b2ae3e1586eac5191208f3a802daacfe433c1bbbd6e26ad433e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::sync::import_pack: FunctionTooLong \u2014 codemark_core::sync::import_pack runs 110 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 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/sync.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27bc5b5181b08bd529b4a04b7a76f2d442605dffea4800342e72912790b674"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tours/create.rs: FileTooLong \u2014 548 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 48 over it, 1.10\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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacecf2e031fae09c144cf065a87a4fac05d41078540766017305eb02e0d42f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::engine::snapshot::build_snapshot: FunctionTooLong \u2014 codemark_core::engine::snapshot::build_snapshot runs 109 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 9 over it, 1.09\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":"crates/codemark-core/src/engine/snapshot.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"336de80a584cfb1c4548b43e59ce55f4615860c585d04209a2827f043fdb9130"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::engine::transfer::plan_transfer: FunctionTooLong \u2014 codemark_core::engine::transfer::plan_transfer runs 109 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 9 over it, 1.09\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":"crates/codemark-core/src/engine/transfer.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5943752a85ad715f365b9ca37f541f80415f44b38a17983b7835d30c61dd12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserLayout.get_help_bindings: MethodTooLong \u2014 get_help_bindings runs 109 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 9 over it, 1.09\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":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6605bdafe833c8c4e06de56f0e23dd206606a77be23e5a5e39bf493829d29c9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: panel/mod.rs: FileTooLong \u2014 529 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 97% of them inside a single declaration: Panel (3 blocks, 36-962). The bar is 500 significant lines; this is 29 over it, 1.06\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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca549f8441f1ba5d6eba42094cdea0f6261128bfc14ce356a9ae21a09fb442e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_core::engine::transfer::apply_in_txn: FunctionTooLong \u2014 codemark_core::engine::transfer::apply_in_txn runs 104 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 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/transfer.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c682791219d282e4a3e5bee8522455fe1f638be9935a96d35fc4aa68bd4ad2e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/transfer.rs: FileTooLong \u2014 516 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 16 over it, 1.03\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":"crates/codemark-core/src/engine/transfer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b98b0d9d7efc2a429f6ea367cfa3b89401efc55e842d43ebd02efbf56027aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/registry.rs: FileTooLong \u2014 516 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), declaring 31 free functions. The bar is 500 significant lines; this is 16 over it, 1.03\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":"crates/codemark-core/src/storage/registry.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36e8b731a595b7aec566e0e73d6f43d9313146772affc5c0cd30fe8e82cfdf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::auth::handle_device_login: FunctionTooLong \u2014 codemark_cli::cli::handlers::auth::handle_device_login 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":"crates/codemark-cli/src/cli/handlers/auth.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd58ded7c9e12e9a36a94f2b1c48152c6fbf0c9f93db564728eab798fb790a5c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserLayout.handle_key_event: MethodTooLong \u2014 handle_key_event 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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd1589c9d980bf5da0235e019845e2e190d61a1c08a4e25fab540721a9f6ea0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/bookmark_repo.rs: FileTooLong \u2014 505 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 92% of them inside a single declaration: Database (15-694). The bar is 500 significant lines; this is 5 over it, 1.01\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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4284f27179ca11de4c7fc7acbebd063bba6fdb2459040a36a9cfa480936cad81"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemark_cli::cli::handlers::search::handle_search: FunctionTooLong \u2014 codemark_cli::cli::handlers::search::handle_search 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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2661671aa024c1a9e3f51f018f42a8bfb3c61822eb4ecf40cb4dedb366eeb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): crates/codemark-cli/src/cli/handlers/search.rs:23-164 | crates/codemark-cli/src/cli/handlers/search.rs:173-357 \u2014 These two members are variants of one another: 68 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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"67938c9cb19f8085ded2c08a1f38317e074c37cf02afeff6517aa436b529d48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): crates/codemark-tui/src/browser/mod.rs:1459-1562 | crates/codemark-tui/src/browser/mod.rs:1645-1732 \u2014 These two members are variants of one another: 27 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1052b39e86372994b12ea17e7075088c40d6fd3b5383f65221c708118b2c2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): crates/codemark-cli/src/cli/handlers.rs:547-586 | crates/codemark-cli/src/cli/handlers.rs:613-641 | crates/codemark-cli/src/cli/handlers/maintenance.rs:358-438 | crates/codemark-cli/src/cli/handlers/search.rs:173-357 | crates/codemark-cli/src/cli/handlers/search.rs:457-539 | crates/codemark-cli/src/cli/handlers/search.rs:640-716 | crates/codemark-tui/src/browser/mod.rs:1001-1105 | crates/codemark-tui/src/browser/mod.rs:1126-1252 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb7af944f712bf67faf2b23fb8f568c112885a441519f72fe6a5b1922756ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): crates/codetours-server/src/storage/repos/annotation.rs:14-40 | crates/codetours-server/src/storage/repos/bookmark.rs:37-58 | crates/codetours-server/src/storage/repos/collection.rs:34-49 | crates/codetours-server/src/storage/repos/collection.rs:51-70 | crates/codetours-server/src/storage/repos/collection_bookmark.rs:24-47 | crates/codetours-server/src/storage/repos/comment.rs:14-43 | crates/codetours-server/src/storage/repos/resolution.rs:38-56 | crates/codetours-server/src/storage/repos/tag.rs:14-37 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/storage/repos/annotation.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5131ae94c0080a190adafad6a6f4966935fef7cee21c6be421e936f8b6a906a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/codemark-cli/src/cli/handlers/collection.rs:142-167 | crates/codemark-cli/src/cli/handlers/collection.rs:283-299 | crates/codemark-cli/src/cli/handlers/collection.rs:306-325 | crates/codemark-cli/src/cli/handlers/collection.rs:539-579 | crates/codemark-cli/src/cli/handlers/collection.rs:586-606 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"397c92a142d8155d3717cc27adceb3eaed625c87c6ba7cfa5e412a4aed35dad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/codemark-tui/src/browser/tabbed_panel.rs:579-626 | crates/codemark-tui/src/browser/tabbed_panel.rs:629-653 | crates/codemark-tui/src/browser/tabbed_panel.rs:676-727 | crates/codemark-tui/src/browser/tabbed_panel.rs:730-757 | crates/codemark-tui/src/browser/tabbed_panel.rs:760-777 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c48dbad3606bc0f397e2381569145a336ae6a2347435532e959a2ff584da874"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/codemark-cli/src/cli/handlers/bookmark.rs:42-300 | crates/codemark-cli/src/cli/handlers/bookmark.rs:307-556 | crates/codemark-cli/src/cli/handlers/bookmark.rs:563-817 | crates/codemark-cli/src/cli/handlers/bookmark.rs:1133-1304 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3536b8426f4e9ff0f590c500635a14263e2ebe507d349c1deb5864fc922b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): crates/codetours-server/src/github.rs:140-222 | crates/codetours-server/src/github.rs:323-421 \u2014 These two members are one piece of code written twice and then edited apart: 83 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":"crates/codetours-server/src/github.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cd87bfddaffc355d5f05b34ffaf311a05eb03c242382af84711c0a43df50cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): crates/codemark-tui/src/browser/right_pane.rs:743-810 | crates/codemark-tui/src/browser/right_pane.rs:1433-1522 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba1d9b09600df42f801c324a6981b57834ca1f1d71bff18667826cd274b538c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): crates/codetours-server/src/handlers/auth.rs:57-142 | crates/codetours-server/src/handlers/auth.rs:224-306 \u2014 These two members are one piece of code written twice and then edited apart: 83 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":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf7a3579ba258dac93c6f917fe7c8d417e2aedb5c2c236ae9715ff419793715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/codemark-core/src/git/mod.rs:23-56 | crates/codemark-core/src/git/mod.rs:58-94 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"crates/codemark-core/src/git/mod.rs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"516d7809c0135df3767a319b3d0e5320095ec3f8fc5aac6fa9ee251fcd6733f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): crates/codemark-core/src/storage/pack/reader.rs:146-179 | crates/codetours-server/src/storage/repos/bookmark.rs:75-129 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"crates/codemark-core/src/storage/pack/reader.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8094239dd386f36628648a2a8f7d848088a9484d3694db1bff8402883f28d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): crates/codemark-cli/src/cli/output.rs:385-420 | crates/codemark-cli/src/cli/output.rs:441-479 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"279f3434ca4ee5e64efd0c6640b3b1dd238327f6f5b9703f61034d15f0d9195d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/codemark-core/src/grammar/mod.rs:103-140 | crates/codemark-core/src/grammar/mod.rs:174-222 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"crates/codemark-core/src/grammar/mod.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02b9957f7b9e7bcec3dcc7f4386e96d3173bec6570d92a48443affafd2908d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crates/codemark-tui/src/browser/mod.rs:84-132 | crates/codemark-tui/src/component/panel/path.rs:9-69 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3044bcd4cae652b0c4a2593eaacd90dc10b5eed258819fa9596e3b6c43df13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/codemark-core/src/grammar/registry_source.rs:656-683 | crates/codemark-core/src/grammar/source.rs:113-152 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"crates/codemark-core/src/grammar/registry_source.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f63c23848a384281f98e614f6310b81ca1f701fbf97f1078de5d5566c606558"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/codemark-cli/src/cli/output.rs:830-859 | crates/codemark-core/src/templates.rs:527-553 \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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2819182cc7e41ce2505cd653a31efa4bec5f1b4eac05b54b6321608e104ef5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): crates/codemark-tui/src/browser/tabbed_panel.rs:113-146 | crates/codemark-tui/src/browser/tabbed_panel.rs:160-189 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"547142e0f84651c8dd14257abac22301b91d4d264890c87a53f39b42f1b5d98f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/codemark-core/src/storage/semantic_repo.rs:114-145 | crates/codemark-core/src/storage/semantic_repo.rs:316-348 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"crates/codemark-core/src/storage/semantic_repo.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75ca094fa6e17dcf00d342b2805897f94aa62313d47146ff984c854af47eb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codemark-core/src/embeddings/local.rs:318-336 | crates/codemark-core/src/embeddings/local.rs:338-353 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"crates/codemark-core/src/embeddings/local.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcd4105d4495de2dea6367e0eb8038a30cb1f1523da7280deeb1c7306e12494"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/codemark-core/src/storage/bookmark_repo.rs:231-258 | crates/codemark-core/src/storage/collection_repo.rs:81-103 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a332c35c46dec9cce353b87b5352f73ba17ee78b0d88b1ec7598f8804fd18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codemark-core/src/git/context.rs:32-48 | crates/codemark-core/src/git/context.rs:51-67 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"crates/codemark-core/src/git/context.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea29614682605ce84a4a86d52a900af9e5a13686f3a1801825ab33a1a3bcf3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/codetours-server/src/storage/repos/bookmark.rs:14-35 | crates/codetours-server/src/storage/repos/collection.rs:14-32 \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":"crates/codetours-server/src/storage/repos/bookmark.rs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8631e41ee338488e10dec61bb9ee58e24e6e055a91488a6a95b8ca7af403535"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codemark-tui/src/browser/mod.rs:3025-3040 | crates/codemark-tui/src/browser/mod.rs:3043-3058 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":3025}}}],"partialFingerprints":{"codehealthFindingId/v1":"780965ed593b030822b0fb913f6e1b1fe63a26f9c28239a9f86a213536e00fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/codemark-core/src/storage/bookmark_repo.rs:461-482 | crates/codemark-core/src/storage/registry.rs:686-710 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb062d89fc29ffb51107eb7e6ad719ac8c601825b645a9bffa0838835e7df8bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/codemark-tui/src/browser/mod.rs:953-968 | crates/codemark-tui/src/browser/mod.rs:977-994 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8c7e12051428f3e766f32d471713eea6ee0e6cb86941e98d780f8c64eaf7a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/codemark-tui/src/component/panel/mod.rs:365-377 | crates/codemark-tui/src/component/panel/mod.rs:381-395 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dde113663c4d21431d610def6d908361664f8b50c77f6a426c8cda3179403c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codemark-core/src/storage/db.rs:349-369 | crates/codemark-core/src/storage/db.rs:375-398 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"crates/codemark-core/src/storage/db.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98e97d7ad45d82b5913e385ed81093af801e263a58da52abb48c96972cd8cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codemark-core/src/storage/db.rs:404-419 | crates/codetours-server/src/storage/registry.rs:148-161 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"crates/codemark-core/src/storage/db.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a004df8ac613b332c61797d03897bd3725b72d1bdcdc5a349e2ddeaa899c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/codemark-core/src/query/generator.rs:156-169 | crates/codemark-core/src/query/generator.rs:179-192 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7425a233d5152f0ba18410b304060c97dddd33f70323bfbedd3c3408853548"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/codemark-tui/src/layout/mod.rs:212-228 | crates/codemark-tui/src/layout/mod.rs:324-345 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d9968e5416eb2ec5b7d50f423ccf64c6f3a05128424e160ffdc6b6d4fc83ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/codemark-tui/src/component/panel/mod.rs:539-557 | crates/codemark-tui/src/component/panel/mod.rs:561-578 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18d36b01c84d8d0c1f58dd10761f9fb18aab2070c52683ce6787eacd0d99aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/codemark-cli/src/cli/output.rs:803-813 | crates/codemark-cli/src/cli/output.rs:815-827 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"89971d030e04a18110e3b9298f85576d4a7c91f42a728eb5fece1ef53988caca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): crates/codemark-core/src/templates.rs:567-576 | crates/codemark-core/src/templates.rs:612-621 | crates/codemark-core/src/templates.rs:636-645 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"crates/codemark-core/src/templates.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f6b4a81b368fb9e376f5b33760a40e1fe9add384b3cc0691b104b370eb5ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): crates/codetours-server/src/storage/repos/annotation.rs:42-51 | crates/codetours-server/src/storage/repos/collection.rs:72-81 | crates/codetours-server/src/storage/repos/collection.rs:83-95 | crates/codetours-server/src/storage/repos/collection_bookmark.rs:49-61 | crates/codetours-server/src/storage/repos/comment.rs:71-80 | crates/codetours-server/src/storage/repos/tag.rs:39-48 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/storage/repos/annotation.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6143034fa7b144d47341e7c1db06f0f7306287cf2787f34845432733c7ece7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codemark-core/src/config.rs:692-701 | crates/codemark-core/src/config.rs:734-747 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/config.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86edb3e9c6520fc5bc99f9426d5c71e56932a25ef7fe9a9ca0a2ffa80fda613"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/codemark-cli/src/cli/handlers.rs:908-928 | crates/codemark-cli/src/cli/handlers.rs:937-960 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"9407771c4c734958210ecabbba5e2ab3e3a1e46a75bb69d0eed3be2e87651aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): crates/codetours-server/src/github.rs:428-438 | crates/codetours-server/src/github.rs:444-454 | crates/codetours-server/src/github.rs:465-475 \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":"crates/codetours-server/src/github.rs"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17bc88ea6aaafb2e284e71ad2fdc04fc6115fb9baa4aa60a979709be07066bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codemark-tui/src/component/panel/mod.rs:501-509 | crates/codemark-tui/src/component/panel/mod.rs:514-526 \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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6302eae97553235c005ece74b247e39164618d33b47de8901d06d39725e5894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/codemark-core/src/storage/bookmark_repo.rs:166-185 | crates/codemark-core/src/storage/bookmark_repo.rs:198-209 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbefd7a280eba15cd9d7668691e95c85488814cb869ed51c2f6c518f4a86ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/codemark-cli/src/cli/handlers.rs:968-973 | crates/codemark-cli/src/cli/handlers.rs:982-988 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2300f8cdc485279b12efb1f480ae8185cf6939067fd6b139804c154ade6e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 8\u002B corresponding lines): crates/codemark-core/src/storage/collection_repo.rs:35-45 | crates/codemark-core/src/storage/collection_repo.rs:68-78 | crates/codemark-core/src/storage/repo_repo.rs:44-53 | crates/codemark-core/src/storage/repo_repo.rs:57-64 | crates/codemark-core/src/storage/repo_repo.rs:68-77 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4227df00ff0463089cdaf99b3bd8dd056067b85c7a085dec62ffce1e3a157c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): crates/codemark-core/src/storage/collection_repo.rs:392-404 | crates/codemark-core/src/storage/collection_repo.rs:462-469 | crates/codemark-core/src/storage/repo_repo.rs:80-88 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9864998ad59a1dbc8a6072faab6c40db195114540d5ebeb87a87bfa2985279b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codemark-core/src/storage/semantic_repo.rs:176-184 | crates/codemark-core/src/storage/semantic_repo.rs:193-201 \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":"crates/codemark-core/src/storage/semantic_repo.rs"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c2ed9b63bf79b97bbc05d19559388301cac6f14ca3e1d6c83d79a0eee740ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): crates/codemark-cli/src/cli/output.rs:210-216 | crates/codemark-cli/src/cli/output.rs:227-234 \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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2932af6a8180f70e0157f86a9d7dc6716911e4ca8990f6b5e758574e6f0ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/codemark-core/src/storage/registry.rs:256-279 | crates/codemark-core/src/storage/registry.rs:462-494 \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":"crates/codemark-core/src/storage/registry.rs"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"860d31ee8b1be4876e066e2594db86512a50368fad4a1b41e74f49099631fe81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/codemark-core/src/storage/semantic_repo.rs:62-71 | crates/codemark-core/src/storage/semantic_repo.rs:298-306 \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":"crates/codemark-core/src/storage/semantic_repo.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb8d2e750a66123a46b4eceb805eb0a1f7c97e922fb64fd81d2d879f883810e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/codetours-server/src/storage/registry.rs:274-283 | crates/codetours-server/src/storage/registry.rs:329-338 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/storage/registry.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e7dfac7770388f219e9651f9ef98a59be9ff86cf56aef6e1d4ebadac79120c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): crates/codemark-core/src/storage/bookmark_repo.rs:684-693 | crates/codemark-core/src/storage/collection_repo.rs:472-484 | crates/codemark-core/src/storage/pack/reader.rs:73-88 | crates/codemark-core/src/storage/pack/reader.rs:90-108 | crates/codemark-core/src/storage/registry.rs:670-679 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"142457bb3e03835ef1828d5920770fc40ab4e254a6ccdc3fcffa9b42345a64f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codemark-core/src/grammar/registry_source.rs:595-602 | crates/codemark-core/src/templates.rs:706-716 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"crates/codemark-core/src/grammar/registry_source.rs"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e3480567eface379d56300d655a56c93164f282d4478ffbe5932779159df0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): crates/codemark-tui/src/browser/mod.rs:308-310 | crates/codemark-tui/src/browser/right_pane.rs:1299-1301 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3a4907c10be2e4d3f34c3ced0e76f5c01de9e5a8d3041f53dbce5363b84138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/codemark-core/src/storage/bookmark_repo.rs:674-681 | crates/codemark-core/src/storage/collection_repo.rs:287-297 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c96794c9fac4b7697740fa31a917f7a280d52ed315ee25dea1117a690e07a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (118 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/bookmark.rs:94-211 | crates/codemark-cli/src/cli/handlers/bookmark.rs:355-472 | crates/codemark-cli/src/cli/handlers/bookmark.rs:617-734 \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 \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:94\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026AddArgsOriginal\u0060 in one and \u0060\u0026AddFromSnippetArgs\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:214\u0060 calls \u0060load_config\u0060 and \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:476\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8353a376414868ed224a59901647a394e317366bc8df27fb683881b7252941ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201344 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:1023-1066 | crates/codemark-tui/src/browser/mod.rs:1167-1206 \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 \u0060crates/codemark-tui/src/browser/mod.rs:1023\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"387f9fed60cf5835524d8e891b81b59600ebae49749021bbe806acb62de63081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/search.rs:135-164 | crates/codemark-cli/src/cli/handlers/search.rs:327-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-cli/src/cli/handlers/search.rs:135\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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"04398db5dc10ca1703fff767319ece5d2a0cebb32dc0bfd148f5e281a4986ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201330 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/search.rs:375-404 | crates/codemark-cli/src/cli/handlers/search.rs:411-440 | crates/codemark-cli/src/cli/handlers/search.rs:466-468 \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 \u0060crates/codemark-cli/src/cli/handlers/search.rs:375\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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf21bb29e857e5662e0f0da7d9f5a185d88f05c2626055b58be801d2a4a1e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): crates/codemark-cli/src/cli/output.rs:834-859 | crates/codemark-core/src/templates.rs:528-553 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eb0ca2709d693335b722d2857f9887a9d08ec38576bded73183d4797441d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:1872-1894 | crates/codemark-tui/src/browser/right_pane.rs:1947-1970 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"545ca54b0ba87a5d6ab0494551d09c4ad8d7d031f6d29002318b7dd6047f0146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/search.rs:76-98 | crates/codemark-cli/src/cli/handlers/search.rs:283-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a3304cb623e02d9540c092243a2a07f9d64f276e4c871716acfaa51a413e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codetours-server/src/handlers/tours/get.rs:145-167 | crates/codetours-server/src/handlers/tours/get.rs:204-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codetours-server/src/handlers/tours/get.rs:203\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/handlers/tours/get.rs:142\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codetours-server/src/handlers/tours/get.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3793e380fac39273e2bccffcc30ba797c4fb68fa4e363db908224be17add1d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/bookmark.rs:224-245 | crates/codemark-cli/src/cli/handlers/bookmark.rs:484-505 | crates/codemark-cli/src/cli/handlers/bookmark.rs:745-766 \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 \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:224\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d2ebedf3b5ec5152524a7f1bd91eaedde8ee2d74034e034ee946e99a9f6e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/auth_resolve.rs:101-122 | crates/codemark-core/src/sync.rs:85-106 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/auth_resolve.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5e229d70a17078f00b35b1f20659422d82dcfc6aec346021d1ee01a6be8ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): crates/codetours-server/src/handlers/auth.rs:106-127 | crates/codetours-server/src/handlers/auth.rs:279-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codetours-server/src/handlers/auth.rs:103\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/handlers/auth.rs:277\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7adc9ce55196fbc70ca20214688e65f7b0fbd2bfd571e4c4f37fba2af1b8439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/bookmark.rs:253-272 | crates/codemark-cli/src/cli/handlers/bookmark.rs:513-532 | crates/codemark-cli/src/cli/handlers/bookmark.rs:774-793 \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 \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:253\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f830dce9f59349abc10e4bbea3253694d4faaedbb874488b2a84dd6a65b01a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crates/codemark-cli/src/cli/output.rs:396-412 | crates/codemark-cli/src/cli/output.rs:453-471 \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 \u0060crates/codemark-cli/src/cli/output.rs:396\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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5b569f54399d36b0199e25d293ade48098296af723f28f6af9caea4c322ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/collection.rs:231-248 | crates/codemark-cli/src/cli/handlers/collection.rs:872-889 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:231\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 before the matched lines, \u0060crates/codemark-cli/src/cli/handlers/collection.rs:227\u0060 calls \u0060now_iso\u0060 and \u0060crates/codemark-cli/src/cli/handlers/collection.rs:868\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0e7efda8f5ca1c24c18eaf749b185ce6609642c15809d1dd8fa8a392b3c614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/codemark-cli/src/cli/output.rs:516-533 | crates/codemark-cli/src/cli/output.rs:563-580 \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 \u0060crates/codemark-cli/src/cli/output.rs:516\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":"crates/codemark-cli/src/cli/output.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"233a56dd36b09f17ae8612fed24c0930a436f699b536d1834cdb22c0d156b7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:1293-1309 | crates/codemark-cli/src/cli/handlers/collection.rs:187-203 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:1293\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1b5f7ffad59f3ca65169f17188fdd09eac96e5ce448fc388ba600534b206c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/comment.rs:173-188 | crates/codemark-tui/src/browser/inline_threads.rs:123-139 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/comment.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e5a63ab81876243dfacadb9906de266c231bb21178094bc294d6aa6af7d27d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codemark-core/src/query/generator.rs:1554-1570 | crates/codemark-core/src/query/generator.rs:1596-1612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c94c95ffc8d4d16c07646add36adfe067b6412999778b1248c3c84e2a26fc60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/codemark-tui/src/layout/mod.rs:234-250 | crates/codemark-tui/src/layout/mod.rs:349-365 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b468dc202fd100384f69946e78d503cc2b4d729704bfc5b5a1242c12c4fbf97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:757-772 | crates/codemark-cli/src/cli/handlers.rs:781-792 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:757\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"83282e8f17bf0789cfb979a882f984aa47ebee9c21189a396ee66018819b8cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:745-777 | crates/codemark-tui/src/browser/right_pane.rs:1449-1483 \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 \u0060crates/codemark-tui/src/browser/right_pane.rs:745\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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4301c853913c5859f42f189396f85603dc1492d6754f53d1f628b070fb5a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): crates/codetours-server/src/github.rs:187-199 | crates/codetours-server/src/github.rs:366-381 \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 \u0060crates/codetours-server/src/github.rs:366\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":"crates/codetours-server/src/github.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbd73b5aebe727eb63f4957a9527a8c140c2e4dd32c3ac512eeadcae822c6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): crates/codemark-cli/src/cli/handlers.rs:553-567 | crates/codemark-cli/src/cli/handlers.rs:619-633 | crates/codemark-cli/src/cli/handlers/maintenance.rs:416-429 \u2014 before extracting anything, compare \u0060crates/codemark-cli/src/cli/handlers.rs\u0060 and \u0060crates/codemark-cli/src/cli/handlers/maintenance.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4056ef0e43f270888183edad8274ef1a8cf2e61213e62736bc1bb1184f4e3c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:740-754 | crates/codemark-cli/src/cli/handlers.rs:778-792 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:740\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"788cda627864ea46d9289f40a5cc7fe024be9b63c84dc145c57fdb8424bf18d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/collection.rs:212-226 | crates/codemark-cli/src/cli/handlers/collection.rs:854-868 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:212\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026CollectionAddArgs\u0060 in one and \u0060\u0026CollectionAnnotateArgs\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codemark-cli/src/cli/handlers/collection.rs:227\u0060 calls \u0060now_iso\u0060 and \u0060crates/codemark-cli/src/cli/handlers/collection.rs:869\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7bf5beabee445c693c17ffd42e0d2a5e9cbd940dfb84d445376b66a3c4a02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/search.rs:119-133 | crates/codemark-cli/src/cli/handlers/search.rs:312-325 \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 \u0060crates/codemark-cli/src/cli/handlers/search.rs:119\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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94d66cf636414f831dc1e6f15f0bccb64ea87161528ab9deaa50a1329532c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codemark-tui/src/browser/tabbed_panel.rs:133-146 | crates/codemark-tui/src/browser/tabbed_panel.rs:176-189 \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 \u0060crates/codemark-tui/src/browser/tabbed_panel.rs:133\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7953a6188c36bdf718c46904a144fd4b1ceb62d558c13a10f8533f12b3b24048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codemark-tui/src/component/panel/mod.rs:399-412 | crates/codemark-tui/src/component/panel/mod.rs:461-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 \u0060crates/codemark-tui/src/component/panel/mod.rs:399\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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15a1eeb2f8d23d3a999a481c099f634e9ff61a5a2ae99082aa7cef184c347ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): crates/codemark-tui/src/layout/mod.rs:215-228 | crates/codemark-tui/src/layout/mod.rs:334-345 \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 \u0060crates/codemark-tui/src/layout/mod.rs:215\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":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67ff67136614b680688d0c6211712b2df276b40a09d980d9db97d04d16c9fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/codetours-server/src/github.rs:147-160 | crates/codetours-server/src/github.rs:330-342 \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 \u0060crates/codetours-server/src/github.rs:147\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. 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 after the matched lines, \u0060crates/codetours-server/src/github.rs:343\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/github.rs:160\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codetours-server/src/github.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"91484673e385429ce316766f674ac7f3d369e16a919297d383ffdb7ab56d74af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 5): crates/codemark-cli/src/cli/handlers/search.rs:182-194 | crates/codemark-cli/src/cli/handlers/search.rs:473-481 | crates/codemark-cli/src/cli/handlers/search.rs:651-663 | crates/codemark-tui/src/browser/mod.rs:1044-1052 | crates/codemark-tui/src/browser/mod.rs:1184-1192 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-cli/src/cli/handlers/search.rs:182\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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"443f7ebd0e24d32969eb41a1a6839f36c89e9390879cd870019a7bf841a49150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/collection.rs:80-102 | crates/codemark-cli/src/cli/handlers/collection.rs:210-232 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026CollectionCreateArgs\u0060 in one and \u0060\u0026CollectionAddArgs\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a750b17cf37517fc1b93d23507343f642cdb2f4d26a255e28d225c8952240f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/app.rs:196-208 | crates/codemark-tui/src/entry.rs:247-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/app.rs"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cf79cf57d214648e58609e20a9a4babb95cf43a46ec1e621c5f34996966235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:104-116 | crates/codemark-tui/src/component/panel/path.rs:32-44 \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 \u0060crates/codemark-tui/src/browser/mod.rs:104\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc4fe10ce810bce61cb09b6eb6d7751b856136e46b2112960dd4a84f2284f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/browser/tabbed_panel.rs:970-982 | crates/codemark-tui/src/component/panel/mod.rs:824-836 \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 \u0060crates/codemark-tui/src/browser/tabbed_panel.rs:970\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd6cc9e2e5e356981e213cc477f89882ccf65da22697d01b0eee5ac7ab1a378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/component/panel/mod.rs:858-870 | crates/codemark-tui/src/component/panel/mod.rs:921-933 \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 \u0060crates/codemark-tui/src/component/panel/mod.rs:858\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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2529443a24c0a09285e1a0d43b81c26d17f740d03c554c1455c9db35c7500c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/layout/mod.rs:269-281 | crates/codemark-tui/src/layout/mod.rs:384-396 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"26dc75c74a4a2b51e00400cf64f6ac2992600f2b013e6e1dbf38a6d0885a9cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/codetours-server/src/handlers/tours/delete.rs:19-30 | crates/codetours-server/src/handlers/tours/get.rs:133-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/tours/delete.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f55c49a5a5b49be5b4efa015b728eadfac18bcf20ee0d73341d90a1eab77b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): crates/codemark-core/src/grammar/mod.rs:104-124 | crates/codemark-core/src/grammar/mod.rs:184-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/grammar/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2baf6b07a4f64c696f18f2fbf449fd826d019d27bbce3653bb18e835fd2b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codemark-core/src/storage/bookmark_repo.rs:404-417 | crates/codemark-core/src/storage/bookmark_repo.rs:598-611 \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 \u0060crates/codemark-core/src/storage/bookmark_repo.rs:404\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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b7cddd1fc9d10b6f8ce4658b4f0a1e1b8fcbc5cf1cdd3d494162be55f2a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codemark-core/src/storage/semantic_repo.rs:134-145 | crates/codemark-core/src/storage/semantic_repo.rs:337-348 \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 \u0060crates/codemark-core/src/storage/semantic_repo.rs:134\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":"crates/codemark-core/src/storage/semantic_repo.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20eada56e23f537f252f387e16e302f2d7cb4a80bf0c4102f7ceb6a74296b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crates/codemark-tui/src/browser/comment_draft.rs:383-391 | crates/codemark-tui/src/ui/mod.rs:386-397 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/comment_draft.rs"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d99524c28c31e6872b3fa7bbdf465419ce29be87f5d26a203804179485c19a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:650-661 | crates/codemark-tui/src/browser/mod.rs:689-700 \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 \u0060crates/codemark-tui/src/browser/mod.rs:650\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060super) fn preview_content_item(\u0026mut\u0060 in one and \u0060super) fn on_content_selection_changed(\u0026mut\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba34a044e1a85b6bab20d0672d177063fcafaf2efa5b9946948166c1ec13738"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:1061-1072 | crates/codemark-tui/src/browser/right_pane.rs:1506-1516 \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 \u0060crates/codemark-tui/src/browser/right_pane.rs:1061\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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"e050d63f1c276f983cec8cd99abc621d3836eb6657fdc334a0cfb683949fa09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codemark-tui/src/layout/mod.rs:254-265 | crates/codemark-tui/src/layout/mod.rs:369-380 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/layout/mod.rs"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a90b0895ad77e1e3cdd0e82e16bab39f6e33c79c513bdb6ed1c7aab2d4b67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/codetours-server/src/handlers/auth.rs:90-101 | crates/codetours-server/src/handlers/auth.rs:266-276 \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 \u0060crates/codetours-server/src/handlers/auth.rs:90\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, \u0060crates/codetours-server/src/handlers/auth.rs:103\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/handlers/auth.rs:279\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bcdee463e45265f585396c1dab73cc3507b52680deab182c51513657909332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 8): crates/codemark-cli/src/cli/handlers.rs:556-565 | crates/codemark-cli/src/cli/handlers.rs:622-631 | crates/codemark-cli/src/cli/handlers/maintenance.rs:418-428 | crates/codemark-cli/src/cli/handlers/search.rs:180-189 | crates/codemark-cli/src/cli/handlers/search.rs:471-478 | crates/codemark-cli/src/cli/handlers/search.rs:649-658 | crates/codemark-tui/src/browser/mod.rs:1042-1049 | crates/codemark-tui/src/browser/mod.rs:1182-1189 \u2014 before extracting anything, compare \u0060crates/codemark-cli/src/cli/handlers.rs\u0060 and \u0060crates/codemark-cli/src/cli/handlers/maintenance.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060\u0026Config\u0060 in one and \u0060\u0026codemark_core::config::Config\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codemark-tui/src/browser/mod.rs:1049\u0060 calls \u0060effective_threshold\u0060, \u0060get_models_dir\u0060 and \u0060crates/codemark-cli/src/cli/handlers/maintenance.rs:428\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c37c705a5a1fdc6e7a244e85ce7969ff9a3393f940840e88b374518fec801fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/bookmark.rs:278-288 | crates/codemark-cli/src/cli/handlers/bookmark.rs:536-546 | crates/codemark-cli/src/cli/handlers/bookmark.rs:796-806 \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 \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:278\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d70a49fface82cee30d8063a1e59c59f997156dadd7d8c7339618adbe5d8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codemark-core/src/embeddings/local.rs:319-329 | crates/codemark-core/src/embeddings/local.rs:339-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/embeddings/local.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"788353e85d8adc1610b0e5471cc1bf4923a1a1dbe124d29bee2bfcb4d2a21a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:357-367 | crates/codemark-tui/src/browser/right_pane.rs:1371-1381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"60293666b4c1d4fe3944a399833be1ad5f1223688b535daf3a4d7dae46bf3de7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:1032-1040 | crates/codemark-tui/src/browser/right_pane.rs:1434-1444 \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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"853042680a6d56c40881d7fda5aea4380685accb206dcd23efd6be63d7c9bcdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codemark-tui/src/state.rs:337-347 | crates/codemark-tui/src/state.rs:358-368 \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 \u0060crates/codemark-tui/src/state.rs:337\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":"crates/codemark-tui/src/state.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"257e6c9d6b08e81143553ce56a37914bc542fd3dacc119a2f812920e7b5a97f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codetours-server/src/handlers/tours/create.rs:700-710 | crates/codetours-server/src/handlers/tours/create.rs:713-723 \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 \u0060crates/codetours-server/src/handlers/tours/create.rs:700\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. 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a69d8ac31d9932851828e0c4150ee02cde09196442a6deaa449035a5f5963b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crates/codemark-core/src/storage/bookmark_repo.rs:699-708 | crates/codemark-core/src/storage/pack/reader.rs:153-161 | crates/codetours-server/src/storage/repos/bookmark.rs:102-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-core/src/storage/bookmark_repo.rs:699\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, \u0060crates/codemark-core/src/storage/pack/reader.rs:150\u0060 calls \u0060and_then\u0060, \u0060parse\u0060, \u0060ok\u0060 and \u0060crates/codemark-core/src/storage/bookmark_repo.rs:698\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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad637db82f1947627516ff247d53ccf76f018bce26a9013a5180523fccc4212d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/codetours-server/src/handlers/tours/delete.rs:22-31 | crates/codetours-server/src/handlers/tours/get.rs:136-146 | crates/codetours-server/src/handlers/tours/list.rs:235-244 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/handlers/tours/delete.rs:22\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":"crates/codetours-server/src/handlers/tours/delete.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8a170170b9e219f8c3ac7ce152887eee3a159612680459ae60a97bf72f282d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:1465-1474 | crates/codemark-cli/src/cli/handlers/bookmark.rs:942-951 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:1465\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77d7b3b20bbaa4770e8fdba2ad6cb72db3d587f9847b5cf46be08835db7ce1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/collection.rs:368-377 | crates/codemark-cli/src/cli/handlers/collection.rs:453-462 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:368\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f702fa575ba29cc562ca0fb42649dcf2935c80dd2c818c3b4605e5402aa6eb91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/collection.rs:390-400 | crates/codemark-cli/src/cli/handlers/collection.rs:477-487 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:390\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b3d1e4a3be05cfea26533413b6c9d1801bfbb28f9f05e7d6bc8911c674b77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/maintenance.rs:228-236 | crates/codemark-cli/src/cli/handlers/maintenance.rs:258-267 \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 \u0060crates/codemark-cli/src/cli/handlers/maintenance.rs:228\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. 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":"crates/codemark-cli/src/cli/handlers/maintenance.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3815a145f4c005be241b69b64a8c40ee7095c572e9b93519d495539fb31da59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codemark-core/src/engine/resolution.rs:230-239 | crates/codemark-core/src/engine/resolution.rs:251-259 \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 \u0060crates/codemark-core/src/engine/resolution.rs:230\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. 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":"crates/codemark-core/src/engine/resolution.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c787b036eca9a93a5f34210683782f1155d1c308efda6120deea528781278de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codemark-core/src/git/mod.rs:29-38 | crates/codemark-core/src/git/mod.rs:66-75 \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 \u0060crates/codemark-core/src/git/mod.rs:29\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":"crates/codemark-core/src/git/mod.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba0a8de0acb565fef99977dd99e3fe0b42273d7aeaa0292db53d59909bb836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codemark-core/src/storage/registry.rs:431-439 | crates/codemark-core/src/storage/registry.rs:446-455 \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 \u0060crates/codemark-core/src/storage/registry.rs:431\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":"crates/codemark-core/src/storage/registry.rs"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"956c5ed5b75ca89da755d71a527c0fc1b79f6dcd0699a975968f3818550ad9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:1497-1506 | crates/codemark-tui/src/browser/mod.rs:1664-1673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codemark-tui/src/browser/mod.rs:1507\u0060 calls \u0060parent\u0060, \u0060unwrap_or\u0060, \u0060to_path_buf\u0060 and \u0060crates/codemark-tui/src/browser/mod.rs:1675\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d95bbc659c6a91c9a8cd725a9d068dba3fcfda0369842af57dac85f6608393c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codemark-tui/src/browser/tabbed_panel.rs:958-966 | crates/codemark-tui/src/component/panel/mod.rs:811-820 \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 \u0060crates/codemark-tui/src/browser/tabbed_panel.rs:958\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed065a6a83cc63d7fe15ffaa2f645914b6306b6e3e99f15cfe5711c79b7ccc96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/codemark-tui/src/component/code_preview.rs:639-648 | crates/codemark-tui/src/component/panel/mod.rs:885-893 \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 \u0060crates/codemark-tui/src/component/code_preview.rs:639\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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f55e46f9f58cfd2a2561a148bee0623842e85da3f02d2dea86e5a1412f70fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/codemark-tui/src/browser/tabbed_panel.rs:618-626 | crates/codemark-tui/src/browser/tabbed_panel.rs:645-653 | crates/codemark-tui/src/browser/tabbed_panel.rs:719-727 | crates/codemark-tui/src/browser/tabbed_panel.rs:749-757 | crates/codemark-tui/src/browser/tabbed_panel.rs:769-777 \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 \u0060crates/codemark-tui/src/browser/tabbed_panel.rs:618\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"9345761d4567c4e27f46564a936deab2118fff8b3de5e206b7baf1e7f48ccc60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/collection.rs:98-106 | crates/codemark-cli/src/cli/handlers/collection.rs:228-236 | crates/codemark-cli/src/cli/handlers/collection.rs:869-877 \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 \u0060crates/codemark-cli/src/cli/handlers/collection.rs:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026CollectionCreateArgs\u0060 in one and \u0060\u0026CollectionAddArgs\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-cli/src/cli/handlers/collection.rs:97\u0060 calls \u0060now_iso\u0060 and \u0060crates/codemark-cli/src/cli/handlers/collection.rs:868\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0d460a3b4bdf04e5ae01f9d28ee2f06f7cb4f165fb615f6d1ca7f29deddd66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codemark-tui/src/browser/right_pane.rs:1883-1891 | crates/codemark-tui/src/browser/right_pane.rs:1959-1967 | crates/codemark-tui/src/browser/tabbed_panel.rs:915-923 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-tui/src/browser/right_pane.rs:1883\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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"243d62d76a2a62a5bb0602b0377d1349dd2ac288865a1ab665c4eeebe7129655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/codemark-tui/src/component/code_preview.rs:639-647 | crates/codemark-tui/src/component/markdown_panel.rs:576-584 | crates/codemark-tui/src/component/panel/mod.rs:885-893 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-tui/src/component/code_preview.rs:639\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":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"064b07394f0c3e792adc30e195f20d5a4c26f8b9353018c71681b2f3539ac48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:389-397 | crates/codemark-cli/src/cli/handlers.rs:411-419 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:389\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-cli/src/cli/handlers.rs:410\u0060 calls \u0060clone\u0060 and \u0060crates/codemark-cli/src/cli/handlers.rs:388\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08a7c9c27764b7460f24b71552f5a5515202ac6d015cae8bca5d8cc9dd9c403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:671-679 | crates/codemark-cli/src/cli/handlers.rs:685-693 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8512faacd019b240811f81697a654d30646257a572a52e9af8c91f84f7af6554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:1451-1459 | crates/codemark-cli/src/cli/handlers/bookmark.rs:928-936 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:1451\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e55f4373c95d9ccc92f81c3985f085abb0a2933cbcd8e09013d29e4e0a3cc35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/repo.rs:168-176 | crates/codemark-cli/src/cli/handlers/repo.rs:236-244 \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 \u0060crates/codemark-cli/src/cli/handlers/repo.rs:168\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":"crates/codemark-cli/src/cli/handlers/repo.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"810a545036e0b3bf5fc819122323856fcba5cb90775f9fa8bb1119f4718b5cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-core/src/git/context.rs:37-45 | crates/codemark-core/src/git/context.rs:56-64 \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 \u0060crates/codemark-core/src/git/context.rs:37\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":"crates/codemark-core/src/git/context.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"14315fd082a1d7e2f509fa1b9bd62faf3a4088b6be76c4e1387c1a9a88b53e5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-core/src/storage/bookmark_repo.rs:617-625 | crates/codetours-server/src/storage/repos/tag.rs:22-30 \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 \u0060crates/codemark-core/src/storage/bookmark_repo.rs:617\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060bookmark_id\u0060 to \u0060\u0026str\u0060 in one and \u0060String\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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"b382adf7267a72bc9a29c1a48a113db574d5231d495d2a508493444bdb53823f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-core/src/sync.rs:214-222 | crates/codemark-core/src/sync.rs:510-518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-core/src/sync.rs:212\u0060 calls \u0060status\u0060 and \u0060crates/codemark-core/src/sync.rs:508\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/sync.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c5df83e41e889d3e5d7357687d3e91947eeeaa89ce4432561986a7f0579372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:738-746 | crates/codemark-tui/src/browser/mod.rs:770-778 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-tui/src/browser/mod.rs:731\u0060 calls \u0060is_loading\u0060, \u0060finish_loading\u0060 and \u0060crates/codemark-tui/src/browser/mod.rs:768\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec67e5c04c39cce8f3e9348a455a27f60f0c5add9c4bbe835500a16c58c0d212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:1858-1865 | crates/codemark-tui/src/browser/right_pane.rs:1932-1940 \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 \u0060crates/codemark-tui/src/browser/right_pane.rs:1858\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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38db862e014e22e43638eb4d48ba324ed0f493f9055ca0f4f45b5c0e65a715d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codetours-server/src/github.rs:299-308 | crates/codetours-server/src/github.rs:430-438 \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 \u0060crates/codetours-server/src/github.rs:299\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":"crates/codetours-server/src/github.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdca3a6216bfa73bb35a27c9fe2f4489990ebf714e64f3bf7d22b841447cb823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codetours-server/src/github.rs:446-454 | crates/codetours-server/src/github.rs:467-475 \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 \u0060crates/codetours-server/src/github.rs:446\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":"crates/codetours-server/src/github.rs"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f103a707f99b1118d736fb44b955314a1c9a9fd14b96119c0e4e833b746de320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codetours-server/src/storage/repos/collection.rs:24-32 | crates/codetours-server/src/storage/repos/resolution.rs:28-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/storage/repos/collection.rs:24\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":"crates/codetours-server/src/storage/repos/collection.rs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ce97a141b37035ee8f1dc396d1e7a6ab5a7b474a573bd57327a283df9b1e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/codemark-cli/src/cli/handlers.rs:1412-1419 | crates/codemark-cli/src/cli/handlers/maintenance.rs:234-241 | crates/codemark-cli/src/cli/handlers/maintenance.rs:265-272 | crates/codemark-core/src/engine/heal.rs:161-168 \u2014 before extracting anything, compare \u0060crates/codemark-cli/src/cli/handlers.rs\u0060 and \u0060crates/codemark-cli/src/cli/handlers/maintenance.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"5904c40340a4ad692832c80fc4e346736e9709a7c09790b2974777cedb7f8df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/codemark-cli/src/cli/handlers.rs:390-397 | crates/codemark-cli/src/cli/handlers.rs:412-419 | crates/codemark-cli/src/cli/handlers.rs:432-439 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:390\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-cli/src/cli/handlers.rs:410\u0060 calls \u0060clone\u0060 and \u0060crates/codemark-cli/src/cli/handlers.rs:388\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda864c2d893332aaae9b4d3fbff3e4d61b1a6ec844f7ef1d065ce6c5221cc23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): crates/codemark-cli/src/cli/handlers/bookmark.rs:44-53 | crates/codemark-cli/src/cli/handlers/bookmark.rs:319-322 | crates/codemark-cli/src/cli/handlers/bookmark.rs:565-572 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026AddArgsOriginal\u0060 in one and \u0060\u0026AddFromQueryArgs\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dead808ba4fcb7ccc1376e979f1323d5a8834126853491ccfbcc0361dcd01778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/search.rs:65-72 | crates/codemark-cli/src/cli/handlers/search.rs:104-111 \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 \u0060crates/codemark-cli/src/cli/handlers/search.rs:65\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":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"157dccc2919d78d983f1afe858692d69618f0721f7afbe6cd17d7d92a1dc74c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-core/src/engine/resolution.rs:173-180 | crates/codemark-core/src/engine/resolution.rs:184-191 \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 \u0060crates/codemark-core/src/engine/resolution.rs:173\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":"crates/codemark-core/src/engine/resolution.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05bdcc74373526c5e35263e68779adcdcd52a3b198a42ec1a482bda5565d1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-core/src/storage/pack/reader.rs:172-179 | crates/codetours-server/src/storage/repos/bookmark.rs:122-129 \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 \u0060crates/codemark-core/src/storage/pack/reader.rs:172\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":"crates/codemark-core/src/storage/pack/reader.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"72171a8b5793a586dd0af40beb18ebb0adf56a8f6ca63d4812e27a5f57b3b7c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:1510-1517 | crates/codemark-tui/src/browser/mod.rs:1675-1682 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b950d7ba917bad97e924116a2cded4e08decae349c9d77656f6b1cbdc208f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codemark-tui/src/component/code_preview.rs:806-812 | crates/codemark-tui/src/component/code_preview.rs:1403-1410 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49f781e2e624ffbb2c55f943a3f23cfd2daea4580299b174208439580cff7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/codemark-tui/src/component/panel/mod.rs:590-597 | crates/codemark-tui/src/component/panel/mod.rs:604-610 \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 \u0060crates/codemark-tui/src/component/panel/mod.rs:590\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":"crates/codemark-tui/src/component/panel/mod.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e254f0533fb1fcd39da36156289a25f73d0dbd6cdb71a355a2b79ee5a50547de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codetours-server/src/handlers/tours/get.rs:191-199 | crates/codetours-server/src/handlers/tours/list.rs:234-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codetours-server/src/handlers/tours/get.rs:203\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/handlers/tours/list.rs:243\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":"crates/codetours-server/src/handlers/tours/get.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb581e074f0b3d300383750c20525a207e3fd6f8f2a1eb7cb7825b889ede9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codemark-cli/src/cli/handlers/bookmark.rs:159-165 | crates/codemark-cli/src/cli/handlers/bookmark.rs:420-426 | crates/codemark-cli/src/cli/handlers/bookmark.rs:682-688 | crates/codemark-cli/src/cli/handlers/bookmark.rs:1158-1164 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-cli/src/cli/handlers/bookmark.rs:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026AddArgsOriginal\u0060 in one and \u0060\u0026AddFromSnippetArgs\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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9904ede13ef59c06f12e52694bc044fa7bd7c8184ffe5c7866398b00192cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): crates/codemark-tui/src/browser/right_pane.rs:756-773 | crates/codemark-tui/src/browser/right_pane.rs:1115-1131 | crates/codemark-tui/src/browser/right_pane.rs:1460-1478 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/codemark-tui/src/browser/right_pane.rs:753\u0060 calls \u0060list_resolutions\u0060, \u0060unwrap_or_default\u0060 and \u0060crates/codemark-tui/src/browser/right_pane.rs:1113\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee47662d7baa58da2958b8b3e63422169affa98cd7b7621bd5832f9ec90333bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-cli/src/cli/handlers/search.rs:238-244 | crates/codemark-cli/src/cli/handlers/search.rs:530-536 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/search.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"651dce12a4f048d60d566f31943cd07d11976332ae8cd2649dc5d5f25c7c549d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/storage/collection_repo.rs:142-148 | crates/codemark-core/src/storage/collection_repo.rs:206-212 \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 \u0060crates/codemark-core/src/storage/collection_repo.rs:142\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":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8576f4d7022d63c319fb8df74a3b58ef9a007c61e7c5492e6b86a4616d59582a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/codemark-core/src/storage/collection_repo.rs:488-509 | crates/codetours-server/src/storage/repos/collection.rs:99-120 \u2014 before extracting anything, compare \u0060crates/codemark-core/src/storage/collection_repo.rs\u0060 and \u0060crates/codetours-server/src/storage/repos/collection.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1476f3cf52559da3e46ebdbae9aebf4537ef28ab4d29a9ad1c96e193d47a154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/sync.rs:433-439 | crates/codetours-server/src/storage/repos/comment.rs:30-36 \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 \u0060crates/codemark-core/src/sync.rs:433\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":"crates/codemark-core/src/sync.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"39808eaac712c02becafeb8baf8565d82211a14159a4ccc8325a228368d142bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/codemark-tui/src/browser/tabbed_panel.rs:479-491 | crates/codemark-tui/src/browser/tabbed_panel.rs:501-513 \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 \u0060crates/codemark-tui/src/browser/tabbed_panel.rs:479\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":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e9aa6059a4955d13c8208d6a31ef013fb6dd8c40475bed29e390d0a9e464bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codetours-server/src/storage/manager.rs:44-50 | crates/codetours-server/src/storage/registry.rs:54-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/storage/manager.rs:44\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":"crates/codetours-server/src/storage/manager.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7506e05851504be5c7fe6b670e38140bcae92215ea37ffcb09b983ed816806d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): crates/codetours-server/src/storage/repos/annotation.rs:35-40 | crates/codetours-server/src/storage/repos/bookmark.rs:53-58 | crates/codetours-server/src/storage/repos/collection.rs:44-49 | crates/codetours-server/src/storage/repos/collection.rs:65-70 | crates/codetours-server/src/storage/repos/collection_bookmark.rs:42-47 | crates/codetours-server/src/storage/repos/comment.rs:38-43 | crates/codetours-server/src/storage/repos/resolution.rs:51-56 | crates/codetours-server/src/storage/repos/tag.rs:32-37 \u2014 there are 8 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/storage/repos/annotation.rs:35\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":"crates/codetours-server/src/storage/repos/annotation.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60edf701ce27d44fa18661e1e0c4a36684910f39f6075d944364d6a09b3e5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crates/codemark-cli/src/cli/handlers/collection.rs:145-150 | crates/codemark-cli/src/cli/handlers/collection.rs:286-291 | crates/codemark-cli/src/cli/handlers/collection.rs:309-314 | crates/codemark-cli/src/cli/handlers/collection.rs:542-547 | crates/codemark-cli/src/cli/handlers/collection.rs:589-594 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026CollectionDeleteArgs\u0060 in one and \u0060\u0026CollectionReorderArgs\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":"crates/codemark-cli/src/cli/handlers/collection.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"583a7981bd02cc3e728c333c3789d754be9082b77ff6b9f9ca562032c9ff6554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/codemark-core/src/storage/collection_repo.rs:126-132 | crates/codemark-core/src/storage/collection_repo.rs:494-499 | crates/codetours-server/src/storage/repos/collection.rs:105-110 \u2014 before extracting anything, compare \u0060crates/codemark-core/src/storage/collection_repo.rs\u0060 and \u0060crates/codetours-server/src/storage/repos/collection.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-core/src/storage/collection_repo.rs:126\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":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bc41f6f1451828c8041ef02399d49501bdc193b5d8e1a4556a6429cdf020c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/storage/bookmark_repo.rs:366-372 | crates/codemark-core/src/storage/bookmark_repo.rs:563-569 \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 \u0060crates/codemark-core/src/storage/bookmark_repo.rs:366\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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a255519db315e8380aa080ea78e924c2a49a29443663575af36cf347fea94d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codemark-core/src/storage/bookmark_repo.rs:732-738 | crates/codetours-server/src/storage/repos/annotation.rs:27-32 \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 \u0060crates/codemark-core/src/storage/bookmark_repo.rs:732\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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26d8d973566ec51e5c36eb6e88508b1b78f0b3861ab73b3258a456371ff9b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codemark-core/src/storage/db.rs:184-189 | crates/codemark-core/src/storage/db.rs:262-267 \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 \u0060crates/codemark-core/src/storage/db.rs:184\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":"crates/codemark-core/src/storage/db.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e73a40f55527d74c765b9741b6832f9b181e1be09cadfba3cb0a643a1d539fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/codemark-cli/src/cli/handlers.rs:1465-1469 | crates/codemark-cli/src/cli/handlers/bookmark.rs:942-946 | crates/codemark-core/src/engine/heal.rs:211-215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"486d258fe2d36f66353d6fc7038786ababb767543213b00c776baaf3cd5bb152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): crates/codemark-cli/src/cli/handlers.rs:1460-1464 | crates/codemark-cli/src/cli/handlers/bookmark.rs:938-941 | crates/codemark-core/src/engine/snapshot.rs:91-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb66daaae85cc73c33ebf2cf12d51d97631cbadeb5b334102e8a4f7418d55bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:1753-1757 | crates/codemark-cli/src/cli/handlers/search.rs:129-135 \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 \u0060crates/codemark-cli/src/cli/handlers.rs:1753\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, \u0060crates/codemark-cli/src/cli/handlers/search.rs:126\u0060 calls \u0060needs_line\u0060, \u0060as_deref\u0060, \u0060is_some_and\u0060 and \u0060crates/codemark-cli/src/cli/handlers.rs:1751\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ed45dbb525865a383ef5dcc97c98ac922b09d3f573eeb351af2ff5735ba0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemark-core/src/git/mod.rs:40-44 | crates/codemark-core/src/git/mod.rs:77-81 \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 \u0060crates/codemark-core/src/git/mod.rs:40\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":"crates/codemark-core/src/git/mod.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf007315c15b6815234a9a84cd861cb7a5021d925a364f15c974a22cbd402805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): crates/codemark-core/src/storage/collection_repo.rs:118-121 | crates/codemark-core/src/storage/collection_repo.rs:488-492 | crates/codetours-server/src/storage/repos/collection.rs:99-103 \u2014 before extracting anything, compare \u0060crates/codemark-core/src/storage/collection_repo.rs\u0060 and \u0060crates/codetours-server/src/storage/repos/collection.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codemark-core/src/storage/collection_repo.rs:118\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":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"382cf3ace6524880a1a032eda97247f1fd238623192275362d2dd1488fa6e87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/engine/projection.rs:229-235 | crates/codemark-tui/src/browser/tabbed_panel.rs:75-81 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/projection.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7d307d11abee455826bab954259525932cb92908d8d9bc0f4f72d1e43c1ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:2539-2552 | crates/codemark-tui/src/browser/mod.rs:2626-2639 \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 \u0060crates/codemark-tui/src/browser/mod.rs:2539\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2539}}}],"partialFingerprints":{"codehealthFindingId/v1":"55781b2fa62f4db5be81e3cdb58f7701773c3b56abaa81df9a0453d597852c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/codetours-server/src/handlers/tours/create.rs:205-216 | crates/codetours-server/src/handlers/tours/create.rs:268-279 \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 \u0060crates/codetours-server/src/handlers/tours/create.rs:205\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, \u0060crates/codetours-server/src/handlers/tours/create.rs:219\u0060 calls \u0060remove_file\u0060 and \u0060crates/codetours-server/src/handlers/tours/create.rs:282\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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"defb2b3a22d83496bd70f0eca67b86db5d591563e2d174327faa690456027a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codetours-server/src/handlers/tours/create.rs:106-116 | crates/codetours-server/src/handlers/tours/create.rs:135-146 | crates/codetours-server/src/handlers/tours/create.rs:430-440 \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 \u0060crates/codetours-server/src/handlers/tours/create.rs:106\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. 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acdb14143a8fe346d6a611703e61bd5fd9fb3a00bf2c04fcbbf3827e630e4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codetours-server/src/storage/repos/resolution.rs:15-26 | crates/codetours-server/src/storage/repos/resolution.rs:39-49 \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 \u0060crates/codetours-server/src/storage/repos/resolution.rs:15\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":"crates/codetours-server/src/storage/repos/resolution.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0074616efd9cb900ed18b04f0128ec78aa8047c1758e91fa6685a30ca069b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/codetours-server/src/handlers/tours/create.rs:106-116 | crates/codetours-server/src/handlers/tours/create.rs:135-145 | crates/codetours-server/src/handlers/tours/create.rs:150-160 | crates/codetours-server/src/handlers/tours/create.rs:430-440 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/handlers/tours/create.rs:106\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. 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8abb7508e621015169ffc45e080bf11ad80fc6d61b26dcdecf60b6686b4fcb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/codetours-server/src/handlers/tours/create.rs:281-291 | crates/codetours-server/src/handlers/tours/create.rs:700-710 | crates/codetours-server/src/handlers/tours/create.rs:713-723 \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 \u0060crates/codetours-server/src/handlers/tours/create.rs:281\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. 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"592535900e2b8f5b999a94286430ee4809457b36aca18fe50d4ed4775a4b6cd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/codetours-server/src/handlers/tours/create.rs:219-229 | crates/codetours-server/src/handlers/tours/create.rs:347-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/handlers/tours/create.rs:219\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. 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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8c6e38bfb6cd60bd9093bb07426804fe775194dce66e3b74b3842cadb36692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/codetours-server/src/github.rs:160-169 | crates/codetours-server/src/github.rs:344-353 \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 \u0060crates/codetours-server/src/github.rs:160\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, \u0060crates/codetours-server/src/github.rs:343\u0060 calls \u0060clone\u0060 and \u0060crates/codetours-server/src/github.rs:159\u0060 does not \u2014 after which the two agree again for 4 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":"crates/codetours-server/src/github.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4497b2de27dcd2a249fcbd16b2cca057fca1446aae854cc0ea4442618019958a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-core/src/storage/collection_repo.rs:37-45 | crates/codemark-core/src/storage/collection_repo.rs:70-78 \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 \u0060crates/codemark-core/src/storage/collection_repo.rs:37\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":"crates/codemark-core/src/storage/collection_repo.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9716928cdf7c4a02bde5df88066a1012549db6f0bfe359ee9dd6d377a85e1fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/codemark-tui/src/browser/mod.rs:1554-1562 | crates/codemark-tui/src/browser/mod.rs:1724-1732 \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 \u0060crates/codemark-tui/src/browser/mod.rs:1554\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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd983d8344717736a264be2cb5c3e03062cbb1d19f1a8ecb225146f95b2e77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codetours-server/src/storage/repos/collection.rs:15-22 | crates/codetours-server/src/storage/repos/collection.rs:35-42 \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 \u0060crates/codetours-server/src/storage/repos/collection.rs:15\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":"crates/codetours-server/src/storage/repos/collection.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6390a68c9075a071c1f31a54b432b19a1abce463813166787fea5aed637552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-core/src/storage/bookmark_repo.rs:591-598 | crates/codemark-core/src/storage/collection_repo.rs:194-201 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f801bdee47ff21045662f488cabcbe3140aa3acc603ac73830fd8b85d88e4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/codemark-core/src/storage/repo_repo.rs:46-53 | crates/codemark-core/src/storage/repo_repo.rs:70-77 \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 \u0060crates/codemark-core/src/storage/repo_repo.rs:46\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":"crates/codemark-core/src/storage/repo_repo.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d11a09dd24d17c451d51298b1434f2d0236f9aa06646bcff8604de66f2a8583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/git/context.rs:273-279 | crates/codemark-core/src/git/context.rs:311-317 \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 \u0060crates/codemark-core/src/git/context.rs:273\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":"crates/codemark-core/src/git/context.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"058d276a8b25e8a99fcca83eefdd0140be9381653a50338fdb6d5e256a8a243a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/codetours-server/src/storage/repos/annotation.rs:45-51 | crates/codetours-server/src/storage/repos/collection.rs:75-81 | crates/codetours-server/src/storage/repos/comment.rs:74-80 | crates/codetours-server/src/storage/repos/tag.rs:42-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/codetours-server/src/storage/repos/annotation.rs:45\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":"crates/codetours-server/src/storage/repos/annotation.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadb43417c0951f5bbc5eeff0d6d0ed78e625c109d541442df92ec053f374041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/codemark-core/src/config.rs:695-701 | crates/codemark-core/src/config.rs:741-747 \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 \u0060crates/codemark-core/src/config.rs:695\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":"crates/codemark-core/src/config.rs"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e1df102984a48da434aa289f219c9df8214eea8e593345010555a7a428dcc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:144-148 | crates/codemark-cli/src/cli/handlers.rs:178-182 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/codemark-cli/src/cli/handlers.rs:183\u0060 calls \u0060Annotate\u0060, \u0060g_global\u0060 and \u0060crates/codemark-cli/src/cli/handlers.rs:149\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1327a6dd0d374a5f784e6d419695da920bdb252dce88cfc3931fd8645cd01054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemark-cli/src/cli/handlers.rs:1675-1679 | crates/codemark-cli/src/cli/handlers/search.rs:56-60 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060args\u0060 to \u0060\u0026ListArgs\u0060 in one and \u0060\u0026SearchArgs\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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86587defea20ba186b7352952e7d7a39cc87301e53fa3a9d90cd04ea214a1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemark-tui/src/browser/comment_draft.rs:204-208 | crates/codemark-tui/src/browser/comment_draft.rs:226-230 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060self\u0060 to \u0060\u0026mut\u0060 in one and \u0060super) fn confirm_delete_thread(\u0026mut\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":"crates/codemark-tui/src/browser/comment_draft.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac14e0a61d7fe006f65e3a2f44a13896751e9a2bcd066a980ad3df71cfd7bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/codemark-tui/src/browser/right_pane.rs:1635-1640 | crates/codemark-tui/src/browser/right_pane.rs:1690-1695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"66056ca7419c56e607db542fbb900ba158ffb04b07437e95257a67437233399b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: codemark-core: codemark-core: abstractness 0.04, instability 0.00, distance 0.96 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8e41a8c366b3f9ee4b9274475c811e8df98ca6e778116c81ff239a36a313baa0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PanelItem (LCOM4 4): PanelItem\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/component/panel/item.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4e38d5b7b5580063ead496395df1d003fe303fe27f83dc1f6b09cc09a4b645"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-cli/src/cli/handlers.rs: crates/codemark-cli/src/cli/handlers.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in codemark_cli::cli::handlers::merge_globals at line 88. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-cli/src/cli/handlers.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":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"130edcbc00e57043b5bd9173e8d4ba4c4a1365ff4afb13e92946f1fc88b637f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/browser/events.rs: crates/codemark-tui/src/browser/events.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in BrowserLayout::handle_key_event at line 1317. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/browser/events.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":"crates/codemark-tui/src/browser/events.rs"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f75fbadab7a6e820ce5e7d061fd94274d4e7d2035ed5eb951aa51b756bd7185"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/entry.rs: crates/codemark-tui/src/entry.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 82 in codemark_tui::entry::run_app at line 164. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/entry.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":"crates/codemark-tui/src/entry.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b861cb75e8a44bf54888935c8d62713a0771acf73ffa2b0bcac49a8b5ae5955"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/browser/right_pane.rs: crates/codemark-tui/src/browser/right_pane.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in RightPane::route_event at line 2003. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/browser/right_pane.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":"crates/codemark-tui/src/browser/right_pane.rs"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"f641ebc27c4feb3ef0b6bc1c9ed2d0fdd10770af1ede963d9e4301b945963544"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/browser/mod.rs: crates/codemark-tui/src/browser/mod.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in BrowserLayout::refresh_all_panels_inner at line 2053. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/browser/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":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb347029ee9970cb58fce833dee19d3c7361141c9201692feec07ba6de7c5bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-core/src/query/generator.rs: crates/codemark-core/src/query/generator.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in codemark_core::query::generator::build_tier1_query at line 1393. 1 of those changes was a fix/bug commit, and the other 8 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-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-core/src/query/generator.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":"crates/codemark-core/src/query/generator.rs"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd183ec37173ee382e3e5db68377ea6957a4ed257b2069384003f6cf7008aca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/component/code_preview.rs: crates/codemark-tui/src/component/code_preview.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in CodePreview::render at line 1481. 1 of those changes was a fix/bug commit, 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-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/component/code_preview.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":"crates/codemark-tui/src/component/code_preview.rs"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf136f57d9ec11840dbb275a872de3e84ae6c35807e05c64c0db9123c066577"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codetours-server/src/handlers/tours/create.rs: crates/codetours-server/src/handlers/tours/create.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in codetours_server::handlers::tours::create::handler at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codetours-server/src/handlers/tours/create.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":"crates/codetours-server/src/handlers/tours/create.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f7a96a505a999029945aab7ed3ef2728766b7e15da340257e0a846dddd6af6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-tui/src/browser/bindings.rs: crates/codemark-tui/src/browser/bindings.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in BrowserLayout::get_help_bindings at line 15. 1 of those changes was a fix/bug commit, and the other 7 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-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-tui/src/browser/bindings.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":"crates/codemark-tui/src/browser/bindings.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d56cecca51c3fea4a7b0545bfbc65020b360b1e0fb26276b78a113f64bb3a3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-cli/src/cli/handlers/bookmark.rs: crates/codemark-cli/src/cli/handlers/bookmark.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in codemark_cli::cli::handlers::bookmark::handle_add at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-cli/src/cli/handlers/bookmark.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":"crates/codemark-cli/src/cli/handlers/bookmark.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d179f3f96c7a1401d845c1f54b854468fd6ff534be93ccdb60e3c39102e20fad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-core/src/parser/profile.rs: crates/codemark-core/src/parser/profile.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in codemark_core::parser::profile::lint at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-core/src/parser/profile.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":"crates/codemark-core/src/parser/profile.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5ee737dcab9b251b4ec24fc0f72b5c95a281c69cf733a872a7441ef0ef3609"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-core/src/storage/bookmark_repo.rs: crates/codemark-core/src/storage/bookmark_repo.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Database::list_bookmarks at line 325. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-core/src/storage/bookmark_repo.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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8312def2dc56fcdce4d2f01eca3e79f39e153ec39c6790ab2519e0338173223"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-core/src/engine/heal.rs: crates/codemark-core/src/engine/heal.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in codemark_core::engine::heal::heal_bookmark at line 81. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-core/src/engine/heal.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":"crates/codemark-core/src/engine/heal.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6f72bc1b9c04e312dd9b7ba1eb4c10056bc3179e705d63bcb4f1605d302c03"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/codemark-core/src/config.rs: crates/codemark-core/src/config.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Config::merge at line 751. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 22:33:58 -05:00\u0027 --until=\u00272026-11-15 22:33:58 -05:00\u0027 --full-history --no-merges -- crates/codemark-core/src/config.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":"crates/codemark-core/src/config.rs"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f92b12302b8d9cd92bbdb3209708a96f377d503e426de3bd560c25203da2eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Implement freshness checking in web UI / list commands (Phase 12) \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":"crates/codemark-core/src/config.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea68e0c9162fc03a3396e73fbc7c83e1b6a1b3f0d66c3e9e8f42a49f35810f1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This insert should fail with a constraint violation \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":"crates/codemark-core/src/storage/bookmark_repo.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09b0bac16e607887e697c9785429c310a3774f49fe45745e077901c14814334"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement proper check: compare bookmark\u0027s commit_hash with target commit \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":"crates/codemark-cli/tests/cli_integration.rs"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cb7d4860f2a99e14aa1093c81508c35ba9d12cf2924ad12a16b8050663fbf3"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. The recognised ADR directories in this tree were read \u2014 \u0060proposals\u0060 \u2014 and none of their files is a decision record (a README, index or template page does not count). 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 \u0060fly.toml\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fly.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e29d63eda2a94d0fb2a3407ec7b67cf4587f5b83978499603e988c4023e55fa"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/codemark-core\u0060 (29225 LoC, 170 module-visible types across 9 directories) overshoots its size bounds. 2 of 5 build unit(s) (Cargo) overshoot their size bounds, lowering Project Cohesion to 2.2/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3f4bfef11011776f4bd2c3b0a32076a408c6c59de7756075498a5424e085c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060crates/codemark-cli\u0060 (11146 LoC, 126 module-visible types across 3 directories) overshoots its size bounds. 2 of 5 build unit(s) (Cargo) overshoot their size bounds, lowering Project Cohesion to 2.2/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/Cargo.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"919b7db996988b8f653f8e0c3b2e7a7a6464fdadf11b3087978148771468281b"}},{"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":"8500bd444dd29b22a2b7ee47bd5fb7323de7a5296fca9e95d0d7da12354cfcad"},"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":"e3a6205ba21265a3805fa52fc2dc2d64df0d36e0621ef5f4745098ced7b87f37"},"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":"f01c165ba04a93ddc85ea0a92b9ecbd43fb63537eee58f1af7c74123063ff812"},"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":"4bc3c7fd39ae9a8518e9c99e747d3a9584ba2d43a25d57a85a66b3099b97f736"},"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":"f4f1d5be077de2ecf31b5b6ccbdbf7fd1b5ae550a9fabad7de8110b9641e33f1"},"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":"b21ef51d97f04d1a8b921e635aca9ef4e877341aa2c3b0f6eaeabc61234774b6"},"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":"06daafe2709e468287b505c00bf9feb366987173d1ade4b317a3c3dfe35f4e51"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"6504d8d1633fd2629c17cb911821ef9d4b240f323d5e1ebac2df01ac4726a04a"},"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":"f4c98c98541a54b0a01af4adaa864ceaab9a6f71372985da44cfe686401ae741"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1de4e8df69f8ea88743a72dc79ebdff0df14ccb12667fe14ae5c33266501ddc5"},"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":"e7aea5ad354bb944fe749ff0e5f574830ccdd11e2edd1cb16678dd3d93b52205"},"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":"5a0307a0e95589e470722eaa1f6edefde899ff9d045423b92eaede73ef396b02"},"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":"59bdb5a1e8e9e2536fc49c741fcb4259a61a8678fc811d3adeb596662203897f"},"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":"04b15c1d822501a1f3b0513e178960337673a790f4f183f2453907ced2d2833f"},"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":"fb4a23173542d7a1718b502d857067e50a3ab2bcd9e6cbc8252c0d9b2bd57371"},"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":"9e05a9afdb159c3b4e03fba36ee6c997dfff609cf8e7411f86b673ca79d09a53"},"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":"1d11b483dfcf915b1cf80342d758e26c1a3f32b269afb2615b61f8aa4d116443"},"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":"5820d2832b24c301dfa745945b6d73762e17d6f8190921e1bba42ea7ccd769f9"},"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":"d3863a2595bb228753ae718bfb2db02eb99929aa10f09e1bd606c6259c16041d"},"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":"d2542699b904854fe2d3bb29c559aae2c03652694d5ce26390e798fe91bdf8a8"},"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":"d541a0eb3b2dbe5998fdd42a98fc8d42f993bd63318277a56aeb54e15c268e50"},"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":"f82a94b547e583107475ce443fc06e8d421287b4914413339b69fa88eebfa9dd"},"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":"d4642b3c2434e10cfad812a18d7d88eb8a65f99f868b8f42b0e62c8697ee9053"},"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":"ba89ed088d3f7137b5ef0ae166a85e378fe75396d2daad4a594d5f74d5ef07ff"},"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":"d1822696c452c86ece678a8423ce1d94d9977d31ecaf8f3cf2e0ee4d66781fa9"},"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":"ee747b34969694dab86835eed916d8a0e0ef0c49a1984cf0322fee3601a90c66"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"6c2bb6e48ba198d464ab91a1bff4548c621984de3f57f09feeb3a586b65963ef"},"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":"8a09be642eddaeccc3b7747d20ca12b4e5e143682e88c838d9eb5c0b3f5ea630"},"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":"5c69b484ec756d4916e14a04ee03cf6c5312e79e0e01be5125617bdb0aab9252"},"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":"ad802125a4a401fcc72dd926f520e28347e5b710636c8418e0301f554098ab3f"},"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":"ab8ce016c05617d2bea946f803bbeb3700de85a9611a8808cd4bc113313a14a3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"dec15bae94e963c666882db643a571f2501ca37dcfecf6208b0872d727057426"},"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":"259fe18d928b2f254a51fcb8cd6aaac8f4090a638cfdc5742b1659786ae9b901"},"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":"63bea608fd98974a5a312ed989a52706c988bfdbb0e401f0928bf7ee4f23d1b9"},"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":"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":"88ea3c4ed6172e7425ec8f75401d5c7b581380acc47ed6208e55addb3d314672"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8a9c75e68ac125e3285a466a8ddb5b179cc64dca0efd0620caffb21390ac6ce3"},"properties":{"dependency":{"package":"wasmtime","version":"29.0.1","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]","[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]","RUSTSEC-2025-0046","RUSTSEC-2025-0118","RUSTSEC-2026-0006","RUSTSEC-2026-0020","RUSTSEC-2026-0021","RUSTSEC-2026-0085","RUSTSEC-2026-0086","RUSTSEC-2026-0087","RUSTSEC-2026-0088","RUSTSEC-2026-0089","RUSTSEC-2026-0091","RUSTSEC-2026-0092","RUSTSEC-2026-0093","RUSTSEC-2026-0094","RUSTSEC-2026-0095","RUSTSEC-2026-0096","RUSTSEC-2026-0222","RUSTSEC-2026-0269","RUSTSEC-2026-0316","RUSTSEC-2026-0363","RUSTSEC-2026-0379","RUSTSEC-2026-0380","RUSTSEC-2026-0424"],"severity":"critical","fixedVersion":"36.0.19","relation":"transitive","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":"6a0ddd25f28a668c4872160cb3a706acbb82dea738c6c71d35604f14ae8ff1c9"},"properties":{"dependency":{"package":"zip","version":"1.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"severity":"critical","fixedVersion":"9.0.5","relation":"separate-copy","declaredRange":"2","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":"895bf45f4e2d958e13ecfd2a7f71b37164f7c364a6ac3d381a7f85bd91899974"},"properties":{"dependency":{"package":"zip","version":"2.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0367","RUSTSEC-2026-0368","RUSTSEC-2026-0369","RUSTSEC-2026-0429"],"severity":"critical","fixedVersion":"9.0.5","relation":"direct","declaredRange":"2","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":"b5308f9ed219ff7d361ed2b01ab7b5fa7a33b0013fcd35575e7068ccda1d2997"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0185","RUSTSEC-2026-0338","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"severity":"high","fixedVersion":"0.11.15","relation":"transitive","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":"0d3d2c2346bccaaa14c1bd0f0713c18ae4de849fffdc7282dbd533ab105c9398"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.10","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-111943","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-6809","RUSTSEC-2026-0098","RUSTSEC-2026-0099","RUSTSEC-2026-0104","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"high","fixedVersion":"0.103.13","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759d36a63e8483c4a467399ff199fa57fa2e02d89ef311720974588edb9516d4"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","severity":"medium","fixedVersion":"1.0.103","relation":"direct","declaredRange":"1","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":"4975822701b3b96654c82dada9bad969e348a6adefa52cd3bba1b6cfd71c3bb7"},"properties":{"dependency":{"package":"bincode","version":"1.3.3","advisory":"RUSTSEC-2025-0141","severity":"medium","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a0c58aca13bc848c37d4c3d5bcb90f8e046f8df5b386f5a3743d0625ad8dae"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","severity":"medium","fixedVersion":"0.9.20","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9985e934bf5258966ba30771d636042c3373acbe5f9699173950198ff207d4c4"},"properties":{"dependency":{"package":"git2","version":"0.20.4","advisory":"RUSTSEC-2026-0183","severity":"medium","fixedVersion":"0.21.0","relation":"direct","declaredRange":"0.20","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":"1eae401a2a8770be38f5a54c3afe36fa4464ebe4004c5fb285ffaa2f1ae4d5b7"},"properties":{"dependency":{"package":"git2","version":"0.20.4","advisory":"RUSTSEC-2026-0184","severity":"medium","fixedVersion":"0.21.0","relation":"direct","declaredRange":"0.20","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":"be9977d5d7ddb867e7f2e9fb5ad301e217dd9c03427d8e948d094761434f4502"},"properties":{"dependency":{"package":"jsonwebtoken","version":"9.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"10.3.0","relation":"direct","declaredRange":"9","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.35.0","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"severity":"medium","fixedVersion":"0.39.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"728758c9d3428053e1082b5fb9832c05e2e04dab40233f2ffbfd7792b93201ec"},"properties":{"dependency":{"package":"libz-sys","version":"1.1.25","advisory":"RUSTSEC-2026-0418","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.31","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbe030f8c1c144f826bad4cbbd83ebd5ea8dfc9162bb9621a856f9f966813acf"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0002","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.16.3","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"422864efbc32ee020d94634a443edac9d818b90faf02ac96d91c4d66ffa4da37"},"properties":{"dependency":{"package":"lru","version":"0.12.5","advisory":"RUSTSEC-2026-0253","severity":"medium","fixedVersion":"0.18.2","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf9b3890cba73cd3c5d5270d1976bd1bae94596a1c510482b94fe9367ef871f2"},"properties":{"dependency":{"package":"memmap2","version":"0.9.10","advisory":"RUSTSEC-2026-0186","severity":"medium","fixedVersion":"0.9.11","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"705e8761c5e609601c0419d94a8bad1aeb6aee434f48ec4660c92e8bf534c9de"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","severity":"medium","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","severity":"medium","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64363d74ce1f052fae524dc374bd082dc62972fb05982f1a96c21eb7c322e135"},"properties":{"dependency":{"package":"pulldown-cmark","version":"0.13.4","advisory":"RUSTSEC-2026-0414","aliases":["RUSTSEC-2026-0433"],"severity":"medium","fixedVersion":"0.13.5","relation":"direct","declaredRange":"0.13","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":"5585c48a8c4ed670247ebaa40a533d385248c4e49079fee700e7b93cbab137a9"},"properties":{"dependency":{"package":"quick-xml","version":"0.39.4","advisory":"RUSTSEC-2026-0194","aliases":["RUSTSEC-2026-0195"],"severity":"medium","fixedVersion":"0.41.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"0.5.16","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.1.6","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7481fb93c86b503a82a3e06a3172c7e27c5da26b8a178702a1e8028944c7596"},"properties":{"dependency":{"package":"rustls","version":"0.23.37","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"severity":"medium","fixedVersion":"0.23.45","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.51.0","advisory":"RUSTSEC-2026-0386","severity":"medium","fixedVersion":"1.51.6","relation":"direct","declaredRange":"1","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":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","severity":"medium","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1be0220e1fa221ea274d30abdd6b4e473172e558c80e87aecee355dd31489ca8"},"properties":{"dependency":{"package":"webbrowser","version":"1.2.1","advisory":"RUSTSEC-2026-0257","aliases":["[GHSA redacted]"],"severity":"medium","fixedVersion":"1.2.2","relation":"direct","declaredRange":"1","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.6","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"1.0.10","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"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":"5ceb9040e13548b3df718b94867858f8e5659519eb178fbf2fd0e4e23343e0da"},"properties":{"dependency":{"package":"yaml-rust","version":"0.4.5","advisory":"RUSTSEC-2024-0320","severity":"medium","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4999ef69e42f46a403f3866a4a634365963f93fdd6e82c0c4a8e528a960ab52"},"properties":{"dependency":{"package":"zstd","version":"0.13.3","advisory":"RUSTSEC-2026-0391","severity":"medium","fixedVersion":"0.13.4","relation":"direct","declaredRange":"0.13","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":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0395","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"414bb4a49ee404ddc9dbe92931374dee643d4d3104e067391ed93041a77ff631"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0396","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0397","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0399","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0400","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0401","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0402","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0404","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d11388e41908d6112e7f61d01d0c0d9062830b07945356073c8069de5b88d627"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0405","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0406","severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7870b77ea4843334d11fffa265d6d0542e94eec7f4c8e852762d55c28578136"},"properties":{"dependency":{"package":"zstd-safe","version":"7.2.4","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"severity":"medium","fixedVersion":"7.4.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84f9b61ffb7d87f7a0ea344424bcbd7389e2ed41eb01432b04fba9f732cd312c"},"properties":{"dependency":{"package":"zstd-sys","version":"2.0.16\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","severity":"medium","fixedVersion":"2.1.2","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"8b96745ef67193d0a6a8c3841e70f121d14b645c27e414a8b29aecf946062072"},"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":"D31","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":"1f3de5ef0b48ca1917c9f9f2286bd0eae7c590636bcadbe579e0347bfdcbbb38"},"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":"D31","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":"476176a40f7dde5968156df41a3ad51fabec36db7b9ad2c78af7fdee298fccfb"},"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":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"23242335439540a7f0752c9def5c038b557d1cb0f8e6f7b448b5f69adcab3c1d"}},{"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":"acf2bfab54704ada202a247df310a4bc395851eaeb11f8297c2aeb57062bd23e"},"taxa":[{"id":"CICD-SEC-4","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): maintenance$module.handle_import: \u0060maintenance$module.handle_import\u0060 performs two independent DURABLE writes \u2014 a durable state write (\u0060db.insert_bookmark\u0060, :378) and a second independent durable store write \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/maintenance.rs"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"89348cc02100f2925d91a673ead10c20ed0b4d097de68fb488f8a6f653306d09"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 4/5 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060docs/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":"docs/package.json"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6698eb8153a71468b04a82fa3b13ea83ca8eee87a1183c9dd1ddc54743514738"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/tour.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c5ff647de34f2356af42243143a2b2c975c97e5d0a2d8e75d7f9fe04d594a4"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/github.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1569cb80e40ad95ce6604826be18d0a79c7faba3291e4314a0041903ea7a0f95"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/github.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca6fbca07ade628a4485c789f2b2eeeb6150e9e39eaddf748b09ab456c23762"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/github.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf298bdc570cd19d76142ae267e5635a00aa580388f4b3059deb3d8b3a8c38d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc6225b38807e74c09917bf4d66c11292dc72ec851155a9580911b825a6e2c4"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69a9900de783fe30030ca3bc3bb0e022ef47ab153700c86243a81f2bc6eb9c6"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codetours-server/src/handlers/auth.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c28ae864dcdb67da8d9f94f6898a6454a61deead23b1908e9bc23044efded35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_published || c.imported_from_url.is_some()\u0060 appears character-identically in 2 files \u2014 crates/codemark-tui/src/browser/mod.rs, crates/codemark-tui/src/browser/tabbed_panel.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/mod.rs"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e87b9a61eb396873f6019f337aeb4f1da67465da0034416f3740b772ab7303"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060on_unmatched == OnUnmatched::Fail \u0026\u0026 plan.has_unmatched()\u0060 appears character-identically in 2 files \u2014 crates/codemark-cli/src/cli/handlers/transfer.rs, crates/codemark-core/src/engine/transfer.rs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers/transfer.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"072420449b95ee83a8a114ce42e5e2eaf7ecd2fd40773a9545daa272efec2559"}},{"ruleId":"X5","level":"note","message":{"text":"Nullable reference types not enabled everywhere: 0/1 NRT-eligible project(s) enable \u003CNullable\u003Eenable\u003C/Nullable\u003E (projects targeting a pre-C#-8 framework are excluded \u2014 NRTs aren\u0027t available there). NRTs catch a whole class of null-deref bugs at compile time."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80b24de9378624a0ce4846d60457395befcaec8e109ea81d289a370c9f7bfd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060parse_hunk\u0060 turns every \u0060Err\u0060 into \u00601\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf53aa803d3c30ce5ac3fc2e061d0119b5571ef21505ffdc23a8bd8b699aaff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060days_since_resolution\u0060 turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/engine/health.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2e9a0baa404b5ed86fb41b09de6838b55e53eb7548caafab8814ebeb00c0a4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060read_template_stamps\u0060 turns every \u0060Err\u0060 into \u0060HashMap::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-core/src/templates.rs"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6116fef91fe40b1781f2d2a5f7e4e02d8105fec71da129031ec4b9e0c851d5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060build_repo_items\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce423d29b44d98cd7a182f0eaf4c64d75681141660c0487b3ecb9d8de1aa0b8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060build_owner_items\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-tui/src/browser/tabbed_panel.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ba597a4cf9422eefce5b214423b15ec38bbb9e9bb8c27d401cd1945d130710"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060url.contains(\[e-mail redacted]:\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060url.contains(\[e-mail redacted]:\u0022)\u0060 also satisfies \u0060url.contains(\u0022git@\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemark-cli/src/cli/handlers.rs"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c7a08f7f6847c64d21f35c88abf75586bc340db8bc5ee3d2f60e331851ceaf"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"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":92,"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."]}]}