{"$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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AddEditConfirmComponentsKt.AddEditConfirmScreen (cyclomatic 67): AddEditConfirmComponentsKt.AddEditConfirmScreen has cyclomatic complexity 67 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"226c25f9cbb1065644a79337c4fb6ea98c16b25039ea246e79a9de9bc7dd6898"}},{"ruleId":"D1","level":"warning","message":{"text":"ComparisonScreenKt.ComparisonScreen (cyclomatic 65): ComparisonScreenKt.ComparisonScreen has cyclomatic complexity 65 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"030edc259b570602caf7b5b18e6945cb8b31f15ddd3ae38131026501de40761f"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cyclomatic 42): HomeScreenKt.HomeScreen has cyclomatic complexity 42 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f048fb3a896c5f15caee8a3547de87776d79b6b9f4e16217771ab46d87ad08"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckFailure.from (cyclomatic 39): CheckFailure.from has cyclomatic complexity 39 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd39aec87f23fc507e4c1f3012164cf4c628d18cf5e6437b105ef8e1fc130eb"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.processSuccessResult (cyclomatic 38): SyncEngine.processSuccessResult has cyclomatic complexity 38 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"388eb0768733362c06c58119d20368dc05039b50fb6fa4e15c60bc18769c9de9"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualRegions.compare (cyclomatic 36): VisualRegions.compare has cyclomatic complexity 36 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d40f860645f46b3cb2bb8f6508919d0f4f9334c27186c5d6841b50b2c0c98e"}},{"ruleId":"D1","level":"warning","message":{"text":"AddEditConfirmComponentsKt.PagePreviewCard (cyclomatic 31): AddEditConfirmComponentsKt.PagePreviewCard 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dbc204ff69b19b656e7d15f15dad87b5c89a1e2183041b5c0267b5c4b5202d"}},{"ruleId":"D1","level":"warning","message":{"text":"KitKt.PageAvatar (cyclomatic 31): KitKt.PageAvatar has cyclomatic complexity 31 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2e22a80ebad57f35aac8b3cbeb5ad21d24a7ab3d7fea777a3c86431cdca8c7"}},{"ruleId":"D1","level":"warning","message":{"text":"TextRegionPickerKt.TextRegionPicker (cyclomatic 30): TextRegionPickerKt.TextRegionPicker has cyclomatic complexity 30 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/TextRegionPicker.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ac61945877397150d66beeb4404b57cca0470e3d0cdd81ec61131d3e6879a1"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorPresentationKt.errorPresentation (cyclomatic 29): ErrorPresentationKt.errorPresentation has cyclomatic complexity 29 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorPresentation.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba6ccff6020b88aff86fbc6248f9a2af143ad47596d60d87cc39d2d7cb280a0"}},{"ruleId":"D1","level":"warning","message":{"text":"PageDetailScreenKt.DetailList (cyclomatic 29): PageDetailScreenKt.DetailList has cyclomatic complexity 29 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12dfb4b101451eb602e815457efb0a9a9b6aa0df9a58b38601c51193bc0fbdb"}},{"ruleId":"D1","level":"warning","message":{"text":"AppContentKt.ChangeDetectionApp (cyclomatic 28): AppContentKt.ChangeDetectionApp 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51fdacf36ef44e93e80195eee40c193603c9b3c7c8f2d9082b10e265ca0b649"}},{"ruleId":"D1","level":"warning","message":{"text":"WatchBrowserKt.WatchBrowser (cyclomatic 27): WatchBrowserKt.WatchBrowser has cyclomatic complexity 27 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ddaf55705484ac81c37d0a816b9ad06188fb6b2330e638d7ebe203a488a929"}},{"ruleId":"D1","level":"warning","message":{"text":"AddEditViewModel.performSave (cyclomatic 25): AddEditViewModel.performSave has cyclomatic complexity 25 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5b5a138e9a73a2543e8a06cabf19e79f1066ad1414a5910205c8801686cfcb"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityScreenKt.ActivityFeed (cyclomatic 25): ActivityScreenKt.ActivityFeed has cyclomatic complexity 25 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0115345ac919c1480ec70ef66005da92b2c12cbd360f9b29694353781f62a9"}},{"ruleId":"D1","level":"warning","message":{"text":"DialogBackgroundSyncKt.BackgroundSyncDialogContent (cyclomatic 25): DialogBackgroundSyncKt.BackgroundSyncDialogContent 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"902eed48bdd63c35e49f60f4bc1e772457624077bcbde2f6389012732f8fec50"}},{"ruleId":"D1","level":"warning","message":{"text":"AddEditViewModel.requestPreviewFrom (cyclomatic 24): AddEditViewModel.requestPreviewFrom 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00ee5b2929c9bb6d3e2ce835ac9756ed59e6483d1c81d18cfa8a8f8d32cdbaa"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorHandler.classifyError (cyclomatic 24): ErrorHandler.classifyError has cyclomatic complexity 24 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae9bca2f2827a74cf6e5ee3c8602cdcd33503e80104775b572b633255828834"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalBrowserScreenKt.LocalBrowserScreen (cyclomatic 24): LocalBrowserScreenKt.LocalBrowserScreen has cyclomatic complexity 24 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da5ef736e14c49b5b974c5bc322be1b8f1781d1818e7a105e2984139c985b41"}},{"ruleId":"D1","level":"warning","message":{"text":"androidKt.DiagnosticsDialog (cyclomatic 23): androidKt.DiagnosticsDialog 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bdbbb5d63d8b74baf29e1190f8df1b57fefec46779a0a05b0ef4adde3733fc"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualRegions.sameAfterShift (cyclomatic 23): VisualRegions.sameAfterShift 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9c9e0921406502f1a30313c2f24a9c36a9647c8004ea6ed3bec374f47d6646"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.PageRow (cyclomatic 23): HomeScreenKt.PageRow has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ef2e092c01354ee6b8711d0a38e684f6b891c260e2a1611aaa114d052cb81a"}},{"ruleId":"D1","level":"warning","message":{"text":"AndroidPageCapture.captureLoaded (cyclomatic 22): AndroidPageCapture.captureLoaded has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d0305770bf0704fa8c353a71f749f6ffe7facedec145ef7bf8177c27f2e66"}},{"ruleId":"D1","level":"warning","message":{"text":"PageCaptureHealth.ssl (cyclomatic 22): PageCaptureHealth.ssl has cyclomatic complexity 22 (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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61f1d9cb627a736078745c4772951c45f574d1c4aed970a0531561a36a8f3f4"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualRegions.align (cyclomatic 22): VisualRegions.align has cyclomatic complexity 22 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3bd277ebf921d25323573ad3738ba5401c0bb574a41566373a75722dc256ce"}},{"ruleId":"D1","level":"warning","message":{"text":"KitKt.vivid (cyclomatic 22): KitKt.vivid 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a17275d4c448ffd11171d21b43eb0a7cfdf9b54e3d0ff255348961d82de9fac"}},{"ruleId":"D1","level":"warning","message":{"text":"androidKt.BackupDialog (cyclomatic 21): androidKt.BackupDialog has cyclomatic complexity 21 (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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupRow.android.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff29e31dd9b4828dc91c1da6160d5ca86197360f793091d23985c168454285f"}},{"ruleId":"D1","level":"warning","message":{"text":"VisualRegions.changedBands (cyclomatic 21): VisualRegions.changedBands 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1c8bf95ed701b326da8f24c13a829241b9951af89d68c404a49bef51fac9d6"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.saveNewSnap (cyclomatic 21): SyncEngine.saveNewSnap 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"9718f44787c9bcaedf8833861f3344124270e7568460ee6f92af4ca553c2baf4"}},{"ruleId":"D1","level":"warning","message":{"text":"CapturePreviewPanelKt.CapturePreviewPanel (cyclomatic 20): CapturePreviewPanelKt.CapturePreviewPanel 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b217a5135b1e21a0d83bd2ec995d174a6795b0f0f6f333e592e1f37bca1c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticTraceKt.diagnosticCategory (cyclomatic 20): DiagnosticTraceKt.diagnosticCategory 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"698daffa1eecfd0b916d74f08cc2b110b0380a4a6242c120df4c163f27c28b8f"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncEngine.verifiedBaseline (cyclomatic 20): SyncEngine.verifiedBaseline 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a15ccb4b2c8afe11966d56012aa0552c09062db2c410104c588ae9bb45f2afd"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.HomeTopBar (cyclomatic 20): HomeScreenKt.HomeTopBar 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c08d31862fa5c9b74176e61361e923644db01b98a43293fbd60dd72e030b0cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageComparisonViewKt.ImageComparisonBody (cyclomatic 19): ImageComparisonViewKt.ImageComparisonBody 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"beff2004cd224412602be282adc970e106a79120a02491a67a17b5f5f1be3170"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectedChoiceKt.ConnectedChoice (cyclomatic 19): ConnectedChoiceKt.ConnectedChoice has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b7233d442b04d0a16af6e31d26c84ba0b0fffe3ae225174010d3f9f19b5d7"}},{"ruleId":"D1","level":"warning","message":{"text":"TurboSession.start (cyclomatic 18): TurboSession.start 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/background/TurboSession.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe1aa3c319d06bd113373e545714eb6ccc75ba072c310c6be57e06bbaeefa4b"}},{"ruleId":"D1","level":"warning","message":{"text":"AmountsKt.parseAmount (cyclomatic 18): AmountsKt.parseAmount 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/Amounts.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2becd8ab427592fa46f48439248ce7cda98783bd53fa5a3ff88738c807dfbe2"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureModeFieldKt.CompareChoice (cyclomatic 17): CaptureModeFieldKt.CompareChoice 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CaptureModeField.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3217d69651a4d4c593da0bc16f80afc7f5d1d30ac51da4084a19efc8055bfcb2"}},{"ruleId":"D1","level":"warning","message":{"text":"BackupService.import (cyclomatic 17): BackupService.import 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa522feb131ec240ce104212591e70b75c313ed156417bb8b12a95cb9f5d835"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotImageDiff.equals (cyclomatic 17): SnapshotImageDiff.equals 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/SnapshotImageDiff.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6651669725805eee8f5c33286ef10d1df4859c22409ff0b49abdd81790dcf182"}},{"ruleId":"D1","level":"warning","message":{"text":"ChangePreviewKt.clusterEdits (cyclomatic 17): ChangePreviewKt.clusterEdits 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/preview/ChangePreview.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf58d437bd51c988c35ff476f2faf5ee8fcf1013aa834fb7d875a9acd30c7032"}},{"ruleId":"D1","level":"warning","message":{"text":"PageIconMotionKt.rememberPageIconMotion (cyclomatic 17): PageIconMotionKt.rememberPageIconMotion 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/PageIconMotion.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ed4071b6cab275625240e05ee9545a712aab6da649e9c5de8c4f1039e9fbbb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChangePreviewViewsKt.PreviewBody (cyclomatic 17): ChangePreviewViewsKt.PreviewBody 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dc54ede41c8445cf065fcc66c337f90a06f0384be7d849906dd5d198df47a5"}},{"ruleId":"D1","level":"warning","message":{"text":"AndroidDiagnosticStore.summary (cyclomatic 16): AndroidDiagnosticStore.summary has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8d871fb23d4e1e90a623b5ef8b02f85f43d7f3837bb5b3cb2112b874dc7da4"}},{"ruleId":"D1","level":"warning","message":{"text":"ComparisonViewModel.observeHistory (cyclomatic 16): ComparisonViewModel.observeHistory has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"093b841ab10091287920c9c60c50f3bf88ec7f8d69b78ecc638d54ae5a03a7f5"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffUtils.lcsDiff (cyclomatic 16): DiffUtils.lcsDiff 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":"shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb099e96d8eaf2014f52f3af2c95be12a5b775c0f320e486c1922009dd8a99c"}},{"ruleId":"D2","level":"warning","message":{"text":"AddEditConfirmComponentsKt.AddEditConfirmScreen (cognitive 85): AddEditConfirmComponentsKt.AddEditConfirmScreen has cognitive complexity 85 (threshold 15). Drivers by points: if/else 54 (58 pts), boolean chains 24, match/switch 2 (3 pts) (nesting depth added 5). 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"631285f3ec43494a6554bd1a0d2b4c6185d1e594b65da870c801618905998674"}},{"ruleId":"D2","level":"warning","message":{"text":"ComparisonScreenKt.ComparisonScreen (cognitive 83): ComparisonScreenKt.ComparisonScreen has cognitive complexity 83 (threshold 15). Drivers by points: if/else 39 (51 pts), boolean chains 23, match/switch 6 (9 pts) (nesting depth added 15). 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b0ceb4df3e4015dfd2e4b2374cb21428751d6f42cf5f66b93878eaa541c885"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cognitive 59): HomeScreenKt.HomeScreen has cognitive complexity 59 (threshold 15). Drivers by points: if/else 31 (43 pts), boolean chains 12, match/switch 4 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96f4a04b2c60f6e359591dc745d9e417bb9394bc28eff2d496c2862933335bf"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualRegions.compare (cognitive 53): VisualRegions.compare has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 15, loops 4 (6 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9bcbc42e97ad2c13a7eb982e8e78137e49ad9bcbb050b88ace6a93faed828d"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualRegions.sameAfterShift (cognitive 52): VisualRegions.sameAfterShift has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 8 (17 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a0791a886981860838ec2a946a92f418c9b4074411bfb3263ebfd7a797f64b"}},{"ruleId":"D2","level":"warning","message":{"text":"TextRegionPickerKt.TextRegionPicker (cognitive 51): TextRegionPickerKt.TextRegionPicker has cognitive complexity 51 (threshold 15). Drivers by points: if/else 33 (42 pts), boolean chains 6, error handling 1 (2 pts), match/switch 1 (nesting depth added 10). 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/TextRegionPicker.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9a5b42c91b0a9eb477e0c1a6f5ba5b45f6a97ec87e5af17cb9deb4169c9859"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.processSuccessResult (cognitive 51): SyncEngine.processSuccessResult has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (27 pts), boolean chains 16, error handling 5 (7 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"74943a9c6653b84cf63ab8bb7517dff660e7a1116baaa47aa24b6a6cd8dbc620"}},{"ruleId":"D2","level":"warning","message":{"text":"KitKt.PageAvatar (cognitive 48): KitKt.PageAvatar has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30 (37 pts), boolean chains 10, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0b9bb70ea0d459a547d5fe123cea4ccdc0d069f7d05bf37ed28dfd00e99c99"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogBackgroundSyncKt.BackgroundSyncDialogContent (cognitive 45): DialogBackgroundSyncKt.BackgroundSyncDialogContent has cognitive complexity 45 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 7, match/switch 1 (3 pts), error handling 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1affe518a3848a51d868463651161d5fab5e55186834b18d711e59973e69971b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddEditConfirmComponentsKt.PagePreviewCard (cognitive 42): AddEditConfirmComponentsKt.PagePreviewCard has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (34 pts), match/switch 3 (5 pts), boolean chains 3 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f43e1f4b2ddce2a45e1e52abe7eee181efbe81c55fee27f483a35525525efda"}},{"ruleId":"D2","level":"warning","message":{"text":"AddEditViewModel.requestPreviewFrom (cognitive 39): AddEditViewModel.requestPreviewFrom has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (22 pts), error handling 6 (9 pts), match/switch 2 (7 pts), boolean chains 1 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e867f50a5bba18b019e333af5c8d3a8baaf29b16e13516996b2ccdbf6a2fee61"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualRegions.changedBands (cognitive 39): VisualRegions.changedBands has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 5 (9 pts), boolean chains 3 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee0d0589d86fad1390808eb7277f8a73ef9b5561c84ef15036d75a4c21b4280"}},{"ruleId":"D2","level":"warning","message":{"text":"AppContentKt.ChangeDetectionApp (cognitive 37): AppContentKt.ChangeDetectionApp has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 11 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3150a4561d529af97565315da83a5982e5c72a191f648ee3e57f323ac0484f33"}},{"ruleId":"D2","level":"warning","message":{"text":"androidKt.DiagnosticsDialog (cognitive 35): androidKt.DiagnosticsDialog has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (17 pts), error handling 6 (12 pts), boolean chains 5, match/switch 1 (nesting depth added 10). 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b23da7f7e855eee2a46c3743bebdb75f67266e42ae7b6aa33f3fa8e446b171"}},{"ruleId":"D2","level":"warning","message":{"text":"PageDetailScreenKt.DetailList (cognitive 35): PageDetailScreenKt.DetailList has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (27 pts), boolean chains 5, match/switch 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ab9dd6e22d5f55387347447d478c81107b284ebbb4ccd44c8979d773a06946"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBrowserScreenKt.LocalBrowserScreen (cognitive 34): LocalBrowserScreenKt.LocalBrowserScreen has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 9, match/switch 3 (6 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4acc1e0755e00de603a5868160c00e4fb597c715ed929a1cc594ca47183972"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchBrowserKt.WatchBrowser (cognitive 33): WatchBrowserKt.WatchBrowser has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 8, match/switch 1 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3756c6d46d7d40f947bdf5367ba3fd3d8e0577387042e69f3fb4e89a8251be5f"}},{"ruleId":"D2","level":"warning","message":{"text":"TurboSession.start (cognitive 31): TurboSession.start has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 5 (8 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/background/TurboSession.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"be19d3cf9c29f2e3048654f1a872015f31ffc38a5cabdb864fc9156d662ec5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"KitKt.vivid (cognitive 31): KitKt.vivid has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (30 pts), match/switch 1 (nesting depth added 10). 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"db21b2e07d7d5ed8c198328c797d173d4151fe631d1146289e92823644c439d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.saveNewSnap (cognitive 30): SyncEngine.saveNewSnap has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (16 pts), error handling 8 (12 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acec929a6d26b949a1209d591762071fe1ab89b84265f56e2f455f080d35b11"}},{"ruleId":"D2","level":"warning","message":{"text":"AddEditViewModel.performSave (cognitive 29): AddEditViewModel.performSave has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 8, error handling 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95d39fdd79d9a500e3e79614c511d47fd715a298c1116bd3bb2da10cc524736"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangePreviewKt.clusterEdits (cognitive 29): ChangePreviewKt.clusterEdits has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/preview/ChangePreview.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"457a3493da3ed1e6656ead95d809a013cf8463e80316fce683b78841f2ec0cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"AmountsKt.parseAmount (cognitive 28): AmountsKt.parseAmount has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, match/switch 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/Amounts.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2969da18ff9e5404e4d4a143d264e8bea43ea342a9bdc10271c10aaa8020730"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckFailure.from (cognitive 28): CheckFailure.from has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 4 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d884142598907cd084b40a748bdf9de9eeeffea009407007bf3470d3df6f262f"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualRegions.align (cognitive 28): VisualRegions.align has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 5 (9 pts), boolean chains 7 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44fbe1f3529d571a8075c00907db8fee3dd2042b7bd91c5e689adbff181088c"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityScreenKt.ActivityFeed (cognitive 28): ActivityScreenKt.ActivityFeed has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 5, match/switch 4 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b05b6d44b1163c65b97a9e069a061998751806347c876d55560b9bb6a4be5f"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidPageCapture.captureLoaded (cognitive 27): AndroidPageCapture.captureLoaded has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 6, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb8813dd343c5d5d023543a35d7deda7385aa042df67500945e182b77ee1054"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableTextDocumentKt.selectableTextDocument (cognitive 27): SelectableTextDocumentKt.selectableTextDocument has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 4, loops 2 (3 pts) (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/SelectableTextDocument.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cce89c5d863152b438f1f4f931dc1b89cf11f33f8aa9049dc5121d7227f810"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffUtils.lcsDiff (cognitive 27): DiffUtils.lcsDiff has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c192f20a881ea5715168fdeecda6b55bcf1cd2c616792f7b1c002727262383e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidPageCapture.awaitSelectedRegion (cognitive 26): AndroidPageCapture.awaitSelectedRegion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 4, 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2f8d2a7502ee712caf2daf42c7689ec1e500efec06e2cc1982791d58f21acd"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.verifiedBaseline (cognitive 26): SyncEngine.verifiedBaseline has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, error handling 4, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"955061edf74890bc1a5a2ffd5f75d3562a69b5c16cf13b0877a9ce67fedd1fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualChangesViewKt.PageOverview (cognitive 26): VisualChangesViewKt.PageOverview has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21 (23 pts), loops 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/VisualChangesView.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a10fcdff53dd2ebb90cf545f05c0dd8fbf52c440d6b001d544d02a8ea3cd118"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeKt.typographyOf (cognitive 26): TypeKt.typographyOf has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/theme/Type.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0750b9d6a512232a581dcb861ccda015c8280708fb3b9e23dde5f04f3be8d21"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.HomeTopBar (cognitive 25): HomeScreenKt.HomeTopBar has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9140717c2853689aee1e994e5d6f86c89dc558f9827ae715aa274f1e386e46"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectedChoiceKt.ConnectedChoice (cognitive 25): ConnectedChoiceKt.ConnectedChoice has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 6, match/switch 2 (3 pts) (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebdad37d2daaf5dbad7c911509e0f2be50d80889152035901399b546741e63f"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityScreenKt.ActivityScreen (cognitive 25): ActivityScreenKt.ActivityScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd3276b01c61770e45d187096b105a83091b96555661fea3f7ea093268fc2be"}},{"ruleId":"D2","level":"warning","message":{"text":"TurboUiKt.TurboLiveScreen (cognitive 25): TurboUiKt.TurboLiveScreen has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 3 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/turbo/TurboUi.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef557c2c169f4d33f363187e95b8d116450a927b5cb8f09e2429956df997e194"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeReaderKt.readerBlocks (cognitive 24): ChangeReaderKt.readerBlocks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ChangeReader.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1595cefcbc98e261bac5980b37a8d4ea710681ca77eac6e564cfe1e555e76a"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.PageRow (cognitive 24): HomeScreenKt.PageRow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e272710473b5817ea2c79a41f09b817df9ebe401d646e02feaccb953dfe5f1"}},{"ruleId":"D2","level":"warning","message":{"text":"IosPageCapture.awaitResources (cognitive 24): IosPageCapture.awaitResources has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, 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":"shared/src/iosMain/kotlin/com/bernaferrari/changedetection/browser/IosPageCapture.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf74e553c672e00e8c59b049e6229e874323424d25c98f719dc76bc91f1d42c"}},{"ruleId":"D2","level":"warning","message":{"text":"TurboUiKt.TurboSetupSheet (cognitive 23): TurboUiKt.TurboSetupSheet has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 1, match/switch 1 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/turbo/TurboUi.kt"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cf42233c55d7542b86afa61026ebe8b0a2741f66c7d8046b789e22387f94d1"}},{"ruleId":"D2","level":"warning","message":{"text":"run (cognitive 23): run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"store-listing/capture.tour.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b63dd64ce6f84f2424f5d0837b13ee468097bd6f7b5a93cf86fa411205c44e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyDatabaseImportKt.importLegacyDatabase (cognitive 22): LegacyDatabaseImportKt.importLegacyDatabase has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 5). 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/repo/source/local/LegacyDatabaseImport.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"482511ae79fef61cdf7289ed87df41d26679a48b9bac22fc9f57dcd7397a38e1"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupService.import (cognitive 22): BackupService.import has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 3, error handling 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a45415cd7d203648831a4b4983a76f2e06b65c14b2ed676bdf898ff9802910"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncEngine.processFetchResultUnlocked (cognitive 22): SyncEngine.processFetchResultUnlocked has cognitive complexity 22 (threshold 15). Drivers by points: error handling 5 (11 pts), if/else 7 (9 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd569f6b5d3d908686ea04c0214879a4749241efd590ee1818d28208927fb3b"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightViewKt.HighlightView (cognitive 22): HighlightViewKt.HighlightView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 3 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/HighlightView.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ca4e2c8bffd409ed794e40c9cc692c30696651570481340c4dfc5667fdef89"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDiffComparisonKt.SimpleDiffView (cognitive 22): TextDiffComparisonKt.SimpleDiffView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/TextDiffComparison.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"551f1a9d09943f6038a61b1d7e3d318b137b84e01e7a7ded67633ca6befe1e28"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangePreviewViewsKt.PreviewBody (cognitive 22): ChangePreviewViewsKt.PreviewBody has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 2 (5 pts) (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab710a5e8d00d1f9f78c4490d7a94c01cce53caf5c00b3c11e41ea83f1fac829"}},{"ruleId":"D2","level":"warning","message":{"text":"NavigationSuiteKt.ChangeDetectionNavigationSuite (cognitive 22): NavigationSuiteKt.ChangeDetectionNavigationSuite has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/navigation/NavigationSuite.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac13c1b0ddb19a2c6590d055c219205228a95f22153e689fa386a4b2a4ae63bf"}},{"ruleId":"D2","level":"warning","message":{"text":"androidKt.BackupDialog (cognitive 21): androidKt.BackupDialog has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3, boolean chains 2, error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupRow.android.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"516e66f48cee3a6a8e0f1f69a74bcbc42b4d72a5cd21e33213ef22ebed143509"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidPageCapture.awaitResources (cognitive 21): AndroidPageCapture.awaitResources has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"111b0fa14b2429e16ffbe75288ff84c03d69ed336479757eff3559b83a87d3fb"}},{"ruleId":"D2","level":"warning","message":{"text":"PageCaptureHealth.ssl (cognitive 21): PageCaptureHealth.ssl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, match/switch 4 (5 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f36821686ee589e40cf57919ddcdd4bedd9506202bf35c380b142f801bc502d"}},{"ruleId":"D2","level":"warning","message":{"text":"CapturePreviewerKt.previewFromCapture (cognitive 21): CapturePreviewerKt.previewFromCapture has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewer.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d847f5677524498278da3c848960dd81a28a124ed586be4b376bcd879896ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageComparisonViewKt.ImageComparisonBody (cognitive 21): ImageComparisonViewKt.ImageComparisonBody has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18947c3a90101419945c447c6ca7fa2c4a256a1dd29a4166664299eae74d65"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualChangesViewKt.CropLabelled (cognitive 21): VisualChangesViewKt.CropLabelled has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18 (21 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/VisualChangesView.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6774638db853f0075379e7e86e25cee8f3e729f0875daef981f3b53d4c5e44"}},{"ruleId":"D2","level":"warning","message":{"text":"ComparisonViewModel.loadSnapContents (cognitive 20): ComparisonViewModel.loadSnapContents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1d0aa7b458345a8b9ce5de49b2d4370ed17ca5fc56f0b8c8bd9fd46436f964"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedDiffUtils.insertOrig (cognitive 20): UnifiedDiffUtils.insertOrig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/util/UnifiedDiffUtils.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25a5f51e73e233f9754aad5d458cb2ae64089091dd3218f3de89295936df42c"}},{"ruleId":"D2","level":"warning","message":{"text":"TextChangeSectionKt.textChangeSections (cognitive 19): TextChangeSectionKt.textChangeSections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/TextChangeSection.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b757bef397fa71a25a4de6e2bf60c7091f4e2eeb2e12ae6050e5d08618a2fe90"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangePreviewViewsKt.ChangeSpot (cognitive 19): ChangePreviewViewsKt.ChangeSpot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, error handling 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, 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fa319b781dcd575723875d07876f0df61077a4666dc5fef243333dc69233df"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderedSelectionDocumentKt.selectionDocumentWithWatchedAreas (cognitive 18): RenderedSelectionDocumentKt.selectionDocumentWithWatchedAreas has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 2 (4 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/RenderedSelectionDocument.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6ab14ba4abe257f28a4155640f1c6c1ab93f0de483a96b0720194fa20df1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandler.classifyError (cognitive 18): ErrorHandler.classifyError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bb9ec6c1ed951d84de71dda1786138fc97aceaa8ada6f7a943728803d72e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"PageIconMotionKt.rememberPageIconMotion (cognitive 18): PageIconMotionKt.rememberPageIconMotion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 4, match/switch 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/PageIconMotion.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2330a32c56ca937fa3e2c175101ce8c194d44c75b4cd2f110db023fcac7b3948"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupService.preview (cognitive 17): BackupService.preview has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf2bc58a9765aafaae9330ce24b0d3049631c858764a653e3a54a094fb0a64d"}},{"ruleId":"D2","level":"warning","message":{"text":"RgbaDiff.compare (cognitive 17): RgbaDiff.compare has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/RgbaDiff.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc95bde611b33de3946db618487358932c27be1582f4f7f993058a634e3358ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotImageDiff.equals (cognitive 17): SnapshotImageDiff.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 1 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/SnapshotImageDiff.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7443172304edfeed46fa8548fd09874c76f1a7d9cd0dbc8a0c7762cd1fdfda46"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeReaderKt.readerItems (cognitive 17): ChangeReaderKt.readerItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ChangeReader.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ba231e6cdb4ea93949ef5e9a5e7c5be9dc6b3f908685affe68ae43e0f84a49"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayDiffRowsKt.displayDiffRows (cognitive 17): DisplayDiffRowsKt.displayDiffRows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (5 pts), boolean chains 3 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/DisplayDiffRows.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ee3907d5a59c39cec7f2f87ad69ac0c81ef99be917f2fa73601119ebf12644"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenshotWaitChoiceKt.ScreenshotWaitChoice (cognitive 17): ScreenshotWaitChoiceKt.ScreenshotWaitChoice has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/ScreenshotWaitChoice.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab78fde5eb87c180c082ecb471e627b267a4c540b22090dfb89f78f44701bdc5"}},{"ruleId":"D2","level":"warning","message":{"text":"AndroidDiagnosticStore.report (cognitive 16): AndroidDiagnosticStore.report has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5896b1a3433bb6638e66137f99d8611cf7bf95f39e8823433608c6d3d978acd4"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureModeFieldKt.CompareChoice (cognitive 16): CaptureModeFieldKt.CompareChoice has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CaptureModeField.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d88ba35518b350a6e2abd76f22f224e0a1ac1b8cb5029ef176216d0a4bda8b"}},{"ruleId":"D2","level":"warning","message":{"text":"TextRegionFieldsKt.TextRegionFields (cognitive 16): TextRegionFieldsKt.TextRegionFields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 3, boolean chains 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/TextRegionFields.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1977a58d86a117477f1a41ce40ef58e863fc2fdde89a2be390c8f56e51f1f143"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualRegions.trimBlank (cognitive 16): VisualRegions.trimBlank has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 2, match/switch 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e58cddc8b10f999ba0d6abaf08c12c9d39dc2f08d686ce0897abc3036d7e57"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDiffComparisonKt.passageLines (cognitive 16): TextDiffComparisonKt.passageLines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (16 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/TextDiffComparison.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c301cb622b5a87d0f5c172c8ff35aeb5d3f6bfe195a512c770e29d1faa10c6"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualChangesViewKt.VisualChangesView (cognitive 16): VisualChangesViewKt.VisualChangesView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4 (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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/VisualChangesView.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c398f3f2448277e2cab789834353157ce30a64689c1aaa9964f021643f99c706"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorPickerComponentsKt.PaletteSwatch (cognitive 16): ColorPickerComponentsKt.PaletteSwatch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/ColorPickerComponents.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b42cbff34f4d4e85e7aab54b1730c40ade4a9a214fdd8dba253ab82513f770a"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.SelectionBar (cognitive 16): HomeScreenKt.SelectionBar has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a411db996973f2d9d8429aa8fa776418fe5cdf281cdc2214853df50fe87627"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.ChangeCard (cognitive 16): HomeScreenKt.ChangeCard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea12a620f8a2683e53bae604a772eb183f0084b0f1aae82995a89f2d79189c9"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.SettingsScreen (cognitive 16): SettingsScreenKt.SettingsScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/SettingsScreen.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63d804621b97483b8f881499c7b6c6336e8db858271af2579ca81140a3c599d"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffUtils.orderedAnchors (cognitive 16): DiffUtils.orderedAnchors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 2, boolean chains 1 (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":"shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"249bcaf0a2f84edbfb9c47e85d5b1b7a35607769dfc063c1073fc8c9c756cfcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComparisonScreenKt.ComparisonScreen: MethodTooLong \u2014 ComparisonScreen runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1da2885ba3f901320185f351bdfb6c65094c1aca6ef7f754b85f9c69e681ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenKt.HomeScreen: MethodTooLong \u2014 HomeScreen runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"523db63dabf53fd54154c125a9dba701c2d73f78e671f8806f676aa831c33eb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WatchBrowserKt.WatchBrowser: MethodTooLong \u2014 WatchBrowser runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9f6787bdc0b1ad7f5149bddc0ef0b2191367fe2f4ff63da87ca38d12343646"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PageDetailScreenKt.DetailList: MethodTooLong \u2014 DetailList runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e5348942f7299fd569f06a886c414c3f7912eca9ea0a6cc3e8f4d0c903c1c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: addedit/AddEditConfirmComponents.kt: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 217 over it, 1.43\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdab645e512c42056dbf567df545c6e48ed26e592e285872ebe14c6fae46375"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/HomeScreen.kt: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 191 over it, 1.38\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e389ab9d2ecd88e1f61a1d09c28af3a0b0594ca6915025bc9eb05f5af6f0552"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Home: FunctionTooLong \u2014 Home runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\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":"website/app/page.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa62c3e4a5467dcc74a3c9f6406b7b1dcbb665f021a6affea6da5977158c93c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: androidKt.BackupDialog: MethodTooLong \u2014 BackupDialog runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupRow.android.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab877483764af6a0771414f230abbcf6c84ab266bb3e00671ca6a5fb0b5f690d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddEditConfirmComponentsKt.PagePreviewCard: MethodTooLong \u2014 PagePreviewCard runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab8f4793362aac0094832266cd5f14779185651bd610079d7127446bbaa7c3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: detail/PageDetailScreen.kt: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc8ff2a69fb8928d1455f5f3f8d0ed90f09117c2d2195a8659b873d2eec0c91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SyncEngine: ClassTooLong \u2014 467 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 67 over it, 1.17\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fed508e19c168e6f060153343361627fc789e3d92f563e04dd1c9fcef47d0c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VisualChange: ClassTooLong \u2014 430 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 30 over it, 1.08\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dcc867080677f22b6fa12ec786efde23d8e7e6c60ee992172c511e9f6e9103"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sync/SyncEngine.kt: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: SyncEngine (64-773). The bar is 500 significant lines; this is 16 over it, 1.03\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9b2d9ad5634bba77d4e2e021bc0c5caf513bba28bbfe8913f6f12451c749e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: comparison/ComparisonScreen.kt: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ed9e28f6c79e0c5a32caeffee7b20e53b93e65a20b8a93d655688a09223193"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/PlatformImageDiff.desktop.kt:18-98 | shared/src/wasmJsMain/kotlin/com/bernaferrari/changedetection/image/PlatformImageDiff.wasmJs.kt:13-84 \u2014 These two members are one piece of code written twice and then edited apart: 72 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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/PlatformImageDiff.desktop.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d936f277ff7b9a72a945cd8bcc9994d6e1ad9c8cd020d3ce8c383a88b1d619d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:143-203 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:224-282 \u2014 These two members are one piece of code written twice and then edited apart: 59 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef9912887afdcb5860e4a66ce474e713204e57f03d889b943068409cebabcff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/WatchCaptureViewport.android.kt:11-23 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/browser/WatchCaptureViewport.ios.kt:13-30 \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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/WatchCaptureViewport.android.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d5e02ad2c954fd9fdefb9382f93fbf499961444988552348706cf6978583bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/AndroidFileStorage.kt:40-53 | shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/DesktopPlatform.kt:76-90 \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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/AndroidFileStorage.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d446eef390759720d7e3c31d8189c0c21509d9a8237c136e6d0dec092f3b6130"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:482-504 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/main/MainViewModel.kt:394-412 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5ff57e87cef92ba72977f17d1ce8ecb7ae527963906ac115d98ad791a0adc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/AndroidChangeNotifier.kt:127-140 | shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/AndroidFailureNotifier.kt:74-81 \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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/AndroidChangeNotifier.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed9387c7256c8f5fdc83362bd01684be2fd4ce74703e27eb269889482897e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt:459-470 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt:447-457 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f518be256222e907b72b7702880718be645bcb64261f2c8bec87443c49eabfb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt:303-308 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/SettingsLoadState.kt:20-25 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc82d6f63cfee1ed796c950590883aa8f6c4f1b029ee1f0d62c3a28cd926a90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupFiles.kt:62-70 | shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupFiles.kt:72-83 \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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupFiles.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3210e69f0c4b606365fbd16d1b5ed02b88eeb33c016afc86bcc31482871437"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/storage/SnapshotFileCleanup.kt:68-79 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/ChangeAlertOutbox.kt:79-90 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/storage/SnapshotFileCleanup.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f08b7ae2a2f411a3e11cd3a2325a62f766f493c91b2f17e8f2a7dc20e7e6551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/DesktopPlatform.kt:93-93 | shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/AndroidFileStorage.kt:13-15 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/DesktopPlatform.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d37aa943a10e795478d8834579032d19500ad8964a5a0e10466762b16c49626"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.android.kt:3-3 | shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.desktop.kt:3-3 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.android.kt"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b768f100845f5a89a8e367a359f6e7416f35879694a38fb2712ec548efcecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:155-193 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:225-263 \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, \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:224\u0060 calls \u0060handleNetworkError\u0060, \u0060when\u0060 and \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt:153\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b0fdfc4a1086066016bc21453c692b2e91314150a82c8e31602b5012a03391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.desktop.kt:10-43 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.ios.kt:10-43 | shared/src/wasmJsMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.wasmJs.kt:10-43 \u2014 before extracting anything, compare \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.desktop.kt\u0060 and \u0060shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.ios.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/DecodeArgb.desktop.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"920b2282921bc814d03b9b02ca6eb973e09d7f0409986f4abc86744074886ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt:752-764 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt:47-59 \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 \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt:752\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"af352b0399213d9f2c2f7922ae27822267437ead3d7a3111e5be7d32a34d1044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/CryptoUtils.kt:9-18 | shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/CryptoUtils.kt:9-18 \u2014 before extracting anything, compare \u0060shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/CryptoUtils.kt\u0060 and \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/CryptoUtils.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/CryptoUtils.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c22545d29b73bb0c9d6a51f2877f5d185b2bab48012ede64b0a5ad1ea2af9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/util/UnifiedDiffUtils.kt:140-149 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/util/UnifiedDiffUtils.kt:155-164 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/util/UnifiedDiffUtils.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a99de4ac748387c9243ff131909bb99b0fea891aa385ed39c80ba90958f32f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:284-292 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:340-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 \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:284\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b4af7393242f10ef60e6b664aa2d8cd57c507cc3e836bfe34dd8e2ca26bdb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/RenderedSelectionDocument.kt:30-38 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/RenderedSelectionDocument.kt:48-56 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/detection/RenderedSelectionDocument.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4d7a83436d2fbe47d275eb7be0b590f0c192b2d6362e8e27140136e5af8ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt:202-209 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt:384-391 \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 \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt:202\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebcd3d4ce6943240308340d74d3661c051e071a07486f40c88556aefe8b3905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt:378-385 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt:419-426 \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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15cd1fee93867ab0c2796bab61a58e6256714b5a76cd3f8a99eec902ea5df01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt:14-25 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.ios.kt:14-25 | shared/src/wasmJsMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.wasmJs.kt:14-25 \u2014 before extracting anything, compare \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt\u0060 and \u0060shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.ios.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. 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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88eb713374bdf5e6c8feb202f8e3ab900a3b08b16d4c0b14d3ade6c5faa1be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt:77-85 | shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt:118-126 \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 \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt:77\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060source\u0060 to \u0060BackupSource): RestorePreview = withContext(fileIoDispatcher\u0060 in one and \u0060BackupSource\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/backup/BackupService.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb1021bfe50fc615e924115b8615c297962c283cd66cbf1b5be25c1f1c3981d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/SynchronizedCache.kt:24-37 | shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/SynchronizedCache.kt:24-37 \u2014 before extracting anything, compare \u0060shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/SynchronizedCache.kt\u0060 and \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/util/SynchronizedCache.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/util/SynchronizedCache.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af9a6fa1f4243b5ed2aa24b1a5a47878728f46c0808b73183ad582d18c9e85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.desktop.kt:23-43 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.ios.kt:23-43 \u2014 before extracting anything, compare \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.desktop.kt\u0060 and \u0060shared/src/iosMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.ios.kt\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.desktop.kt:23\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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/ui/theme/ChangeDetectionTheme.desktop.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7623d3839b8b06b537d3119a71c05b3fb7e53bbbe73653631abcebb446bf7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt:27-32 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.ios.kt:27-32 | shared/src/wasmJsMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.wasmJs.kt:27-32 \u2014 before extracting anything, compare \u0060shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt\u0060 and \u0060shared/src/iosMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.ios.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.desktop.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61afe8e71fd823b77115e530ace196b1ae13fa701dd7036ea3d14c9507c75ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): shared/src/iosMain/kotlin/com/bernaferrari/changedetection/util/IosFileStorage.kt:56-61 | shared/src/iosMain/kotlin/com/bernaferrari/changedetection/util/SharedStringUtils.ios.kt:20-26 \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. 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":"shared/src/iosMain/kotlin/com/bernaferrari/changedetection/util/IosFileStorage.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53c0247dba6f47da17c0e5ea97c4b0e2fe11e72895539304f50710318daddc4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :sqliteWasmWorker: :sqliteWasmWorker: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b5b575d11ce717dfd9736779e6af667e1f4eb4c249483302306b31f16a12cdd8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in AddEditConfirmComponentsKt.AddEditConfirmScreen at line 91. 1 of those changes was a fix/bug commit, and the other 29 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fba81faa101be3b97606eee548fd9bb7ee22cd4bbb18913118e2167727ae02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in ComparisonScreenKt.ComparisonScreen at line 152. 2 of those changes were fix/bug commits, and the other 23 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"13272cf3aeb6925d6718ac1bdc54f84394431741276ea9f767b5b2b9e0e0f4cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in HomeScreenKt.HomeScreen at line 152. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb8a3e766e94a945601a10fa4696c835eecd27a6e444f063564ad8a97fbceac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in SyncEngine.processSuccessResult at line 329. 2 of those changes were fix/bug commits, and the other 20 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"6787f66fa25625ced2fb93c0f0f84c6f2b952e0a890c55d8a53351a1c7d4b667"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in PageDetailScreenKt.DetailList at line 307. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/PageDetailScreen.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3e6a5214a60064e5ce7075cf5d301c6dafe0dd0fd522163898b43c76c0421f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AppContentKt.ChangeDetectionApp at line 116. 1 of those changes was a fix/bug commit, and the other 21 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f6191aa7c458a518cd01cf2930b2f2c1f4d1d79d3d606dd1e12a03f485d91f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AddEditViewModel.performSave at line 418. 2 of those changes were fix/bug commits, and the other 22 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2165c6a83da6d70df32f177b668cfdd85a999e4ad5f5212e41b0a6d4c64bd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in KitKt.PageAvatar at line 96. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/Kit.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0687529b0bcd04bc0d988eefb2a5b0cac186ebe232f88cd7afd274694ecc8d18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in WatchBrowserKt.WatchBrowser at line 105. 1 of those changes was a fix/bug commit, and the other 18 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/WatchBrowser.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0db7c3bb1d6318de99fc98b8384174c62fcdb35393e888c909d93699169ede"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in AndroidPageCapture.captureLoaded at line 91. 1 of those changes was a fix/bug commit, and the other 21 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt\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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b5794f8cbfb310c28e3f146cddce2a6a1ccfa07d03207baf7417cd4c82acba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in VisualRegions.compare at line 89. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/VisualRegions.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed862b857895e924e56e96f582144b8c55a88a59dc1d904e11651e1c9851b90"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ActivityScreenKt.ActivityFeed at line 201. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/logs/ActivityScreen.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0b9d42f0ea4997f82d6a0aa0c6e4ace124fd18afce2583984429981dadf154"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in DialogBackgroundSyncKt.BackgroundSyncDialogContent at line 76. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8684a24eca13c54883a031e336ae4e9a93434f3a112e6b67751bf4775cea7237"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in CheckFailure.from at line 47. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/CheckFailure.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35bb2ce232ea2c7a9ac01f1bfae593e8f7f74326c247753cfa70de5e9b793f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ImageComparisonViewKt.ImageComparisonBody at line 147. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ImageComparisonView.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4eb094f1d9dfd04a8741c9c830b71a8c5fbfa6612e2bda904fca43b718d575"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in DiagnosticTraceKt.diagnosticCategory at line 334. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8769f3a6e84c75b922c006d133426dbe35e3a39481b73a2a306bb9e6a51326"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ChangePreviewViewsKt.PreviewBody at line 179. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1d6028680d6c6178585c401b426485f3e4b3444fc320d89f4aca71ee7c98d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ComparisonViewModel.observeHistory at line 261. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonViewModel.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aba3d3d67bc90ba0c9ae71c25ec2cbbfd828071e4b985628f14f80fd08bfa09"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ConnectedChoiceKt.ConnectedChoice at line 40. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0856a08c71d34b72dd5e7869166a918e727f58630dc35912169d1eb63a0651d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in ErrorHandler.classifyError at line 56. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorHandler.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d2e178ac501a5b5fd6b19dc59f692d0bfc23d4040c350929e5a6111ab9fde5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CapturePreviewPanelKt.CapturePreviewPanel at line 26. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00435a786427d35f828ec2706411c8f2d4b7df4cf454194b1985add321eecc4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in LocalBrowserScreenKt.LocalBrowserScreen at line 69. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/localBrowser/LocalBrowserScreen.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f45f4914b816626ff20a42d81896c52b2183c9c9b4f084d8013d7c3ed77ffeb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AndroidDiagnosticStore.summary at line 260. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt\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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/AndroidDiagnosticStore.kt"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4814d3d105a886b00d8bf3c5b4ea5b37c2ee7409ee3c6879f814256324b1343"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorPresentation.kt: shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorPresentation.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ErrorPresentationKt.errorPresentation at line 9. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorPresentation.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/error/ErrorPresentation.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c3354004f456c129012f3cc1ed9e5fbfeffa05ed94a46a4e810dd601aeb93b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in PageCaptureHealth.ssl at line 116. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt\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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/PageCaptureHealth.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e2ccdf4e27b8e89dfd2f3a4a5d4e56265306215af1354c23cfa29be8b7c167"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt: shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in androidKt.DiagnosticsDialog at line 53. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt\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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"777a30285ace8eaebf792753a67a12c686a2ccbf71eb68b1e0879a7d6d653e33"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt: shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in DiffUtils.lcsDiff at line 95. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:14:21 -03:00\u0027 --until=\u00272026-11-16 17:14:21 -03:00\u0027 --full-history --no-merges -- shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt\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":"shared/src/commonMain/kotlin/com/bernaferrari/difflib/DiffUtils.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef43d4cba8d125f8e8fb6537992394d8fc9b45cddd126e0f010a0fafed39900"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060shared/build.gradle.kts\u0060 makes this repository a deployable product (line 208)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/build.gradle.kts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21567b567f02e271c8f5779509d44d9b160be354a7de40f976dcce3cac29b4b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060encodeURLParameter\u0060 spells \u0060URL\u0060 where 55 names in the project spell it \u0060Url\u0060: 55 of 56 names in project shared spell the token \u0060Url\u0060 (55 of 56; unit: names in project shared containing \u0060Url\u0060). Peers: PlatformActions.openUrl (shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:65); AppContentKt.ChangeDetectionRootApp(initialUrl) (shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:76); AppContentKt.ChangeDetectionRootApp(onInitialUrlHandled) (shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:76); AppContentKt.ChangeDetectionApp(initialUrl) (shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:116); AppContentKt.ChangeDetectionApp(onInitialUrlHandled) (shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt:116). Rename to \u0060encodeUrlParameter\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/iosMain/kotlin/com/bernaferrari/changedetection/platform/PlatformUtils.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5526a7bb3adc5f7928b2e77066f305a979c3c6de80f1313bd15025cad480164"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060shared\u0060 (33745 LoC, 1016 module-visible types across 107 directories) overshoots its size bounds. 1 of 8 build unit(s) (Gradle, Xcode, npm) overshoot their size bounds, lowering Project Cohesion to 7.5/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":"shared/build.gradle.kts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44a88b844342d59730d1da7cf2cf6e4d00520f1c202fbfb986056004a0f9ed8"}},{"ruleId":"D28","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":"4271f6af7b9e60279d823911d6c6b2b7999ef72e3ec6f5f8df41855f873a19d9"},"properties":{"commitSha":"331c9885b19198c6ae15a3a63d8805c1e81573c0"}},{"ruleId":"D28","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":"3c8caed5c91ce3d3c447f90e5bebf553fb689e4d491d2b9f12aa41b671e1f690"},"properties":{"commitSha":"129d8297eb760b94316f9797bff26e28d8a322ad"}},{"ruleId":"D28","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":"14efaf78c4aae964ca82b47199e42db503ca6a0f0b5c3b374c5658f7ad1ff553"},"properties":{"commitSha":"875e4e89b9c7be26bb6c4da5553cc1184b4bc697"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"c5f067e943989fd039ad70411013bf082a8588b9f38464ef16f66d6f48246c7e"},"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":"4b7e202a747bafbe73bbf7ea084e7030fb32220cd71da160ad3120cc66252a80"},"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":"0f59afcdf737bf2db0af4edf0d6d9fd52291e32ca0618f4d81d4d480b107647a"},"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":"9b2102bc9f2e561f659fa49c72b0524f856f4d177fd95e54617beb07ef55c1c0"},"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":"270db641e9fceafea09e18419fc9685c2c679a8e165bbff2e97b6a6ea0a6c76d"},"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":"d72f5e65200e5dc699b908646d208b108f12b07b088c346409cabcda2df14a23"},"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":"0585eb46df5cfd5f501382be988e20a0ecaba304e52ed03b98d50fbd5b5ae8bd"},"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":"aeeeff697a1704120de5b2a59a7a3ec0adb54fb06ec669b1c0e1a91c40a53e6c"},"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":"85bd1bf30983bf65609417b13af989a2863e6231c1be9efaa43e3417fd80011c"},"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":"cd5da8f691b1f3742279738755fc4946a2ebf8cb4e7017f2df4227ee04628063"},"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":"1636b1e0647854c8a9f312f6feee8eb95621898804c8639bf431a41740e3956d"},"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":"3ef1d3d3ebd6d91dfe1f0dcb23bc71cfee891c3f0178b4f341b180919508d9d6"},"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":"0f21d8e2b32778673284978f0ce6e3e74ceb817754c14aaec1ccd36b9a31380d"},"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":"42b4687f319cbbd5e282f3e7386731668adef9f2c699c947c413ebaafa818f0b"},"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":"6dad62cdafe479dc31c21de7a90418f25a94c8bf3a2c44caa09214d987fc8165"},"taxa":[{"id":"CWE-79","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":"737a470251d8ddc11fac38213573183d42d05e9a191a7b71e87118431f989e5a"},"taxa":[{"id":"CWE-829","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":"0b3c2c7cfe44dfcd3c1cd46ec2ce29e102c6f16af0076fa7814dfd2270f13df2"},"taxa":[{"id":"CWE-829","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":"56f8cae028da2afb6fa8142b72be5387aab8e31ddd0900ebf8c53b3b2d5a77dd"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppContent.kt \u2194 ComparisonScreen.kt: \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt\u0060 and \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/comparison/ComparisonScreen.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060ed2fa774\u0060 Keep change previews responsive and polish navigation loading states; \u0060c61bc8ab\u0060 Fix navigation and sharing behavior; \u0060c58e32df\u0060 Unify expressive selectors and improve page navigation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec5e6d71b4624de3c527d732efed53ffc5a623a8d4f91b3debf6e43126ecf78"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppContent.kt \u2194 SettingsScreen.kt: \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt\u0060 and \u0060shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/SettingsScreen.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c61bc8ab\u0060 Fix navigation and sharing behavior; \u0060c58e32df\u0060 Unify expressive selectors and improve page navigation; \u00603a7cd6c4\u0060 Settings: capture method and screenshot wait inline (custom 0\u201360 s), \u2026 (at that commit the files were still \u0060composeApp/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt\u0060 and \u0060composeApp/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/SettingsScreen.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bd9cc6b24d1d9a4b305b8e31fc6ce825a066f93e941c00b8df027b5a8d4ffe"}},{"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":"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":"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":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"webDemo/src/wasmJsMain/resources/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d97c743adca2d874233aa626802913d436d6b89892a7ecdc091084575624e4b"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SnapsDataSource (20 abstract methods): \u0060SnapsDataSource\u0060 declares 20 abstract methods: \u0060observeStorageBytes\u0060, \u0060observeOlderVersionBytes\u0060, \u0060clearOlderVersions\u0060, \u0060deleteSiteWithSnaps\u0060, \u0060getContentTypeInfo\u0060, \u0060getMostRecentSnap\u0060, \u0060getAllMostRecentSnaps\u0060, \u0060getSnaps\u0060, \u0060observeSnapsTable\u0060, \u0060getSnapsFiltered\u0060, \u0060getAllSnapsForSite\u0060, \u0060getSnapById\u0060, \u0060getSnapContent\u0060, \u0060getLastNSnapsForSiteId\u0060, \u0060getSnapPair\u0060, \u0060deleteSnap\u0060, \u0060pruneSnaps\u0060, \u0060getSingleSnapPair\u0060, \u0060getLastContentHash\u0060, \u0060getLastProcessedContentHash\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/repo/source/SnapsDataSource.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93f49a2c481b128374b9d8e52e460f491b81f3dc018984d6db18e976e9ff316"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SitesDao (21 abstract methods): \u0060SitesDao\u0060 declares 21 abstract methods: \u0060getSitesList\u0060, \u0060getDataWithChanges\u0060, \u0060observeWatchlist\u0060, \u0060getSiteById\u0060, \u0060getSiteByUrl\u0060, \u0060insertSite\u0060, \u0060updateSite\u0060, \u0060updateIconColor\u0060, \u0060updateIconShape\u0060, \u0060setMonitoringEnabled\u0060, \u0060setNotificationsEnabled\u0060, \u0060updateMonitoringOptions\u0060, \u0060updateIcon\u0060, \u0060deleteSnapshotRows\u0060, \u0060markSiteRead\u0060, \u0060undoSiteRead\u0060, \u0060updateCompleted\u0060, \u0060updateSyncMetadata\u0060, \u0060claimFailureAlert\u0060, \u0060deleteSiteById\u0060, \u0060deleteSites\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/repo/source/local/SitesDao.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4bdf301dcd7eab4d2fa954215ce55cfef27a5dedcbd77cfdb3aab516d85172"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SnapsDao (39 abstract methods): \u0060SnapsDao\u0060 declares 39 abstract methods: \u0060olderVersionIds\u0060, \u0060retentionBatch\u0060, \u0060observeStorageBytes\u0060, \u0060observeOlderVersionBytes\u0060, \u0060siteIdsWithOlderVersions\u0060, \u0060getAllSnapsForSiteId\u0060, \u0060getAllSnapsForSiteIdWithFlow\u0060, \u0060getContentTypesWithCount\u0060, \u0060getContentTypesCount\u0060, \u0060getContentTypesParams\u0060, \u0060getPrecedingSnap\u0060, \u0060getSnapById\u0060, \u0060getLastSnapForSiteId\u0060, \u0060getLastNSnapsForSiteId\u0060, \u0060getLastSnapsSize\u0060, \u0060getAllSnaps\u0060, \u0060deleteSnapById\u0060, \u0060deleteSnapsByIds\u0060, \u0060deleteAllSnapsForSite\u0060, \u0060observeSnapsTable\u0060, \u0060insertSnap\u0060, \u0060deleteTasks\u0060, \u0060countNumberOfChanges\u0060, \u0060countSitesWithChanges\u0060, \u0060countVersionsInHistory\u0060, \u0060getSnapsWithChanges\u0060, \u0060getLatestSnapsFromSitesWithChangesList\u0060, \u0060getSnapsWithChange\u0060, \u0060getSnapsWithChange2\u0060, \u0060countSnapsWithChange\u0060, \u0060getLastContentHash\u0060, \u0060getLastProcessedContentHash\u0060, \u0060hasContentWithHash\u0060, \u0060getUniqueContentSnaps\u0060, \u0060getAverageContentSize\u0060, \u0060getContentDuplicationStats\u0060, \u0060getAllMostRecentSnaps\u0060, \u0060getSnapshotCounts\u0060, \u0060getSnapsPagedSource\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/repo/source/local/SnapsDao.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac8489502ec248fa607bf66813481838ac51de74b8d741ac0aab2d5d797a1bf"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060iosApp\u0060, \u0060webDemo\u0060, \u0060website\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060sqliteWasmWorker/worker/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":"sqliteWasmWorker/worker/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e040fe5636ebb32eaaad9f8e3a6dd0739d9de44b369b374d8cc250d4ec568a49"}},{"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":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 5 plain JS \u2014 the untyped files are sqliteWasmWorker/worker/worker.js, store-listing/capture.tour.mjs, store-listing/theme.js, webDemo/webpack.config.d/coop-coep-headers.js, webDemo/webpack.config.d/sqlite-wasm-worker.js."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): sqliteWasmWorker/worker/worker.js:80 \u00B7 sqliteWasmWorker/worker/worker.js:94 \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":"sqliteWasmWorker/worker/worker.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d45bb32cf711c01392d78a4033ac60036fd0e0fc8c243f18c316d4ee2976034"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 13, cognitive 21): run has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"store-listing/capture.tour.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e685ace02da161f45dfaa1f5faa0a8b52063ad15a760c42e87588f3e804a93"}},{"ruleId":"R6","level":"warning","message":{"text":"No test script: test \u2717 \u00B7 lint \u2713 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7e5e0cc374484b1c72227eba121f79e7e90e5907d71a39d0ffec753e709f7fa6"}},{"ruleId":"R8","level":"warning","message":{"text":"Unlisted import \u0027screenshot-studio\u0027: Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it \u2014 but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"store-listing/capture.tour.mjs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e73cc67a5c967bffc7e5bef39208e2cab5e1cf3d23b05c86cb6e16e5a29d50c"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: sqliteWasmWorker/worker/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sqliteWasmWorker/worker/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"88858d7008427737f141be8129533c15e3ab9b7c68671e3f835cfbfa334e5098"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!it.site.isRead \u0026\u0026 it.snap != null \u0026\u0026 it.snapshotCount \u003E 1\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/home/HomeScreen.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/AppContent.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2a15ffd8ab2a533fd354ce933b20f7a5f827f2ad177209552bd9d8c4382dba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bounds.outWidth \u003C= 0 || bounds.outHeight \u003C= 0\u0060 appears character-identically in 2 files \u2014 shared/src/androidMain/kotlin/com/bernaferrari/changedetection/image/BitmapSampling.kt, shared/src/androidMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.android.kt. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/image/BitmapSampling.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb68897dd84b71bb5180c63359f565b72585e61464568df23c7ddebda476656"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060captureMode == CaptureMode.SCREENSHOT || captureMode == CaptureMode.DEFAULT\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/repo/Site.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d5bfa1c17bbdb5f5b62015ebeeafc74fa3db5765fc6ecea10449bc13bfc1ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is javax.net.ssl.SSLException || error is java.security.cert.CertificateException || error is java.security.cert.CertPathValidatorExce\u2026\u0060 appears character-identically in 2 files \u2014 shared/src/androidMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.android.kt, shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.desktop.kt. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/error/TlsFailure.android.kt"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"087b0502910b9c860ec796bc14878dd25ba4fea08f3bb02311adbcb400a155bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.length \u003C= 8_192 \u0026\u0026 (it.startsWith(\u0022http://\u0022) || it.startsWith(\u0022https://\u0022))\u0060 appears character-identically in 2 files \u2014 androidApp/src/main/kotlin/com/bernaferrari/changedetection/MainActivity.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/platform/SharedWebUrl.kt. 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":"androidApp/src/main/kotlin/com/bernaferrari/changedetection/MainActivity.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b588aa217a78e0bbc314d8a4469b6ca0b75cc01853fd0a7eee516fcadd385506"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mode != CaptureMode.TEXT \u0026\u0026 mode.resolve(defaultMethod) == ComparisonMethod.HTML\u0060 appears character-identically in 2 files \u2014 shared/src/androidMain/kotlin/com/bernaferrari/changedetection/addedit/AndroidCapturePreviewer.kt, shared/src/iosMain/kotlin/com/bernaferrari/changedetection/addedit/IosCapturePreviewer.kt. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/addedit/AndroidCapturePreviewer.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1707e44e99bca0d7af619dbe3800fcb664e2ce4aec75156d24e2caa528bab752"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060onSelectRegion != null \u0026\u0026 content.selectableDocument != null\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/CapturePreviewPanel.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditConfirmComponents.kt"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e950718ddf74834b12637237a87d8fb9ba56bc2a051b0a6a173fad4ff1540e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060primaryActionLabel != null \u0026\u0026 onPrimaryAction != null\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SharedEmptyState.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SignalEmptyState.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SharedEmptyState.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfb6bb075734520fecdf9e99a45d8899485a86663c61b545de4c86e734c000e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rowIndex == rows.lastIndex \u0026\u0026 index == 0\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/ScreenshotWaitChoice.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ConnectedChoice.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"619f03f6b72e462cd4a3b9a20f756ed4cb7ba281d5b2d9f5a0b19bacaabc8caf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060secondaryActionLabel != null \u0026\u0026 onSecondaryAction != null\u0060 appears character-identically in 2 files \u2014 shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SharedEmptyState.kt, shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SignalEmptyState.kt. 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":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/components/SharedEmptyState.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2afc1617fae7e43cfb449c270e20e80256ffc2b369d4986d9fd5ec54e86a2b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060site.captureMode != com.bernaferrari.changedetection.repo.CaptureMode.TEXT \u0026\u0026 site.captureMode.resolve(defaultMethod) == ComparisonMethod.HT\u2026\u0060 appears character-identically in 2 files \u2014 shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/AndroidCheckRunner.kt, shared/src/iosMain/kotlin/com/bernaferrari/changedetection/sync/IosCheckRunner.kt. 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":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/AndroidCheckRunner.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd79f2928d25ba848d7d45cb2da2e9aa3c509417965ad07a7d0f2eff0eba7a5f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/background/DesktopMonitoringManager.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c132b96202f6115de790c9ffc2756ca37232421576c9776bd17068a7bd62b2ff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/desktopMain/kotlin/com/bernaferrari/changedetection/background/DesktopMonitoringManager.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cc09a8266fa70ef9bb19cce8d14b6fa113d0178ec1a5434729dced3544246c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/settings/DialogBackgroundSync.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc656a62eda7b093b8fe9b7f1a78fa818e1faa5520f879a1d2a815a41f4ded"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/main/MainViewModel.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"68be1b58981fdb8ff1a39ac4d8c0d77ee46e2d8a3c3d3d7ccfa6c266a4526d4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a549d1003f2a2e13b36c8bdb491844f8c55665ff9d6acaa3ce2227011f89d26"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/kit/ChangePreviewViews.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"492521fa1d72a7e47aafb551aa1a8c2314370e47bd029bd9d6c79f5637661eb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/ui/detail/SavedPagePreview.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c462933342a85ba075bad9617c71dcd9ef7fbfe0b893e86400b23e27991683"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/ChangeAlertDelivery.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"80213359fa526fd62480dcd524d6d27c741737fd299a077a3d46e6e656421372"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/ChangeAlertText.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed619255f8f1eb9d4a70b8ce25f8dc731ef410cea57498b258773b8207ef60c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/CheckBatch.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf8e58dafc5f7d23bc1280216e248bcba3f2fb4a5b31ffd640ceec5e1ec3e33"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/sync/SyncEngine.kt"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28ef6bb73f662437c89e2fb6add0235ac0fd0ace495d91ec5920f7b549e576b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/repo/source/local/DatabaseFactory.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ec68e5a1e4484132933d36502130f148dc268e959744876ffe978d37ba5809"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/preview/ChangePreview.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d14a9391feeec8686f7d5ff84cf3656951523c3ba33371d8c305d7438f1728e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/image/ImageCrop.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"729762b551ec431d7401e694654088df6f492afe61721b62888a9114c1192243"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"86adc5d598975fffd2ca5f7e99f391549fe3a8afd351c3c6add94f083d8d9bdc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c23ea6f45dc6d25966810b332e3e2ec7a71d5f2b9b2ecf75dbf0a1832f0172b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"505540f6fd0f4b6382ec796678e5db38266c8f26eedc92709704d60e83bb53e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticTrace.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ecd6ad41b71e2ca7c6de6f37f24bd99614b93030c9fe7ea4a7e7c14762c65e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/background/TurboSession.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbf24229b34149ae99c125b4f697cbbb5aa721d55dfb3505c59f8054a80fcdb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/addedit/AddEditViewModel.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c80db7d6f4e86347099a90833f10307d22662fae2e26b43c2605d8825e7f96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/sync/NotificationImagePreview.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"57efc04296e706686fd9772f601a22d27707c9d2d3b583440961144e793b9496"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"899f367fe23a529ec8b8a46976c632ec5abb7f0ee5930aa345aa38fba9509d9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f633280d12511eca58b638057eefb9d4a891070302964a50fb4a476d740075d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/diagnostics/DiagnosticsEntry.android.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e63294ef205215c3ce34ae993dd254db753ce7325a3528feb70eb83801f016"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/browser/AndroidPageCapture.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a10e49e32ce48bd6657999ba34f794c72a1923ffefd9c058ff7bbff8952afa8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/androidMain/kotlin/com/bernaferrari/changedetection/backup/BackupRow.android.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0241d5f308447d20d83393b53b6df4b1c5de8340a6c8732903b9624a08f7e266"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"androidApp/src/main/kotlin/com/bernaferrari/changedetection/MainActivity.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2995bca3e0816b539fecf88737338a3c7d341ba7acab663671e4251d2d7d87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"androidApp/src/main/kotlin/com/bernaferrari/changedetection/MainActivity.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"31379ff5c88ba89142307085a39a914dc1fd263a7f60343ab3a15b2352a60d17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060htmlHeadings\u0060 swallows every exception into \u0060emptySet()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/src/commonMain/kotlin/com/bernaferrari/changedetection/preview/ChangePreview.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"22216b504159a11403c3995ede01aff29561dd81bb810189e42e6f6fe597ce17"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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-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":26,"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."]}]}