{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"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":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"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":"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":"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":"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":"PointerTimeline.build (cyclomatic 52): PointerTimeline.build has cyclomatic complexity 52 (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":"Sources/BetterShot/RecordingPointerTimeline.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b38215a6331a055363cd70057186e1ecd865d0d0a1b567c1638c3cba2ec083"}},{"ruleId":"D1","level":"warning","message":{"text":"CurvedArrow.info (cyclomatic 44): CurvedArrow.info has cyclomatic complexity 44 (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":"Sources/BetterShot/CurvedArrow.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b41864437ebfd2729d4d9a1f66ea215ebf7caf4f3ec48a539b0526f6cc9135"}},{"ruleId":"D1","level":"warning","message":{"text":"video-player.VideoPlayer (cyclomatic 44): video-player.VideoPlayer has cyclomatic complexity 44 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 24 belong to 6 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"065b4d09a82319d6c078576430e735825e71dcb46db13b29c36fcc3bf722b678"}},{"ruleId":"D1","level":"warning","message":{"text":"StraightArrow.info (cyclomatic 40): StraightArrow.info has cyclomatic complexity 40 (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":"Sources/BetterShot/StraightArrow.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e38a6ad4aa2954224e318d294eced61f1afdc4b5d26913d4184efc2e12a4381"}},{"ruleId":"D1","level":"warning","message":{"text":"ShortcutService.performGlobal (cyclomatic 36): ShortcutService.performGlobal 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":"Sources/Services/ShortcutActions.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c418c3a4d1546818b6d89e2536a7c0dfba4206bd86ab9fc1f03628fae4628a"}},{"ruleId":"D1","level":"warning","message":{"text":"StudioFrameCompositor.composedImage (cyclomatic 33): StudioFrameCompositor.composedImage has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"8621527578916a77a2d923e99d16233e1f86c9fe99a45e14af35c0551704de7a"}},{"ruleId":"D1","level":"warning","message":{"text":"StrokePipeline.ingest (cyclomatic 33): StrokePipeline.ingest has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"576b4d14078f86676701d841fffcc30bdcc71ca61a7270f3a4e2b620526ae4e7"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingSessionRenderer.ensureDeliverable (cyclomatic 32): RecordingSessionRenderer.ensureDeliverable has cyclomatic complexity 32 (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":"Sources/BetterShot/RecordingSessionRenderer.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"23244943907c678d42c9ab9df98492245283aed055d644622b49e09d34d985f7"}},{"ruleId":"D1","level":"warning","message":{"text":"chart.ChartTooltipContent (cyclomatic 31): chart.ChartTooltipContent has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 5 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 182, 131). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/chart.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"650cb9c751545b287546c64f91ae7216b5cf3421bc799908f81cb46b76a2538a"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationEditorWindow.performShortcut (cyclomatic 28): AnnotationEditorWindow.performShortcut has cyclomatic complexity 28 (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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dc34326d6cb2c81f62bc86a47ec79424bdd1426d724f2c43440bdbee31feb7"}},{"ruleId":"D1","level":"warning","message":{"text":"scrubber.Scrubber (cyclomatic 28): scrubber.Scrubber has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 74, 54, 34, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/scrubber.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c392d6e888e7ea8e0a84ad9cd04363a81fab2571a5369f94ca9cd362b7cac4d"}},{"ruleId":"D1","level":"warning","message":{"text":"StrokeOutline.buildTracks (cyclomatic 26): StrokeOutline.buildTracks has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2dd726af8093d7406d5cbeb5a9fdbdc2551008d2d69fe2bfea415466bad9c8"}},{"ruleId":"D1","level":"warning","message":{"text":"scramble.ScrambleHover (cyclomatic 26): scramble.ScrambleHover has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 46, 114, 153, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/scramble.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe71174a9d05d482b083214e42987199ae0f6b0be252842a509e76fa3af4461"}},{"ruleId":"D1","level":"warning","message":{"text":"StudioInspector.inspectorContent (cyclomatic 25): StudioInspector.inspectorContent 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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fbd2266d0e6c548a5b58eadf871ec3b2f356fb783c5c907229cce2a30bf92c"}},{"ruleId":"D1","level":"warning","message":{"text":"Recording3DMetalView.renderFrame (cyclomatic 24): Recording3DMetalView.renderFrame 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":"Sources/BetterShot/Recording3DPreview.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39fde0451ec85393cdc04be7f8d0d0586fe277345fe647b87859ee26bd418be"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationCanvas.body (cyclomatic 23): AnnotationCanvas.body has cyclomatic complexity 23 (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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"798c6043a74cc2d7dc0e26b002cfdc6eb521a01ffa3ea7f3b6a842711c581fac"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorButtonStyle.makeBody (cyclomatic 23): EditorButtonStyle.makeBody 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":"Sources/BetterShot/EditorChrome.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dd658ec1ef2a1f917213381ea227742cdcb2b3f42153471c7d5bd24301ffff"}},{"ruleId":"D1","level":"warning","message":{"text":"StrokeOutline.outline (cyclomatic 23): StrokeOutline.outline 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":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aee4a566e58b2f33af5c8ead1efc6d6da2f171ca7faba4c587c2c6cc86b1d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollCaptureController.process (cyclomatic 23): ScrollCaptureController.process has cyclomatic complexity 23 (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":"Sources/Capture/ScrollCaptureController.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"01562aaa84732039c46b2ff66d0caad35a3d54c10cf43554be8b12a861496ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioExporter.pumpVideo (cyclomatic 22): RecordingStudioExporter.pumpVideo has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1775fa27a803f965d081bade0c4ce84cdf7490d335a9bfb0e11c7142a3b4ca9a"}},{"ruleId":"D1","level":"warning","message":{"text":"StudioCanvas.body (cyclomatic 22): StudioCanvas.body 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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f01d69dbf47b4056c6f27a267437b9c6251461f14b235ae0b1d81e15b4f4c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenRecordingManager.finalizeSession (cyclomatic 22): ScreenRecordingManager.finalizeSession 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":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f426c078f9462838a9e164522e638965fd09879ec70a66122b8f7e6645332518"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationRenderer.render (cyclomatic 21): AnnotationRenderer.render 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":"Sources/BetterShot/AnnotationRenderer.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a537aad1e28e1872e9f418a8d16d40577fcbfe7087f2dfe28c5c808c655332c"}},{"ruleId":"D1","level":"warning","message":{"text":"Recording3DInspector.body (cyclomatic 21): Recording3DInspector.body 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":"Sources/BetterShot/Recording3DInspector.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"95478dd728b4bc59bb2540a759f3bb4c68588f28ad925e5874254c6581242a42"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioModel.load (cyclomatic 21): RecordingStudioModel.load has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"768a0a96957d5d8ba1658a441caba49a6db19ba62fda5851a905db2e669a7af7"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioModel.shareToCloud (cyclomatic 21): RecordingStudioModel.shareToCloud 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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1c2b91be22de0fdc6dbfa7be9bd03da5985680bcfa422c5d0bb0616a9964f5"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioLayout.make (cyclomatic 21): RecordingStudioLayout.make 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":"Sources/BetterShot/RecordingStudioStyle.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e55d31fa03cfd2e0d829eaff477545f7efb52a5411b63de11b06ce0b1d8d40d"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollFrameAnalyzer.frame (cyclomatic 21): ScrollFrameAnalyzer.frame has cyclomatic complexity 21 (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":"Sources/Capture/ScrollFrameAnalyzer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7e41be129ef896268162034b005fe25d0a4029d19f3d117e138ea34f7620f9"}},{"ruleId":"D1","level":"warning","message":{"text":"share.isBlockedHost (cyclomatic 21): share.isBlockedHost 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":"bettershot-landing/lib/share.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e5ef53b19f576c0cafc9abc1c393c231fbb5e54f8b679e348502c168baca6f"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnoEditor.resize (cyclomatic 20): AnnoEditor.resize 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":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"533ebeef79867c0b400605fbda11848b148d96392857b74218494409f56be026"}},{"ruleId":"D1","level":"warning","message":{"text":"Recording3DKeyframeEditor.body (cyclomatic 20): Recording3DKeyframeEditor.body 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":"Sources/BetterShot/Recording3DKeyframeEditor.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cddd88d98b496900cb089fd39fc4c24ed478e8fc28457df50b3cf2252ef13a"}},{"ruleId":"D1","level":"warning","message":{"text":"Recording3DTimeline.scene (cyclomatic 20): Recording3DTimeline.scene has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Recording3DShot.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"74087c40eee9f15e67495a43a8b4c465fff75f99895b950f8f831705d108db07"}},{"ruleId":"D1","level":"warning","message":{"text":"PerfectDash.swift.perfectDashProps (cyclomatic 20): PerfectDash.swift.perfectDashProps 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":"Sources/BetterShot/PerfectDash.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e9924a0e1f28f9a1f7c4fc3143cc35fb6556cfec13e9f1165fa74166c01727"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGalleryContent.body (cyclomatic 20): MediaGalleryContent.body 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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7999b2b1f89a6cde5acd06faf18dcd530117e5c8fce9fd6a117af8b968772a5e"}},{"ruleId":"D1","level":"warning","message":{"text":"PathBuilder.drawCommands (cyclomatic 19): PathBuilder.drawCommands 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":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"da09d1d69f426d80528d120834410612e1d405d5d67e1328c57babe45d3a921f"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureOrchestrator.processCapturedImage (cyclomatic 19): CaptureOrchestrator.processCapturedImage 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":"Sources/Capture/CaptureOrchestrator.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bcf4a659ebbc44dd3bfb62a18cd0ccdf1b5b0472c656ec234cc8f4b8687a01"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnoEditor.pointerUp (cyclomatic 18): AnnoEditor.pointerUp 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":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3cb9e1426cc0d7e866d19491caba1396d5c6186dfd17222c65b2f9ca2f768b"}},{"ruleId":"D1","level":"warning","message":{"text":"PointerActivityRecorder.recordFrameGeometry (cyclomatic 18): PointerActivityRecorder.recordFrameGeometry has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingPointerCapture.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd896164ea423518cd3ab7219f84d0a478277d2a1048eb0b960660f50054527"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioExporter.run (cyclomatic 18): RecordingStudioExporter.run has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"453af5b7973ba7238ef7a06cca835712fb65becbfaaa4f02e6c1a15548a7338b"}},{"ruleId":"D1","level":"warning","message":{"text":"StrokePipeline.computeRadii (cyclomatic 18): StrokePipeline.computeRadii 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":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cdfff429da783e153de356a32219dc50273cf0bbc25228ed2fddf176f5dec6"}},{"ruleId":"D1","level":"warning","message":{"text":"share-view.ShareView (cyclomatic 18): share-view.ShareView has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7afe79d83bb8149a80854295e36396591f914391c67e0c664ef5426d865153e"}},{"ruleId":"D1","level":"warning","message":{"text":"Recording3DShot.flip (cyclomatic 17): Recording3DShot.flip has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, 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":"Sources/BetterShot/Recording3DShot.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7424177478db1eb6a6fa6c975089863d14a2968e4f35c2f0de2674bf8d92bb"}},{"ruleId":"D1","level":"warning","message":{"text":"PointerArtworkCapture.styledArtwork (cyclomatic 17): PointerArtworkCapture.styledArtwork 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":"Sources/BetterShot/RecordingPointerArtworkCapture.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"705719e85aa4066749087987c41a04d221cae6d221f636d48d206c975d052cc2"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioModel.makeExportConfiguration (cyclomatic 17): RecordingStudioModel.makeExportConfiguration 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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67cc43d635de270ff95c96ab5e15502e325fa1ee058d772f500d89fadcffef"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordingStudioContent.performShortcut (cyclomatic 17): RecordingStudioContent.performShortcut 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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c96cf14ddedf8117940a657afe542619af2c29d43d8c772abd005052be59f9"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectionView.cursor (cyclomatic 17): SelectionView.cursor has cyclomatic complexity 17 (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":"Sources/Capture/RegionSelectionOverlay.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30b59bb1f4578c448e88024eb78429976cf410d2a4ebb2dc154669cdbcff8d4"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageAlignment.cornerMultipliers (cyclomatic 17): ImageAlignment.cornerMultipliers has cyclomatic complexity 17 (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":"Sources/Models/BackgroundStyle.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae3c6c03559a6045febf375018c992e60968617e5f0ba6747a0bfccfc3d9826"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewCardView.body (cyclomatic 17): PreviewCardView.body 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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc77eba5469562f398b38074da682e19b5bb71507eb565b46959fd89f7c2185c"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGalleryItem.collect (cyclomatic 17): MediaGalleryItem.collect 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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56900bda54f5caed8e215b409246d977a0575d3da279123142e8aca2ea62bef"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaGalleryCard.body (cyclomatic 17): MediaGalleryCard.body 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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b43e8c3a37f06311a28c8a1553424d8e7e6b3547cc54f4034765993cf6b00f"}},{"ruleId":"D1","level":"warning","message":{"text":"changelog.getChangelog (cyclomatic 17): changelog.getChangelog 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":"bettershot-landing/lib/changelog.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f077e06f93fe04775ac9a63fb680bc5013ce7a32354f5d58ab455dbfd0f61"}},{"ruleId":"D1","level":"warning","message":{"text":"PathBuilder.arc (cyclomatic 16): PathBuilder.arc has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"298ce93ae6c39b91d1e5ce98959d0c8478b3c6f66ce8fcc5c0f58975c8c9ad10"}},{"ruleId":"D1","level":"warning","message":{"text":"PathBuilder.forEachDrawSegment (cyclomatic 16): PathBuilder.forEachDrawSegment 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":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e13346968faa6cab4658bf0569c7ffc4a049f86340cd38edbd1c3bf9a4ad656"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenRecordingManager.startRecording (cyclomatic 16): ScreenRecordingManager.startRecording 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":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9ff765eb6eba8091c293e71c05f271e9e27c9ca3edc89c392c316dceef53c6"}},{"ruleId":"D1","level":"warning","message":{"text":"image-viewer.ImageViewer (cyclomatic 16): image-viewer.ImageViewer has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 105, 32, 47, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f83a319db5810eedff8c5103f652f5cb518b3db63aa5e404652e5963f4d0b79"}},{"ruleId":"D2","level":"warning","message":{"text":"PointerTimeline.build (cognitive 79): PointerTimeline.build has cognitive complexity 79 (threshold 15). Drivers by points: ternaries 16 (31 pts), if/else 11 (19 pts), boolean chains 17, loops 8 (12 pts) (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":"Sources/BetterShot/RecordingPointerTimeline.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8bee2a110f12ed31ff8a389defccb78299045cbc19be1ef39da447c9c49b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"CurvedArrow.info (cognitive 62): CurvedArrow.info has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (36 pts), ternaries 7 (14 pts), boolean chains 12 (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":"Sources/BetterShot/CurvedArrow.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"129a024c9ee895f1a04acf6dce36de5bc32ce9621eee21f7d00ec30590ccecc8"}},{"ruleId":"D2","level":"warning","message":{"text":"StudioFrameCompositor.composedImage (cognitive 61): StudioFrameCompositor.composedImage has cognitive complexity 61 (threshold 15). Drivers by points: if/else 22 (45 pts), boolean chains 8, loops 2 (5 pts), ternaries 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2ea1ad48eda27c41c697ba49a2c4ad22f45d1eb8cb2ed459761f1a9b119c11"}},{"ruleId":"D2","level":"warning","message":{"text":"StrokeOutline.buildTracks (cognitive 52): StrokeOutline.buildTracks has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 8, ternaries 3 (8 pts), loops 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5213e2ade8f3077716b3b47d35706ffcbae700cb93ffa61e50cb19317faab95"}},{"ruleId":"D2","level":"warning","message":{"text":"StrokePipeline.ingest (cognitive 51): StrokePipeline.ingest has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 7 (13 pts), boolean chains 9, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c308425722de8b9e5233804925a8590248ea9af89eed7b8ca09e30240113b01"}},{"ruleId":"D2","level":"warning","message":{"text":"StraightArrow.info (cognitive 49): StraightArrow.info has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 17, ternaries 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StraightArrow.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb8bd2e1a4699c17682b9d6d19824deefea45d4a2bd1ba62e1d69bd95c9c8a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortcutService.performGlobal (cognitive 45): ShortcutService.performGlobal has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (34 pts), ternaries 2 (5 pts), error handling 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Services/ShortcutActions.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4fc04147226d3fe07430ad588244669a5795bcb57dd9e6ed43aaaae5df9e37"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioExporter.pumpVideo (cognitive 36): RecordingStudioExporter.pumpVideo has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 15). Of this number, 27 points are the body\u0027s own statements and 9 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":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc873d57d4306074524c290e7b67d248ea663e313c763090451208c252db6f3c"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioModel.shareToCloud (cognitive 34): RecordingStudioModel.shareToCloud has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 4 (6 pts), boolean chains 4, ternaries 3 (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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce720647a5fa7d63fbf70b5b10360519b096575419e15da7ce6911db22734db0"}},{"ruleId":"D2","level":"warning","message":{"text":"StudioInspector.inspectorContent (cognitive 34): StudioInspector.inspectorContent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (25 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea1f73f5b442c98795b712ea704eacb0969602c93ed910499e881cf398c200a"}},{"ruleId":"D2","level":"warning","message":{"text":"PathBuilder.forEachDrawSegment (cognitive 33): PathBuilder.forEachDrawSegment has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc9730ce0f0c7ebd5f3df627c3cf7ae16f321b0917ad6e1b50d388a0d0f7f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingSessionRenderer.ensureDeliverable (cognitive 33): RecordingSessionRenderer.ensureDeliverable has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 14, ternaries 10, if/else 7 (8 pts), error handling 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":"Sources/BetterShot/RecordingSessionRenderer.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a912bffc268b9a6529d7e72179682aa6958ecab9875335afc4da4f961556e2"}},{"ruleId":"D2","level":"warning","message":{"text":"StudioCanvas.body (cognitive 33): StudioCanvas.body has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 8, ternaries 1 (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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a76181ace7b3f8e70f9519d81ce4fddb4a6c390045d37556c028bfaf8bf5d3"}},{"ruleId":"D2","level":"warning","message":{"text":"StrokeOutline.simplifyTrack (cognitive 32): StrokeOutline.simplifyTrack has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 3 (15 pts), if/else 3 (8 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdd3a0ebc87f7b6157352ebc4b2ec2f490b5f82b2957709a9d7fcfe2fe7ffb8"}},{"ruleId":"D2","level":"warning","message":{"text":"StrokePipeline.computeRadii (cognitive 32): StrokePipeline.computeRadii has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 4 (6 pts), ternaries 2 (6 pts), boolean chains 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":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10e6c24bdd01c410d768cc8b49f4d043f471380a96a0abbff13f7ff63ee2de5"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGalleryItem.collect (cognitive 32): MediaGalleryItem.collect has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 5 (11 pts), loops 5 (8 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"11460f5468406b377631fe07abfde91a6219ff7a3bd6d14be3cc63a3fa36468f"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DMetalView.renderFrame (cognitive 31): Recording3DMetalView.renderFrame has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 10, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Recording3DPreview.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fbbc73e9f87bea0175867cd0dc548a0259c9a4c135beee4c900fb9ff213bba"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioModel.load (cognitive 31): RecordingStudioModel.load has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 4, error handling 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3944ff9c860ca42735264a7e931dbc3f358a2a4fa6d191d92452cb21951e4355"}},{"ruleId":"D2","level":"warning","message":{"text":"StrokeOutline.outline (cognitive 31): StrokeOutline.outline has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 8, loops 3 (7 pts), ternaries 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":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea4ad3a6b89f39c4e68e823852610d086200356c6defbfd9200d6bef248993f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecordingManager.finalizeSession (cognitive 30): ScreenRecordingManager.finalizeSession has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (21 pts), error handling 2 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37c7ebdb379d70f947380f7a112b7fa6e0ea307c1a2f2399ce5c926c0524bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"TrayGridMenuButton.mouseDown (cognitive 30): TrayGridMenuButton.mouseDown has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Views/MenuBarContentView.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ce0bf894af759ae3fa0eb485b66dba82cb4dfa927508bd1be55f04e9b8bcfe"}},{"ruleId":"D2","level":"warning","message":{"text":"scramble.ScrambleHover (cognitive 30): scramble.ScrambleHover has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (4 pts), ternaries 3 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 10). None of this is in the body itself: all 30 points belong to 9 function literals inside it that branch (lines 46, 71, 42, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/scramble.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6795273a858839682901812d8d594f44b257806a6426a2c3ff1549d7e07a4f7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DKeyframeEditor.body (cognitive 29): Recording3DKeyframeEditor.body has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 9 (11 pts), boolean chains 5 (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":"Sources/BetterShot/Recording3DKeyframeEditor.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9201ce4358de94a0b01066fe98724db52f1834e54dcf946c0fd590d28ccdd5"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DShot.flip (cognitive 29): Recording3DShot.flip has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 6 (7 pts), loops 1 (nesting depth added 8). Of this number, 26 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Recording3DShot.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6c054c2b1a826a9e19fb70d5991ad0cd6c051aef72bc3647456e9696908aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewCardView.body (cognitive 29): PreviewCardView.body has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 9 (12 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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"9261a60d22738cbf31245219bdfcc8fca3367f6cb8107aa202255a40220029c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoEditor.resize (cognitive 28): AnnoEditor.resize has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 8 (10 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1e1a74e6df360cb0f68b9e9a11e7a49f7fb56636bbe82728ac62e4d598e037"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationRenderer.render (cognitive 27): AnnotationRenderer.render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 11, ternaries 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":"Sources/BetterShot/AnnotationRenderer.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f03b163c772c8325275446b72203b95d7176168a85e5575ca5a76a61e84b97"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenRecordingManager.startRecording (cognitive 27): ScreenRecordingManager.startRecording has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f347e08ce735ffadbe67337c6e63f71ee2f92708f6c24df81c4b63cfffc5be61"}},{"ruleId":"D2","level":"warning","message":{"text":"chart.ChartTooltipContent (cognitive 27): chart.ChartTooltipContent has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, ternaries 6 (9 pts), if/else 4 (nesting depth added 3). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 182, 131). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/chart.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac02290d0df57c7aba3371bc35e2d767a70e402cf71aef416e94bcff2a9cc896"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DInspector.body (cognitive 26): Recording3DInspector.body has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 4 (8 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Recording3DInspector.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"790029bd65eac6c93871c814f1610c220ab47325193d799c1570bb25c0193562"}},{"ruleId":"D2","level":"warning","message":{"text":"scrubber.Scrubber (cognitive 26): scrubber.Scrubber has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, ternaries 9, boolean chains 6. Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 74, 54, 34, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/scrubber.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9598b0a801fde0f30cbbcc7ab0111e32d41bd09fad5bb53f452e6bf638284833"}},{"ruleId":"D2","level":"warning","message":{"text":"video-player.VideoPlayer (cognitive 26): video-player.VideoPlayer has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 5 (6 pts), ternaries 5, match/switch 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 11 belong to 6 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7c88322b6a2d51cc2350d23d0d7ca9a522dcdacc5fdb164897114cb5133ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorButtonStyle.makeBody (cognitive 25): EditorButtonStyle.makeBody has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 14 (17 pts), boolean chains 7, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/EditorChrome.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd982bf90663b1a4df5d333790c572480511d9149a096cb6407ed4bad895b52c"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGalleryContent.body (cognitive 25): MediaGalleryContent.body has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 9 (10 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4bc022ff68b71f5c7fb62a0223be6da3586f11328e65952d7680fe4693591d"}},{"ruleId":"D2","level":"warning","message":{"text":"changelog.getChangelog (cognitive 25): changelog.getChangelog has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, 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":"bettershot-landing/lib/changelog.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81549b61b4c4e7c70d9de18a9baecc03e28e16ca15e513fd1cc2ffcb5eb8afc"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoEditor.pointerUp (cognitive 24): AnnoEditor.pointerUp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, match/switch 1 (nesting depth added 7). 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":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a339092977e6f7bf390dd59fe4450ec52a1115c9b60dea878574ec297d31630b"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorSliderMarkers.body (cognitive 24): InspectorSliderMarkers.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), boolean chains 3 (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":"Sources/BetterShot/AnnotationInspectorSlider.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f37957d11445131b9d38d2f52c2ecee44d7d0571024c1027223317f992161"}},{"ruleId":"D2","level":"warning","message":{"text":"PathBuilder.drawCommands (cognitive 24): PathBuilder.drawCommands has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 10, 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":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bf3650e29e2f1cc4bad5554c10b854466bdc5c446579c67679239db6e92515"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureOrchestrator.processCapturedImage (cognitive 24): CaptureOrchestrator.processCapturedImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, error handling 2 (4 pts), match/switch 1, ternaries 1 (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":"Sources/Capture/CaptureOrchestrator.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"603767824bbd1a4cc5b5039742843be04c6408d9a6dd70d3793fcce17865fa7c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdater.checkForUpdates (cognitive 23): AppUpdater.checkForUpdates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, ternaries 1 (2 pts), error handling 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":"Sources/Services/AppUpdater.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3977218fbce0129bc4d4e57b5c92a66f6a31687b807b06a122c5a8a8a94f48c9"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoEditor.beginSelectInteraction (cognitive 22): AnnoEditor.beginSelectInteraction has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbe1b6778d43dc50bc4ccfe8eaf83495d6ef0e8e28799734d7f7b9fbb988312"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationCanvas.body (cognitive 22): AnnotationCanvas.body has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, ternaries 6, if/else 2 (3 pts), match/switch 1 (nesting depth added 1). 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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4480e2019b83a7a804015728bc9dd8c22fbda4d7f73bc83d8fc1f97ae35958"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DTimeline.scene (cognitive 22): Recording3DTimeline.scene has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 2). 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":"Sources/BetterShot/Recording3DShot.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d388ebd2525be0632ee4da5e4e8db291bd155ff14c3fef9cf6f4703985ebf3"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioLayout.make (cognitive 22): RecordingStudioLayout.make has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 6 (7 pts), boolean chains 6, match/switch 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":"Sources/BetterShot/RecordingStudioStyle.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1aa563cd60f35bc135fe53b1d7f57d9bc964617dcad67aaf6f1da29793e52d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenshotHistoryStore.commitAnnotations (cognitive 22): ScreenshotHistoryStore.commitAnnotations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 1, error handling 1, ternaries 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/ScreenshotHistoryStore.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a5e0712dc45b4e82a04bd833403fd464bfaeec5f268ff1174960603289b7ce"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollCaptureController.process (cognitive 22): ScrollCaptureController.process has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 9, ternaries 2. 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":"Sources/Capture/ScrollCaptureController.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb3227bf16be71921bf23a395d6a441f965b2cee48263cd21acbd6b9025264c"}},{"ruleId":"D2","level":"warning","message":{"text":"share.isBlockedHost (cognitive 22): share.isBlockedHost has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7 (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":"bettershot-landing/lib/share.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f18fe2bc2efbaa482412bee348dab146013c8ce2a7196bfa03508d764ef0069"}},{"ruleId":"D2","level":"warning","message":{"text":"CropRectEditor.resizeCorner (cognitive 21): CropRectEditor.resizeCorner has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (12 pts), if/else 5 (8 pts), boolean chains 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":"Sources/BetterShot/AnnotationCropModels.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be0bab8ff4d1060a80a3f65e35aa61c4d73658ba122cc85d380568e227cbbe1"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingAudioExporter.export (cognitive 21): RecordingAudioExporter.export has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (5 pts), error handling 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":"Sources/BetterShot/RecordingAudioExport.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5676915a96ad9b170c6e98d62ce8be0c451d342f3afa33683a63821acefa0b05"}},{"ruleId":"D2","level":"warning","message":{"text":"PerfectDash.swift.perfectDashProps (cognitive 21): PerfectDash.swift.perfectDashProps has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 3 (5 pts), boolean chains 3 (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":"Sources/BetterShot/PerfectDash.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d037ab9aef986a05a2a83453adc7e1860c92e5d97b2c6182635abe9fdb005c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollCaptureController.autoScrollLoop (cognitive 21): ScrollCaptureController.autoScrollLoop has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, 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":"Sources/Capture/ScrollCaptureController.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"463ad24718ac896b1eb372dd0963b1050a7cacf31f5b664c08764b37c6ec2090"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewOverlay.share (cognitive 21): PreviewOverlay.share has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, ternaries 1 (2 pts), error handling 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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e728c4fea2854a9d56f1638552c72d97d4bfcbc2b751ed3587bba32c4cae0239"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaGalleryCard.body (cognitive 21): MediaGalleryCard.body has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 7 (8 pts) (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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbb574b2a48ff51d0fa121b32f7c99b03c344826632b8f739926ab45a3548a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoShapeDrawing.drawShape (cognitive 20): AnnoShapeDrawing.drawShape has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnoShapeDrawing.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc042a1bb13720f3e837478c5fae65f7f98713d2e959b8562b52513ef79ce1f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PointerActivityRecorder.recordFrameGeometry (cognitive 20): PointerActivityRecorder.recordFrameGeometry has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (8 pts), ternaries 1 (2 pts) (nesting depth added 2). 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":"Sources/BetterShot/RecordingPointerCapture.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e61e4599e4af3950f50ee4971c39f9567ad2647be09b67831eb25e80eadc3c"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioExporter.run (cognitive 20): RecordingStudioExporter.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2, error handling 1, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df37cfd9cd4cdcfcd2707af663dd60b5b8c76d0023fc6379586be80789de3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioContent.performShortcut (cognitive 20): RecordingStudioContent.performShortcut has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 2 (3 pts), boolean chains 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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f560f237957895a9569b97207c7c7aa6fe90c810c34dbd142435eedcc2fd3ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewportTimeline.build (cognitive 20): ViewportTimeline.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingViewportTimeline.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38646d84b48111199957aa6bb3580a1ed7a4a2602453a3ffc039e52ed3ba06"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollFrameAnalyzer.frame (cognitive 20): ScrollFrameAnalyzer.frame has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 4, ternaries 3, match/switch 1. 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":"Sources/Capture/ScrollFrameAnalyzer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e222b412352f7f3d30b7d08eeb024ba7e0b4cf57391299bf80fce8853248109"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationEditorWindow.performShortcut (cognitive 19): AnnotationEditorWindow.performShortcut has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"029454004d1b9d7535f0408d6424c676d2119f4f483e2fb995ab7e1e206b746f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReframeTrack.build (cognitive 19): ReframeTrack.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingExportReframe.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b60aeeb69f06f61c5cbf28a560641187b3d0b7a303f31e7bdbd4487b68cc49"}},{"ruleId":"D2","level":"warning","message":{"text":"PointerArtworkCapture.styledArtwork (cognitive 19): PointerArtworkCapture.styledArtwork has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4, boolean chains 2, loops 1 (2 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":"Sources/BetterShot/RecordingPointerArtworkCapture.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"359710cd8415158a269fc08f1eccd3a6ff2b8a464d0694cf5d85995792d12f16"}},{"ruleId":"D2","level":"warning","message":{"text":"CropRectEditor.resizeFromCenter (cognitive 18): CropRectEditor.resizeFromCenter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationCropModels.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"084d6ef9802c6b7c4c868006d4d4296e46618bb254660e56724a457cbc1e7eac"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingKeystrokeRecorder.handle (cognitive 18): RecordingKeystrokeRecorder.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, match/switch 1, ternaries 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":"Sources/BetterShot/RecordingKeystrokeCapture.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a64213feb07f81937610bd51a4bd3bb001e6ac4f1baf33078fc39e089dcc33a"}},{"ruleId":"D2","level":"warning","message":{"text":"RegionSelectionOverlay.showOverlays (cognitive 18): RegionSelectionOverlay.showOverlays has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Capture/RegionSelectionOverlay.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d704a6b419a0922038abbf7d9c18e71141f1b40af082bb9008dc6f4f6025d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SilenceDetector.windowLevels (cognitive 18): SilenceDetector.windowLevels has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 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":"Sources/Services/SilenceDetector.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72ff0e7dc4e6aabf50e06c25cc9fe4c8357303a55309e72914a0895055f9531"}},{"ruleId":"D2","level":"warning","message":{"text":"SvgInk.finishPartition (cognitive 17): SvgInk.finishPartition has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 4 (6 pts), loops 2, boolean chains 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":"Sources/BetterShot/InkPath.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"54aa3a5f7fa3ffeb556e8861a14b8a3a64fd179a5c7b3f70f3c36fdb1f423154"}},{"ruleId":"D2","level":"warning","message":{"text":"PointerStreamSanitizer.buildStream (cognitive 17): PointerStreamSanitizer.buildStream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 2 (4 pts), 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":"Sources/BetterShot/RecordingPointerStream.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0643a9d0232737f5a1ae53df613026cfba355d0f9c67bceb7f14e5f45e4c81fb"}},{"ruleId":"D2","level":"warning","message":{"text":"StudioFrameCompositor.renderBackdrop (cognitive 17): StudioFrameCompositor.renderBackdrop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a240283d9c7678501c7b6d5d882b84d3d89d2ba9630d2f6434a02eefe41887"}},{"ruleId":"D2","level":"warning","message":{"text":"TextMeasure.buildGlyphPath (cognitive 17): TextMeasure.buildGlyphPath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, 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":"Sources/BetterShot/TextMeasure.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a26843a6de28b22f423e7326a74680f6ca0ca11ccbfc567d7d9e35fcbaba4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdater.checkForUpdatesQuietly (cognitive 17): AppUpdater.checkForUpdatesQuietly has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, ternaries 1 (2 pts), error handling 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":"Sources/Services/AppUpdater.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b9ad682681d909a952577307220fbbcd335efad2217a78535630cd22d6f19b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortcutService.action (cognitive 17): ShortcutService.action has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), loops 1 (nesting depth added 3). 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":"Sources/Services/ShortcutService.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8abaa600a621cb96a45d3b5ada6e5a784c1cba4807c74a072a3c55af572b748"}},{"ruleId":"D2","level":"warning","message":{"text":"image-viewer.ImageViewer (cognitive 17): image-viewer.ImageViewer has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 7, boolean chains 2 (nesting depth added 2). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 105, 32, 47, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"891c8bcf428adf3714999bc8039cf9517ea531480a83b5389a01cfff06a9d648"}},{"ruleId":"D2","level":"warning","message":{"text":"share-view.ShareView (cognitive 17): share-view.ShareView has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 8 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b3fdcc56a6518c2e344036135674f90a0476cf3d48f7cfa2b4be7a9f0c146f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoCanvasNSView.drawOverlays (cognitive 16): AnnoCanvasNSView.drawOverlays has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, loops 2 (3 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":"Sources/BetterShot/AnnoCanvasLayerView.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c379cf1f43c812084f7fa0bddcf113b419679bd45943f74751724f0fe8d05f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnoEditor.handle (cognitive 16): AnnoEditor.handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnoEditor.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"39114187a924ca0a9c61f3ed7ac564f4bc5bea9ccd2aaeec70f7aa794901b97c"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraMovieWriter.writeVideoSample (cognitive 16): CameraMovieWriter.writeVideoSample has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dcb81a48e290604630d24122fcdfc271a303c8906c5695e3fc94cd84eaefd7"}},{"ruleId":"D2","level":"warning","message":{"text":"PathBuilder.arc (cognitive 16): PathBuilder.arc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 4, ternaries 3 (4 pts), loops 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":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ffa099d6a9d935a5656a654b245de41676c1edf6ee294b67f7b3d779367e0c"}},{"ruleId":"D2","level":"warning","message":{"text":"Recording3DTimeline.init (cognitive 16): Recording3DTimeline.init has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (6 pts), if/else 3 (5 pts), boolean chains 4, 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":"Sources/BetterShot/Recording3DShot.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a9466c700f3ff4fa11b2ab0368e5d3ab1a02ce3a09cd98e032cb6925ba7a41"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioModel.makeExportConfiguration (cognitive 16): RecordingStudioModel.makeExportConfiguration has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9, boolean chains 7. 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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"060f11b16c02daf77608b46936e189efbfef6c8abacf9de5d307a36d94231f96"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordingStudioModel.export (cognitive 16): RecordingStudioModel.export has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 4 (5 pts), boolean chains 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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d862084a3c17a8a501c23e3c1551fcd7926a1da7d3c705e01f9d3fd5d883459"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollFrameAnalyzer.scrollbarWidth (cognitive 16): ScrollFrameAnalyzer.scrollbarWidth has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Capture/ScrollFrameAnalyzer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e003c57e2fccf92fda98be601a32874b1a015868f4cc20e23539788ffb9dfa3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageAlignment.cornerMultipliers (cognitive 16): ImageAlignment.cornerMultipliers has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, ternaries 4. 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":"Sources/Models/BackgroundStyle.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22b624118d1ee972870034acb8a74739337650c704c26a690473d34153d421b"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewOverlay.scheduleDismiss (cognitive 16): PreviewOverlay.scheduleDismiss has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 pts), loops 1 (nesting depth added 2). 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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc470cd3019d07b012ff0db9752ea3e38a41113083ad92ae44d0ec6717ea6f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/RecordingStudioWindow.swift: FileTooLong \u2014 2824 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2324 over it, 5.65\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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"919414b109b158962b5ff0fa1a47d17117df901e9e1c8fbaf25f1e68b9945cd2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecordingStudioModel: TooManyMethods \u2014 161 methods. The bar is 30 methods; this is 131 over it, 5.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8782d5eec31f9d515dcd59a22f4b0b0bce9b4e11c833846372c1802ac6618469"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecordingStudioModel: ClassTooLong \u2014 1794 significant lines (blank, comment-only and punctuation-only lines excluded), 161 methods. The bar is 400 significant lines; this is 1394 over it, 4.49\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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ba6981cdd765f036a827b67f6f7d71fa6aeb1d6b1466164e7b505024996540"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/RecordingStudioModel.swift: FileTooLong \u2014 1831 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: RecordingStudioModel (58-2783). The bar is 500 significant lines; this is 1331 over it, 3.66\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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f081b6937da694884c23ae9540ab9a50d219e5a7ed055004b60d3851a3a56c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Article: FunctionTooLong \u2014 Article runs 364 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 264 over it, 3.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":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"326bad5e6c5a1877e81e7823bb0270bc7e078e2aab1ff21475d1dca4867ebac7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Article: FunctionTooLong \u2014 Article runs 339 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 239 over it, 3.39\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":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75ddb6f9a6d407f6c9a94d67be4bb7febaf816bd68bfbd88fc95189eb3de067"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Article: FunctionTooLong \u2014 Article runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d68534ca8e415302480f8d2006e67d992f71d44c214f0d2437d64e581f66041"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Article: FunctionTooLong \u2014 Article runs 325 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 225 over it, 3.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"864a1aad0a95de0c91b9ac0784cc5f03b48ff13c520fd6c709aee346dcf21f9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnnotationEditorModel: TooManyMethods \u2014 72 methods, declared across 3 files: BetterShot/AnnotationEditorModel.swift (51), BetterShot/AnnotationEditorZoom.swift (14), BetterShot/AnnotationEditorTextStyle.swift (7). The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationEditorModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8065f30e0a0123158615fac91703322f516ffd90350701fe8f29451207d1155e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: video-player.VideoPlayer: FunctionTooLong \u2014 VideoPlayer runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\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":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"858f69c1253c0a2efb51b42adf0ab3589c24619235dc7821e3f8b866e2a2ec3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/PreferencesView.swift: FileTooLong \u2014 1084 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 584 over it, 2.17\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":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3bb9239a3c8b79226fe60923e1d38985317fba65e27b1a2b8a2676f8779c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/RecordingStudioExporter.swift: FileTooLong \u2014 1081 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 581 over it, 2.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b740d8f2f88f02a58ca907edb5634e4a8ca69fc92eb275885b822bde97af2fb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StudioInspector: ClassTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 440 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbd84b273a88180367c87f6125431bb3acb1df82059590150d27ee5aee95633"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/ScreenRecordingManager.swift: FileTooLong \u2014 939 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 439 over it, 1.88\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":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3745a5612bf1c47a6efbbe47a7e63cdd2d0fd9bebc0b532f3a4ce79bee8a9c09"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: use-player.usePlayer: FunctionTooLong \u2014 usePlayer runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"264db1527bef7dc1a2934173cb0332bc7d006fcec26a4d01163f56c6169fe9e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.Home: FunctionTooLong \u2014 Home runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"bettershot-landing/app/page.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb8ebfc061021730a0ba335c38ac540b1738d4f9c9136a6b7a09eb88a0a3fa5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecordingStudioExporter.run: MethodTooLong \u2014 run runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\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":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95db00b6c0a62047a870c2d84bc4323592c039f6fe9222b3885dda6b695fdd3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnnoEditor: TooManyMethods \u2014 48 methods, declared across 2 files: BetterShot/AnnoEditorInteraction.swift (26), BetterShot/AnnoEditor.swift (22). The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnoEditor.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7b0e0f4437766e69d318ab32d82703629360a6844c231b540270ec4e6ec7b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsTab.body: MethodTooLong \u2014 body runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38b3e1c324308fd76f0d152070f3589ff11f0b86eb26d4f8846135e8848a872"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecordingClipTimelineControl: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"Sources/BetterShot/RecordingClipTimelineView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7fa2e80244af4a09719d95f2d4c041ceddda31e2747b1e553100bd8a0ec4a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StudioInspector.inspectorContent: MethodTooLong \u2014 inspectorContent runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"965342bbbe59c95691c31750c2da0f3db12236293d17de17fe5478deb711cb19"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CurvedArrow.info: MethodTooLong \u2014 info 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":"Sources/BetterShot/CurvedArrow.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d1f636886fd9fc80f01e9f63aa992e3ff3b95398fd11ae4aef5e9aa7a2088"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PointerTimeline.build: MethodTooLong \u2014 build runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingPointerTimeline.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf01528a99a81386f9dc58334d1e2ef2620757705e8600e217d854026e29b70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StrokeOutline.buildTracks: MethodTooLong \u2014 buildTracks runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokeOutline.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"837094f38f04758f4087fb6a12666377ae11da9e8118684dcf8c2c5954e7fdde"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnnotationEditorWindow: ClassTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 164 over it, 1.41\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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13b0149d9236f67f6145e6bf950d1d0e043f0792113ae05aa8ba31528fb4573"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecordingClipTimelineControl: ClassTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 142 over it, 1.36\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":"Sources/BetterShot/RecordingClipTimelineView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"86abd540650e093463598a75f157ad6d3cd65e70847d02f58c0348fb10ec8bb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/RecordingClipTimelineView.swift: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: RecordingClipTimelineControl (154-894). The bar is 500 significant lines; this is 152 over it, 1.30\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":"Sources/BetterShot/RecordingClipTimelineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95f9144401b9a7249dc7354503913a84e3edbe00a752f61946fbf59e8a8a0c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnnotationEditorInspector.body: MethodTooLong \u2014 body runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"Sources/BetterShot/AnnotationInspector.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95bd582f68572c2099aef4d952ae0173dfa83bce4e134062f06e957b01b3eb7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScreenRecordingManager: ClassTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 111 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/ScreenRecordingManager.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17868094b01a11a8ce116ac0f72e123a5901a0ad0fe23aaae9312814bf63208"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnnotationCanvas: ClassTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 103 over it, 1.26\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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ae44523742f290b575c819ab8392cf22ae431b3519e2d2a0be8c265389c8ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: image-viewer.ImageViewer: FunctionTooLong \u2014 ImageViewer 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":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8737e9d08dde75d6cdc7ae4a5f7fd6fb7554a9fcdc8e3c6171a24680ee7196a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: calendar.Calendar: FunctionTooLong \u2014 Calendar runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"bettershot-landing/components/ui/calendar.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8953be2d4e0f4a372cf5345238671ef1f8c75b3559274401269f325cf5f91b20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnnotationCanvas.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4dd3519941bd5788adc166306735ba59ea5ff9e1e143ae50ff70dd1530bc57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StudioCanvas.body: MethodTooLong \u2014 body runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbee57a9e38fd33ddc51ac8cac40be8fc810fcbb99827fe4aa207a6d6525b73b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StrokePipeline.ingest: MethodTooLong \u2014 ingest runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71098cf99de42be0ac73a3e8e4e7499eeda77aa3a818970078b4aa4fcc64d08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaGalleryContent.body: MethodTooLong \u2014 body runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"abeea490de5bf9dba8920a6b743290ef103d3fa3c473841341438193ec1cf1f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/AnnotationEditorWindow.swift: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AnnotationEditorWindow (25-816). The bar is 500 significant lines; this is 92 over it, 1.18\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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241f2fbd2ebcbf697b5f40502842be401b670a1661b177edf5d23274da4f34a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: scrubber.Scrubber: FunctionTooLong \u2014 Scrubber runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"bettershot-landing/components/share/scrubber.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7b32b82d89ee1a388d096d8045ea9559069cd31d6999f6d662daadd0fae8c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/AnnotationCanvas.swift: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: AnnotationCanvas (32-698). The bar is 500 significant lines; this is 78 over it, 1.16\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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b254857dd564d0573fa6979ec2a3288e2bb575d8ed14529652e2fe978988f2ed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecordingSessionRenderer.ensureDeliverable: MethodTooLong \u2014 ensureDeliverable runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingSessionRenderer.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3bb787b58a50e4bd9b4d70f3d8ced050eab07cb354a1a7f062dff37d267a15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/sidebar.tsx: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":"bettershot-landing/components/ui/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc9c93c3913550b94001f83e162503c06cfeca806a7e9a842a49daa3dc59f85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/AnnotationEditorModel.swift: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: AnnotationEditorModel (18-580). The bar is 500 significant lines; this is 58 over it, 1.12\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":"Sources/BetterShot/AnnotationEditorModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2c92ba950531a64ff8bf3fa366698e345872205b21cadc2de89cb21365d06c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PreviewOverlay: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fe143bf5a673ffc4b8da40705e72e89739257f431758a61520de3c1f35d5e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: scramble.ScrambleHover: FunctionTooLong \u2014 ScrambleHover runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/scramble.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"71377225f55f1bdf5f597cd92498883d6de30fe2697946701a488e6bfa3adc0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: share-view.ShareView: FunctionTooLong \u2014 ShareView runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b6c5c56d315844d632a60b8b41d27ff6e972990e8e92c9eaf23c8e055c629f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Vec: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Vec.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b137358dd9108abc4d35a5ca3b3e8800985f5eef24eee75ed0c96e7b30cf5a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BetterShot/RecordingPointerCapture.swift: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingPointerCapture.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1eefe5373f40c3a994caf9b4700719f4ed863286a01fbacbb9867018ac9df09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StudioFrameCompositor.composedImage: MethodTooLong \u2014 composedImage runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1fcf5a629c47fd6410751bd4e6fe4786f4e07075780ac6045292bd991bf44f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Preview/PreviewOverlay.swift: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: PreviewOverlay (7-487). The bar is 500 significant lines; this is 18 over it, 1.04\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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4e2ae7a260432fc51489196dfd3e89100c0e23f46d595ed86a02c4b1c6e7ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScreenshotHistoryStore: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/ScreenshotHistoryStore.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3121e0e7be6c3b982e7d0009211983d8ea15af65b617bf98fb92f9a924071e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/BetterShot/InkPath.swift:63-135 | Sources/BetterShot/PathBuilder.swift:73-154 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"Sources/BetterShot/InkPath.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb1a62dd5ae54bab5788025292ca1a4e54bee49e3f00beea35c64d5be8b7f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:434-449 | Sources/BetterShot/AnnotationInspectorStyle.swift:269-283 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:414-429 | Sources/BetterShot/RecordingStudioWindow.swift:1119-1133 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23ebe1a54a4386395f33e62b1cc7f760b3c3956752364450afac75a5fa54739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/Services/AppUpdater.swift:39-75 | Sources/Services/AppUpdater.swift:77-135 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"Sources/Services/AppUpdater.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec09212f30413e0d5a4f33af6bd8c9edebaf8e733604e2099b06fe31f86c778d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:155-221 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:142-208 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf973889f65130391cc6b36cb00cfadde0ccb6c3823d8dded65c391f5cfe5c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:46-104 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:41-94 \u2014 These two members are one piece of code written twice and then edited apart: 54 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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f1c26a38cc9d1833658022e5be82ae9ae442040e8b337354db2f0cc0449f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/BetterShot/RecordingStudioWindow.swift:2167-2197 | Sources/BetterShot/TeleprompterOverlayPresenter.swift:45-72 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2167}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a57857f6deb041669b3248b60061cdbf705b596cf33207d2986e28414dcd10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/Sharing/R2Uploader.swift:182-219 | Sources/Sharing/R2Uploader.swift:375-422 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sharing/R2Uploader.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa5d05e6562cee0308188a2b23a54f3694b5b81322038ab7fd2365d9b2c781a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/BetterShot/AnnotationEditorWindow.swift:407-440 | Sources/BetterShot/RecordingStudioWindow.swift:182-218 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc03b2ce78b22bc8c587d2019c4add8163d1d793e39e372cc36e3cb5d1b3960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/BetterShot/ScreenshotHistoryStore.swift:169-199 | Sources/BetterShot/ScreenshotHistoryStore.swift:201-233 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"Sources/BetterShot/ScreenshotHistoryStore.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f557b0b6b28cedad79da3abeac7480969a6ec15fb71563d7d2616ba0175fbf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/BetterShot/RecordingExportReframe.swift:118-133 | Sources/BetterShot/RecordingViewportTimeline.swift:239-256 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingExportReframe.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee8f5870f2f261f247c938ebdca81218d629f8365e2b5a12a5c5c1c59e96e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/BetterShot/Recording3DInspector.swift:259-270 | Sources/BetterShot/Recording3DInspector.swift:272-287 \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":"Sources/BetterShot/Recording3DInspector.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a4e5c4dae302f82507874180627b184a67afa42c91d237fb82e2f9dc1455cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Settings/SettingsComponents.swift:248-274 | Sources/Views/OnboardingPermissionsView.swift:180-198 \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":"Sources/Settings/SettingsComponents.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5de29d10ebc73eeaa2021a57c3a4693553bd280c593e9484553c9f84b2e377d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:258-282 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:174-194 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc60d5b5ae5e690eb0cfbc444a01279071546a07fe75cc62f8e81e63e3281d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/BetterShot/StrokePipeline.swift:34-46 | Sources/BetterShot/StrokePipeline.swift:338-349 \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":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c89fd51197fb152c5b47879a5819e7db565324de8693a8b4809a0dfce1ac06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/BetterShot/TeleprompterComposerPresenter.swift:41-70 | Sources/BetterShot/TeleprompterOverlayPresenter.swift:224-262 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/TeleprompterComposerPresenter.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9934082285e4c7d4edb8afe93951259691ac8d17b9893f577233b3169cd35fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/BetterShot/AnnotationCameraGeometry.swift:136-165 | Sources/BetterShot/AnnotationCameraGeometry.swift:168-197 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationCameraGeometry.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea1053cd4923c26d1d6a6538e28a0579a76b6cfa73581eb147ce876d446c54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Settings/PreferencesView.swift:605-624 | Sources/Settings/PreferencesView.swift:626-645 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bb6fcafbf74ad2d0e5a978af427e066d37edfd7c60058cfd71f163d62afabb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/BetterShot/AnnotationEditorZoom.swift:71-87 | Sources/Settings/PreferencesView.swift:855-866 \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":"Sources/BetterShot/AnnotationEditorZoom.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c94ced2753dc6c3044fb6745efd63ce691f121b0d07b300d84a1f7860730a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/Arrowheads.swift:95-102 | Sources/BetterShot/Arrowheads.swift:104-112 \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":"Sources/BetterShot/Arrowheads.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"070f83535eeeb9cb34cee708fd1c55164abb8b0f3b5cbeaf68627e8cf8565082"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Views/TransferStatusCard.swift:228-252 | Sources/Views/TransferStatusCard.swift:254-276 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Views/TransferStatusCard.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"24065bfd51a6fd4dda8e00e9e2fc207754b9781db5b89cc3a60208691f06711c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Services/ShortcutService.swift:256-265 | Sources/Services/ShortcutService.swift:268-277 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Services/ShortcutService.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadbfbd25f2d952b0b14cda7b099377ec71c178af86de924402af651145243ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Sharing/R2Uploader.swift:250-264 | Sources/Sharing/R2Uploader.swift:266-275 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Sharing/R2Uploader.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"728c0beaceaba45fdd96f585d69c13cda40b9e315eead1b4e241a1a68f0d7941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/BetterShot/RecordingStudioModel.swift:1206-1221 | Sources/BetterShot/RecordingStudioModel.swift:1225-1236 \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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4714eb5051890efe9555eb311ee7101eec28e0bbc7a5483ed98ae14c8ec00846"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/BetterShot/RecordingClipTimelineView.swift:86-106 | Sources/BetterShot/RecordingClipTimelineView.swift:108-124 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingClipTimelineView.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f71c65e0b48eeb3c7f3065c6787d056d7344ca25db8cb36bb8e648f4d251c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:106-124 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:96-112 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b33e7a96363ba7d83ecbbbcf30f4a904ec12a1067211607d75ca0b42f070894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/BetterShot/AnnotationBackgroundPreviewViews.swift:13-35 | Sources/BetterShot/RecordingStudioWindow.swift:1263-1282 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPreviewViews.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f7cb5901c71842b764df4738790e5e99b7d1b92c0efa689b7ebe3d5f3d8202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/BetterShot/Intersect.swift:116-125 | Sources/BetterShot/Intersect.swift:127-136 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Intersect.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1685a99dfe614de69a9e3f5052d56320a990509713ccfaa90a992a42469673fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Views/TransferStatusCard.swift:304-316 | Sources/Views/TransferStatusCard.swift:318-339 \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":"Sources/Views/TransferStatusCard.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f9d241c5c41b3212977d12b55763f0a328ee2a7506be304b8b7579004d6149"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Settings/SharingSettingsTab.swift:272-280 | Sources/Settings/SharingSettingsTab.swift:282-290 \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":"Sources/Settings/SharingSettingsTab.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7eaf5d42cf9be5a5a8a0ba42203fbfd123a8003afb9aa8b62e176e5fb595a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/BetterShot/Arrowheads.swift:78-83 | Sources/BetterShot/Arrowheads.swift:114-119 \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":"Sources/BetterShot/Arrowheads.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fad4e28578c80bbda6aa5539435ae19f7d7fae57f6aac7ef0ac6855d20ebe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/VideoFileActions.swift:13-30 | Sources/History/HistoryStore.swift:218-225 \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":"Sources/BetterShot/VideoFileActions.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"57df2f1fe2f14c9085781f1ab087cada37d8c51aef1d018322cadbfa5aa6b1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/BetterShot/RecordingStudioModel.swift:1803-1821 | Sources/BetterShot/RecordingTranscription.swift:125-144 \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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3151fa00ee3af56f4a81f6483e06b8573c85eec36dbb5ad5d5824c19df1f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/BetterShot/Intersect.swift:61-70 | Sources/BetterShot/Intersect.swift:86-95 | Sources/BetterShot/Intersect.swift:97-106 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Intersect.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2fcf8ac0c5b2e987b4d5f47a24f0d8ff1b7cd15943fc00de1574e6a8a6ff13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/BetterShot/RecordingPointerTimeline.swift:383-399 | Sources/BetterShot/RecordingViewportTimeline.swift:483-504 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingPointerTimeline.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafa141e590814480234441d526f7e88b4e87b9708991073db438c0411febc2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/BetterShot/RecordingStudioWindow.swift:1847-1861 | Sources/Views/TransferStatusCard.swift:290-302 \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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01e403955ed0b2d93ca845f820ef8a1f0a2f46e712591c566dd05718f785aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/BetterShot/Arrowheads.swift:66-70 | Sources/BetterShot/Arrowheads.swift:72-76 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"Sources/BetterShot/Arrowheads.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e20342b8a488313ec2de2e3aa5519065df8110467120dc33dd13b2a47eb800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/BetterShot/RecordingClipTimeline.swift:58-66 | Sources/BetterShot/RecordingSession.swift:452-462 | Sources/BetterShot/RecordingTranscription.swift:63-71 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingClipTimeline.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8711999ca9e63075ee915e8ddfd8e81c5b84b75603c27f7c39af03fb2bc6e5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/BetterShot/RecordingAudioExport.swift:194-202 | Sources/BetterShot/RecordingStudioExporter.swift:523-529 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingAudioExport.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1922df0811b5b6d34d54c5340c9e558f73b360e8d7e77195c03de37fcfb0c14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/BetterShot/CloudUploadOptions.swift:93-111 | Sources/BetterShot/RecordingExportOptions.swift:184-205 \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":"Sources/BetterShot/CloudUploadOptions.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7860f00102e67e43eaac4331dcfbc4c4d0069450ffc4841f20176b6483fddad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:149-165 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:101-114 \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":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d2027b1f6eb27699e839dc4f7d9b09573806eabaa55b7bd98d8e05390d5762"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/BetterShot/RecordingSession.swift:432-440 | Sources/BetterShot/RecordingSession.swift:464-471 | Sources/BetterShot/Shape.swift:342-350 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingSession.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a710bf1163738210ec89a6bcb9088a62f9677f52c135ce2ada6253bfde4d369"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/BetterShot/AnnotationEditorWindow.swift:614-630 | Sources/BetterShot/RecordingStudioWindow.swift:3342-3353 \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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaeffa51c82a71d19a1181e79909dbd59f813bf1a438dd9417f956db354a5d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/AnnotationRedactionImageProcessor.swift:77-85 | Sources/BetterShot/AnnotationRedactionImageProcessor.swift:144-152 \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":"Sources/BetterShot/AnnotationRedactionImageProcessor.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd52e25c535bcdf33ffc0112423c662b5bf4051d146c67ca176fb94cff337d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:384-394 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:364-374 \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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"6077fe7c4e2228344b8ce623258b27af599132b74bf16fe899023be849ef3d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/AnnotationBackgroundRenderer.swift:391-399 | Sources/BetterShot/ScreenshotImageLoader.swift:12-21 \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":"Sources/BetterShot/AnnotationBackgroundRenderer.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"84be920f86204ce635bc5bae08b140e8bb8cc132045055ae8cea69cc8c183978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Settings/PreferencesView.swift:469-480 | Sources/Views/OnboardingView.swift:317-325 \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":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"45eb624e43989bba19e1a68a499b7b4626b4e2740431136f9c5908712eb4971b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:280-292 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:262-272 \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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34ad6851036fb688137c26e96197d14a7152754cb103849a12fb7dc7de6dacb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/AnnotationCanvas.swift:644-651 | Sources/BetterShot/RecordingStudioWindow.swift:646-653 \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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a6a7d06e5f7feffa7e26931db1482058c58dda4465ae12d7f881e83ae44f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/BetterShot/AnnotationMockupEffectsRenderer.swift:42-62 | Sources/BetterShot/AnnotationMockupEffectsRenderer.swift:64-82 \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":"Sources/BetterShot/AnnotationMockupEffectsRenderer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f566ab95a36b447af21e402f194fdc3d600b7c8fd673a5f34c09cdaf16493e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/BetterShot/Shapes2d.swift:70-77 | Sources/BetterShot/Shapes2d.swift:176-181 \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":"Sources/BetterShot/Shapes2d.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"408b9b8a975f51e41fe4fc2d316bd772d9ae7802e721dc2b7d3a1a04037b663f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Views/GlassSurface.swift:74-82 | Sources/Views/GlassSurface.swift:84-98 \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":"Sources/Views/GlassSurface.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"710eb6b8fb7ce483d4c8efc53d5afb098e65ab58f0bb7239d5f8be448395cf6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/BetterShot/CameraRecordingManager.swift:559-574 | Sources/BetterShot/ScreenRecordingManager.swift:1276-1294 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb63d0f00292e9ba92f6e6b912ce80bbdbd862a31d091438e0e6c478a15b852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:176-185 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:125-134 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c93deb1c4e8060f1288eba353c514d28177041c201c736136493b2a16d579b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/BetterShot/Shapes2d.swift:162-174 | Sources/BetterShot/Shapes2d.swift:298-310 \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":"Sources/BetterShot/Shapes2d.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"adea906ffae46f2a1a1d8abf52ec68dd0bf44b1150eb3a3f29e211f7af91d371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/RecordingStudioWindow.swift:359-366 | Sources/BetterShot/RecordingStudioWindow.swift:369-380 \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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bebbaf2f10cd5e9b9a83361ff08b657d4b7a32133f2630c7ebf272e1d970f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/BetterShot/AnnotationCameraGeometry.swift:226-232 | Sources/BetterShot/AnnotationCameraGeometry.swift:234-240 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationCameraGeometry.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88fa99072fa943606bbdbd56e43a50b1f2e08b67e9db429bd95bb35a64da6ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/BetterShot/RecordingSessionRenderer.swift:174-182 | Sources/BetterShot/ScreenRecordingManager.swift:570-579 | Sources/BetterShot/ScreenRecordingManager.swift:625-633 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingSessionRenderer.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a925c41eb34394ad779d00ddba6857c093578c4a837bcd4da3065c384db8c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/BetterShot/RecordingSession.swift:475-481 | Sources/BetterShot/ScreenshotHistoryStore.swift:110-115 \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":"Sources/BetterShot/RecordingSession.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae2591bf3f326bc194e03d70b8cb59119c8e9ed2c2606646b6e6ff7691bff00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:204-216 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:153-161 \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":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"57046d5e94afa4317f7bbacaf1d449a362a050568cb76953f45dc848dbaf07ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/InkPath.swift:141-149 | Sources/BetterShot/StrokeOutline.swift:418-426 \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":"Sources/BetterShot/InkPath.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a963600f482a94d83e6a5151c95e41530e5073fee9bae96b7d654a744aaab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Capture/RegionSelectionOverlay.swift:245-258 | Sources/Views/MenuBarContentView.swift:387-393 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Capture/RegionSelectionOverlay.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a137f442ce022c50f36d622360b6a3821ad5cf8d2dde339cddc2018b44aa063"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/AnnotationBackgroundInspector.swift:220-228 | Sources/Settings/PreferencesView.swift:595-603 \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":"Sources/BetterShot/AnnotationBackgroundInspector.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8ab4720be9d18b0212bcf69dda0ac130733b87b34db8c0c2ebe93ece2eee20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/BetterShot/Intersect.swift:108-110 | Sources/BetterShot/Vec.swift:112-114 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Intersect.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b5fdaa18cde8bd7848585bc6cb7a04fe6a207c75f9993a90cdbabc5de38064"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:126-135 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:114-122 \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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"142df184274e25ff8a0b6413f5e82921b9a0b3f3134b958d9a51e13d9192bee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/AnnotationDocument.swift:260-267 | Sources/BetterShot/AnnotationPresetStore.swift:71-78 \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":"Sources/BetterShot/AnnotationDocument.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3494f99550d74882e8d37c49279e8de71c7e8049137ba664ebb29c25da0507"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/BetterShot/AnnotationBackgroundRenderer.swift:462-469 | Sources/Capture/RegionGeometry.swift:13-15 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundRenderer.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c176c57fe2b28e48bb0d8ced35fdb3508cc4d41f2439c4ae451ae622848886a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/BetterShot/AnnotationEditorWindow.swift:442-450 | Sources/BetterShot/RecordingStudioWindow.swift:220-227 \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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01d658914a632b75205b6ab6674074fd5a8fa7fc7bbdfad334206e356410789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/BetterShot/Box.swift:11-13 | Sources/BetterShot/Vec.swift:10-14 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Box.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec37c82c315f7e9f70f6bbbdbfcc7bde6b17e17aae538f7da998c65bb3dfab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/BetterShot/AnnotationBackgroundInspector.swift:134-139 | Sources/BetterShot/AnnotationInspectorStyle.swift:325-330 \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":"Sources/BetterShot/AnnotationBackgroundInspector.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f1097a6b165ce8cf7c1c498ddf8907f6ea927b1cd348a9d9f14ea637988893"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:396-399 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:376-379 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1fe0981ec6bfd559c98a57ec0a6e65ab93be82b51f2145dbd440a76a7d9cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationEditorModel.swift:684-687 | Sources/BetterShot/RecordingStudioModel.swift:2018-2021 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationEditorModel.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae3ce86131b7035060f615eee7fbcfb6aac9d3037a7cf9706553856c6980b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/BetterShot/CloudUploader.swift:188-190 | Sources/Sharing/ShareImageCompressor.swift:68-70 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CloudUploader.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e18864028c350d2fc2e2ab839def5941e424b4449bb197d6ce3a77173d8c6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:69-72 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:43-46 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2523fa9822b45f1dce15040b081594b9eb846fbeeabbb9c24bf90a669b3fcb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:405-408 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:385-388 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac248d9cf0123e15f1afaa125e4a0b8a3cd25da4c28f7accbfc22c4efa1cea7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:414-417 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:394-397 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c52b45e1e689d0072e29e3b95cba6836060aca43f6eeed032b224e82f7efe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:419-422 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:399-402 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d32d4c6d1b42d2aa8805364ab452203f5dc9afe330fa007f2fe32d67a4b5ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:136-139 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:88-91 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7b4ff05e76284361f164288ca02835e7a62bbdeab046e3b9b9b1b19bc9e78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/BetterShot/CameraRecordingManager.swift:454-460 | Sources/BetterShot/ScreenRecordingManager.swift:1121-1128 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"6394ba57077c4fa995b0dc4967dc0c07f13487934cad8f2e712366a8de88569e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/RecordingViewportTimeline.swift:131-134 | Sources/BetterShot/RecordingZoomFocusPad.swift:123-126 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingViewportTimeline.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6baa84223238df12d1625d0786911c5a2135dc58820f0a34c4d7fd3f889ac0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:108-111 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:68-71 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cffa2fb7ac1c632a2de6d160e4f77eff7fcac827c5da49fbd583d842c62ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:294-357 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:274-337 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"884c39f58244f8cf1f2d358bb00b551af15701b6ab7b9125b72bef75aae1c937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:182-221 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:169-208 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:182\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"419b93e5ab5b2141a33fc17435499a12367aa90ccf410f4e491c59383d5979b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:360-382 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:340-362 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060presets\u0060 to \u0060[AnnotationBackgroundPreset]\u0060 in one and \u0060[RecordingStudioStylePreset]\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"92395ecf90b25af1b0282e952ac431825d6a0d91c854c820cc25984ceae5586e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/BetterShot/AnnotationCanvas.swift:436-455 | Sources/BetterShot/AnnotationCanvas.swift:527-546 \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 \u0060Sources/BetterShot/AnnotationCanvas.swift:436\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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de00d0ff28c9fa08757f9cbaeea67f73d0dba3eb1eb92383b38a3ba50fdbaf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): Sources/BetterShot/InkPath.swift:70-111 | Sources/BetterShot/PathBuilder.swift:80-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/InkPath.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea83675047cf56aa4bafa3bdb225a79fdc9715d42cb762bc57a87175b53b6bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Sources/BetterShot/RecordingCompositionBuilder.swift:22-41 | Sources/BetterShot/RecordingCompositionBuilder.swift:64-80 \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":"Sources/BetterShot/RecordingCompositionBuilder.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b5b5f6a462b562d139acdbab7be6ae08461aa8f8c0c53f7d16d698c08699f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:155-173 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:142-160 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:155\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0991627ebbfaeaed84491a9c04af8fc7a883159e4f36adb4512cd08e7f0218b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:284-302 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:196-214 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a062cd1c457786ba47d15a9e8ba9245d6c3303f0c8eaeff83eb93d51d3fbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPreviewViews.swift:18-35 | Sources/BetterShot/RecordingStudioWindow.swift:1267-1282 \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 \u0060Sources/BetterShot/AnnotationBackgroundPreviewViews.swift:18\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":"Sources/BetterShot/AnnotationBackgroundPreviewViews.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12e15478593e9938982d6ad4c208090d7a5fc887312614cf49cbc81967f5854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:74-90 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:65-81 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:74\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf67d1678bfe28cccc0f0005d2884c13b1d26cec4d5322f0a100051c8ebb572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/BetterShot/CameraRecordingManager.swift:589-604 | Sources/BetterShot/ScreenRecordingManager.swift:1326-1342 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f7498bf5d7fbcb44f4f4ae984de47c4c3f41c92aa0db7c2e5c8b73ed477bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:434-449 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:414-429 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecf9d3b0b0aa6a96f0b06d0322e8548076c7ff2414308b3bb41269094cb9d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201316 lines \u00D7 2): Sources/BetterShot/AnnotationImageCropper.swift:53-68 | Sources/BetterShot/AnnotationImageTransform.swift:93-100 \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":"Sources/BetterShot/AnnotationImageCropper.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9835d877c7c5faf32783e3bfbedbb3ad45dab6a1779788814ab2ee062b258f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/BetterShot/CloudUploadOptions.swift:93-108 | Sources/BetterShot/RecordingExportOptions.swift:184-199 \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 \u0060Sources/BetterShot/CloudUploadOptions.swift:93\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":"Sources/BetterShot/CloudUploadOptions.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe7763bb5c4fe4c564201b4fc4d1d252be53879b9d8c3ad5c6e679fce8cb145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Sharing/R2Uploader.swift:195-210 | Sources/Sharing/R2Uploader.swift:389-404 \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":"Sources/Sharing/R2Uploader.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e904bea0a403faacadcb2c0b47f6434e1f6998a7588187792061a031e79f14b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:253-266 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:235-248 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efe2a552eccf185d5a33edb8d9956ffbfad9d8fbcbd56403eee36da00c5ca68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:262-275 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:178-191 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"10823e88e0fd6656303633d755d4eeed0825e73a2ca14dd78d3268fc8d5824d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/BetterShot/AnnotationCameraGeometry.swift:137-150 | Sources/BetterShot/AnnotationCameraGeometry.swift:169-181 \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 \u0060Sources/BetterShot/AnnotationCameraGeometry.swift:137\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":"Sources/BetterShot/AnnotationCameraGeometry.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4746827797f377c44379b997c5d6e39b901042c8585871c6f8c4dfe4fc7c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/BetterShot/RecordingExportReframe.swift:121-133 | Sources/BetterShot/RecordingViewportTimeline.swift:243-256 \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 \u0060Sources/BetterShot/RecordingExportReframe.swift:121\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingExportReframe.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77ac835952c50f2dfd50916627da7909ef6b03e7bc60e2b1d33bb90f9cc808f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/BetterShot/RecordingStudioWindow.swift:2556-2569 | Sources/BetterShot/RecordingStudioWindow.swift:2624-2637 \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 \u0060Sources/BetterShot/RecordingStudioWindow.swift:2556\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"495314dc44a21d02c56c4dfc759bec56dcd4f6d9614fb76512693ac13ed2f6ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/BetterShot/RecordingTranscription.swift:126-139 | Sources/BetterShot/RecordingTranscription.swift:227-238 \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":"Sources/BetterShot/RecordingTranscription.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7c9572b95c200137a6dba4931449ce5f778e993e64defdbf635283fafe6af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundRenderer.swift:54-66 | Sources/BetterShot/AnnotationRenderer.swift:230-242 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundRenderer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe26d400526fec7b3a296fe5086c4d9c54fa2146ad94929769d4e5b0de7329c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/BetterShot/AnnotationEditorWindow.swift:410-422 | Sources/BetterShot/RecordingStudioWindow.swift:185-197 \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 \u0060Sources/BetterShot/AnnotationEditorWindow.swift:410\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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed70388faf15438734bbfafefee8df6e4e61c9a1b0ae1fc33b22f1fea63785fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/BetterShot/CameraRecordingManager.swift:196-207 | Sources/BetterShot/TeleprompterComposerPresenter.swift:45-57 \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 \u0060Sources/BetterShot/CameraRecordingManager.swift:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a636f6d2da1145108830f834f408963706e09e92522eb9f833d5ae0fc9631ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/BetterShot/RecordingStudioWindow.swift:2518-2530 | Sources/BetterShot/RecordingStudioWindow.swift:2744-2756 \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 \u0060Sources/BetterShot/RecordingStudioWindow.swift:2518\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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1fefc4b6645fa168be763206e54bcaf27fef2fc092ea68ba71f3d50e1bdf39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/BetterShot/AnnotationInspectorStyle.swift:272-283 | Sources/BetterShot/RecordingStudioWindow.swift:1122-1133 \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 \u0060Sources/BetterShot/AnnotationInspectorStyle.swift:272\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":"Sources/BetterShot/AnnotationInspectorStyle.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9f5925168860023065e0042c1cbff1c879afcdc6ed945e94d5a13a4f228526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Views/MenuBarContentView.swift:425-436 | Sources/Views/MenuBarContentView.swift:440-451 \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":"Sources/Views/MenuBarContentView.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c928d87c83b8d9f04df0db78b50b2ebfdac897aaf69fdc4cc446799be5efb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/BetterShot/CurvedArrow.swift:129-138 | Sources/BetterShot/CurvedArrow.swift:157-166 \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":"Sources/BetterShot/CurvedArrow.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e611c8afb38cc8c5622cd2841e6ba175c864030c029e8162cd80ad5183441eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/BetterShot/ScreenshotHistoryStore.swift:171-180 | Sources/BetterShot/ScreenshotHistoryStore.swift:203-212 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/ScreenshotHistoryStore.swift:171\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":"Sources/BetterShot/ScreenshotHistoryStore.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae886516a7b1686c5a1fb8395fd9055f38055e0a7d15d4df4695db0b707d25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Capture/CountdownOverlay.swift:119-128 | Sources/Preview/PinnedScreenshot.swift:88-97 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Capture/CountdownOverlay.swift:119\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Capture/CountdownOverlay.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bdcfaba970263dca8ec2ac666b531c8bc2ae66b6efa6af03b6b5431159ff38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Settings/MediaGallery.swift:219-228 | Sources/Settings/PreferencesView.swift:85-94 \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 \u0060Sources/Settings/MediaGallery.swift:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Settings/MediaGallery.swift:218\u0060 calls \u0060scrollContentBackground\u0060 and \u0060Sources/Settings/PreferencesView.swift:84\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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee9720f9d7175af2de06221661d5f897adf8f8182590b195d892e136a474947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:438-446 | Sources/BetterShot/AnnotationInspectorStyle.swift:273-281 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:418-426 | Sources/BetterShot/RecordingStudioWindow.swift:1123-1131 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:447\u0060 calls \u0060accessibilityLabel\u0060 and \u0060Sources/BetterShot/AnnotationInspectorStyle.swift:282\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a212987091ae9d46500cb80791cf2ad9792f45db1205825d8f65c405b765d62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:386-394 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:366-374 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift:386\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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5db46e259e78aa860be1155f8211305b564fb01e39a59d6ed98ef5281e6e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/BetterShot/AnnotationEditorWindow.swift:76-84 | Sources/BetterShot/RecordingStudioWindow.swift:81-89 \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 \u0060Sources/BetterShot/AnnotationEditorWindow.swift:76\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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec742cecb983d0cab9f96a9ee2c9d7045fafb25f4044e17e143a8cfbd623e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/BetterShot/RecordingViewportTimeline.swift:522-530 | Sources/BetterShot/RecordingViewportTimeline.swift:538-546 \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 \u0060Sources/BetterShot/RecordingViewportTimeline.swift:522\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":"Sources/BetterShot/RecordingViewportTimeline.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"980f4162169e82b20173bac4f5a5fb5fb5f3b1bc6b5daa78eebb565d9fe963b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Settings/PreferencesView.swift:616-624 | Sources/Settings/PreferencesView.swift:637-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Settings/PreferencesView.swift:616\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":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e1f37cfdfa24bc24c36bb9409103fef438464e03e2a7fc38273439c17710f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/AnnotationBackground.swift:199-206 | Sources/BetterShot/AnnotationSwatch.swift:17-24 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackground.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd06dffe79b100cf602e9f3d1cabc01197ea25ad68e9d645f8b33bb5300cab18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/AnnotationTextStyleControls.swift:121-128 | Sources/BetterShot/AnnotationTextStyleControls.swift:144-151 \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 \u0060Sources/BetterShot/AnnotationTextStyleControls.swift:121\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":"Sources/BetterShot/AnnotationTextStyleControls.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fa5862507ab30c15d6760bcb30ffa014d3d6d03b951e5c8b6848b06c864fa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/RecordingClipTimelineView.swift:89-96 | Sources/BetterShot/RecordingClipTimelineView.swift:109-116 \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 \u0060Sources/BetterShot/RecordingClipTimelineView.swift:89\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":"Sources/BetterShot/RecordingClipTimelineView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68b8f8a200198b8220f54ebdbcda67b6ed67c94d62c66af31b80f75c593f70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Views/MenuBarContentView.swift:287-294 | Sources/Views/MenuBarContentView.swift:535-542 \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 \u0060Sources/Views/MenuBarContentView.swift:287\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":"Sources/Views/MenuBarContentView.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fe3dfbeefa0becc1c206da86a1c8c6aea7eed8e9c54d09f7be8ad07ad202a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BetterShot/AnnotationCanvas.swift:645-651 | Sources/BetterShot/RecordingStudioWindow.swift:647-653 \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. 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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7ef84239ca7d1eb0b4cb055dc8e16f4c1700ee6c82eca9b8026e42b14c4a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BetterShot/PathBuilder.swift:205-211 | Sources/BetterShot/PathBuilder.swift:253-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/BetterShot/PathBuilder.swift:205\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":"Sources/BetterShot/PathBuilder.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ae741d1d08a92162c267f99e30ef6a98bbd5fc3604507c43ef22e2d5d06258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/BetterShot/AnnoEditorInteraction.swift:368-373 | Sources/BetterShot/AnnoEditorInteraction.swift:597-602 \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":"Sources/BetterShot/AnnoEditorInteraction.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d45bbc00c004072aa87474e8a41a70976b93ad4083ee5e407706115d8c64854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/BetterShot/StrokePipeline.swift:356-361 | Sources/BetterShot/StrokePipeline.swift:410-415 \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":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e95c7c09fdc1da26637f53223aa10d3a9140b517303b9fcf511daaf45acb988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): Sources/Sharing/R2Uploader.swift:190-195 | Sources/Sharing/R2Uploader.swift:284-289 | Sources/Sharing/R2Uploader.swift:383-385 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Sharing/R2Uploader.swift:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Sharing/R2Uploader.swift:385\u0060 calls \u0060URL\u0060, \u0060R2UploadError\u0060 and \u0060Sources/Sharing/R2Uploader.swift:195\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":"Sources/Sharing/R2Uploader.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de8c5245dbc33f78df0767d7d2dcbb33cfa83810b56de90c4413f5ab4c67a7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/BetterShot/RecordingExportReframe.swift:121-125 | Sources/BetterShot/RecordingPointerTimeline.swift:94-99 | Sources/BetterShot/RecordingViewportTimeline.swift:243-248 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"Sources/BetterShot/RecordingExportReframe.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd50a7c4a96912c220f5cb9162652a629a07412db295d74be35fff6a5cd6013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/BetterShot/StrokePipeline.swift:358-362 | Sources/BetterShot/StrokePipeline.swift:412-416 | Sources/BetterShot/StrokePipeline.swift:427-431 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/StrokePipeline.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d2b93556b7fa2ab9a5d1b90812a657b0d440e75cc7dc54f1053a395cd2660b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/BetterShot/AnnotationCameraGeometry.swift:244-248 | Sources/BetterShot/AnnotationProgressiveBlurGeometry.swift:50-54 \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 \u0060Sources/BetterShot/AnnotationCameraGeometry.swift:244\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":"Sources/BetterShot/AnnotationCameraGeometry.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"508789274c2044043f4f0b1cb5d5f84ce5524c3661b097fa9f59779409febe74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Services/AppUpdater.swift:61-66 | Sources/Services/AppUpdater.swift:120-125 \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 \u0060Sources/Services/AppUpdater.swift:61\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":"Sources/Services/AppUpdater.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f829ec43b5ad4162616edbadbece8e312f186b8913b455603f5404bb1001e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundInspector.swift:14-20 | Sources/BetterShot/RecordingStudioWindow.swift:2850-2856 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundInspector.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51598acd14288a0c66d1b8d39e9ff80d5fee9ed61bf328ce575e18315651142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetBar.swift:144-153 | Sources/BetterShot/RecordingStudioStylePresetBar.swift:131-140 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetBar.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetBar.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 221 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdda2e3893958c1d81d18cc127668864026622d3a618480b36cb7e15f365b6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:187-193 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:136-142 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bee83ea85c97f30f6b8231a7fe7a35779ed91b0e0c066e52974644b51396c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:195-202 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:144-151 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a119d8cb730c8d96840ec61426a3a0edc94165e2d7910057f2c2a833a7309e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BetterShot/CameraRecordingManager.swift:462-468 | Sources/BetterShot/ScreenRecordingManager.swift:1130-1137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/CameraRecordingManager.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dffd26d3773e4b7146f6b0f555ae85416fc5b92901f7e0fba98a9ec1367d562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:141-145 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:93-97 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a284a872ae6f66a61bb7377fd78430a2280248a9e8428c8d1c9589c8277f8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPresetStore.swift:167-174 | Sources/BetterShot/RecordingStudioStylePresetStore.swift:116-123 \u2014 before extracting anything, compare \u0060Sources/BetterShot/AnnotationBackgroundPresetStore.swift\u0060 and \u0060Sources/BetterShot/RecordingStudioStylePresetStore.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060id\u0060 to \u0060AnnotationBackgroundPreset.ID?\u0060 in one and \u0060RecordingStudioStylePreset.ID?\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":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46c7d89ae3734843c82c157932c898061379226ae7d11f0d01c3583ae17ef1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/BetterShot/AnnotationDocument.swift:269-278 | Sources/BetterShot/AnnotationPresetStore.swift:80-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationDocument.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85f39aa9f8b0d658744e974b2528aa6ac21696aef387f1ae5829f2b03e64059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/BetterShot/AnnotationMockupEffectsInspector.swift:125-133 | Sources/BetterShot/AnnotationScreenshotBorderInspector.swift:46-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationMockupEffectsInspector.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f272719c0499538ada7353bd02b69ea6d7cf3c9eefe2d3e90ca7ae9789c840c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/BetterShot/AnnotationBackgroundPreviewViews.swift:45-49 | Sources/BetterShot/AnnotationBackgroundRenderer.swift:233-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationBackgroundPreviewViews.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cc0d844624196c679732cbb44379c21795283a76b129fc23fdc1979fab981c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/BetterShot/AnnotationMockupEffectsInspector.swift:246-253 | Sources/BetterShot/RecordingZoomFocusPad.swift:130-137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationMockupEffectsInspector.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd49b15cb014b108185dbf93eec9dbd5826d9977a0c2945fccd3dfac6e70e12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/BetterShot/ScreenshotHistoryStore.swift:343-347 | Sources/BetterShot/ScreenshotHistoryStore.swift:381-385 \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 \u0060Sources/BetterShot/ScreenshotHistoryStore.swift:343\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":"Sources/BetterShot/ScreenshotHistoryStore.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"989011f916ae1d3754d3017b8aab61760dbe82c4fee9288201311a33eedc1e4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterShotDelegate (LCOM4 6): BetterShotDelegate\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/App/BetterShotDelegate.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a4caa1fed8da228e958b2574068b19c0c5d1b6db96072f22d2966cb5934af"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AnnoDocument (LCOM4 4): AnnoDocument\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/Document.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3854eb9a3d6308fae6b4b2178b162257b843e827ab3e3619d25656a5c46ddc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TrayGridMenuButton (LCOM4 4): TrayGridMenuButton\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Views/MenuBarContentView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ee4211eaa630ef64c67d17b9da7b5d8f28bf814bfb82c550abc356688080d3"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: recharts: recharts 2.15.4, declared in bettershot-landing/package.json, is marked deprecated by its publisher: \u00221.x and 2.x branches are no longer active. Bump to Recharts v3 to receive latest features and bugfixes. See https://github.com/recharts/recharts/wiki/3.0-migration-guide\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/package.json"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa22a1e6e42f56bdb39dbd28c63bb050624625008e802fa68b36ef129664559"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated (npm): @hookform/resolvers: @hookform/resolvers is pinned at 3.10.0; registry.npmjs.org publishes 7.0.6 as the latest release. Upgrading is a judgement call \u2014 read that package\u0027s changelog for what changed between the two \u2014 but a direct production dependency several releases behind is where security and compatibility debt accumulates silently."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/package.json"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4332e06ede1bfdda95a8556c46649a34fccd4c9daf63d774c1eff32e85fd8db"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-darwin-arm64: \u0060@img/sharp-libvips-darwin-arm64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb9cac83efbb8fb5b1b1714cd7ce06ef46586b0cb953bfde13d5cef10838aa9"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-darwin-x64: \u0060@img/sharp-libvips-darwin-x64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"81de28cedeef63f197969d04616e27ba4aeb27e4375cfebf400bfd8540537a9c"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-arm: \u0060@img/sharp-libvips-linux-arm\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed930a6d1b3ac4b890509506dec0a58727b515b0b43327cc1a4b4298e79514d8"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-arm64: \u0060@img/sharp-libvips-linux-arm64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1b9a31ae3b29118432d1284fc0c855fbfbf2bc26303258aa349bed6999fa27"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-ppc64: \u0060@img/sharp-libvips-linux-ppc64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b20c11a65955bafb54a0fe488a53c597a9857c6aea42950b92968a57c6553f1"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-riscv64: \u0060@img/sharp-libvips-linux-riscv64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fa7dd2c5433945143e886736f323d34568a1815de5755ea55f247d83db2255"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-s390x: \u0060@img/sharp-libvips-linux-s390x\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3d0fc4342775e0cda07639d86e20b7ecd506920fa0b1a66c6f1ebfb1f8c2ab"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-x64: \u0060@img/sharp-libvips-linux-x64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e740d28a1384feb307d2f24d03cf2e2e13a5d6eda920a4040480f40df2e9d50b"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linuxmusl-arm64: \u0060@img/sharp-libvips-linuxmusl-arm64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ce0111811bc0c564efe3bc5758a9fe2ff77adefe8940d96c0e94f001dc6bb6"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linuxmusl-x64: \u0060@img/sharp-libvips-linuxmusl-x64\u0060 1.2.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91fe0a042e1c39cd9d87efaed4be891aa907345e587e25c7d6b01efdaaffd89"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-wasm32: \u0060@img/sharp-wasm32\u0060 0.34.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later AND MIT\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"1135ffbb448d71e8cb7f5d4d9fb10acf52d978f9eb537a0cd1f2166ada470428"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-arm64: \u0060@img/sharp-win32-arm64\u0060 0.34.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7501b1efe547a916924b31662388631addbf15548a0d166cc082f57b0eb7a93d"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-ia32: \u0060@img/sharp-win32-ia32\u0060 0.34.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e073ff938556e3b1cdba3c54fe725620ac7ffe9e735802eeadb3dcc853d57"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-x64: \u0060@img/sharp-win32-x64\u0060 0.34.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/pnpm-lock.yaml"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"376605ff2c96456f54476e6225693261afc28ecb15a09757b469cf8cfd84bf3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingStudioWindow.swift: Sources/BetterShot/RecordingStudioWindow.swift changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in StudioInspector.inspectorContent at line 2923. 12 of those changes were fix/bug commits, and the other 25 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingStudioWindow.swift\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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":2923}}}],"partialFingerprints":{"codehealthFindingId/v1":"7406df9fbe98afe7f527404f2498fc8e5585e1a63b4b1c6b3e422a30f3cd3dcd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/AnnotationEditorWindow.swift: Sources/BetterShot/AnnotationEditorWindow.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AnnotationEditorWindow.performShortcut at line 145. 8 of those changes were fix/bug commits, 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/AnnotationEditorWindow.swift\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":"Sources/BetterShot/AnnotationEditorWindow.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"184638c26e8d5e747e9722495f71865fca952d3e0d159e6f944cf4c248fcd716"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Preview/PreviewOverlay.swift: Sources/Preview/PreviewOverlay.swift changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PreviewCardView.body at line 566. 23 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Preview/PreviewOverlay.swift\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":"Sources/Preview/PreviewOverlay.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"73399b9687b6f51922dc8a7259c84adbc27347493c9d4d916b27e3dd8bbddcbe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Capture/CaptureOrchestrator.swift: Sources/Capture/CaptureOrchestrator.swift changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CaptureOrchestrator.processCapturedImage at line 190. 10 of those changes were fix/bug commits, and the other 17 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Capture/CaptureOrchestrator.swift\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":"Sources/Capture/CaptureOrchestrator.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67a7784cd002a9a3ac29804a1e3931abfbd03b0d4d2b5d195795ae540da1d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingStudioModel.swift: Sources/BetterShot/RecordingStudioModel.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in RecordingStudioModel.load at line 264. 9 of those changes were fix/bug commits, and the other 15 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingStudioModel.swift\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":"Sources/BetterShot/RecordingStudioModel.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ad8d3b77047fdd162ed02a871fcd57c1a7d6b1768eb5c534dc3f66a59e5e91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingStudioExporter.swift: Sources/BetterShot/RecordingStudioExporter.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in StudioFrameCompositor.composedImage at line 838. 5 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingStudioExporter.swift\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":"Sources/BetterShot/RecordingStudioExporter.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf538420d248b5a46781af57a2f37b3f8a5c510ffead33402e1969c61bf075d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Services/ShortcutActions.swift: Sources/Services/ShortcutActions.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ShortcutService.performGlobal at line 5. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Services/ShortcutActions.swift\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":"Sources/Services/ShortcutActions.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ebd80e0a36b48bc8685afe280728e6918151cf1e1787b34b698d543a168e19"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Capture/ScrollCaptureController.swift: Sources/Capture/ScrollCaptureController.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ScrollCaptureController.process at line 192. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Capture/ScrollCaptureController.swift\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":"Sources/Capture/ScrollCaptureController.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0469187fc6e4cf23bf0a786a842805bedafa63689761fd8ac8035c5562eaf393"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/EditorChrome.swift: Sources/BetterShot/EditorChrome.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in EditorButtonStyle.makeBody at line 50. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/EditorChrome.swift\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":"Sources/BetterShot/EditorChrome.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d245fb7a6073661e3cbdef3eaeb21acde57235baae6ef2318fd7a3037a394adc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Capture/RegionSelectionOverlay.swift: Sources/Capture/RegionSelectionOverlay.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SelectionView.cursor at line 385. 2 of those changes were fix/bug commits, and the other 9 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Capture/RegionSelectionOverlay.swift\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":"Sources/Capture/RegionSelectionOverlay.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"075d1211035f96a4528131015c3b395088451ff13b26eb7eed27cb34fa4a1f79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingStudioStyle.swift: Sources/BetterShot/RecordingStudioStyle.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in RecordingStudioLayout.make at line 457. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingStudioStyle.swift\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":"Sources/BetterShot/RecordingStudioStyle.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"098b55ae708cd5d2c3fb0c1662b178476e6d3a2a1bdb2cd80d16f13546de1067"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingSessionRenderer.swift: Sources/BetterShot/RecordingSessionRenderer.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in RecordingSessionRenderer.ensureDeliverable at line 29. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingSessionRenderer.swift\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":"Sources/BetterShot/RecordingSessionRenderer.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6140322f71da016cd2519c3c2cf9b55f5a9e32ab2f368128c067992f6faf88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Settings/MediaGallery.swift: Sources/Settings/MediaGallery.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MediaGalleryContent.body at line 205. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Settings/MediaGallery.swift\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":"Sources/Settings/MediaGallery.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49430a82cbace18b447deece42e5a2fe826ea71ac86a6d3489d950c9d3a8851"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/RecordingPointerArtworkCapture.swift: Sources/BetterShot/RecordingPointerArtworkCapture.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PointerArtworkCapture.styledArtwork at line 16. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingPointerArtworkCapture.swift\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":"Sources/BetterShot/RecordingPointerArtworkCapture.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5149db91f923b0ed31e3456a209254a2f6fd2f2d9a331d0fef238197715f3ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/Recording3DInspector.swift: Sources/BetterShot/Recording3DInspector.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Recording3DInspector.body at line 17. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/Recording3DInspector.swift\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":"Sources/BetterShot/Recording3DInspector.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17f9ebd30ee7adce30c1ed0c31d5d631890b20844a7d9b06ec1889a44dd8ae1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/BetterShot/AnnotationRenderer.swift: Sources/BetterShot/AnnotationRenderer.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in AnnotationRenderer.render at line 92. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/AnnotationRenderer.swift\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":"Sources/BetterShot/AnnotationRenderer.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b988f78055f959c2249fdf32d88baa9b9685df7d542ee0cbe3e479e84bb1f7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bettershot-landing/components/share/share-view.tsx: bettershot-landing/components/share/share-view.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in share-view.ShareView at line 18. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- bettershot-landing/components/share/share-view.tsx\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":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e2527500498404bf993740c24baecaddb461f65dc1ba581d0b9bd3f99f83a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: bettershot-landing/components/share/image-viewer.tsx: bettershot-landing/components/share/image-viewer.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in image-viewer.ImageViewer at line 25. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- bettershot-landing/components/share/image-viewer.tsx\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":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f9199cbb5278f2d3825c71db1801ed92f1cefd8bfb59ef1d5b174dcc8d94d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/History/HistoryStore.swift: Sources/History/HistoryStore.swift changed 16 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is HistoryStore.decodeThumbnail at line 193), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: keep a capture\u0027s format in its library name\u201D; \u201Cfix: close naming gaps from the second review\u201D; \u201Cfix: store a capture\u0027s name on its record so storage details never rename it\u201D; \u201Cfix: name a capture once, when it is taken, instead of guessing at save time\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/History/HistoryStore.swift\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":"Sources/History/HistoryStore.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b221e1d8ce0b057bea50fb3c11baf8ed0292a95204ec4489346bcec1b8a3a29f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/BetterShot/BetterShotPreferences.swift: Sources/BetterShot/BetterShotPreferences.swift changed 15 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is ScreenshotFileActions.saveCapture at line 337), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve capture names and safely publish video saves\u201D; \u201Cfix: apply filename template to saved screenshots\u201D; \u201Cfix: close naming gaps from the second review\u201D; \u201Cfix: store a capture\u0027s name on its record so storage details never rename it\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/BetterShotPreferences.swift\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":"Sources/BetterShot/BetterShotPreferences.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7ed61af5294e6c21b4838e005d6c7e57b7f81ca911a84cac932b6f0df2ec9e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/BetterShot/ScreenshotFileNaming.swift: Sources/BetterShot/ScreenshotFileNaming.swift changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ScreenshotFileNaming.value at line 211), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: close naming gaps from the second review\u201D; \u201Cfix: name a capture once, when it is taken, instead of guessing at save time\u201D; \u201Cfix: treat .preview/.raw companions of working files as scratch names\u201D; \u201Cfix: name clipboard files and deck saves from the file name template\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/ScreenshotFileNaming.swift\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":"Sources/BetterShot/ScreenshotFileNaming.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7398cbc6964c7eee05f3a166deef1ece3679fcad10a582b78cfa174a94e782"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Preview/DeckStaging.swift: Sources/Preview/DeckStaging.swift changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is DeckStaging.promote at line 58), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: keep a capture\u0027s format in its library name\u201D; \u201Cfix: close naming gaps from the second review\u201D; \u201Cfix: store a capture\u0027s name on its record so storage details never rename it\u201D; \u201Cfix: name a capture once, when it is taken, instead of guessing at save time\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Preview/DeckStaging.swift\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":"Sources/Preview/DeckStaging.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeda532184a750ed2e2633403ea88a8614b7c33e9d4c4e3509df75b74eaa49dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Capture/ScrollCaptureSessionPresenter.swift: Sources/Capture/ScrollCaptureSessionPresenter.swift changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ScrollCaptureSessionPresenter.capture at line 33), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: port MacShot scrolling capture engine and bar\u201D; \u201CFix scrolling capture with MacShot registration and auto-scroll\u201D; \u201Cfix: keep scrolling capture in step with fast scrolling and flag lost tracking\u201D; \u201Cfix: keep scrolling capture manual\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/Capture/ScrollCaptureSessionPresenter.swift\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":"Sources/Capture/ScrollCaptureSessionPresenter.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3aef5e1241db2fdb0cdab8311015be9bc6d14399d048223e0f4172466666f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/BetterShot/RecordingDeliverable.swift: Sources/BetterShot/RecordingDeliverable.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is RecordingDeliverable.save at line 36), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: close naming gaps from the second review\u201D; \u201Cfix: name a recording once, when it is recorded\u201D; \u201Cfix: save finished recordings to the configured folder\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/RecordingDeliverable.swift\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":"Sources/BetterShot/RecordingDeliverable.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcad2c26df98cf54b1eb75a953cdf77e33f8501e9d18521114f0c55a3dff6d02"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/BetterShot/ViewModifiers.swift: Sources/BetterShot/ViewModifiers.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is EditorFullScreenModifier.enterFullScreenIfReady at line 304), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: open editors windowed by default and bump to 0.5.7\u201D; \u201Cfix: restore editor fullscreen and polish Scenes for 0.5.5\u201D; \u201Cfix: restore editor full screen and menu tray capture handoff\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/ViewModifiers.swift\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":"Sources/BetterShot/ViewModifiers.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2696a2e30cd66bdd8b82ab20fbd73a36dfdfa1e13915be27c63a256eaf6d3369"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/BetterShot/VideoFileActions.swift: Sources/BetterShot/VideoFileActions.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is VideoFileActions.remuxTarget at line 141), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve capture names and safely publish video saves\u201D; \u201Cfix: name clipboard files and deck saves from the file name template\u201D; \u201Cfix: detect missing recording on copy, keep card open and toast on the card\u0027s screen\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 23:52:33 \u002B05:30\u0027 --until=\u00272026-10-24 23:52:33 \u002B05:30\u0027 --full-history --no-merges -- Sources/BetterShot/VideoFileActions.swift\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":"Sources/BetterShot/VideoFileActions.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d7d406aaabdeade78d6b9b6e00a1ca4c59fb107d410bdcdbc88c8a394c32aa"}},{"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 \u0060BetterShot.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"BetterShot.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c3e3dbd5720812239a2389886813879407cb855ca6abe40768568e168530da"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (54229 LoC, 636 module-visible types across 11 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"608500251efbf15bac57e1d8971ac93bd466c581ff7c1ff5a6ed812a6f98f862"},"properties":{"commitSha":"42a7781c2a72e595d39b7dae19038aba0a930983"}},{"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":"ee6fe4db683eeb90935ad3bd5499654aacf9bc1cb68e47df1458236b0297ab31"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96c664d1300b42a5758232bad5385879d8c7db11d283a2699a84ef1b39f1321c"},"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"934b0ef2af33b86af2c7160392faf49984fbcc9bba55d5c64d40b5c42723c170"},"properties":{"dependency":{"package":"loader-utils","version":"2.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"abea10311b4009be66b92db50a5134ab8849419c4ea48736981f6810177f1e18"},"properties":{"dependency":{"package":"next","version":"15.4.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66bbc6bc998d89bca3a01403b9a54bfd33122310ab86887eba7983a26a85ba3f"},"properties":{"dependency":{"package":"extract-zip","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7942e173d63287c3125da7b3828128e0558baf6fdc2cf9c63fbf1e696a2289cb"},"properties":{"dependency":{"package":"postcss","version":"8.5.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90520332752761f59d266aacdc8b1e4f767087b4e815550a8aa999aa95bbe262"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7bd8e5cc443d7c96d609998282ff8ef2730b7faecaa4e6a965b84aa79608c13a"},"properties":{"dependency":{"package":"ws","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e1b9e1fe4afbfe17b28d50a5fce2d49b6e3cae87737b0ec9d38dd2e81103a3a8"},"properties":{"dependency":{"package":"zod","version":"4.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c2701bebf5daafc9c9a6bffeb3bcfcd5d2833535e2889b113bd258916935535"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cac6e066cebc165526132b3489f14a2a0a63d2896d17731b1bb2077d0248d7f7"},"properties":{"dependency":{"package":"browserslist","version":"4.28.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1805609abe6dc413cb835e92b9147ccf90c37ffdfbccc34d1e6b475f83fd71d"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7902ced80df376e97d03856b9fddeb3426205cc6f87c256a9f54cb2bacec94e2"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d278cc0bf233bbbe4f3ed9cf5ebe7544fd0bcf354ce3769ac0084a4067a0a0b"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"bettershot-landing/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb787214ebf07d6ad7d3fbed87a2d91648807616c4a7322eaf3d77f393118f58"},"properties":{"dependency":{"package":"postcss","version":"8.5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"bettershot-landing/package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"42f5a3777ca76918680c94f253591de06a3c1e2e825db98d7f787f6168cc468a"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"bettershot-landing/media/native/prepare-demos.mjs","line":10}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"afb05f7209ffe58b1072c4a5efdb3aaaf8576180a27bf05db667d4138f0a7d3e"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c1135855afd0837e08e01e82824dd64d84925432016a853a49667875cee9b62"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a2f7e567e3a115b1a3d781bdb1e55c78bf3021d57504717a88b3ccee2fee301"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.9.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: PreferencesView.swift \u2192 BetterShotApp.swift, BetterShotDelegate.swift, ScreenshotHistoryStore.swift, CaptureOrchestrator.swift, ScreenCapture.swift: \u0060Sources/Settings/PreferencesView.swift\u0060 changes together with 5 other files \u2014 \u0060Sources/App/BetterShotApp.swift\u0060, \u0060Sources/App/BetterShotDelegate.swift\u0060, \u0060Sources/BetterShot/ScreenshotHistoryStore.swift\u0060, \u0060Sources/Capture/CaptureOrchestrator.swift\u0060, \u0060Sources/Capture/ScreenCapture.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Settings/PreferencesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9918816d5cfa650ba3dd4ccd0068723573550b9a42cd15b0a692b63b12a038f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: layout.tsx \u2194 page.tsx: \u0060bettershot-landing/app/layout.tsx\u0060 and \u0060bettershot-landing/app/page.tsx\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00603fb63868\u0060 docs: correct minimum macOS requirement to 14; \u0060b9e08b5f\u0060 refactor: update landing, download, blog pages and global styles, rem\u2026; \u0060f29513cc\u0060 feat: add editor demo component and dynamic OpenGraph/Twitter images \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"049183cb3ebd578f543765f092d906f24850be3dd0b457d403803f54cfb107b9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BetterShotApp.swift \u2194 MenuBarContentView.swift: \u0060Sources/App/BetterShotApp.swift\u0060 and \u0060Sources/Views/MenuBarContentView.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \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). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006087c95b06\u0060 Remove notch toast notifications and keep action feedback inline; \u006060b019ca\u0060 fix: restore editor full screen and menu tray capture handoff; \u00606c89b175\u0060 refactor: replace MenuBarExtra with popover controller and add toast,\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/App/BetterShotApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a728c9745713dd98aa3422f4637a9101014d1e1432c512f328a2d9eeb69e913"}},{"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":"171a5915161e926e35d9f9302156f7a2c57d16c96d5bdd1af3f21e2d4308269b"},"taxa":[{"id":"CICD-SEC-5","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":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. Add a \u003Ctrack kind=\u0022captions\u0022\u003E pointing at a WebVTT file for this video (or confirm captions are provided another way)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/demo-gallery.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d62b5926d7e5d624adde620411814340b405756a6b2698494386f1b3c1fd1ed"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"585f296fff7f46837468aa2fba45020181879608db22cca161bdfc2e98b8181d"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/globe.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a042ae7492203f7f33ea921fe7f988dbb76d872e447bb51bf4f6090dfe228a"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/pixelcards.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d42662831d975d2069874d2bd50bf75ff5de460cced25c378e8cbb247ebcd7"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control named only by title on \u003Cvideo\u003E: This \u003Cvideo\u003E carries a click handler, which makes it a control, and its only name is a title attribute. A plain element maps to role=\u0022generic\u0022, which does not support a name from the author, so the title is announced as nothing at all \u2014 it is a mouse-only tooltip, unreachable on touch. Give it role=\u0022button\u0022 (which it needs anyway to be operable) so the title becomes a real name, or add an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"763313e9140129130ca8d17e34200ef3d3ea684d4a5ce06acfa4393323abda3d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/changelog/page.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"373aa5f4107d1d246ebbf57614eb5c32a70b92b4690a09bbe65608db4105b9b2"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Declare it the way this router does \u2014 Next App Router \u0060export const metadata = { title }\u0060, React Router/Remix \u0060export function meta\u0060, TanStack Start \u0060head\u0060, or a Helmet/Head component."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/layout.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec43d762ff01e85649ae93c78557e81c3cebfc831fed6d5fb2f2c9399ef70506"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds pointerdown, pointerup, pointermove and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ac2fbe6eb8eaeb27d727582a5e77dff15deab974b2a87a127c8fe22e0c9a60"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cvideo\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"823d2ff743008355df96c9a6e6811b93a1c5024db50bc8d790034a05e0e86fa7"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/following-pointer.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9402739e079c50f209e1b5cb7397c5b62b0af833a725196debb48870953572d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/hero-video-dialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc6071bc639af12b3b2e857b6451afbbe65eac2bd59a3a276e1d5e6df7c766a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f68dfaaf206e45017ad53118f42a9ea847485b4dee04b34e9d77bee12c88836"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"410744e8dbbcf47b9cf6b06a757e84a98ea936e85b9e0f8871ce40bd078ecea4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7cb534dd3cc79a9860d111964ac8a936d6703591b794d4623a012b8cd8c7ff"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1febd569ff08c17177b047988d35948821406ddd41c63c1d6612c76d524e9d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef11453d69c1750342fb0a46807c75b5128651d7ac65a713a43986db75d7177"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"14197b6fec14eed7350ae1b71e2a6075acba71adedb342b9edd7bd4293d5d509"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe62c4d1b6d988be99f8373e602fc0dbade6519c0252bb14f8c36d22aa5756a7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/not-found.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83dd6db86b89fe0d87fc788b9ae300c1b0c63b2787c5a8a857ced410db27ef5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/copy-command.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1103976f6f3a4850a5e7b4514c05b5ca86511a6df91c1d0f1813389e155947f6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/download-link.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"960d7983899435d69e6fd668e34f820c6e40896a278db95ec9595dd35e04e391"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Csummary\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/home/faq.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e804343c4c93cd886d381c53a53af8f1b62e90f99079114dc722f82bfdab33f8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ca\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/site-footer.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c022b0b9606b7d6aabc269f7aa35ea6289438344b150d5b05a14c102c399db8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/input.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c9b0fa08a96985fdc09945088a48742fc70d4a263eea9c68f225cd7a564922"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/textarea.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf358df844da312eda214f30788bf585688c55bfd73285af1b07e9424c5f93a"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060bettershot-landing\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 CodeQL\u0027s Swift pack (Swift/Xcode) (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/build.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060bettershot-landing/media/remotion/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":"bettershot-landing/media/remotion/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ef4ff57f6d7df3a522df872a75546978f1e9c0b62dd2f6d59845f848e88df"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060installUpdate\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Services/AppUpdater.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"19451e5a46be92a25295c54173530341d4777701d51148d7f1ba70d2bbc1fd53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (12 clone groups): 12 duplicated blocks under bettershot-landing/app/blog/ have copies in at least two of the sibling directories bettershot-0-5-2, cleanshot-x-alternative, cleanshot-x-capcut-loom-alternative, loom-alternative \u2014 10 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 12 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 12 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 12 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5507d1e6a4531c17c30fcb24b26a7b89e7a0939ab3ccbf82b1f6f1e53cf93c41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (116 lines \u00D7 2 locations): bettershot-landing/components/ui/context-menu.tsx:110 \u00B7 bettershot-landing/components/ui/menubar.tsx:87 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/context-menu.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04e3738d2f0062da4ae783ed45567802da2845ac1c179e171ce546e06cea08a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (108 matched lines \u00D7 2 locations): bettershot-landing/components/ui/item.tsx:8 \u00B7 bettershot-landing/components/ui/sidebar.tsx:346 \u2014 the two spans are one implementation copied and then locally edited \u2014 394 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/item.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"263dbd65b1a1bed5a60fd957244bc224869c1d2fb650fd0214d2f0cf2925765e"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (103 identical lines \u00D7 2 files): bettershot-landing/components/ui/use-toast.ts:4 \u00B7 bettershot-landing/hooks/use-toast.ts:4 \u2014 these 2 files are line-for-line copies of one another \u2014 103 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/use-toast.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"96213360d2c899877c7c0449af8a858b90f755bda467c46953747642103391cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (96 lines \u00D7 2 locations): bettershot-landing/components/ui/dropdown-menu.tsx:131 \u00B7 bettershot-landing/components/ui/menubar.tsx:149 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/dropdown-menu.tsx"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea18e33cc96f09721a1d4ad362893dda2e722a31c3ea6de8f8c7d306076a7ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 3 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:445 \u00B7 bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx:433 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:426 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c436617db43d280b8305ae6020ad69f4a9ba52ca273edb804ab09ff8ad44ced"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 4 locations): bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:9 \u00B7 bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:9 \u00B7 bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx:9 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:9 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f88aa3e0d510abbdec755f9e569232d5f08ca481b7607cc00cf84ed4cb051e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): bettershot-landing/components/ui/alert-dialog.tsx:61 \u00B7 bettershot-landing/components/ui/dialog.tsx:78 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"69baf17a3cc56ad37e00c5a14b141c29d77624bc36c3224e5c4494eddd6ac3ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): bettershot-landing/components/ui/avatar.tsx:8 \u00B7 bettershot-landing/components/ui/tabs.tsx:8 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/avatar.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc65b489c297c0ca2982eeb496b832eae3e7ba62265544cf845cab949a7c9702"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): bettershot-landing/components/ui/dialog.tsx:9 \u00B7 bettershot-landing/components/ui/sheet.tsx:9 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/dialog.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"609706b8f4217caddfd53884ec155d1fe00ea10eb4e1414697b20804cfed69c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:193 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:293 \u2014 the two spans are one implementation copied and then locally edited \u2014 304 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"555dee9f700d8d50ec857be850d60ed73249d0f2a785bfcc59102f9c2e0f2ff5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): bettershot-landing/app/privacy/page.tsx:90 \u00B7 bettershot-landing/app/terms/page.tsx:98 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/privacy/page.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"080867e442c501f6dbb93f64f93d4af0844f5b98f8f3dd5fec8cfe3c1f52ad8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): bettershot-landing/components/ui/drawer.tsx:88 \u00B7 bettershot-landing/components/ui/sheet.tsx:94 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/drawer.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"880aa0ec9cb0faa1286f74774c7d14bea4bdeb0218fd2d663b7f1ef2395fe3f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:62 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:66 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"19575d9c397c76c74d7300489a547f29ae4c5f1f27d07497ac3d38ed4b92dfe6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:425 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:388 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"5993162119cf93bc46b3657772489acb545c7d3444134d966ffb06a445147d8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3 locations): bettershot-landing/components/ui/context-menu.tsx:54 \u00B7 bettershot-landing/components/ui/dropdown-menu.tsx:199 \u00B7 bettershot-landing/components/ui/menubar.tsx:217 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/context-menu.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf0f2839d6e67bf9def4b3d32385bb3df027a07488ff6092068b3fc08bba495"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:66 \u00B7 bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx:67 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb41f53ea5e15c5ddf8dea9cb335ae998fbc4e077c499c60e62fcf52bd5770ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:397 \u00B7 bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx:385 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bde341d58891a6574ed3b912d7e05e10b0288b7782d8ec6e18849917d500776"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): bettershot-landing/components/ui/carousel.tsx:174 \u00B7 bettershot-landing/components/ui/carousel.tsx:204 \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":"bettershot-landing/components/ui/carousel.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6f5c2ea1514ace16ab8603892c10287d192f6ff36023aae194846dd29f5f0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): bettershot-landing/components/ui/empty.tsx:37 \u00B7 bettershot-landing/components/ui/item.tsx:82 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/empty.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"847d36c6d603f9e834558332303e607fa629dc4f6ca6f81d4151b54874f8bb90"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): bettershot-landing/components/share/image-viewer.tsx:181 \u00B7 bettershot-landing/components/share/video-player.tsx:319 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/image-viewer.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b7379d4ae4dd09b736a13bd23e41f4732827b4bbea72892b1df16c5bf0f276"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5 locations): bettershot-landing/components/ui/command.tsx:153 \u00B7 bettershot-landing/components/ui/context-menu.tsx:215 \u00B7 bettershot-landing/components/ui/empty.tsx:79 \u00B7 bettershot-landing/components/ui/input-group.tsx:141 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/command.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d91f1d6a6f4ede2b017472d5b72aef540a56c6a377853c908b1ef7742477823"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): bettershot-landing/components/ui/alert-dialog.tsx:73 \u00B7 bettershot-landing/components/ui/dialog.tsx:87 \u00B7 bettershot-landing/components/ui/field.tsx:91 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"28aaf639edf5c6c65bfbc65a60e24545e9c5a4aa4b4757d8863e52cbbba522c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 9 locations): bettershot-landing/components/ui/alert-dialog.tsx:96 \u00B7 bettershot-landing/components/ui/avatar.tsx:25 \u00B7 bettershot-landing/components/ui/command.tsx:130 \u00B7 bettershot-landing/components/ui/dialog.tsx:107 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies are spread across 9 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"816e8d5544f3f91bdd43b790055b29a34291c14b9e7e33d1f5f1a8dd6dd3e1af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 7 locations): bettershot-landing/components/ui/alert-dialog.tsx:86 \u00B7 bettershot-landing/components/ui/avatar.tsx:15 \u00B7 bettershot-landing/components/ui/context-menu.tsx:198 \u00B7 bettershot-landing/components/ui/dialog.tsx:97 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 7 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acdb3e7065974ec6c7e9b2bae97b02e4988aa6b4b9a431bd965de0bfbad2e1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 14 locations): bettershot-landing/components/ui/alert-dialog.tsx:74 \u00B7 bettershot-landing/components/ui/alert.tsx:32 \u00B7 bettershot-landing/components/ui/card.tsx:46 \u00B7 bettershot-landing/components/ui/dialog.tsx:88 \u00B7 \u002B10 more site(s) not listed \u2014 the 14 copies are spread across 11 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81f79bb8155aaa4e91d024fbb131b2ffafa7d771a14b61fb115e45186467cef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 11 locations): bettershot-landing/components/ui/alert.tsx:37 \u00B7 bettershot-landing/components/ui/breadcrumb.tsx:11 \u00B7 bettershot-landing/components/ui/card.tsx:5 \u00B7 bettershot-landing/components/ui/card.tsx:51 \u00B7 \u002B7 more site(s) not listed \u2014 the 11 copies are spread across 8 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"deabd39370cbb99981ab03a57ebe786b739a4418cf9bf417917f2143e74062b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): bettershot-landing/components/ui/select.tsx:138 \u00B7 bettershot-landing/components/ui/select.tsx:156 \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":"bettershot-landing/components/ui/select.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db6dab47b730513970eb04fcf6b18feaec00205a1ae27215326fba375155f62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): bettershot-landing/components/ui/use-mobile.tsx:5 \u00B7 bettershot-landing/hooks/use-mobile.ts:5 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/use-mobile.tsx"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7be75ce65199f4eea64f49d182b3afb5659b5c3442913f9fd6bec6f61d8c9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 10 locations): bettershot-landing/components/ui/breadcrumb.tsx:19 \u00B7 bettershot-landing/components/ui/card.tsx:26 \u00B7 bettershot-landing/components/ui/card.tsx:59 \u00B7 bettershot-landing/components/ui/drawer.tsx:83 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 9 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/breadcrumb.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6cfdbb8ee49245c0d7477d991ebe2c28f2dfefa23e32351ddcd19d17109f51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): bettershot-landing/components/ui/button-group.tsx:26 \u00B7 bettershot-landing/components/ui/field.tsx:83 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/button-group.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f350e76d20a73a328554cdfabdbc951bb84b86167bddb9675c06e39876ae39e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:243 \u00B7 bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:193 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:293 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce506fa1f5ed265d732212c9da7ac2187d73a0b48b41929cedf705907073cce3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): bettershot-landing/components/copy-command.tsx:8 \u00B7 bettershot-landing/components/share/share-view.tsx:157 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/copy-command.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fc2a25250ea0c1bf3ce3bd9d922ebe8e50343edc5d8eee4b50dc04f2073544"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): bettershot-landing/components/download-dropdown.tsx:65 \u00B7 bettershot-landing/components/download-dropdown.tsx:75 \u00B7 bettershot-landing/components/download-dropdown.tsx:85 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/download-dropdown.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67f13c5a0cd8084138ce4bde1d3c5c491a5e3b87af8a1d6b52719d37c8ce003"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): bettershot-landing/components/ui/accordion.tsx:1 \u00B7 bettershot-landing/components/ui/alert-dialog.tsx:1 \u00B7 bettershot-landing/components/ui/dialog.tsx:1 \u00B7 bettershot-landing/components/ui/sheet.tsx:1 \u2014 the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/accordion.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfb3454b4e49dd1b78066ecb62b3d847cb574b277fca557b2763883645bcfba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:225 \u00B7 bettershot-landing/app/blog/bettershot-0-5-2/page.tsx:308 \u00B7 bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:163 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:266 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a173fd64f16d763f6b8ce1726a6a193418a6b694c341bedf7853df91b3d407a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:161 \u00B7 bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:299 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:264 \u00B7 bettershot-landing/app/blog/loom-alternative/page.tsx:302 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffa4ec534448baad05358557dcf731e4558eb311057f2bfb85d465d79e528e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx:290 \u00B7 bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx:276 \u00B7 bettershot-landing/app/page.tsx:116 \u00B7 bettershot-landing/app/page.tsx:181 \u2014 the 4 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba1d14f8307c03402c1474bb1b9cc4916fa3f2e902ff73e9bff5aa33bb4b19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9 locations): bettershot-landing/components/ui/alert-dialog.tsx:6 \u00B7 bettershot-landing/components/ui/context-menu.tsx:5 \u00B7 bettershot-landing/components/ui/dialog.tsx:5 \u00B7 bettershot-landing/components/ui/drawer.tsx:4 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies are spread across 9 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b09dc52bccf71fad28a06ec4e89d35bd014dd3dc8f2a46ecc3db95eaad9adf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10 locations): bettershot-landing/components/ui/alert-dialog.tsx:7 \u00B7 bettershot-landing/components/ui/collapsible.tsx:3 \u00B7 bettershot-landing/components/ui/context-menu.tsx:7 \u00B7 bettershot-landing/components/ui/dialog.tsx:7 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 10 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"918e7c8dda90c4008b4c29deb58180efa93722cddc8e22a75a017ad659a55aad"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: bettershot-landing/components/copy-command.tsx:4 imports @phosphor-icons/react/dist/ssr, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/copy-command.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc57306dccbc31d13916cdbb596f8e4018fcb36dfb3ff439dc44e36613efe9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: bettershot-landing/components/download-dropdown.tsx:3 imports @phosphor-icons/react/dist/ssr, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/download-dropdown.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ba15857702ee1ceabde6928ba5f4e48e0ad700b40e93c65d3d2bfc75435119"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: bettershot-landing/components/home/faq.tsx:1 imports @phosphor-icons/react/dist/ssr, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/home/faq.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60319a38cfba2984d2a601fa4da3e0613b135091c54b8e28fa94d28a6b15299"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: bettershot-landing/components/share/share-view.tsx:5 imports @phosphor-icons/react/dist/ssr, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50eabddf23eb8de087ba989ac72e8402358acccbde8d35d6cb36fdf3a4578f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isBlockedHost (cyclomatic 21, cognitive 22): isBlockedHost has cyclomatic complexity 21 and cognitive complexity 22; 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":"bettershot-landing/lib/share.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0cda7d6b9abd79d78d91b7aa47ee019aff9a07e9cc12ecd3a864976fd47487"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VideoPlayer (cyclomatic 21, cognitive 17): VideoPlayer has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/video-player.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"158f553685163a5ed856fc31f6602b4e38a0572191f0e7fa08f133b40460b949"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getChangelog (cyclomatic 17, cognitive 25): getChangelog has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/changelog.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8067cf3c77ba8b9fbfb08ce44d205cda2ea19165f4ea71aa381808dbd594b371"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateMetadata (cyclomatic 17, cognitive 16): generateMetadata has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/s/[id]/page.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"355d9e77e1ae4c1a5ef35c3b39c131ae28bd215c0e87132fb162c64a2f4a60ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 12): (anonymous) has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/chart.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e410b6aba4f75a729e0f1b2d604e0c05f5da438194e414dc499531adda95cfd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ShareView (cyclomatic 16, cognitive 15): ShareView has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/share-view.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"838aba5c5e6151526a2ad0be0d3eddad5f6467e39378e45cc7547bde58261fb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getPayloadConfigFromPayload (cyclomatic 12, cognitive 11): getPayloadConfigFromPayload has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/chart.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c085968e40990e5bd7529b2f5dbd62f0d750a63be1c53ddc1d9fc2920925db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveShare (cyclomatic 12, cognitive 11): resolveShare has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/share.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a55e752e13021fc1d2caa5c5df95bd4c19a407324fdfb75b54e52e7452383d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Scrubber (cyclomatic 12, cognitive 10): Scrubber has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/scrubber.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a703773533fe58c5cf06fe29c734711e41eafabdf8aaa524151128b6f48d8c45"}},{"ruleId":"R3","level":"warning","message":{"text":"bettershot-landing/components/ui/sidebar.tsx: 672 lines of code: bettershot-landing/components/ui/sidebar.tsx has 672 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2898476b395a709a78f6ea0603b1ce6511b7aa54e5a9e418db582feb1591b953"}},{"ruleId":"R3","level":"warning","message":{"text":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx: 505 lines of code: bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx has 505 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd9a524c297d002e0d1008eef3104f1e0c3576cf08b497015fb6dddd4a121e1"}},{"ruleId":"R3","level":"warning","message":{"text":"bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx: 493 lines of code: bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx has 493 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2014bcfc4b91494b5f6966480ef8f59d76d799dcd191c0247a2c4c94ead6e9"}},{"ruleId":"R3","level":"warning","message":{"text":"bettershot-landing/app/blog/loom-alternative/page.tsx: 484 lines of code: bettershot-landing/app/blog/loom-alternative/page.tsx has 484 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7f0a1b0676a075aa5a91e108ce4b7ab84fce23c2cacf908cb5e32d277dff42"}},{"ruleId":"R3","level":"warning","message":{"text":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx: 481 lines of code: bettershot-landing/app/blog/bettershot-0-5-2/page.tsx has 481 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/bettershot-0-5-2/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee238bc804c524c6bb3efbbb15a734c9bbb591d769ae9f2e9f65fca57c102e4"}},{"ruleId":"R4","level":"warning","message":{"text":"Test Coverage: 0% of 129 production file(s) reachable from 0 test file(s) via the import graph \u2014 \u0027production\u0027 here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace\u0027s file count"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"64e0e3511eb969fb4720b196e7d3799e1714077217351c3c56a27b50e3e21220"}},{"ruleId":"R6","level":"warning","message":{"text":"No test or typecheck script: test \u2717 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \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":"53484d7d02bbf1aa1fb3d1163371a5b52fa0aa7301d11eed5ec2dc836c72924b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~726 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02010bd16ef6695ad5a4b145750fde406ef29a51a2797c0fa448f414a0034858"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~353 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/chart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75df053b9c408c22538c72046f5700b298a71ef9a929e43df300d468629c3f4d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~276 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/menubar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d68ad84b65a3dea458e46bb20e42a61d7bfec0e6eeb08e5f591962192505545"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~252 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/context-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25aac388588b8034ce6f403bfc09ab44219987601f50a621230aba761f48dc4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~244 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/field.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b027e6011b7d25c145e8875ab6d1d517aa78262ecdd956e11574c1a4341693a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~213 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/calendar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6b49be69d8239bad777dc14ca754353c72eba77e2e403793188358ef8c708c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~193 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/item.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07fc7ee62bb252358d10d70a0b2056f476f9740e160cb6364e0a6bfa538fa9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~191 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/use-toast.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c93423e20eecbb63895c80f47aa8e9ce5697c1cfd7094a6fbfc569a8b0f565a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~191 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/toaster.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/hooks/use-toast.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3963664de845a651390909a9d17a6cb9bd7188cc50e14663de3316d85fc23b44"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~185 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53a69a61901ea45aca632ee6cd2a4b2658b4c7f8e77a424081799e1005e2295"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~184 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/command.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1e104e1de81cf7fa3a8de0414dae984a73dfcf1ba0b482bec9f0011ec10e80"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~169 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/input-group.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3de97433747173a1542915210cfeedebf21e3486e638063e1833225227872f8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~167 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/form.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ea1884a1f51941473b98d11c5263af476d1c3e10d980b3763d9e05e929a110"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~166 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/navigation-menu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f033076d4f79b1ad45c0faad47fe9abe0df7376e8bff8df37008d44265331157"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~166 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/scramble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf8810f2abbb97762c8ca68be0a20ac0f914183d90ace2df97f2484e0d8575"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~163 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/hero-video-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de64c6d5c2b18378aa636fbec07cf62668c838fa3869fd27d872937b1bbda8b2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~157 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11af09d053bf291ee36c024f81b730f3679fbe2c19369adbb902af0e9b28a893"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~157 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/following-pointer-demo.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/following-pointer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c034b45fa424af528842ae3ff4945c451f8c313665e76425d4e9664990d7adb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~143 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/command.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b2f47de470fce9e9d18ccad2d4f0ae388c4f6b6fb1bbec06832690cff1207"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~139 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/sidebar.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/sheet.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4397a8a4b4e5683482e21785ae070a633eefed45b63cfdfb60b8eabc011698"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~135 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/drawer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd65716952e6e47662129601c5a72d78feff9de602a126ace0ec1b78341ccf5e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~129 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 3 in-repo import(s) from 3 other file(s) do name it (bettershot-landing/components/ui/toaster.tsx, bettershot-landing/components/ui/use-toast.ts, bettershot-landing/hooks/use-toast.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/toast.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5af84ba0782599c366603137f22355437f3577202398c380b162f249881c10"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~127 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/pagination.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bda6a8927cf30c800a5dc8efd3c30b1190b7a34d2163b48ae40111be9aacfef"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~116 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c7e35b8f054527be558e5174a6ca283b3333f9f7787baf0a32ef5391fe99df"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~109 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/breadcrumb.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cdb615b98a8d4a30a7d904c9fbe0c21bf68b7c1a7e7cdd893592cdbb4f4fe9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~104 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/empty.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114ecc3ba63a51535b1a5ad28d19c2bc866385e2fb4c7335a4443d9ee8cb6ea"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~92 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1282fd975ed4d149baee446b0d57438f9876bcd217647b5f4ba489e7dec4784b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~89 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/globe.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef60eb84c32e11072894a45b7068f1b7e16769ba21e78a5b6772f4d57d5283cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~83 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/button-group.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e65637f364f3e6e4c6b5aa100f68cb54a3ab066c15191382a726516e0fe7d2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~80 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/pixelcards.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55380e3eb4c6a96ee8030dd86af5f02d2a4694f083f2879b326398972bcd322"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~77 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/input-otp.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b692072974b8fc40a41a0e9ffed8513c55360c696ac9c2a65f3d0c301457d629"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~73 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/toggle-group.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da07795daa6cacefcea2a50bd895812d8afe54d3d9c871c5954061391d4b7bf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~72 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/scripts/check-product-pages.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cb8e2ebf1735576cc9ab23d4c204c7246768bedef5ccca6d7a58fc9b1eb813"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~69 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/count-up.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"572a55e835136c9003357fefc5d8e32d9950d9425170e5da91f032fd011cf505"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~66 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/accordion.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67d3852dbd721401f74103a99e3b24e0a78c63da36e3f621f47417197ea48e8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~66 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/alert.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ba98e2f24b73cfd85d4d1d79202c21fd7b982965398a1446335032702bba37"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~66 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd5a48d93bf2156c4d789917ffc1c5f05c4bea1212150267e3f9dcc98cd63b4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~63 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/slider.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"648747f57b831286b79e3fb0f2034cf1c98248a364ffd7c65640286cce4497d8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~61 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/sidebar.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/tooltip.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42430410eb05608c80eab73fef858799267678723ffbfb676ceabbd0869f65be"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~59 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/following-pointer-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70cd5f4b59c78b5321058bada212001c9330e5c6ef42fb5e2d14fd799863e84"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~58 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/scroll-area.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1335f832aeec1ec1aa868ebc67fd32dc23bb843117d67e52c9b8c565e93d3b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~56 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/resizable.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93695a3daff6e82005b84b6fab94845c60d64a752d907532bfd0904c44564127"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~53 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/avatar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfddfb4b332109dcba2ec017074268ad9d802f02b9ed0ac4c5c9f35ac18810cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~48 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/popover.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e820854a1f75fd22667c73f8ae851bd5bf5197660c601f71a6b4d96ba09a9fed"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~47 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/toggle-group.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/toggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5ebc1cc24a61794035ac2713c6235deec945af8bd67fb7cb415151b8399344"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~45 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/radio-group.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99dec6207d207f9c45360f68f3a054497d8a208bb41bd441b195c82e77c97ac"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~44 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/hover-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4652a03b93e07128d6f4574750faadec583b92745fdbbbb072018e1ad862116"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~42 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/pulse-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be4873f045c8dac7db9498044df291b98b83d61e75deb0ce054268fcc7f0297"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~35 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/toaster.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d7af1052b40a4ecb2e4f2de66a3b21100d7996680b324d88d8d7c2626a454a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~33 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/collapsible.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b806c44766ba12a633ddcb19b17460c5e10eb377a3d75a0688375814a50a94"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~32 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/checkbox.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31ba012ea7015827126334a19cbd75714a20115a6e589e48a5c05a882a14f7f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~31 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/progress.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb5b4634d050b93c030ea9cafece3b3a489dfdcfcfd15624d0e4e63a7286e64"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~31 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/switch.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41e0a728df8c69a4e900d135a195359fa3fce667aac882fbcf1f219347e8aa1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~29 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/home-badge.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/badge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8f7ce621f8d1b0aec818b9d3a60c346ed36db2d70cf01c1b3efa20452fe543"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~28 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/download-link.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb5d324aa5cc3cfeeab4f19653b4ef30f83e6653aa2cebc1e79e8b889dc55c5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~28 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/kbd.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9cb5bdcc338a7b1e7484176681cf8554e9c680844d86966ae0789d4743659b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~28 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 4 in-repo import(s) from 4 other file(s) do name it (bettershot-landing/components/ui/button-group.tsx, bettershot-landing/components/ui/field.tsx, bettershot-landing/components/ui/item.tsx and 1 more) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/separator.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffb298eb5877612543ae29eb335c1c395b8db4f25be0df86b0835ae902a1661"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~25 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/sonner.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d91bd9ccde1ff9d9243c2c7f6b956c9625963d3d8d326e7c829a3ac7b8a01d6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~24 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (bettershot-landing/components/ui/field.tsx, bettershot-landing/components/ui/form.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/label.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eea334860a95ddffcc797908000f9e882c14864313b8eb13238366d6390f2c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~21 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (bettershot-landing/components/ui/input-group.tsx, bettershot-landing/components/ui/sidebar.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/input.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c3b0029f88bb32ea53e0fe7c040c84c596344a07fd4583ccbb0870e31c91b5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~19 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/use-mobile.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b999ff9dc26c5e1a29e2c9d47e9f4319dd6f4669d580ab9984656fbeb40a393f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~19 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/sidebar.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/hooks/use-mobile.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f76c66c282fbe6a41bf20457f9e262d8d51afcd4e15a9f55a765a9f154d40c4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~18 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/input-group.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/textarea.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1023bba396b087fba63efad55044a3254eb14de017b70906840cf0c3f9c7df9c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~16 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/spinner.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f040b41849fbd19be583b9ef6759222b57eeca607473aeaf7f34ab01ea54631f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/home-badge.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0a34841b99a60ddf73a124a5c3a2437d5a08a8c67d54243cb4c2b035215b67"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~13 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (bettershot-landing/components/ui/sidebar.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/skeleton.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d730a8c1c27c97fee700e252ec54c4d87bafa050e8123ba7d575c6b7af7e6392"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~11 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/theme-provider.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f4f8ff50f66b2f8cf97fb7542cc2f8299104ba69fbadd134f980bf17eacef3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~11 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/aspect-ratio.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e9690d76c8f076e70880fb4a0eb2301162fb196e7e5615a943c666f1f54474"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/load-script.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9606b4f5224987b8818d989505e24ebbee0a90db7aef9b683e5333948b24a24"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~5 LoC): no import path from any entry point (26 application, 2 tooling, 0 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/ui/gridbeam.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b740049a1437f664fa54273c14b73d35653e0f2c9e3152316a2be29d2e20ddc6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027PageHeader\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/section.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a47be810a09cdbf1325b3be1fd427ba56bc8d3b5b53a47a7c0e51873ed97b4"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027PlayerApi\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ff58af6875ac00f45149ec325a4489258b95fc16d1b379ea7176da7580e8ca"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027SHARE_MANIFEST_VERSION\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/share.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f0337f5bceb9c76f5ed35dc9dd1bee79b91dabaeed081f8b250d8a2f8d91c1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027encodeOrigin\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/share.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d770f6ba2434ef7a41add759afbd6fb2e968b5c1ee9560280797f22a642bb410"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027Code\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"413fdb7a24ce9a915b6067fdd4079f4715d80c4947f8fdb014b034b8a178735b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027A\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/blog/loom-alternative/page.tsx"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c3b9811c5f0f8001f7429bac2f4354a2fce5820a245ecfc61b6b5a91ddff9c"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027sharp\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/media/native/prepare-demos.mjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa868570c6defa57da9ef4b5ef496f94ac71b80a220e64d14619e48241c7046"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@hookform/resolvers\u0027: Declared in bettershot-landing/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dc626143aae3968fcb0054bf300805b330bc4cd46d63da178ebc29d66fa6d5cf"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@vercel/analytics\u0027: Declared in bettershot-landing/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"674c13e86747a6e341f6ab3ba5d0c3e79d2116ff7474ba4ac7e4b52bbb321979"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027date-fns\u0027: Declared in bettershot-landing/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1ed19b4613edf7c6b5d7bd8cc3aa30898a12fabe23686c91fedb9dd4318c2769"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tailwindcss-animate\u0027: Declared in bettershot-landing/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c4596162b4228cf20b760ae14dd471a2c9f9e1957d0fccb767ee2de53c0faae"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cloud.umami.is/script.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository. 2 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/app/layout.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4771cfbc57da677d41a430d73658035d4529512d9491b39de3845eed23e2180"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060t.id === toastId || toastId === undefined\u0060 appears character-identically in 2 files \u2014 bettershot-landing/components/ui/use-toast.ts, bettershot-landing/hooks/use-toast.ts. 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":"bettershot-landing/components/ui/use-toast.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b053118c7d04a253b623fdad6627cae2d363602c71e3d7a0e8245cca8b1c04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!model.isLoaded || model.isCroppingVideo || model.isEditingMasks\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/Recording3DInspector.swift, Sources/BetterShot/RecordingStudioWindow.swift. 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":"Sources/BetterShot/Recording3DInspector.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"994d46ce747c40d4861d5387dff5f76e737db4e8aefa95adcfeb9ad833b527ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.id == activePresetID \u0026\u0026 !$0.hasMissingWallpaper\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/AnnotationBackgroundPresetStore.swift, Sources/BetterShot/RecordingStudioStylePresetStore.swift. 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":"Sources/BetterShot/AnnotationBackgroundPresetStore.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2709d73edff8ac688b96f73a9399178f3fa44c6b49db0a4d163d31945a2575f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060availablePresets.isEmpty \u0026\u0026 missingPresets.isEmpty\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/AnnotationBackgroundPresetBar.swift, Sources/BetterShot/RecordingStudioStylePresetBar.swift. 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":"Sources/BetterShot/AnnotationBackgroundPresetBar.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9437f36c1faa255a8fd9dc0ee408c58cdc1a13cdf944d80bb0c64e51c522d14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flags.contains(.option) || (flags.contains(.command) \u0026\u0026 flags.contains(.shift))\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/AnnotationEditorModel.swift, Sources/BetterShot/RecordingStudioModel.swift. 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":"Sources/BetterShot/AnnotationEditorModel.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b472c7544546d5eff7f3f87abdf2997b4381a1d5d77af786826191ea28b259"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isClosed \u0026\u0026 (isFilled || hitInside) \u0026\u0026 pointInPolygon(point, vertices)\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/Geometry2d.swift, Sources/BetterShot/Shapes2d.swift. 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":"Sources/BetterShot/Geometry2d.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca40dad483b3f10f7a8d3a570e043c9a9a151a3c06aebca998d7a7e6cea560b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060manager.state == .recording || manager.state == .paused\u0060 appears character-identically in 2 files \u2014 Sources/BetterShot/RecordingBarPresenter.swift, Sources/Services/ShortcutActions.swift. 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":"Sources/BetterShot/RecordingBarPresenter.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd59f649a5f07991656a3f72cff7d02f57d9c8e3f4142bd2c6e7d8ebaa55b9ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type == .tapDisabledByTimeout || type == .tapDisabledByUserInput\u0060 appears character-identically in 3 files \u2014 Sources/BetterShot/RecordingKeystrokeCapture.swift, Sources/BetterShot/RecordingPointerCapture.swift, Sources/Services/ShortcutService.swift. 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":"Sources/BetterShot/RecordingKeystrokeCapture.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b95ce96c7e6997f4ba90fe8b9a6c4c897fa5f477b8f74cbb2893c0864e4a6a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/demo-gallery.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"34102b0eef17015db554ff84e6f0638ea5cf8a067b0e7dc52518a7421113e179"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/star-count.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3afd52c318c87034f8eacd951d8f713ba30f78cfdf34371c68fae0c114def6e"}},{"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":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"237111a15b29e216003eb34f41975e35b9f21e4e51cb0c26d95a36f7594b9225"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"af401a89eb5adbd71cb748adda3ba044cc5c22adf354464562d82f7af2cd2207"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"44367cfa5d86215a2a6e90a78480581f989d7190cf5cbeaa7b3e7ce9efc41a1b"}},{"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":"bettershot-landing/components/share/use-player.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"956532ee3f8d1535f412d0402d1275063dbc6e66a25e7161f8d371400544b5cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/Views/OnboardingView.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12396056525c53a2335bc1aeaead5c230d23fb94d1cfca0ed27c1eaa7fccea4"}},{"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":"Sources/Services/AppUpdater.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"325806e01bbff8ceba3ea93f53420fd1936da128f86db4b624704c8fa0caaeae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/Capture/CaptureOrchestrator.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"68594b0fa54037f9598fa3e311baf50d68708d5b93099635dd38c4379e82dc3a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/Capture/CaptureOrchestrator.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b270aba0ddae1e5df462fe8c00fa3aa96cb0aa00496bbbac5f775626d7483e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecdfc28fa5fec38792a80daeb4147358a00489dbbe9cf673768638b8e963abb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/AnnotationCanvas.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3467b764e084bceff4c8514ba2ca78fda30a95b3d502c1c32035e5574d8565"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/CloudUploader.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3288d312957262a4c419001ed0fec5135bf032fdfb179c13ac7f82e60d06000"}},{"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":"Sources/BetterShot/CloudUploader.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f87a0cd0e3dcea747da513844e9aa7afdf3cd70e2f015dd012640553a04988"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/CloudUploader.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d43424f86da2beb9eea74e95ddca94a8aa81ab515111cdef3037142b0f19749"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/RecordingStudioWindow.swift"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"491ea3a7a5a3820f613fbef8c80bcf484778d478b1786220bd45b227ad3ef008"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Sources/BetterShot/SmartRedactionRecognizer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfa1784871284287d00008c3c70d6c32bbfc7e87a2c0ae54381cd6d92d5f7cd"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.4 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 6 assertion(s) across the 14107 source line(s) of the 126 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: bettershot-landing/app/blog/bettershot-0-5-2/page.tsx (1), bettershot-landing/app/blog/cleanshot-x-alternative/page.tsx (1), bettershot-landing/app/blog/cleanshot-x-capcut-loom-alternative/page.tsx (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSignature\u0060 turns every thrown error into \u0060\u0022unknown\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/AnnotationWallpaperPreviewCache.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd99513a67353154655eec5da60f644be4a3a115d23fafab8939354bf7ac70d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060recognizeSensitiveRegions\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BetterShot/SmartRedactionRecognizer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2e3542f3cc4b2a29976cef188a68a04270968350975dc4db4a285a63c45977"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getContributors\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/components/social-proof.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"647161c558a8d6c685d56b906efaafa2780d00ea403d890580d2302e9e692b3f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getDownloadCount\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bettershot-landing/lib/downloads.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0aac113bfc1e0992f6ad56a0f59a7928f37a7113eb02aab7183d3c55d99129"}}],"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-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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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":23,"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."]}]}