{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"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":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CodexAppServerDriver.receiveNotificationOrRequest (cyclomatic 80): CodexAppServerDriver.receiveNotificationOrRequest has cyclomatic complexity 80 (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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef98a9c06c8fb88d764f6c231a97c749a71f7f488dc14d66a63e12900609df3"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.runQuestion (cyclomatic 76): KnowledgeRAGWorkspaceViewModel.runQuestion has cyclomatic complexity 76 (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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"67162c8e1fec47f51be6c8c00635aaeeac427341822d86f8ed025b5ee0123467"}},{"ruleId":"D1","level":"warning","message":{"text":"GRDBRepoRepository.makeListQuery (cyclomatic 75): GRDBRepoRepository.makeListQuery has cyclomatic complexity 75 (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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"f031e64d42ce46fd73022754390d317a6a3de8d50e2e9e13b831d313147e69b6"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekHarnessDriver.mapEvent (cyclomatic 63): DeepSeekHarnessDriver.mapEvent has cyclomatic complexity 63 (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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab50891c6f6c45d9ce33fa42fba0ba06cd6e5a4b2df63527991ac80b2c3d25a"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.reloadItems (cyclomatic 62): HomeViewModel.reloadItems has cyclomatic complexity 62 (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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2757}}}],"partialFingerprints":{"codehealthFindingId/v1":"5912d1f249e1d618af1d11e0b281bda1857fc7b04d700b303a676923ba5e00bd"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.update (cyclomatic 57): entry.update has cyclomatic complexity 57 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 13 belong to 4 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":"resources/follow-graph/entry.js"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1d641c8e4c1264a8b8977703d651bfa62dc65d18ebc8e3848b5e028f0dcf98"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze.analyze (cyclomatic 54): analyze.analyze has cyclomatic complexity 54 (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":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd3032494011be429de58c0196aad9ea8bdba8388fd7e7af0b591a6322394b8"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageSettingsTab.perform (cyclomatic 53): StorageSettingsTab.perform has cyclomatic complexity 53 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"92743c2780c014feda4d426d5b0a2539caeac5fca7b35b1638531fb213e241df"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.applyExecution (cyclomatic 49): KnowledgeRAGWorkspaceViewModel.applyExecution has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d16bf1753d39913df7de9ec6a9ace17f3404dd5510bcc8286d3f6379de4750e"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoSkillScanner.scan (cyclomatic 45): RepoSkillScanner.scan has cyclomatic complexity 45 (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":"Starcat/Core/Skills/RepoSkillScanner.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c1814461b47714bf5f5ab99c35a639831aad7781a1e11dbf564312655f4fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityViewModel.reload (cyclomatic 44): ActivityViewModel.reload 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fc7b11b17bd91dc44c0855e14b8a4c1b0686aee408d25c32a2eac3bea7a1af"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCollectionRuleSummary.appendAdvancedLines (cyclomatic 44): SmartCollectionRuleSummary.appendAdvancedLines has cyclomatic complexity 44 (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":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf66074c59e79d202808a0073f9abdda0d22614c06c5f431d90c0f4a3d4dba8a"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCollectionRuleFilter.apply (cyclomatic 44): SmartCollectionRuleFilter.apply 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":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea9c7921f5f65e4baa8c8ca15c5a0e024cdef0f4f173d7b2619724ee6d3042a"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGService.runPromptPhase (cyclomatic 43): KnowledgeRAGService.runPromptPhase has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"b843aa7b6094909a1658970beda2840530d2d03f1c22c0773165e0246c91d9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"analyze.collect (cyclomatic 43): analyze.collect has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cc4814b0553ea3bbe4624ed73b2e5dd88cc66ad6e409b476027f8bf5ee6478"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalAgentEventProjector.consume (cyclomatic 41): ExternalAgentEventProjector.consume has cyclomatic complexity 41 (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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3381992e890eae0d93da86e80cd896c8f4b3cb687926de2266918b907407c566"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.reloadDatabasePagedItems (cyclomatic 40): HomeViewModel.reloadDatabasePagedItems 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"59991fc284770840850c087d1233e33907cb9acfa9c4735b3e78a56cc87707ce"}},{"ruleId":"D1","level":"warning","message":{"text":"AppBackgroundTaskSnapshot.current (cyclomatic 39): AppBackgroundTaskSnapshot.current has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/AppBackgroundTaskSnapshot.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec41481f8aa599e675811bd447d6b8d3ef6bc0328ae1eac3890a316e0054cb67"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGPromptBuilder.build (cyclomatic 39): KnowledgeRAGPromptBuilder.build has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"de506f8861a574ae66e67ca4b9494b3d040b7bb82c76afc65e752ac61f2903dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeViewModel.loadInternal (cyclomatic 38): ReadmeViewModel.loadInternal has cyclomatic complexity 38 (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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f4c511eddb8fda1354546cdfc682c3c1d5fffb703e7262ef8c8cde0ba6fe90"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncManager.runSyncBody (cyclomatic 37): SyncManager.runSyncBody has cyclomatic complexity 37 (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":"Starcat/Core/Sync/SyncManager.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"af622657788eb804c0b9cd0d16c9306696a13c602a9c3cfa05f27382fc622608"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploreDiscoveryViewModel.reload (cyclomatic 37): ExploreDiscoveryViewModel.reload has cyclomatic complexity 37 (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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d0e3f7153216fca523d4438975c7c6ad3bd012c2a2fd8a66e3c22f591fb217"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.reload (cyclomatic 36): DailyRadarWorkspaceViewModel.reload 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aef92fcc9789ac5fed4dba8c036087289b9ea37b4db41bd2130f1bcc4f2bfc0"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexAppServerDriver.traceEvent (cyclomatic 35): CodexAppServerDriver.traceEvent has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"d405839ecbd6d21984ff9c1c8bb8554c00b9822922469bb96726645e33ef7f93"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalAgentProcessSession.run (cyclomatic 35): ExternalAgentProcessSession.run has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"130a6e05f27e1080c1f7d85ec63aeec51919fb2fd8cac5642b454b9ad41f91b6"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDependencies.init (cyclomatic 34): AppDependencies.init has cyclomatic complexity 34 (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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddff1349a5b3cd0b01f65527de17babe3fbfac4e390693a77a534e976abf921"}},{"ruleId":"D1","level":"warning","message":{"text":"StarcatMCPToolRegistry.callTool (cyclomatic 34): StarcatMCPToolRegistry.callTool has cyclomatic complexity 34 (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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25899a340e6e1db77ed45753c58914558f96692a54a1c8673625375f20c061e"}},{"ruleId":"D1","level":"warning","message":{"text":"DiskChatHistoryStore.migrate (cyclomatic 34): DiskChatHistoryStore.migrate has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 7 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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5435a4824c3c7e13d3aab93a43f47feca9f21c319907ddd29bce4d31b1c2e71"}},{"ruleId":"D1","level":"warning","message":{"text":"LoopAgentRuntime.execute (cyclomatic 34): LoopAgentRuntime.execute has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6c9b20d6461050abc1e30f3a6824ba8c229b6358d9c1d47731247884f99760"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGWorkspaceError.classify (cyclomatic 34): RAGWorkspaceError.classify has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceErrorSheet.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9179d9ac86ad0977bbfc64e46abaaa94ae1728022cb502f1dfe9af889c8d5b4a"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIQueueService.applyResult (cyclomatic 33): BatchAIQueueService.applyResult 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"940381b333ce3675d6478396d01f3c89298e404f68310e166125886d2b8f9722"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRadarMarkdownRenderer.renderNode (cyclomatic 32): DailyRadarMarkdownRenderer.renderNode has cyclomatic complexity 32 (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":"Starcat/Features/DailyRadar/DailyRadarMarkdownView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d6c00730ab8c0173fc225db2d5e4724a39831ee52db6ac62a92ebd7165584c"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGCLIJSONLineParser.parseClaude (cyclomatic 32): RAGCLIJSONLineParser.parseClaude has cyclomatic complexity 32 (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":"Starcat/Features/RAG/Core/RAGCLIModelClient.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c77b802c6c1956feb5d51f7476272a0c6b2857f73469ee632a7e6e2a6fe6631"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeStarJourney.growthEvent (cyclomatic 31): ReadmeStarJourney.growthEvent has cyclomatic complexity 31 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 13 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":"Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d63e14936c28c051d864a8f519705e510f2f8b3c7dddc72b484f4591224cda2"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillFrontmatter.parse (cyclomatic 30): SkillFrontmatter.parse has cyclomatic complexity 30 (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":"Starcat/Core/Skills/SkillFrontmatter.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce976b9afad87fbaec30aa6f756be9bef49f6cc697c49d6db144ea686f11954"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubStarListAIGroupingPresentationSnapshot.init (cyclomatic 30): GitHubStarListAIGroupingPresentationSnapshot.init has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e9f81d7de27a010502795b6950a8ab300d95a45dbf7c002f008c5408091dbe"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceRunSurface.agentComposerInputBox (cyclomatic 30): AgentWorkspaceRunSurface.agentComposerInputBox has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea6d357d7e56b2f8b2fc7c69928589055a54db300054198643d5c8f0435bfc"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRadarPreviewWorkspace.home (cyclomatic 29): DailyRadarPreviewWorkspace.home has cyclomatic complexity 29 (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":"Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c113bc399b89f82c5a7f74e77b336529b62feb79956dc1e6735c582d8f648a0f"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGIndexBuilder.embedPendingChunks (cyclomatic 28): KnowledgeRAGIndexBuilder.embedPendingChunks has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"58579feee0c56a89f00809d15cc06af7c3ae6664c1c89dc92614b31fd7182432"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklyContentViewModel.makeLocalSorter (cyclomatic 28): WeeklyContentViewModel.makeLocalSorter has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"6911b60240190ecc752e94a84e628a7bd4ed0a02e9c691ff03c857c1a8774e77"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphStore.load (cyclomatic 28): FollowGraphStore.load has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphStore.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9bf39479970b4d498767d9a35f065065b75e64e61d04d66f8d712e1411e0a3"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.userContentController (cyclomatic 28): Coordinator.userContentController has cyclomatic complexity 28 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44df13e9ca301ec47eef8d1023fbdd0838047d2079acc170bad4cedf6fa0ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.selection (cyclomatic 28): HomeViewModel.selection has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe768266993e023e24e9ba79d2cb7ee13b68a15e0ad748c26cdd53365a1ab95"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeViewModel.loadTrending (cyclomatic 28): ReadmeViewModel.loadTrending has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d22cc0ed764932cc45a1582e42f441c5a31428660024b7aa299f4c9335a36f"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarView.isExploreSelectionCurrent (cyclomatic 28): SidebarView.isExploreSelectionCurrent has cyclomatic complexity 28 (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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"efade04990264916de050ef37c0745c7f37360aa8e5b9eb7c88b7546c719efd9"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalAIModelDownloader.streamDownload (cyclomatic 28): LocalAIModelDownloader.streamDownload has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalAIModelDownloader.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f7963716ba7de89968ceaa8f9bd9b0212031539f5256f81c221fdade835007"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalMLXRuntime.generate (cyclomatic 28): LocalMLXRuntime.generate has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18f6d2c426819684228ae79b69b223191dc9a9989752ffc7b790814d2727948"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGWorkspaceInspector.planInspector (cyclomatic 28): RAGWorkspaceInspector.planInspector has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b103511979d98850b3047bfedf97016b81adad0922a91228e06e670d0197df8d"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIClient.chatStream (cyclomatic 27): OpenAIClient.chatStream has cyclomatic complexity 27 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 11 belong to one function item inside it that branches. 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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a966076c952917f138b0d1e011926b6ed75d60d4c72545e44b2b55d4dd61bec6"}},{"ruleId":"D1","level":"warning","message":{"text":"TrendingViewModel.reload (cyclomatic 27): TrendingViewModel.reload has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Trending/TrendingViewModel.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db27595ecf9bd3ed0dafa296969ce1c1d1962b97c80b223906f560d9475ebca"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGIndexBuilder.startObservingSourceChanges (cyclomatic 26): KnowledgeRAGIndexBuilder.startObservingSourceChanges 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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"608bb1fdb9180d19fa3e8c98cb2a2cf3b95fc163c191b5608d6db3b85d92c68d"}},{"ruleId":"D1","level":"warning","message":{"text":"AIModelCapability.inferred (cyclomatic 26): AIModelCapability.inferred has cyclomatic complexity 26 (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. This is NOT this file\u0027s highest cyclomatic complexity: AIServiceProvider.defaultProfileName (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"37241829fa084c108fcce39a01675110ca385a5d7c636769ee0c88644581581f"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.reloadWeeklyTopic (cyclomatic 26): DailyRadarWorkspaceViewModel.reloadWeeklyTopic 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"422b512e44112b684ad2795e5a0e339404e020c5ffa806816483d9df19751421"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIChatViewModel.performSendMessage (cyclomatic 25): RepoAIChatViewModel.performSendMessage 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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a38cba1f7439c44bf3f5b435fa654877a06ad088c564b53a9737b8ece4aaff"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.prefetch (cyclomatic 25): HomeViewModel.prefetch 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00717f759b5979ebc6f133c2b9b7d578dcf08cfeb423f066694b5a1d0fcb725"}},{"ruleId":"D1","level":"warning","message":{"text":"CodebaseMemoryViewModel.generate (cyclomatic 25): CodebaseMemoryViewModel.generate 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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb14e57596b09171b57f3c8856c1addfb0fdc9c6dfbd28a4936b22ad9c5efd2"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.drawNode (cyclomatic 25): entry.drawNode has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/entry.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"435c6a7ab7346d39868eeb2c8d5150e0780b8ce8057d5ad1b59504ca80eb1e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIInsightViewModel.generate (cyclomatic 24): RepoAIInsightViewModel.generate 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":"Starcat/Features/AI/RepoAIInsightViewModel.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fafcca7c386ce926189053e840ba96e0b5c30b989d00f25c785bc16016d070b"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklyContentViewModel.deriveLocalItems (cyclomatic 24): WeeklyContentViewModel.deriveLocalItems 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ab5ecf773ba34a5ed879f3772f911982d70431b1e547e6882f0661fa40cef0"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphViewModel.explore (cyclomatic 24): FollowGraphViewModel.explore 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d20555ba87177111ae54d6e006eed909e605b60e7fc223eb004a647abb8399"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadActivity (cyclomatic 24): RepositoryInsightsViewModel.loadActivity 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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"0056353efbf42a86ec31297fae47edf99f2d99b16f27f4c2a7184d651ff38621"}},{"ruleId":"D1","level":"warning","message":{"text":"EncoderConfigurationFile.validated (cyclomatic 24): EncoderConfigurationFile.validated 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":"Starcat/Features/AI/LocalAI/LayaMLXDecisionRuntime.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7808fb8e58c22f9bb036de2014468a12e96245185a43a26373a92066727becc"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGQueryPlanner.decodeAndValidate (cyclomatic 24): KnowledgeRAGQueryPlanner.decodeAndValidate 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":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d624fae185c8fdbee612724c0882705d970e471333269191c619311e81dceeaf"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.selectConversation (cyclomatic 24): KnowledgeRAGWorkspaceViewModel.selectConversation 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"36abc984a4fa8ae48b017f24b945541f3a156e34eb67eb5741f775cdcb0ff816"}},{"ruleId":"D1","level":"warning","message":{"text":"starcat-localization.analyze_repository (cyclomatic 24): starcat-localization.analyze_repository 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc444215f3265404b3171f6f84237678cfd879bb4cebf1cb02d8414184d1b038"}},{"ruleId":"D1","level":"warning","message":{"text":"GRDBRepoStarHistoryRepository.performRefresh (cyclomatic 23): GRDBRepoStarHistoryRepository.performRefresh has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e576dc7c8fcb9233d2747c65f2f4fbb1d865ee1005c2f2886ffa53797d4abb8c"}},{"ruleId":"D1","level":"warning","message":{"text":"GRDBRAGChunkRepository.replaceSource (cyclomatic 23): GRDBRAGChunkRepository.replaceSource has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506188d6cfa20fc3428422d278f96b5ebde57c2c8793ec4d2f7e49ea8ab0283"}},{"ruleId":"D1","level":"warning","message":{"text":"AppSettings.init (cyclomatic 23): AppSettings.init 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. This is NOT this file\u0027s highest cyclomatic complexity: ReadmeTranslationLanguage.displayName (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1035e7af0d871bb9f2e97fd16248918d35ee8da4e5d12cbdcf0590c122c44de"}},{"ruleId":"D1","level":"warning","message":{"text":"AutoTidyScheduler.executeRound (cyclomatic 23): AutoTidyScheduler.executeRound has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AutoTidyScheduler.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"26601f9e670d7566d18039ac87094a145cc497b9203fd9a9abd1141d61e8c1ca"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIQueueService.runLoop (cyclomatic 23): BatchAIQueueService.runLoop has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37ef59033e06515d42d4c523f80a305f7dd321a0e06ba4afb566a1762692ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphOverlayView.body (cyclomatic 23): FollowGraphOverlayView.body 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":"Starcat/Features/FollowGraph/FollowGraphOverlayView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6310af397daa3974634623816ff7159b24c165ad8dab381919520e6916755b1"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoSkillSession.start (cyclomatic 23): RepoSkillSession.start has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoSkillSession.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f4ab5a2da1e9d1818e07ee21574e4a7029e23bbacf2a5f15f2ff172b68ccf4"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadCommunityProfile (cyclomatic 23): RepositoryInsightsViewModel.loadCommunityProfile has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5efb246bdc1f6c6dd2998d1adee7445dda5d6c5ea44ef069d0eb5d656c4310b"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticLogStore.append (cyclomatic 23): DiagnosticLogStore.append has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c0786ed6722bbe42bcb46920f7518c717fe2706c74a9cebcb6b61097dc58b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AnySearchError.errorDescription (cyclomatic 23): AnySearchError.errorDescription has cyclomatic complexity 23 (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":"Starcat/Core/Network/AnySearch/AnySearchModels.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1087a69bdd10e9ba4e447b3f14f4500a03e941223d3218c6ff1a92b67c96af94"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeAssetURLRewriter.rewriteSourceSet (cyclomatic 23): ReadmeAssetURLRewriter.rewriteSourceSet has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a284f0c9e42b750592b54256ee4a0f7e2c9c3ab0562e162d4ebc324e421193"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexProviderCatalog.parse (cyclomatic 23): CodexProviderCatalog.parse has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9131508d279110db49f97e14fb1a57e4491ad5695439f1be02e71ca1d1efef"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalAgentRuntimeError.errorDescription (cyclomatic 23): ExternalAgentRuntimeError.errorDescription has cyclomatic complexity 23 (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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0204b69aa43fcd2758109aefee35ca1e0f9c72bc3e370e96a3ed976c38242f99"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGWorkspaceAnswerSurface.commandComposer (cyclomatic 23): RAGWorkspaceAnswerSurface.commandComposer 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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"9718a45db2dd239deb3a37fbfc6dca1799cfdbb189f22965921c9c0ef6207482"}},{"ruleId":"D1","level":"warning","message":{"text":"LinuxDoPayload.validate (cyclomatic 22): LinuxDoPayload.validate has cyclomatic complexity 22 (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":"Starcat/Core/Network/LinuxDoModels.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdda41bc16eab83b06ff1332265e49e8aa69d6f5b8999ba8c68f22915f14e4d"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoSkillStore.detect (cyclomatic 22): RepoSkillStore.detect 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":"Starcat/Core/Skills/RepoSkillStore.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"019fca878768a109f79d949aec6efebde09e2dabb1a7cb848aad5bc8eb097e5e"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIJob.== (cyclomatic 22): BatchAIJob.== has cyclomatic complexity 22 (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":"Starcat/Features/AI/BatchAIQueueModels.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c6fc9d3b40652ca85c9c3e0396c2e281e509aac83f8da3d61f1f77927d3353"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIClient.makeChatQuery (cyclomatic 22): OpenAIClient.makeChatQuery 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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"857cca5f497b67c8efc4e3410570837b5256788ba77c8beb3ae782722fa44f22"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityViewModel.supplementNetworks (cyclomatic 22): ActivityViewModel.supplementNetworks 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcd09b45de0a2a6053f234f468774ec2a4a9e36ca135697ba1a84a0f6668852"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyRadarPreviewReader.body (cyclomatic 22): DailyRadarPreviewReader.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e728cab0c0a8d9c1553cedd4e0cd34f6283728fc4107608045737e47b7727cc7"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphViewModel.refresh (cyclomatic 22): FollowGraphViewModel.refresh 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1bd109166c4bacdb82df6b5e03fe85ea95054bb3a172242cd0123eff7565bc"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.computeFilteredSorted (cyclomatic 22): HomeViewModel.computeFilteredSorted 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3711}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07364f200ab8c3d8b5963c4846a0f1f25724a2f0f2a25275ad0f068ea427ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadReleaseCadenceFallback (cyclomatic 22): RepositoryInsightsViewModel.loadReleaseCadenceFallback 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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d9b857311be6991c0194c335c4acec55e072629e440b5c4a1ef097d93d33ff"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadCommitActivity (cyclomatic 22): RepositoryInsightsViewModel.loadCommitActivity 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. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadContributors, RepositoryInsightsViewModel.loadRecentActivity) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9e7885b907676dbbd3fb492468af1841f1e4036aa6754c26683bd6b7855d35"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadContributors (cyclomatic 22): RepositoryInsightsViewModel.loadContributors 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. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadCommitActivity, RepositoryInsightsViewModel.loadRecentActivity) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"677c2a6d36afadd94c0094ba2124c8b0cfeeb8f0575770467df3a80ec50c8d75"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadRecentActivity (cyclomatic 22): RepositoryInsightsViewModel.loadRecentActivity 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. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadCommitActivity, RepositoryInsightsViewModel.loadContributors) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c32587d1cf248770b12133e67dd12bc689cdb510f77b48aa98912546aaf1ca"}},{"ruleId":"D1","level":"warning","message":{"text":"TrendingListFilter.matches (cyclomatic 22): TrendingListFilter.matches has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Trending/TrendingListPipeline.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10039c5ebf25ca0b65fe7a48d94ad844d78b2a87cba4981d2c3bf9951d64da4"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticArchiveBuilder.writePayload (cyclomatic 22): DiagnosticArchiveBuilder.writePayload 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":"Starcat/Shared/Diagnostics/DiagnosticArchiveBuilder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"de68a9de1a20076f6ff666f3cdf1dc82b2af176fca5ff0363dfca39ccc954e81"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticArchiveBuilder.report (cyclomatic 22): DiagnosticArchiveBuilder.report has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Diagnostics/DiagnosticArchiveBuilder.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee11eee2a82e8e6d3bd558d187d850af8c5c7cbb349c0654274e8a4fb20fa28"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalAIModelManager.runInstall (cyclomatic 22): LocalAIModelManager.runInstall 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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"0732e4dffcd8fde288292d81c710e0dcbcb9919cfa2d0ebba10e3e2089cb71c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalAgentStderrSummary.classification (cyclomatic 22): ExternalAgentStderrSummary.classification 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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f76e722ac741c812f53774bef142d12b8d57a0c1dd793c24e470b71e517d3d"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryHTMLRenderer.renderMarkdown (cyclomatic 22): LibraryHTMLRenderer.renderMarkdown 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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"81baa0f137c680e2e1d6b0c26d7a64ca62967f5cb87bfc99237ef6025e8af5fe"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGChunkEditor.body (cyclomatic 22): KnowledgeRAGChunkEditor.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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15444f6f05a503c32d89fef4322b29f2b9c6af232ed71980fa6d3323476a6bc"}},{"ruleId":"D1","level":"warning","message":{"text":"AppLocale.aiOutputLanguageDescriptor (cyclomatic 21): AppLocale.aiOutputLanguageDescriptor has cyclomatic complexity 21 (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":"Starcat/Core/Settings/LocaleStore.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a143aa8d092790a8808b6cc4c3ad7f97e92cadc6883481320bef7f6dbaa73f64"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIQueueService.confirmPendingTagExpansion (cyclomatic 21): BatchAIQueueService.confirmPendingTagExpansion 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2654c3d8023b4e9dcffddb494defba3581d4644b80baf68d48162cd9e4db35"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIWorkspaceView.footer (cyclomatic 21): BatchAIWorkspaceView.footer 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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8515f6b79ef753ef20d0787f4c4b7960381989340621741af6fdd362390d4d"}},{"ruleId":"D1","level":"warning","message":{"text":"GithubWebFlowService.exchangeCodeForToken (cyclomatic 21): GithubWebFlowService.exchangeCodeForToken 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":"Starcat/Features/Auth/GithubWebFlowService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ec1ffa5048262c37af3383819d6225e6e172b4e09e2035e35cfd59b4b8b1b3"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploreDiscoveryViewModel.makeLocalSorter (cyclomatic 21): ExploreDiscoveryViewModel.makeLocalSorter has cyclomatic complexity 21 (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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd36bed407401eb0aacf2bc0c28e3221801c17f0c45727506b115908437767c"}},{"ruleId":"D1","level":"warning","message":{"text":"AnySearchClient.perform (cyclomatic 21): AnySearchClient.perform 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":"Starcat/Core/Network/AnySearch/AnySearchClient.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73708b07b9d7050e0f748570beb49b44b16b52408ec4521eed0a1c67c77a210"}},{"ruleId":"D1","level":"warning","message":{"text":"LayaDecisionModelManager.runInstall (cyclomatic 21): LayaDecisionModelManager.runInstall 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":"Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f283b08992989025f9764ff23c37a5a33273a6305c418090a9a8a7ddd0bbe3b"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryAgentRunContextProvider.loadBusinessRepos (cyclomatic 21): RepositoryAgentRunContextProvider.loadBusinessRepos has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunContextProvider.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e769afd8f8d0e8e368e37abeeb453cebb676aec055c2f903e2ec6f8674324c"}},{"ruleId":"D1","level":"warning","message":{"text":"LoopAgentRuntime.requestModel (cyclomatic 21): LoopAgentRuntime.requestModel has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2931e1845904e6fa2652e40eaed1415caa666d4d4c65e4a0270c413a9f4a4f"}},{"ruleId":"D1","level":"warning","message":{"text":"starcat-localization.patch_catalog_text (cyclomatic 21): starcat-localization.patch_catalog_text 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa26fe26dce53fff922e681316d982c10a9a1f9e76d134c89d101543d904153"}},{"ruleId":"D1","level":"warning","message":{"text":"sync-starcat-readme-promo.promo (cyclomatic 21): sync-starcat-readme-promo.promo 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":"supports/scripts/sync-starcat-readme-promo.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f4d1f16f9b296cf6f3014a78f0d008037d8a07f12af16fa35e416a2b7903de"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgressiveReveal.sync (cyclomatic 21): ProgressiveReveal.sync 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":"resources/follow-graph/progressive-reveal.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecb0249912c2313bccc347490ca25259679cde07e816665e91a9b06e714da9d"}},{"ruleId":"D1","level":"warning","message":{"text":"StarHistoryAPI.fetch (cyclomatic 20): StarHistoryAPI.fetch has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/StarHistoryAPI.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c57affd9c204f9860b7d688987db8aa5694a8bfe762365962c94f79978e34ac"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubNotificationInboxService.hydrate (cyclomatic 20): GitHubNotificationInboxService.hydrate 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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff3c8d3bbd3aef141bca0c8b712ab23893cb87f6ae2b883ac80441ebb48f415"}},{"ruleId":"D1","level":"warning","message":{"text":"AwesomeGlobalFilterPolicy.matches (cyclomatic 20): AwesomeGlobalFilterPolicy.matches 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":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"82434bcac94fdddd97182db42e23bac68c42943cce5114e9abf5584c8b9a827f"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphAvatarURL.request (cyclomatic 20): FollowGraphAvatarURL.request 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":"Starcat/Features/FollowGraph/FollowGraphAvatarCache.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1156d5314f59643089af9330fdedf01ae29c9ceda2ddd11914e2f7476bdae391"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphViewModel.open (cyclomatic 20): FollowGraphViewModel.open 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c386acd2e228664418101930217983d00d257ed79b4169c37bbde7bb137eeec6"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeStarHistoryHTMLRenderer.render (cyclomatic 20): ReadmeStarHistoryHTMLRenderer.render 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":"Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"968dc5275735d14165a8b01e8194081cf57d6a19ab3edb2783ba7073463ccc2f"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeStarHistoryViewModel.loadIfNeeded (cyclomatic 20): ReadmeStarHistoryViewModel.loadIfNeeded 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":"Starcat/Features/Insights/ReadmeStarHistoryPreview.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1fe668c8b120c129a193b2d9e24495d674faa73f9b2e133dd33148dbed6db0"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadSecurityAdvisories (cyclomatic 20): RepositoryInsightsViewModel.loadSecurityAdvisories 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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d68bb8f8b8b5ab5b88628648969130c1b8c0014b6dc3eceb0f1eb9d6f84aed"}},{"ruleId":"D1","level":"warning","message":{"text":"DiagnosticBundleExporter.export (cyclomatic 20): DiagnosticBundleExporter.export 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":"Starcat/Shared/Diagnostics/DiagnosticBundleExporter.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d70ccf4dd72cd279c51f51820588016c60b426d8e6193ba23d879bdecf0a727"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTimelineProjection.makeItems (cyclomatic 20): AgentTimelineProjection.makeItems 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":"Starcat/Features/Agents/Core/AgentTimelineProjection.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f098ed3fd5ee8e2e1091f57b877020cdc3c4bc16d15d88b1b063e111ee89260"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGRetriever.retrieve (cyclomatic 20): KnowledgeRAGRetriever.retrieve 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":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad834c12095ede97affd515b41e893e0f7d488ab4ab9f1f0f0d790c14458b0ef"}},{"ruleId":"D1","level":"warning","message":{"text":"CCSwitchConfigStore.parseSQLDump (cyclomatic 20): CCSwitchConfigStore.parseSQLDump 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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchConfigStore.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"11410ac2ff7386a241b3aca35d858939c2085ca75625f3e895ac21389e385d0b"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.drainImages (cyclomatic 20): entry.drainImages has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 belong to 3 function items inside it that branch. 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":"resources/follow-graph/entry.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec75a79b294905a920c67efe13c1d729e7420421cbbe3f3fc46f50d2dd61d59"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.syncAnimation (cyclomatic 20): entry.syncAnimation 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":"resources/follow-graph/entry.js"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"26587a9eadf68be94c86e3a8f3afa38e96f930677ff77503c5e489916d1e1edd"}},{"ruleId":"D1","level":"warning","message":{"text":"AIOrganizationBannerState.grouping (cyclomatic 19): AIOrganizationBannerState.grouping 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":"Starcat/Features/AI/AIOrganizationBannerState.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d951326dd431c6e863652d9a594ed8fb194ecb486cd511f07c2094f2ebca06f"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityView.matchesGlobalFilters (cyclomatic 19): ActivityView.matchesGlobalFilters 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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"e042ceca6f41b66f714a473da0c74cb52b86ebdc080ea43023b073b2ba2aaa60"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklyContentView.matchesGlobalFilters (cyclomatic 19): WeeklyContentView.matchesGlobalFilters 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ddde4b45892f8c7dd63a54cc52142f69a487edec0e228c81f4ee3530cec476"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCollectionsOverviewView.systemCollectionCard (cyclomatic 19): SmartCollectionsOverviewView.systemCollectionCard 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":"Starcat/Features/Collections/SmartCollectionsOverviewView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c693c6949c76f7eeefaa4d69c361b7614b43bac7ecc0a6c07097f864751e2843"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploreDiscoveryListView.matchesGlobalFilters (cyclomatic 19): ExploreDiscoveryListView.matchesGlobalFilters 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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"552c6b988695587ae41539e713e486ebbecf0ea33c3c0425e44fadd03fd623b5"}},{"ruleId":"D1","level":"warning","message":{"text":"FollowGraphViewModel.toggleFollow (cyclomatic 19): FollowGraphViewModel.toggleFollow 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a277a015f2c2c50904439b5533e284bc7ebe1a969a739866baa3065222f87ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoListView.unifiedListContent (cyclomatic 19): RepoListView.unifiedListContent 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d279924375bc5cdadfefdbc038e7ffcb33dfb04c3fa924c86ff84d773852a1"}},{"ruleId":"D1","level":"warning","message":{"text":"ManageNavigationPresentation.make (cyclomatic 19): ManageNavigationPresentation.make has cyclomatic complexity 19 (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":"Starcat/Features/Home/SidebarItem.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4837efeca59473dcfc7b77bd430b3356cedba3760f29894d0e4839f40715f8e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeStarJourney.init (cyclomatic 19): ReadmeStarJourney.init has cyclomatic complexity 19 (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":"Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd5ae7ae827f8662f9bd019d1d2430f24a5700f14f97390f061b1cbddd89fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageSettingsTab.body (cyclomatic 19): StorageSettingsTab.body 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. This is NOT this file\u0027s highest cyclomatic complexity: SettingsView.settingsLocation (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"29833fbb27bb4145ed94c9135d6f841dc9974232c43faac242d693821c8633da"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.userContentController (cyclomatic 19): Coordinator.userContentController has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ede816c4aac0698b05e2caed219a9bb87c381c2df056453bcb11969d3b9233b"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoDetailScaffold.trailingActionsView (cyclomatic 19): RepoDetailScaffold.trailingActionsView 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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"9014cb8cd926cc0d6606f53bc21f09b4941fac7abc238f495f2ec157afb0e12c"}},{"ruleId":"D1","level":"warning","message":{"text":"UserFacingError.map (cyclomatic 19): UserFacingError.map 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":"Starcat/Shared/Diagnostics/UserFacingError.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5a793b74edf86eebf0a546bcadec03073ffd6921bde6d2df225a0fb2375e7b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceViewModel.apply (cyclomatic 19): AgentWorkspaceViewModel.apply 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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29bcca4c3fd2fe6076af8ffd099a61a50b1f2861f27ae12ddbe4e652f474a7c"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGNetworkIntentResolver.resolve (cyclomatic 19): RAGNetworkIntentResolver.resolve 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":"Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"90462bf8bbf0e452af4e30e9ad974e22d289e778bd298c94d4d60d7c84400c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.applyVisibleGraph (cyclomatic 19): entry.applyVisibleGraph 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":"resources/follow-graph/entry.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"59df192c905d51413304b8af0fe279a6db40d08eef80b58a17afba0565b68158"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoSkillInstaller.install (cyclomatic 18): RepoSkillInstaller.install 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":"Starcat/Core/Skills/RepoSkillInstaller.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"838bf5219297f5f352533e6ca3a76534e64bfa79ab4efba0b80b33395bb98907"}},{"ruleId":"D1","level":"warning","message":{"text":"AIProviderProfile.mergedDiscoveredModels (cyclomatic 18): AIProviderProfile.mergedDiscoveredModels has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 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. This is NOT this file\u0027s highest cyclomatic complexity: AIServiceProvider.defaultProfileName (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b25501af1562032929718000abb72414a71086448e63e6c0554d20969fa8d2"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIQueueService.applySelectedSuggestedTags (cyclomatic 18): BatchAIQueueService.applySelectedSuggestedTags 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"320b63acd1888935874ceebd64c097e80cd88c12f09e019d4d8b348af1e5e1e8"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIInsightService.generateInsight (cyclomatic 18): RepoAIInsightService.generateInsight 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"43508092ace9d4b93a0da499260f85895abd15c124110bba20a47dcea8ee0a56"}},{"ruleId":"D1","level":"warning","message":{"text":"TagTaxonomyBootstrapAnalyzer.analyze (cyclomatic 18): TagTaxonomyBootstrapAnalyzer.analyze 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":"Starcat/Features/AI/TagTaxonomyBootstrapService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d8ef5847598458e70627c3bb5fe0fc255c8884af4d27b75ed01c6dae386c98"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityView.body (cyclomatic 18): ActivityView.body 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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec58f963e300d62f45ccf62853e8e394b2ab0df385b281dc8c488a0a5f80d6b7"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubNotificationIssueSummary.makeContext (cyclomatic 18): GitHubNotificationIssueSummary.makeContext 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":"Starcat/Features/Activity/GitHubNotificationIssueSummary.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e8d519c371f5bca59495a0a5a9dc8ed241d93340fb39a0156f749ff82fa32e"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.hasActiveFilter (cyclomatic 18): HomeViewModel.hasActiveFilter 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc4f98464dc1abcd3264bd551f5d37079791539dae2b53c5ee657cc8f7e8e29"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeViewModel.matchesSmartCollection (cyclomatic 18): HomeViewModel.matchesSmartCollection has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":4162}}}],"partialFingerprints":{"codehealthFindingId/v1":"89df0ce78d97c464da31804d6215bb4cb1f63c392a8f245c2eee8a2b00d09360"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadmeTranslationViewModel.performTranslation (cyclomatic 18): ReadmeTranslationViewModel.performTranslation 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":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"da90d65757cdd1dca3be18529d71d09dbf43412bd9106531f3947024356f6d57"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoListView.manageCategoryContent (cyclomatic 18): RepoListView.manageCategoryContent 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5ee5cab3b65dfb57e89023f4804893c9e7c3e79cd1a130575a2161f9a81232"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoRecommendationViewModel.loadInitial (cyclomatic 18): RepoRecommendationViewModel.loadInitial 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":"Starcat/Features/Recommendations/RepoRecommendationViewModel.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"badccef29e6e53d85ff6c7c72381c4c3a929139518f26bcdf98f1bbab2f82922"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseMigrations.ensureKnowledgeRAGSchema (cyclomatic 18): DatabaseMigrations.ensureKnowledgeRAGSchema 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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1d3973589583c6357805f462cca74e7ee01af38b2de45b6d2a3143eba75590"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalAISharedModelCoordinator.migrateLegacyModels (cyclomatic 18): LocalAISharedModelCoordinator.migrateLegacyModels 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":"Starcat/Features/AI/LocalAI/LocalAISharedModelCoordinator.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"37929b9f2049451edb9a4279167f07630b05daaad2205d0bb148ae072d57037e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHarnessProcessView.traceIcon (cyclomatic 18): AgentHarnessProcessView.traceIcon has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentHarnessProcessView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"664e4fdd2506ac9c5cfcc4c6014524e281197b91ab5f90e21919cd50275db06c"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceViewModel.canSubmit (cyclomatic 18): AgentWorkspaceViewModel.canSubmit 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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"49765bb93780529951074572f6042ca0067e1594dd837632fe467d09afd0c9c6"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGRepoFilter.hasEffectiveConditions (cyclomatic 18): RAGRepoFilter.hasEffectiveConditions 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":"Starcat/Features/RAG/Core/KnowledgeRAGModels.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"901405178f463eb3dcbd55e9e6c76442b5f795763f8207f1a1851c177acfc6a8"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGRepoContextXMLProjector.project (cyclomatic 18): RAGRepoContextXMLProjector.project 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":"Starcat/Features/RAG/Core/RAGRepoContextXMLProjector.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1545774513b3d0e40a7cf0f584ad269fa638b1fe8d413df6904c5d76d1215125"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepoContextLoad (cyclomatic 18): KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepoContextLoad 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"310e59fe99f2575efce28a336ef1dfc6aeea45eefd82f2a960da8f769cc8f6f6"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGBrowserView.repositoryDetail (cyclomatic 18): KnowledgeRAGBrowserView.repositoryDetail 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f997078de3cf6328fe56266b9f2fe8e0b3b1dd48809256437efbe37efde7abdb"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGWorkspaceInspector.indexBuildStageMetrics (cyclomatic 18): RAGWorkspaceInspector.indexBuildStageMetrics has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: RAGWorkspaceInspector.debugStageKey (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":4166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a7066d7f2ce9099759b0c40b1c4e8c6d41f025fa9708ce6be734d6f5c0d869"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryReleaseDeepLink.init (cyclomatic 17): RepositoryReleaseDeepLink.init 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":"Starcat/Core/Navigation/RepositoryDeepLink.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35c2b1ef720f3d21e5188791107d83b4159c08398174537f2e4433790de2c97"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAIQueueService.processSingle (cyclomatic 17): BatchAIQueueService.processSingle 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa28d5c4574ecdf97930c907d51c46aabba8c824649f75f4edd9d992b728a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.integrate (cyclomatic 17): GitHubStarListAIGroupingSession.integrate 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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"55824d0a7acac05e6b0a248d6c4dbab66714ccb64f3448393e4e82c027bdbfbc"}},{"ruleId":"D1","level":"warning","message":{"text":"ChangelogSectionKind.infer (cyclomatic 17): ChangelogSectionKind.infer 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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5464b39f0ce0f8d00032c84500680fcd69799eaa439e25e0b68c0a4149a657c"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityViewModel.formatFollowingTitle (cyclomatic 17): ActivityViewModel.formatFollowingTitle 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb203d96658464896b768cf38cd17e6b373b65622519c4767103995e70d05be"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubNotificationCommentCard.body (cyclomatic 17): GitHubNotificationCommentCard.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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fae785c593671dc74c4048126417537fbddcd03459df131c26a47e27b199df5"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubNotificationCommentCard.== (cyclomatic 17): GitHubNotificationCommentCard.== 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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"516f04a20e83da0372e1ae9c8adbec6d4f923a44eb2acbc2f40b9d42394496f1"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubNotificationIssueSummarySession.start (cyclomatic 17): GitHubNotificationIssueSummarySession.start 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":"Starcat/Features/Activity/GitHubNotificationIssueSummarySession.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"41534a729b98e21a95d01b3094181a20f15d04802d840a969467ef823c768af9"}},{"ruleId":"D1","level":"warning","message":{"text":"ExploreDiscoveryListView.body (cyclomatic 17): ExploreDiscoveryListView.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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"14381b3fd9b1547723259cdb853ed32ecff6259d0f36b30666b5a5fb1b953e08"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeView.syncViewModelSettingsFromAppSettings (cyclomatic 17): HomeView.syncViewModelSettingsFromAppSettings 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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a848a29eadd42b7295dec4fa8597c00b1097a04d01e761c728ff66de06b88a8e"}},{"ruleId":"D1","level":"warning","message":{"text":"RepositoryInsightsView.commitChart (cyclomatic 17): RepositoryInsightsView.commitChart 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a4a7aa0184164c576cb0b6e47828b522832a1310522eccb9aacc91715b1778"}},{"ruleId":"D1","level":"warning","message":{"text":"StarcatMCPWriteFacade.batchOrganizeRepos (cyclomatic 17): StarcatMCPWriteFacade.batchOrganizeRepos 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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"95de268e3be94994b9455c6aef3bffdd8cc673a15b3d2771cda8a3ebfe75e706"}},{"ruleId":"D1","level":"warning","message":{"text":"AISettingsTab.aiConfigurationForm (cyclomatic 17): AISettingsTab.aiConfigurationForm 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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbb15589d81c73b2ade1655a27ea63a564c387960fa21dc41099167116c6feb"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationSettingsTab.body (cyclomatic 17): IntegrationSettingsTab.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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae54f94247fa25068a7ea94e49dddcb56199ebcccdf37c9b7cffa2b1480df27"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeDownloadInstaller.run (cyclomatic 17): RuntimeDownloadInstaller.run 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":"Starcat/Features/Settings/RuntimeDownloadInstaller.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bf2f8ed75a894fe107138e149864b0d3ed72b78c816a9d30db928942c40c49"}},{"ruleId":"D1","level":"warning","message":{"text":"DatabaseMigrations.registerV20 (cyclomatic 17): DatabaseMigrations.registerV20 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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"59208f3e24b042e137af1c55998a7b242de9272fc67722f1701e153710a2930b"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicMessagesCodec.decodeMessageObject (cyclomatic 17): AnthropicMessagesCodec.decodeMessageObject 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":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c592b4f744ed57323329659a02f02249f27bf6bb37f45011410b8e658206b101"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicSSEStreamParser.handle (cyclomatic 17): AnthropicSSEStreamParser.handle 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":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"43204fb130e9a3cfde0afb9c01e9693d14df938a38b07c6daeecd49c45184bd0"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalMLXRuntime.performRecorded (cyclomatic 17): LocalMLXRuntime.performRecorded 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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"07618ace5df705ed2fe82eada2f36876e6aec660c8c5976c870d76fdce3ffce9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentWorkspaceRunSurface.loadCodexModelCatalogIfNeeded (cyclomatic 17): AgentWorkspaceRunSurface.loadCodexModelCatalogIfNeeded 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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacc919997b4ef1ab8d4d4162ac297401a2d9ead8c63a84aac7ef34b9b86f2be"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGService.runPlanningPhase (cyclomatic 17): KnowledgeRAGService.runPlanningPhase 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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f908ab4aed7a3f86e9cbb85ac0f3500d56eb0f76335d1a29f00f04bae68cff"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.schedulePagedMentionQueryIfNeeded (cyclomatic 17): KnowledgeRAGWorkspaceViewModel.schedulePagedMentionQueryIfNeeded 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"706275dee2ca483828b554b0212c5e0de08472ca18922bfa59de6cfe1bdb8587"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.finalizeCancelledTurn (cyclomatic 17): KnowledgeRAGWorkspaceViewModel.finalizeCancelledTurn 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3436}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aefe1585548d8291f6609805bd42d9b0af7fb59b591baafb3585627758f9fe"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.detectGitHubLink (cyclomatic 17): KnowledgeRAGWorkspaceViewModel.detectGitHubLink 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":4389}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4c8c44acc425cb86671c4ddfbceccce75baaa4d7552c3845b4aa44118f4853"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGAssistantMessageBlock.assistantMessageContent (cyclomatic 17): RAGAssistantMessageBlock.assistantMessageContent 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":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"576dc51ce1231634b7fe356562e00216103e6f1d486a70bccd5b48feecd9a575"}},{"ruleId":"D1","level":"warning","message":{"text":"useAudioPlayer.useAudioPlayer (cyclomatic 17): useAudioPlayer.useAudioPlayer has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 62, 127, 79, \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":"starcat-promo-video/presentation/src/hooks/useAudioPlayer.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbb793ad9d83556e5d76ef20ebc78f5d0371be163e3151fc0cc48649f351b37"}},{"ruleId":"D1","level":"warning","message":{"text":"useStepper.useStepper (cyclomatic 17): useStepper.useStepper has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 140, 42, 58, \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":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3b183a8606d68966ba437abe18703e31d2091addee62442d49ea4d57832f40"}},{"ruleId":"D1","level":"warning","message":{"text":"StarsSyncFollowUpCoordinator.schedule (cyclomatic 16): StarsSyncFollowUpCoordinator.schedule 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":"Starcat/Core/Sync/StarsSyncFollowUpCoordinator.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d5352ae13fd6711987092c0cd17b27dbb67d8e7e2d931ebab03c46ab4c6792"}},{"ruleId":"D1","level":"warning","message":{"text":"WeeklyBulkRepository.makeSQLFilter (cyclomatic 16): WeeklyBulkRepository.makeSQLFilter 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":"Starcat/Core/Sync/WeeklyBulkRepository.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9339e24f05ad747e1e3cfc0aa2d6fa74a503fd5a385540f84d4f73e58860a7"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.applyOne (cyclomatic 16): GitHubStarListAIGroupingSession.applyOne 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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8088904054c53675e6a110038aa2eb8141851cb9ba3572ee071c703259ce20"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIInsightService.generateLLMTagSuggestions (cyclomatic 16): RepoAIInsightService.generateLLMTagSuggestions 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a5ccd72ebb3cf29eaea4ba52527ff17c296db261b471b3b3b7b47dd8786a57"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIInsightService.makeSource (cyclomatic 16): RepoAIInsightService.makeSource 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d7277dacbe730fe19dcdfd3490e2e7fa9fc16bb675b655951f31e68bed0735"}},{"ruleId":"D1","level":"warning","message":{"text":"RepoAIWindowContentView.summarySection (cyclomatic 16): RepoAIWindowContentView.summarySection 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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"05eac8fbed1600684740b324087577c5049b1d0544e00e7b5e76ca2bb4169a99"}},{"ruleId":"D1","level":"warning","message":{"text":"SemanticIndexBuilder.execute (cyclomatic 16): SemanticIndexBuilder.execute 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":"Starcat/Features/AI/SemanticIndexBuilder.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ed3da012b5da4ac1008a480a08f480a202fc79099274c34ba17710f10d2772"}},{"ruleId":"D1","level":"warning","message":{"text":"WikiKnowledgeBackfillCoordinator.start (cyclomatic 16): WikiKnowledgeBackfillCoordinator.start 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":"Starcat/Features/AI/WikiKnowledgeBackfillCoordinator.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4c66eac7ee99c0daef6b181a7f7af889af3bf7d50aae19742dcc269bbf6f41"}},{"ruleId":"D1","level":"warning","message":{"text":"LinuxDoView.filteredRepositories (cyclomatic 16): LinuxDoView.filteredRepositories 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":"Starcat/Features/Explore/LinuxDoView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5139c181cc4d41d1ca08def0f06a5e8879842791188892573a95982eec6458f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.flush (cyclomatic 16): Coordinator.flush 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":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3f135b2a5fc2e3e91190ecf6fbae3a4513b0d50b9ad82d6eb7720c092118a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectAccessSheet.actionArea (cyclomatic 16): ProjectAccessSheet.actionArea 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":"Starcat/Features/Home/ProjectAccessSheet.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c2b77f9c80aedebf70885c6f839d34f8edc37d1ec942392dbfa8bd2d01d56c"}},{"ruleId":"D1","level":"warning","message":{"text":"SidebarView.applyExploreSelection (cyclomatic 16): SidebarView.applyExploreSelection has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe13a9bab65db9fe72bb100f7e3fa076ac1aefe03aa34842974fce523f55a01f"}},{"ruleId":"D1","level":"warning","message":{"text":"StarcatMCPService.start (cyclomatic 16): StarcatMCPService.start 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":"Starcat/Features/MCP/StarcatMCPService.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d93996cea2b1a2a1220dbf1793642831e65b28e9a0f20bea4a62905db4ad3e3"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchCenterView.resultContent (cyclomatic 16): SearchCenterView.resultContent 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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6ad680453bea89bb6520d8103d4ee1f9c23a20e1f4010bf6ff0b05f18cad35"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeDownloadInstaller.validate (cyclomatic 16): RuntimeDownloadInstaller.validate 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":"Starcat/Features/Settings/RuntimeDownloadInstaller.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d4cf1f55406dc4dbc0db06f9eadbc1f97c02a2d37437e59f1bb59b5e9dd2c1"}},{"ruleId":"D1","level":"warning","message":{"text":"RSSParserDelegate.parser (cyclomatic 16): RSSParserDelegate.parser 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":"Starcat/Core/Network/GitHubBlog/GitHubBlogRSSAPI.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"91582d866014f74c116df2278670c1785dddff1f258e5f946a5c30ec89560625"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeRAGService.runGenerationPhase (cyclomatic 16): KnowledgeRAGService.runGenerationPhase 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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab45437bac8f110bbfcc0f57843c4c7ad40b102bc6f06aae0c9ff04a3df92f7f"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGRepositoryInsightsXMLProjector.project (cyclomatic 16): RAGRepositoryInsightsXMLProjector.project 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":"Starcat/Features/RAG/Core/RAGRepositoryInsightsContext.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f0b05cdab6dfe9ecd047bd2fc96c0dee5978adc3d661fa1c21e0754b9957f1"}},{"ruleId":"D1","level":"warning","message":{"text":"RAGWorkspaceInspector.evidenceInspector (cyclomatic 16): RAGWorkspaceInspector.evidenceInspector 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. This is NOT this file\u0027s highest cyclomatic complexity: RAGWorkspaceInspector.debugStageKey (cyclomatic 25) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0206c9c5dc8e3a5e9f89961d7ae1f24092a05194e2586291cb5c04eb71d8b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"CCSwitchConfigStore.parseSQLValueList (cyclomatic 16): CCSwitchConfigStore.parseSQLValueList 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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchConfigStore.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2d2cfad2d1b51e9bf2b743487ffdb27afd8995dade4a3bc881b39b8ee9c7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"starcat-localization.scan_json_value (cyclomatic 16): starcat-localization.scan_json_value 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"930ed12a438886be4f0b72f936c4c47b337499978f995caa864dff9eb67c2313"}},{"ruleId":"D1","level":"warning","message":{"text":"starcat-localization.load_manifest (cyclomatic 16): starcat-localization.load_manifest 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3798ea4e0964d92427627f8f71555b627e389b928389c01dba7c82f963482651"}},{"ruleId":"D1","level":"warning","message":{"text":"entry.drawFlow (cyclomatic 16): entry.drawFlow 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":"resources/follow-graph/entry.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cce5dade2122cc12d9f49672f5fcfb45b9d7f61287add0327255258912547f"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.runQuestion (cognitive 132): KnowledgeRAGWorkspaceViewModel.runQuestion has cognitive complexity 132 (threshold 15). Drivers by points: if/else 45 (106 pts), boolean chains 12, match/switch 2 (7 pts), ternaries 2 (3 pts), error handling 2, loops 1 (2 pts) (nesting depth added 68). 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91b9f75928970202ae911ccb0a1ba458030996434141e78f69ba8e5632cd8bc"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillScanner.scan (cognitive 110): RepoSkillScanner.scan has cognitive complexity 110 (threshold 15). Drivers by points: if/else 12 (40 pts), loops 9 (25 pts), error handling 5 (18 pts), boolean chains 15, ternaries 3 (12 pts) (nesting depth added 66). 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":"Starcat/Core/Skills/RepoSkillScanner.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"144a44f3436e91fa7bb3a520985e45edfd07c1f7568d5e3ae11e1060ccc4600d"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppServerDriver.receiveNotificationOrRequest (cognitive 98): CodexAppServerDriver.receiveNotificationOrRequest has cognitive complexity 98 (threshold 15). Drivers by points: if/else 35 (70 pts), boolean chains 19, ternaries 3 (6 pts), match/switch 2 (3 pts) (nesting depth added 39). 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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd854210d75cf1b63840442c4c5cb8ef7a2b285314d4b7471a3be8540bffe38"}},{"ruleId":"D2","level":"warning","message":{"text":"entry.update (cognitive 93): entry.update has cognitive complexity 93 (threshold 15). Drivers by points: if/else 34 (53 pts), loops 6 (16 pts), ternaries 6 (15 pts), boolean chains 9 (nesting depth added 38). Of this number, 65 points are the body\u0027s own statements and 28 belong to 4 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":"resources/follow-graph/entry.js"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"794e9b0fb857558885149affe5bdeff5b6e5eabf4237e1ee851bac5b08bcfebc"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.planInspector (cognitive 85): RAGWorkspaceInspector.planInspector has cognitive complexity 85 (threshold 15). Drivers by points: if/else 25 (70 pts), ternaries 3 (13 pts), boolean chains 2 (nesting depth added 55). 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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"536f8edd89895206a260135a55e9114cd87c04aa51729089555b69cf0cf485c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentProcessSession.run (cognitive 84): ExternalAgentProcessSession.run has cognitive complexity 84 (threshold 15). Drivers by points: if/else 20 (61 pts), loops 6 (15 pts), boolean chains 6, error handling 2 (nesting depth added 50). 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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47b1b4266c9b6ba3c6a499aa08b8696813ca0bd678c44950836142ccf38f3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageSettingsTab.perform (cognitive 83): StorageSettingsTab.perform has cognitive complexity 83 (threshold 15). Drivers by points: error handling 24 (48 pts), if/else 12 (34 pts), match/switch 1 (nesting depth added 46). 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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"330bf2815cbd15914b73f93c0f53e7223c11aafb25413281270829734439c8ed"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.reloadItems (cognitive 79): HomeViewModel.reloadItems has cognitive complexity 79 (threshold 15). Drivers by points: if/else 32 (54 pts), boolean chains 16, match/switch 2 (4 pts), ternaries 2 (3 pts), error handling 1, loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2757}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f789428d312f2d1d075963124fe0d4f1fe3bf0a024ce40130b85110be2212ee"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekHarnessDriver.mapEvent (cognitive 78): DeepSeekHarnessDriver.mapEvent has cognitive complexity 78 (threshold 15). Drivers by points: if/else 23 (47 pts), ternaries 7 (17 pts), boolean chains 11, match/switch 2 (3 pts) (nesting depth added 35). 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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca169b21dc4af39081c3435355a23dbbf567a4c3482f8c78ff7e7b562b51861"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze.analyze (cognitive 73): analyze.analyze has cognitive complexity 73 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 19, ternaries 8 (13 pts), loops 6 (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":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1219879be9145b6e22ee1b731151c5a997492438f55fcc50d7c485232b29854"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncManager.runSyncBody (cognitive 70): SyncManager.runSyncBody has cognitive complexity 70 (threshold 15). Drivers by points: if/else 20 (44 pts), error handling 8 (12 pts), boolean chains 7, ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 32). 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":"Starcat/Core/Sync/SyncManager.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7e280b5a1e7c8ad7739aee3febb2dbc2dced4aae0a595a6c2cf1aa5604773d"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze.collect (cognitive 67): analyze.collect has cognitive complexity 67 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 13, loops 4 (7 pts), error handling 2 (5 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fcff2510f7e20e863a0d4238dd5e5341bbd4f3af67121558947045e68405d5"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAIModelManager.runInstall (cognitive 64): LocalAIModelManager.runInstall has cognitive complexity 64 (threshold 15). Drivers by points: if/else 10 (37 pts), ternaries 3 (13 pts), error handling 4 (8 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5bf189df0f81622da634155a4eeaca70d2ee02561684696e33afd9223b7638"}},{"ruleId":"D2","level":"warning","message":{"text":"CodebaseMemoryViewModel.generate (cognitive 62): CodebaseMemoryViewModel.generate has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (38 pts), ternaries 4 (13 pts), error handling 5 (7 pts), boolean chains 4 (nesting depth added 32). 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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeae27924322a1921a720d184dd564ab9eaba6f0b71f1c38cb77ebf2add56da"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.reload (cognitive 60): DailyRadarWorkspaceViewModel.reload has cognitive complexity 60 (threshold 15). Drivers by points: if/else 16 (38 pts), boolean chains 15, ternaries 2 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 25). 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1548d2d96589ce4961c4c2239c749e382a2d90e02e292364a2a6205a5cd5ec6"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphViewModel.explore (cognitive 60): FollowGraphViewModel.explore has cognitive complexity 60 (threshold 15). Drivers by points: if/else 12 (30 pts), error handling 5 (17 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 36). 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba732202d687531143863337c5e2087adf8ca5e36b8dc5ffba87154fc79e0c92"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticLogStore.append (cognitive 60): DiagnosticLogStore.append has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (45 pts), loops 2 (7 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 38). 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":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c2681fe6fc813cbea61ea3ed4116aa161ddd1feb7598ba4517fcf8d03fa70"}},{"ruleId":"D2","level":"warning","message":{"text":"LoopAgentRuntime.execute (cognitive 60): LoopAgentRuntime.execute has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (42 pts), boolean chains 10, ternaries 2 (4 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea922e9f4ec056b7b1edba976116210625796da70e5cace61d215e6804ac74a"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCollectionRuleFilter.apply (cognitive 56): SmartCollectionRuleFilter.apply has cognitive complexity 56 (threshold 15). Drivers by points: if/else 34 (42 pts), ternaries 5 (10 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c7c9fbcf3242767e42df5aee3cc8facffefe0758b049a4ab272371ba23f666"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.reloadDatabasePagedItems (cognitive 56): HomeViewModel.reloadDatabasePagedItems has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (40 pts), boolean chains 9, error handling 2 (3 pts), match/switch 2 (3 pts), ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad7644c5bb406b3b8759cebaf44ad9369f454c06c349cef3a506acb592bbf94"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreDiscoveryViewModel.reload (cognitive 55): ExploreDiscoveryViewModel.reload has cognitive complexity 55 (threshold 15). Drivers by points: if/else 22 (39 pts), boolean chains 13, error handling 2, ternaries 1 (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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cce5b0c01ac99dd314112766af61485d194f1dc7c9b5eec18682f5af8995ba"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.applyResult (cognitive 54): BatchAIQueueService.applyResult has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 10, ternaries 3 (7 pts), loops 1 (3 pts) (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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adc8ed3dddda1e491b239f6384fa8961f2c9eaca1f7f877d8afff2d73742ff9"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGIndexBuilder.embedPendingChunks (cognitive 53): KnowledgeRAGIndexBuilder.embedPendingChunks has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (42 pts), error handling 3 (7 pts), boolean chains 3, loops 1 (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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"f418d60aa4ff2555c76102f2677806f03ae27741a04d5516b3daf4a59181d3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGPromptBuilder.build (cognitive 53): KnowledgeRAGPromptBuilder.build has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 12 (15 pts), boolean chains 11, loops 4 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d580f15dc4916ae6e073f440b6d9b491b05bd8517c9319c63c3811c9dd8aaff1"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeViewModel.loadInternal (cognitive 52): ReadmeViewModel.loadInternal has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (39 pts), boolean chains 8, match/switch 2 (3 pts), error handling 1, ternaries 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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"09908a6d54f9cd3ee4244e6769eb70074ca2bf0cf350adc1cb678d0d775a49e5"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskChatHistoryStore.migrate (cognitive 51): DiskChatHistoryStore.migrate has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 5 (9 pts), match/switch 2 (6 pts), boolean chains 3, error handling 1 (nesting depth added 23). Of this number, 42 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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f75101c27e8d3ac0c63331b69a875e65febb649c61569e146e0cf42177ee66"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGService.runPromptPhase (cognitive 51): KnowledgeRAGService.runPromptPhase has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 22, if/else 15 (16 pts), ternaries 6 (13 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ab3d936ea02e6fd98472a12f10293852a0959c79d90154aca27471ac28f468"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityViewModel.reload (cognitive 50): ActivityViewModel.reload has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 14, match/switch 2 (4 pts), ternaries 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1251bfe1150e01b01755a6e679129f13dffaba24772a8f34ea9aba24ec5d65"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentEventProjector.consume (cognitive 50): ExternalAgentEventProjector.consume has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (35 pts), ternaries 5 (10 pts), boolean chains 4, match/switch 1 (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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ea7df3567afb039a65840a06cafd8529dccccfbdf329422a6f88037e68851d"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCollectionRuleSummary.appendAdvancedLines (cognitive 48): SmartCollectionRuleSummary.appendAdvancedLines has cognitive complexity 48 (threshold 15). Drivers by points: if/else 34, ternaries 5 (10 pts), boolean chains 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea391d3446c99e45f9d5c5beb15d2ae4d3d3eb17de56c0e8dbf77b10380cc33"}},{"ruleId":"D2","level":"warning","message":{"text":"LayaDecisionModelManager.runInstall (cognitive 48): LayaDecisionModelManager.runInstall has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 3 (11 pts), error handling 4 (5 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adf9d5be800c338999ff8568f8118f391f8113e38af2bbeaf5cbec786f529b2"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMLXRuntime.generate (cognitive 48): LocalMLXRuntime.generate has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (28 pts), match/switch 3 (7 pts), loops 3 (6 pts), ternaries 5, boolean chains 1, error handling 1 (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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02710c68d1a6a23ffebb0720f8de8586de51b5e2837bfe29b1088ef72f12121"}},{"ruleId":"D2","level":"warning","message":{"text":"GRDBRAGChunkRepository.replaceSource (cognitive 47): GRDBRAGChunkRepository.replaceSource has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (33 pts), boolean chains 7, ternaries 2 (6 pts), loops 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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6693033fbce8d2ad4b04f545746d67d44310ee8665ddbf4ce89be8fadf66d8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeStarJourney.growthEvent (cognitive 46): ReadmeStarJourney.growthEvent has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 15, loops 4 (6 pts) (nesting depth added 14). Of this number, 28 points are the body\u0027s own statements and 18 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":"Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fb44a43f824d34bb6e7b1664f9cc6527af6bc1dffce8c985a9b2ac2fd0a878"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillFrontmatter.parse (cognitive 45): SkillFrontmatter.parse has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 15, loops 3 (7 pts), ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Skills/SkillFrontmatter.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6636c7c97391857bbec05ce6dbc4505e9b003e540ce7b6db5f354010d4af7ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppBackgroundTaskSnapshot.current (cognitive 45): AppBackgroundTaskSnapshot.current has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 7, ternaries 3 (6 pts), loops 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/AppBackgroundTaskSnapshot.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba282dc85648bac00c8d25a420dbf026829a636f3e6449cca71cfcca8dd380a"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.selection (cognitive 44): HomeViewModel.selection has cognitive complexity 44 (threshold 15). Drivers by points: if/else 26 (41 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6a6e645a16cd2c1e428cd86cd6baacb1cac5d79e23a3180e100fcec254f3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGIndexBuilder.startObservingSourceChanges (cognitive 43): KnowledgeRAGIndexBuilder.startObservingSourceChanges has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 10 (12 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d09161e5573f285bba9041ae26aecec0ae2b6a2748fed64ebdef25305fd750"}},{"ruleId":"D2","level":"warning","message":{"text":"TrendingViewModel.reload (cognitive 43): TrendingViewModel.reload has cognitive complexity 43 (threshold 15). Drivers by points: if/else 25 (38 pts), boolean chains 4, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Trending/TrendingViewModel.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e6209dc3aae9bfd9833ddc23dd8b7adddfe2084b822bd77791db92f58d7569"}},{"ruleId":"D2","level":"warning","message":{"text":"GRDBRepoRepository.makeListQuery (cognitive 42): GRDBRepoRepository.makeListQuery has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (27 pts), match/switch 13 (14 pts), boolean chains 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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"37708d580d7f851648b6030c954d73bc607e7f7da90564935b073cfe04c5498c"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIChatViewModel.performSendMessage (cognitive 42): RepoAIChatViewModel.performSendMessage has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6d76112c23b5e824cc4bc70733f39e931a4d4c5a5273d3d0a58cbf8a73d6b7"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyContentViewModel.deriveLocalItems (cognitive 42): WeeklyContentViewModel.deriveLocalItems has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 9, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1b35a4d915dfebe0a406576da0f440e72c6d49a31da8fc78a842810edc4957"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGCLIJSONLineParser.parseClaude (cognitive 42): RAGCLIJSONLineParser.parseClaude has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 14, match/switch 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGCLIModelClient.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"030291f868606c17a4bad5f4b9bf384169ea1fffa965804c38e6e708c3a3a4f8"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.confirmPendingTagExpansion (cognitive 41): BatchAIQueueService.confirmPendingTagExpansion has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (12 pts), loops 3 (6 pts), boolean chains 5, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc2f9a29109c81bb96d46c1e9e1658362e6ccd86f29fa5a799c4d2440c85eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.runLoop (cognitive 40): BatchAIQueueService.runLoop has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (8 pts), loops 3 (7 pts), boolean chains 6, error handling 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e143e5d7d5fd2a347e454b0a6ec83c00ba9572b45922a17db335a1394bf6e725"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarPreviewWorkspace.home (cognitive 40): DailyRadarPreviewWorkspace.home has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 9 (14 pts), boolean chains 7 (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":"Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e669e7e57e8b1384b15773769fdcc22622c53d5b07d8acc913c8f866cb80b2"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphStore.load (cognitive 39): FollowGraphStore.load has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 11, ternaries 3 (6 pts), error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphStore.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da45e1cac50fee529bfb1980ae7449e11ee47a9c3090a4f4283df822770399d"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.finalizeCancelledTurn (cognitive 39): KnowledgeRAGWorkspaceViewModel.finalizeCancelledTurn has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (28 pts), error handling 4 (8 pts), boolean chains 3 (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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3436}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8673c78f016c7c15458bea05cca7665f86ac55302b86730d836d4ab6cead4b"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.analyze_repository (cognitive 39): starcat-localization.analyze_repository has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"04277eb092f404e1956ecee90ea2a36ad07f14d329e5f7bb8fb2e115659668f9"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryHTMLRenderer.renderMarkdown (cognitive 38): LibraryHTMLRenderer.renderMarkdown has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (12 pts), boolean chains 8 (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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e6e2d8a74a2d5d65f9d4018a9e90e1b26eca273ba930b3124efaa253cf4d83"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticIndexBuilder.execute (cognitive 37): SemanticIndexBuilder.execute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/SemanticIndexBuilder.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d25a278bb1cd6ebe26a0f1087f2202f8ab1809b6c6e178e1f9a1c7b82673c0"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyContentViewModel.makeLocalSorter (cognitive 37): WeeklyContentViewModel.makeLocalSorter has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (36 pts), match/switch 1 (nesting depth added 18). 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1881}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff515e944b4b80871c6234a630321e8b2f63fed8557ad5fb9af968506b8641"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.reloadWeeklyTopic (cognitive 37): DailyRadarWorkspaceViewModel.reloadWeeklyTopic has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 14, error handling 1 (2 pts), loops 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28d01588e6c19d1950f2a96e13bd4a4e61cfdc3a8a63cc6e8afe5539692b565"}},{"ruleId":"D2","level":"warning","message":{"text":"StarcatMCPWriteFacade.batchOrganizeRepos (cognitive 37): StarcatMCPWriteFacade.batchOrganizeRepos has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (7 pts), error handling 2 (4 pts), boolean chains 3 (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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bcbfcf2636fa21f43e3ab9c18a1be3d301310f9a33291982eb30714d589fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppServerDriver.traceEvent (cognitive 37): CodexAppServerDriver.traceEvent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 3, ternaries 1 (2 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9d44c1381ac67808be05309355a8433d6b5d370fd293178276ed06b5de5d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.patch_catalog_text (cognitive 37): starcat-localization.patch_catalog_text has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 5 (9 pts), boolean chains 2, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/starcat-localization.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1e6896e8f108f12a34d81ba5e94ff245c8b766a2aca9df2c4106ec947cca8a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDependencies.init (cognitive 36): AppDependencies.init has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (20 pts), boolean chains 9, error handling 4, ternaries 2, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/App/AppDependencies.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"7025ba3f39b460c3f10d4873c9a46a82fd04b73e7a30a007a9e4ffa6322f5211"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.integrate (cognitive 36): GitHubStarListAIGroupingSession.integrate has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (23 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf23cf4a86512e14e840ba5d36ec1082ba9fed54e278c31f3d99149fd712a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeDownloadInstaller.run (cognitive 36): RuntimeDownloadInstaller.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (6 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/RuntimeDownloadInstaller.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e41fb5fb04ac4e02bd485c54a320e5f17a64414e511fedcb1d0457e76d236fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeAssetURLRewriter.rewriteSourceSet (cognitive 36): ReadmeAssetURLRewriter.rewriteSourceSet has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 6 (11 pts), boolean chains 10 (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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d2b809e72321550241b6217b12bd058488b4e4e3ccfba2623b10e495245472"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTimelineProjection.makeItems (cognitive 36): AgentTimelineProjection.makeItems has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 2 (7 pts), loops 4 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentTimelineProjection.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf740f2c876c4f03a51143ed9cb13a035075f3cf834329a62f4974e0c2d68cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.selectConversation (cognitive 36): KnowledgeRAGWorkspaceViewModel.selectConversation has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 5, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92caa61e62ba3310844e2fe786870f8a025b20780d60c88c53ce4ad435a9525"}},{"ruleId":"D2","level":"warning","message":{"text":"CCSwitchConfigStore.parseSQLDump (cognitive 36): CCSwitchConfigStore.parseSQLDump has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 7, loops 2 (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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchConfigStore.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a9a88f95b2725ffd8278904d83cb2f9dbd21a18e0425e0829369f0fa2db897"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.applySelectedSuggestedTags (cognitive 35): BatchAIQueueService.applySelectedSuggestedTags has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (29 pts), error handling 2, loops 1 (2 pts), boolean chains 1, match/switch 1 (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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbfcbd5d68386d9dfd2a89a71d9c59f170b9910dc08f834c3542847cedb57a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeViewModel.loadTrending (cognitive 34): ReadmeViewModel.loadTrending has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 8, match/switch 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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"835d0024f62720e06ad902b1d32a8f3b0a2c16a686afbc725e3a116b4a30569e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoTidyScheduler.executeRound (cognitive 33): AutoTidyScheduler.executeRound has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, ternaries 3 (8 pts), match/switch 1 (3 pts), error handling 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":"Starcat/Features/AI/AutoTidyScheduler.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ccce71fe5ce361e16a49cc97f29f5ed8a3badb925cf13a80e60c1cf45d97b5"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.applyExecution (cognitive 33): KnowledgeRAGWorkspaceViewModel.applyExecution has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 5 (9 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd48dc9b01bbb3a4c222dd978d9b8f9b1e298ed907b0c601c1220c6ee516e90"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceError.classify (cognitive 33): RAGWorkspaceError.classify has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 10, match/switch 2 (4 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":"Starcat/Features/RAG/UI/RAGWorkspaceErrorSheet.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ec094210ff44c7b4f69d1b2ded899150faf79c69062be5cc802259305d6baf"}},{"ruleId":"D2","level":"warning","message":{"text":"drainImages (cognitive 33): drainImages has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (nesting depth added 15). Most of this is not in the body itself: 6 of the 33 points are its own statements and the rest belongs to 4 function items inside it that branch (onload, onerror, finish, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/entry.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2fb43614dbbaf07a94bfaf95050d1f8ce055cc776100ca109fb15eadef1725"}},{"ruleId":"D2","level":"warning","message":{"text":"GRDBRepoStarHistoryRepository.performRefresh (cognitive 32): GRDBRepoStarHistoryRepository.performRefresh has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, error handling 3 (8 pts), ternaries 1 (2 pts), 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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf13ce4c3a3e587402c69c592c5b623452ff6638eb9fbf59311018cab1cb88f"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIInsightViewModel.generate (cognitive 32): RepoAIInsightViewModel.generate has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 8, ternaries 2 (4 pts), error handling 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightViewModel.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"869edbe92cb3686dfa4b16dfca5f87a24525f6c5980309b9f0b819da4aebc363"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillSession.start (cognitive 32): RepoSkillSession.start has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 3 (4 pts), ternaries 2 (4 pts), error handling 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":"Starcat/Features/Home/RepoSkillSession.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac5d47e910e71da94c2671809d32720377206529c2bf5748803ca53bf79f64d"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAIModelDownloader.streamDownload (cognitive 32): LocalAIModelDownloader.streamDownload has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 9, loops 2 (3 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalAIModelDownloader.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cf89ad304450ecadf4a210c63f2ca9c37fec6f3a40d82f9ec1dcae4e888c23"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.evidenceInspector (cognitive 32): RAGWorkspaceInspector.evidenceInspector has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 6 (10 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08551bc3e992af32b9ae81da3ea476002c62e0a09d43ce845cf4464930701ad"}},{"ruleId":"D2","level":"warning","message":{"text":"CCSwitchConfigStore.parseSQLValueList (cognitive 32): CCSwitchConfigStore.parseSQLValueList has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 4 (9 pts), boolean chains 6, ternaries 1 (3 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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchConfigStore.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d07f3217fa965b9905849837624d1c23381cb89026616598ba9882f42c99eb"}},{"ruleId":"D2","level":"warning","message":{"text":"AppSettings.init (cognitive 31): AppSettings.init has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 9, boolean chains 4, loops 2 (4 pts), error handling 1 (3 pts) (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8de4fb2c291c7fee0b743076a0592d03d864fce9febb59ee8bf66f6f4b9556"}},{"ruleId":"D2","level":"warning","message":{"text":"AwesomeCustomSourceService.parse (cognitive 31): AwesomeCustomSourceService.parse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (20 pts), error handling 3 (6 pts), boolean chains 3, loops 1 (2 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":"Starcat/Core/Sync/AwesomeCustomSourceService.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e107f7ea5b27f6c4c6f1b94eb7863fd94544e83e81762f0cec2e3c76b76a0015"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarProgrammaticCover.drawInterference (cognitive 31): DailyRadarProgrammaticCover.drawInterference has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (10 pts), ternaries 3 (10 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarProgrammaticCover.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685089557681a9f1d4c026f88053662215dbacdb7fb8d7664d4d64fbb9333fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadReleaseCadenceFallback (cognitive 31): RepositoryInsightsViewModel.loadReleaseCadenceFallback has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 2 (6 pts), match/switch 2 (4 pts), boolean chains 3, error handling 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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"317aaaf158a1bb3a1d220b6370cd2dd1dba664a67e89e5ff2d7f92b299a44c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"EncoderConfigurationFile.validated (cognitive 31): EncoderConfigurationFile.validated has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 10, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LayaMLXDecisionRuntime.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fe3a8a61d838c1e92e257291a7be257a7407edc00bd0e74c80cd8ad3556695"}},{"ruleId":"D2","level":"warning","message":{"text":"LoopAgentRuntime.requestModel (cognitive 31): LoopAgentRuntime.requestModel has cognitive complexity 31 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 5 (7 pts), match/switch 2 (7 pts), boolean chains 3, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab4e291265b5c2aeaa9c4a363a597971c51afb6833d90aee41c56b2a527d7ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentStderrSummary.classification (cognitive 31): ExternalAgentStderrSummary.classification has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 11 (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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"90010ee50121a180c62c4f220b6795fc37d73df9fc770c39203e3ca24fe4795b"}},{"ruleId":"D2","level":"warning","message":{"text":"entry.applyVisibleGraph (cognitive 31): entry.applyVisibleGraph has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 7 (13 pts), boolean chains 3 (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":"resources/follow-graph/entry.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"652c855fb36c5cd5330b7880041d5defdb337bcf5ce8c5cec1882861c890c995"}},{"ruleId":"D2","level":"warning","message":{"text":"drawNode (cognitive 31): drawNode has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 10 (17 pts), if/else 7 (8 pts), boolean chains 6 (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":"resources/follow-graph/entry.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc070c6de3481b8a65a13f142a419b1f299e1c809c8c07db8a22393e7ca58c27"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIClient.makeChatQuery (cognitive 30): OpenAIClient.makeChatQuery has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 10 (14 pts), if/else 5 (9 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf083b87c08f820c2fea2bd6119ee4de68134409b2a414a74ebe1132cff3b94"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphViewModel.refresh (cognitive 30): FollowGraphViewModel.refresh has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 9, error handling 2 (3 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e98b529285b28b5267fbc5956dcef1e8742ac9d05877830b1381a12986ce5a6"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListAIGroupingPresentationSnapshot.init (cognitive 30): GitHubStarListAIGroupingPresentationSnapshot.init has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 6, match/switch 2 (5 pts), loops 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":"Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"77470e3019528ad00c5ddaf4e66c1ead525be99351ca30930532bd0eb7d0f56e"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.computeFilteredSorted (cognitive 30): HomeViewModel.computeFilteredSorted has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5, match/switch 1 (2 pts), ternaries 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8624ba45e23c65c620f0330720305df05538f83102edd7bcaf51ceac8b21c05c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceRunSurface.agentComposerInputBox (cognitive 30): AgentWorkspaceRunSurface.agentComposerInputBox has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 12, if/else 11, ternaries 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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40ab5e4665d13adf360ea5278439b81efcd88ea29eadf235af2ea3760f72a12"}},{"ruleId":"D2","level":"warning","message":{"text":"drawFlow (cognitive 30): drawFlow has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (9 pts), ternaries 2 (5 pts), boolean chains 2 (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":"resources/follow-graph/entry.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1c7abb0e0cbb72ae273674f41727fdd40806e8f369db00c6c70cf05d9af217"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillStore.detect (cognitive 29): RepoSkillStore.detect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, ternaries 4, 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":"Starcat/Core/Skills/RepoSkillStore.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b74d714227f55b7f1a9902a75118b5aff4c16dedcc7a828b5f99685ef2413c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AIProviderProfile.mergedDiscoveredModels (cognitive 29): AIProviderProfile.mergedDiscoveredModels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 5 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":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"3678c45be4c3e201508e29a93975749822656bfd527004ed85f8ea76975d7bfa"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAISharedModelCoordinator.migrateLegacyModels (cognitive 29): LocalAISharedModelCoordinator.migrateLegacyModels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 8, error handling 2 (5 pts), loops 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":"Starcat/Features/AI/LocalAI/LocalAISharedModelCoordinator.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a07755e24a0a118a28830c487e39dc7e4e3192ffda4d88e64eb6e2fd8e83b72"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGChunkEditor.body (cognitive 29): KnowledgeRAGChunkEditor.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6de95866b8195f5248754bcace3ebb9666f8dcb7cdef9c0e34b7805adc42e00"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgressiveReveal.sync (cognitive 29): ProgressiveReveal.sync has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 5 (9 pts), loops 5 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/progressive-reveal.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9a34e92e6baff149a48c72aaadcfe381d2173d4276a31de314d3f415444c65"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIWorkspaceView.footer (cognitive 28): BatchAIWorkspaceView.footer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 7, match/switch 1 (nesting depth added 6). 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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace3b67ac7b0ffad846d7d56d5ccb523a36d2a8a458453d6ff09a86bee24e96"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.applyOne (cognitive 28): GitHubStarListAIGroupingSession.applyOne has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 2 (4 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"816e013580abf7aadd96099b2e23affb9a79d74331e87e47ba9f086b4a750290"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.userContentController (cognitive 28): Coordinator.userContentController has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (13 pts), match/switch 1 (nesting depth added 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":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b16387f45c32d55c568bd9b73470046762e961ad5cffa801f0555816ab0af78"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoDetailScaffold.trailingActionsView (cognitive 28): RepoDetailScaffold.trailingActionsView has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (23 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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"600a779fe5e1bae7f9385d82eb07006971e066dbd51f1c2ef0bc52691cc142e8"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProviderCatalog.parse (cognitive 28): CodexProviderCatalog.parse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 11, loops 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":"Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c0e29a0e8977de66b4e1773fed962966ee6d21666913594c7184629d502d88"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationIssueSummary.makeContext (cognitive 27): GitHubNotificationIssueSummary.makeContext has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, loops 2, match/switch 1 (2 pts), ternaries 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":"Starcat/Features/Activity/GitHubNotificationIssueSummary.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7816f9ce8f17d25fa31780d078907951616a537857c95e680db6051b3f0afb"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarPreviewReader.body (cognitive 27): DailyRadarPreviewReader.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 8, ternaries 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9583a0ff700692738bf4b04fa8e1dcdd9cd770647d8cb690d1bf2db0a9be4e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphViewModel.toggleFollow (cognitive 27): FollowGraphViewModel.toggleFollow has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6, error handling 2 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed6d89bc8685c3d938ec9f3d38e695e0060e3ddbba082364604e9d483a2e8ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeTranslationViewModel.performTranslation (cognitive 27): ReadmeTranslationViewModel.performTranslation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 4, match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 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":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e66883f4c949b32e66b438a675d5ff126d88c0767fa5fbf8bacdd08cc87e2b0"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsView.contributorSection (cognitive 27): RepositoryInsightsView.contributorSection has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 6 (11 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33a1e3e893b292e39f0aaeaf6a57e073eba51884a2e15c2b5f839bb0685b633"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchCenterView.resultContent (cognitive 27): SearchCenterView.resultContent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef09ffa650d3675adad9c9cf6ad751d88e16b3d227218115f1b974d264ceff1"}},{"ruleId":"D2","level":"warning","message":{"text":"JevConnectionSettingsModel.testConnection (cognitive 27): JevConnectionSettingsModel.testConnection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 4 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/JevConnectionSettingsModel.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"868ec5d77d921b2ed2d4550ef11aed526cac499e554f8640261cd71bebcd7629"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticArchiveBuilder.report (cognitive 27): DiagnosticArchiveBuilder.report has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (10 pts), loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Diagnostics/DiagnosticArchiveBuilder.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87d359b0924aec0bd97bb5b1aaecb0f605fe35de2c98a5365e6fffff36fe80e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGBrowserViewModel.loadRepositories (cognitive 27): KnowledgeRAGBrowserViewModel.loadRepositories has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1004fbacce7a7b15319699e436d1bcb7131b127496341592026e8bed94adf60"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.scan_json_value (cognitive 27): starcat-localization.scan_json_value has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/starcat-localization.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2701df5bb6f9100a54bc3fe8f066f94e98c4510ee32d19acb18459a8ac128d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyContentViewModel.reload (cognitive 26): WeeklyContentViewModel.reload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 1, error handling 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3f612ae07e011555d6b883d77516bc098733694dd4e508b694fe5efa6977ef"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphOverlayView.body (cognitive 26): FollowGraphOverlayView.body has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 9 (10 pts), boolean chains 4, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/FollowGraph/FollowGraphOverlayView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4256613b8258d35dea7a7a960f099e18dcbd9aed60d2195a194de923ae64b96e"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadActivity (cognitive 26): RepositoryInsightsViewModel.loadActivity has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (4 pts), match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1e7cc26673fccc7bd8859d4819a99e7a82a12770e1d78bcde50e77ad7fca9"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.refreshWithGeneratingRetry (cognitive 26): RepositoryInsightsViewModel.refreshWithGeneratingRetry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (16 pts), error handling 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"da31f1de0602ce6b3944eb0888a5e8ef0c82c7abac7b5bf414f1e8089991788f"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskReadmeTranslationCache.reload (cognitive 26): DiskReadmeTranslationCache.reload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskReadmeTranslationCache.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8534d83aeefaddabb5954091be452f2c1ad7dcd6ce32ba427f5637b0cc68c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseMigrations.ensureKnowledgeRAGSchema (cognitive 26): DatabaseMigrations.ensureKnowledgeRAGSchema has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (26 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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":3067}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a56051ae9ddd4139b7d70575475e0796c5f76971b3540112c66f2df695ac40"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGQueryPlanner.decodeAndValidate (cognitive 26): KnowledgeRAGQueryPlanner.decodeAndValidate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c87586fe735e44a46e2e56094b2be6d5ece08576640e44186343d1b4765f3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGNetworkIntentResolver.resolve (cognitive 26): RAGNetworkIntentResolver.resolve has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 2 (6 pts), loops 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":"Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaf10fe38b0337f9833d95417b9bda9c31d2ea2012ee16b1a173f3e405baa30"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationInboxService.hydrate (cognitive 25): GitHubNotificationInboxService.hydrate has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (10 pts), ternaries 1 (3 pts), error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"667be8585472064849dd61d5c69dd9749a1f0ec96da525163a4335d34002bccf"}},{"ruleId":"D2","level":"warning","message":{"text":"AIModelCapability.inferred (cognitive 25): AIModelCapability.inferred has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 19, if/else 6. 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":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb56744e52595fb966796e0a85d1ab73201384a1ad520f9e02d4e99d3ed020"}},{"ruleId":"D2","level":"warning","message":{"text":"GithubWebFlowService.exchangeCodeForToken (cognitive 25): GithubWebFlowService.exchangeCodeForToken has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, match/switch 1 (3 pts), error handling 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":"Starcat/Features/Auth/GithubWebFlowService.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"858ab3560c48a05d93ed5226ba77d40aaac247a0cfd7f207d5b251ab4fa53ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.refreshSidebar (cognitive 25): HomeViewModel.refreshSidebar has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (6 pts), boolean chains 2, error handling 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bcd228d514f0597ba25b2e24da7fada6a27d0fd38c08d5137a5da3415ed64b"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadCommunityProfile (cognitive 25): RepositoryInsightsViewModel.loadCommunityProfile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d94cbd723ef4e7df5ea298eab4741138936652708b8490185d335c870bf16c"}},{"ruleId":"D2","level":"warning","message":{"text":"StarcatMCPToolRegistry.callTool (cognitive 25): StarcatMCPToolRegistry.callTool has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (21 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f09f3ad9ea124dc2ca7a678f99a0d8fdb799528787770e0fab1fcc58226d77"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoRecommendationViewModel.loadInitial (cognitive 25): RepoRecommendationViewModel.loadInitial has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 4 (6 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Recommendations/RepoRecommendationViewModel.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85fde6f1ee6bb9168d775f096f702027daef9f688960297e34916ebc6f16079"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.userContentController (cognitive 25): Coordinator.userContentController has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 9 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 8 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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7c639adcd86bee0b7b190db9c0b57a4b03596596192af97fded5d0ce8b03a"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticArchiveBuilder.writePayload (cognitive 25): DiagnosticArchiveBuilder.writePayload has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 3 (5 pts), loops 4 (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":"Starcat/Shared/Diagnostics/DiagnosticArchiveBuilder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"609887572eff32b3a8d07bd4824e1986af61961d3a4788225d00daa86ecdc6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicClient.runStream (cognitive 25): AnthropicClient.runStream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (10 pts), error handling 4 (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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfc7bcad72afc4c261c95602f2ce3528ffd1785abb4aeb6e72f88277d61dfde"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.import_package_paths (cognitive 25): starcat-localization.import_package_paths has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 3 (9 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/starcat-localization.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36df8f0f9830c8fe2eefee9624c54127e5c45014a1bbf5d4899a06a26372fed"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGIndexBuilder.drainPendingAutoIfNeeded (cognitive 24): KnowledgeRAGIndexBuilder.drainPendingAutoIfNeeded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (5 pts), error handling 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b435f3f212aabed588b4dc366a4d8ab80b04067565d96072781034797d962e85"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.applySelectedTagReviewRepositories (cognitive 24): BatchAIQueueService.applySelectedTagReviewRepositories has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (8 pts), error handling 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8ecdc936711e79bb53037dc8ca2cd91a645432018681afe39bf32e666ce7ee"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryDecisionService.generateBatchTagSuggestions (cognitive 24): RepositoryDecisionService.generateBatchTagSuggestions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 5 (8 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":"Starcat/Features/AI/RepositoryDecisionService.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"107fe5a62f8bb76d6f1bf087107a6ae7f627bcbb329a08d9138b136e5cd430c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityViewModel.supplementNetworks (cognitive 24): ActivityViewModel.supplementNetworks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"099be94d70257bc7e1b2fd1afdec2e9d81f742cef47dbe933e49cb14427641a5"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadCommitActivity (cognitive 24): RepositoryInsightsViewModel.loadCommitActivity has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadContributors, RepositoryInsightsViewModel.loadRecentActivity) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c68a5b560748c5d3d6f3b6396035087ee0800475ea6a78d15897a3a27e1c23"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadContributors (cognitive 24): RepositoryInsightsViewModel.loadContributors has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadCommitActivity, RepositoryInsightsViewModel.loadRecentActivity) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"25102d748e03755d0feee06314c0c80d9147a6938ac824a1ba66d3b447d74a03"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadRecentActivity (cognitive 24): RepositoryInsightsViewModel.loadRecentActivity has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (RepositoryInsightsViewModel.loadCommitActivity, RepositoryInsightsViewModel.loadContributors) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13c47691665ac5ea3b79e677f3a56050f72b33658ca8d84ea194f4fc056bfbe"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHarnessProcessView.contentRow (cognitive 24): AgentHarnessProcessView.contentRow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentHarnessProcessView.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced5c948fc327706b4107bedacd0bf077124f874fd99b8d768327f4903d0144f"}},{"ruleId":"D2","level":"warning","message":{"text":"GreedySnakeAnimator.buildGreedyPath (cognitive 24): GreedySnakeAnimator.buildGreedyPath has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (10 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e3ad81299d604ca346eef25742ef26e396616b45d7b2c6314e1ac6e41b9336"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceAnswerSurface.commandComposer (cognitive 24): RAGWorkspaceAnswerSurface.commandComposer has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13 (14 pts), if/else 8, boolean chains 2 (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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"c780306ddd798ef54b9f840850ea85a8f5d3b7f5b9d4442b2b2adf4d6c3d826a"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze.load_files (cognitive 24): analyze.load_files has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d74929ca581b3af48ca6f5c2f507f349b8eb9dc71ae913257db66cadc48bf1d"}},{"ruleId":"D2","level":"warning","message":{"text":"StarsSyncFollowUpCoordinator.schedule (cognitive 23): StarsSyncFollowUpCoordinator.schedule has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/StarsSyncFollowUpCoordinator.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cd8400e2d7d492dc3faa400f3e86d7f355bf1a062177fe0d1fd6b0c4e69eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIClient.chatStream (cognitive 23): OpenAIClient.chatStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (16 pts), match/switch 2 (7 pts), error handling 5 (6 pts), boolean chains 1, ternaries 1 (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. This shape REPEATS in the file: one other method here (OpenAIClient.chatStream::consume) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5034d8617ad3b69d3de253b42391fa7a120babbd17fdc0ff82f56ee653a9f7"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIWindowContentView.summarySection (cognitive 23): RepoAIWindowContentView.summarySection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5 (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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6427b10bf297b5ea1f5f461755dc2d699ac91022fd84dcfdd7ab3fbe4e6d956"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeStarHistoryViewModel.loadIfNeeded (cognitive 23): ReadmeStarHistoryViewModel.loadIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8 (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":"Starcat/Features/Insights/ReadmeStarHistoryPreview.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bd8e4d26bfd8271a2bc8e333742cec1d2649a47ff712bcedd167633f1974c9"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectPassConstellation.drawPixelArchipelagos (cognitive 23): DirectPassConstellation.drawPixelArchipelagos has cognitive complexity 23 (threshold 15). Drivers by points: if/else 2 (8 pts), loops 3 (6 pts), ternaries 3 (6 pts), boolean chains 3 (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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1b657c979214b308e0d94a4df4927c35357d44fa5f32ecf660fb45084a7c8e"}},{"ruleId":"D2","level":"warning","message":{"text":"TrendingListFilter.matches (cognitive 23): TrendingListFilter.matches has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Trending/TrendingListPipeline.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c405a1245ffd4ea766cd9a9f31ef71306c309e900fddf2b6faee439490b956"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMessagesCodec.decodeMessageObject (cognitive 23): AnthropicMessagesCodec.decodeMessageObject has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, ternaries 3, match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"587d7091ef8c0575a033a3f19a0ecc39470b6a02a35e546621f43398ce9ce011"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicSSEStreamParser.handle (cognitive 23): AnthropicSSEStreamParser.handle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 5, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a6e4011fae4d38205bb65006e9ef47e51b30efe46306995324d233a87985a8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTraceTimelinePresentation.inferredParents (cognitive 23): AgentTraceTimelinePresentation.inferredParents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentTraceDetailPresentation.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c031c9fd80cd7c2bedf9dcfe5c4e5f07646a24db36a2fe0c0b34edfc3b31a1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMarkdownRenderer.buildRepoEntries (cognitive 23): LibraryMarkdownRenderer.buildRepoEntries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, ternaries 1 (2 pts), 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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ff6583311b1e5946b42b8b79a476bdd8b6657381efa5e21f1ea56c6b69ca0c"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGRepoContextXMLProjector.project (cognitive 23): RAGRepoContextXMLProjector.project has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 3 (5 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":"Starcat/Features/RAG/Core/RAGRepoContextXMLProjector.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8a2951abb940b07efc98241e73c90ca4c873009df56d1d7df17b18b13eb512"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGAssistantMessageBlock.assistantMessageContent (cognitive 23): RAGAssistantMessageBlock.assistantMessageContent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (8 pts), boolean chains 3 (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":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7187b639ee2e162c7179c66618ae88fa8b348ef2c3d76d2a16b559cb6e1abc4"}},{"ruleId":"D2","level":"warning","message":{"text":"submit_import.load_and_validate (cognitive 23): submit_import.load_and_validate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 2 (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":"skills/starcat-weekly-import/scripts/submit_import.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faf8688086f39a897aa4cc8f3bbe9fbc2714e37531db627a43d7a5b723e5de1"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.load_manifest (cognitive 23): starcat-localization.load_manifest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/starcat-localization.py"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd38d8c7b40336803b29878d28905a5f2bf74f410058a2590c47523883bf73a"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoHealthCalculator.maintenanceScore (cognitive 22): RepoHealthCalculator.maintenanceScore has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Health/RepoHealthCalculator.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8c8cc38c13564d2884085bb2a23542ca221bee990b2be2df0c6511e4ae430f"}},{"ruleId":"D2","level":"warning","message":{"text":"LinuxDoPayload.validate (cognitive 22): LinuxDoPayload.validate has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 14, if/else 4 (7 pts), match/switch 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":"Starcat/Core/Network/LinuxDoModels.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"40af76044727de3413570f92517d511f497b582a94e09c74dee880c76ba16a47"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIJob.== (cognitive 22): BatchAIJob.== has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 18, if/else 2 (3 pts), loops 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":"Starcat/Features/AI/BatchAIQueueModels.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b598e3e951a542be20dcd00ff995cfb48c2eef1b86fdfa4ed62431431384349b"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.applyExactMemberships (cognitive 22): GitHubStarListAIGroupingSession.applyExactMemberships has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 2 (3 pts), boolean chains 2, loops 1, ternaries 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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"5882c867fc206b0d6438cadffba8775f7cb23cd4bbbeccccbd649858e8bed421"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIInsightService.generateInsight (cognitive 22): RepoAIInsightService.generateInsight has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 6, error handling 1 (2 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d6b72bec06a36e6fdccffa7a199a4c9bc220be438e52017df2f020dfa4b95b"}},{"ruleId":"D2","level":"warning","message":{"text":"TagTaxonomyBootstrapAnalyzer.analyze (cognitive 22): TagTaxonomyBootstrapAnalyzer.analyze has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (3 pts), boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/TagTaxonomyBootstrapService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebf7b80cd3253130a93ab79451ab71e6cf29936d40c776db2bd5840c48fc474"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationCommentComposer.generateComment (cognitive 22): GitHubNotificationCommentComposer.generateComment has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), error handling 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":2611}}}],"partialFingerprints":{"codehealthFindingId/v1":"8091915e68b2563a781047e9c165f3d1d2e1eee66b78b88bbf486ce909528e38"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationIssueSummarySession.start (cognitive 22): GitHubNotificationIssueSummarySession.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 8, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationIssueSummarySession.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b099ca91c314c9a8a20f6ed713d1383dbe37d14f3dfd0fa6ed101306ba738f52"}},{"ruleId":"D2","level":"warning","message":{"text":"AwesomeGlobalFilterPolicy.matches (cognitive 22): AwesomeGlobalFilterPolicy.matches has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, 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":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c8a13ab7d947154e787da30669ce7ae617dcecb87f1273e32b4d096b3cd0be"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsViewModel.loadSecurityAdvisories (cognitive 22): RepositoryInsightsViewModel.loadSecurityAdvisories has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (4 pts), boolean chains 3, match/switch 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6ee84d55cb1f5f74cc40607ed8074e6d99fe849cd99d60341257982895fba8"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.update (cognitive 22): Coordinator.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (6 pts), boolean chains 4, ternaries 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":"Starcat/Features/AI/LocalAI/LocalAILogTextView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc0a7fc08fe7c948c23caab1d2f952031e8c5d5ff0019105a1e208470632911"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryAgentRunContextProvider.loadBusinessRepos (cognitive 22): RepositoryAgentRunContextProvider.loadBusinessRepos has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 7, match/switch 2 (3 pts), ternaries 1 (2 pts) (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":"Starcat/Features/Agents/Core/AgentRunContextProvider.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32e37e1d314ecf61232ced40346d96d1d3615030c278417635b4b6145cb6af9"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceRunSurface.loadCodexModelCatalogIfNeeded (cognitive 22): AgentWorkspaceRunSurface.loadCodexModelCatalogIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, error handling 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9d43409f88847e2a38d930ed6ca56c00b21aa42a643251e826fd5745e69d06"}},{"ruleId":"D2","level":"warning","message":{"text":"FoodChaseSnakeAnimator.simulate (cognitive 22): FoodChaseSnakeAnimator.simulate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3853baa5af2a24026b6753511441f29d1d51eea5e3f0684677dabb544d7fa500"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGChunkBuilder.markdownBlocks (cognitive 21): RAGChunkBuilder.markdownBlocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 10). Of this number, 20 points are the body\u0027s own statements and 1 belongs 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":"Starcat/Core/RAG/RAGChunkBuilder.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c33ef0b00f7f6f02e5b43dafbdfa39acbdd5aad6ce2b73847c4cee1bf785f09"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.processSingle (cognitive 21): BatchAIQueueService.processSingle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 8, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31712712c73176e3a38fb09d86f4a6c3c452491fdd8410ca3af642a9e1c6d37"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIInsightService.generateText (cognitive 21): RepoAIInsightService.generateText has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"010ecfba986d3274b808fce343f2a5ef555dbae5ee1041a30d8dcebd13a81109"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.confirmTagTaxonomyBootstrap (cognitive 21): HomeView.confirmTagTaxonomyBootstrap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 3, 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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d30417844bfb719f361545e6a2fe5341b230f76bbd4e5f02a215263d932158"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeStarJourney.init (cognitive 21): ReadmeStarJourney.init has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (8 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":"Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"916bd0400a9baa6cba1e6201c4550ffa424a223c9df67f1d6f8728efc68fb8e7"}},{"ruleId":"D2","level":"warning","message":{"text":"AnySearchClient.perform (cognitive 21): AnySearchClient.perform has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1, 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":"Starcat/Core/Network/AnySearch/AnySearchClient.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aed6a0ab1d9f24f8301c32494b515cf5f8590581df4f73ca7d8bc48577cfb52"}},{"ruleId":"D2","level":"warning","message":{"text":"LoopAgentRuntime.emitTraceEvents (cognitive 21): LoopAgentRuntime.emitTraceEvents has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (15 pts), match/switch 2 (3 pts), if/else 1 (2 pts), loops 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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8567f277f3ec2ea4c990e9e0cbaf38467f780da83421dbd4ce2c169d5d335d44"}},{"ruleId":"D2","level":"warning","message":{"text":"FoodChaseSnakeAnimator.bfsPathAvoiding (cognitive 21): FoodChaseSnakeAnimator.bfsPathAvoiding has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1119e2272041067e3e9fdb38e3e35d58f1085e328910be02f2480eec385c37"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGService.runRetrievalPhase (cognitive 21): KnowledgeRAGService.runRetrievalPhase has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf210c99428538b66436661fbd1cd8fec88a35629f05b36c23e06b5e8954fc75"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGService.runRemoteContextPhase (cognitive 21): KnowledgeRAGService.runRemoteContextPhase has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd276c66dbea3272062a297bad6bac4f28fc7aca12c0b28b45dadc1cd6711098"}},{"ruleId":"D2","level":"warning","message":{"text":"starcat-localization.json_object_members (cognitive 21): starcat-localization.json_object_members has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, 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":"supports/scripts/starcat-localization.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3aa17828ae2cf3cb6754e007cabc2cc437616e6e1f0b1854029885ceb712da"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillInstaller.install (cognitive 20): RepoSkillInstaller.install has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Skills/RepoSkillInstaller.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdcdfa9e9eb5da996d99e7def25764b94daa62241add9ad500954abfc9d1bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillInstaller.verifyFiles (cognitive 20): RepoSkillInstaller.verifyFiles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Skills/RepoSkillInstaller.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a7c95dc23b92c5de44f858e6f1ea17f8369ad872a508b74321d51c935b855f"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationInboxService.mergeConfirmedTimelineComments (cognitive 20): GitHubNotificationInboxService.mergeConfirmedTimelineComments has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2301f87f1e69d7ec86fa66b36047f24f384ad331bb0b563bfb0a5d169e2a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeTranslationService.jsonObjectCandidates (cognitive 20): ReadmeTranslationService.jsonObjectCandidates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4964477a1b4ba160872c14d4252bb3f66d98c35cc2ab0c982ef167ee8efdbd"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIInsightService.generateLLMTagSuggestions (cognitive 20): RepoAIInsightService.generateLLMTagSuggestions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 5 (6 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36f60120d6f02960d82856290cd6df55677c2e2c24197d635518556b542d0e4"}},{"ruleId":"D2","level":"warning","message":{"text":"WikiKnowledgeBackfillCoordinator.start (cognitive 20): WikiKnowledgeBackfillCoordinator.start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 2 (3 pts), error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/WikiKnowledgeBackfillCoordinator.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e0a0be83d5d4c8c2d339be12727a9a93785b6cf46723ae219c34b1af0efdd4"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityView.matchesGlobalFilters (cognitive 20): ActivityView.matchesGlobalFilters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, 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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc854856852b220a74e9c74fb26a33322e086acd0038f07a5dac25e23387a2fd"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyContentView.matchesGlobalFilters (cognitive 20): WeeklyContentView.matchesGlobalFilters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"274f22b9fe084959f27a97632ef1bd3289f3acbc0d09902a92512afa8e7db0f2"}},{"ruleId":"D2","level":"warning","message":{"text":"CompanionLocalServer.bind (cognitive 20): CompanionLocalServer.bind has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), boolean chains 1, error handling 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":"Starcat/Features/Companion/CompanionLocalServer.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"57df0f019f4ee6e38276c6204ca7bc4771e3e37f37e8c48f8c21b92d3856cad6"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreDiscoveryListView.matchesGlobalFilters (cognitive 20): ExploreDiscoveryListView.matchesGlobalFilters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, 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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66522885e2b1ea6e513a475ea52c40e60a183d52d27dcbff04e2318fde6cbe"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphAvatarURL.request (cognitive 20): FollowGraphAvatarURL.request has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, if/else 3 (4 pts) (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":"Starcat/Features/FollowGraph/FollowGraphAvatarCache.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bf1cec91045afe4b16870c94853d71d9919194591f7303a6edf955243c29ea"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowGraphViewModel.open (cognitive 20): FollowGraphViewModel.open has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 9. 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e5ff1528daf5620c546362a960c32cdb10a6cf6f254affe461c1751f3f5f75"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoListView.manageCategoryContent (cognitive 20): RepoListView.manageCategoryContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 7, ternaries 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"da295de11932530d65482f1d3af569893885fd36ce6623aab6e9cfe7ece0efe2"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoListView.unifiedListContent (cognitive 20): RepoListView.unifiedListContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53f857c1c452b506832b845a268e7efa2d2906a2d9403809bbb0ea77a3a2546"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeStarHistoryHTMLRenderer.render (cognitive 20): ReadmeStarHistoryHTMLRenderer.render has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 4, if/else 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"499b92b7374c9690b3070ad99a2b9a153b3a29b8f46aaafdace8c14aa8ab85ec"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsView.commitChart (cognitive 20): RepositoryInsightsView.commitChart has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0dc97ba17bc0b4a8cd92248d84a9494bbee098c90884597fccb5b22bba4175"}},{"ruleId":"D2","level":"warning","message":{"text":"StarcatMCPService.start (cognitive 20): StarcatMCPService.start has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, error handling 2, ternaries 1 (2 pts) (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":"Starcat/Features/MCP/StarcatMCPService.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db88a563a1cee5c60d52383e89b9863a5cacb562303ca04fe00ab9028eeaad0"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGService.runGenerationPhase (cognitive 20): KnowledgeRAGService.runGenerationPhase has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0056b10da897be9bef95403c6afbbec9e8650489d7afb6c11341b9bb55446f"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.repoContextCitationDetail (cognitive 20): RAGWorkspaceInspector.repoContextCitationDetail has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts), boolean chains 3 (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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"333635875717d4cf5bbd8d5fbf8c2e6479a1b65c5c075250a97e712576583b40"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.repositoryInsightsCitationDetail (cognitive 20): RAGWorkspaceInspector.repositoryInsightsCitationDetail has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (6 pts), boolean chains 3 (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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d823b541a714ffffdc315f6571d7b5ebb33c66b16f0530ccb5d06031d50a0e0"}},{"ruleId":"D2","level":"warning","message":{"text":"sync-starcat-readme-promo.promo (cognitive 20): sync-starcat-readme-promo.promo has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 16, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/sync-starcat-readme-promo.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8da63e05cba04d96930fb3df3dfa15d64a2f1fd5ecad9fe44ea4b8f5ece0837"}},{"ruleId":"D2","level":"warning","message":{"text":"StarHistoryAPI.fetch (cognitive 19): StarHistoryAPI.fetch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, error handling 4, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/StarHistoryAPI.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"270a31ed50a28af4d6297881a7c9ccff3d1dedb9cf74af8128eac6eb35ede90a"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListSyncService.reconcilePendingBatches (cognitive 19): GitHubStarListSyncService.reconcilePendingBatches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListSyncService.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1610896837afe415992d198352fa2ef20529500a1d6ca3fc0642916957447d"}},{"ruleId":"D2","level":"warning","message":{"text":"InitialRepoWarmupCoordinator.runReadmePhase (cognitive 19): InitialRepoWarmupCoordinator.runReadmePhase has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, error handling 1, 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":"Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8f974956ff7c6011b6f928a24117e8189e165a3dd9c722e5621759c7d46f62"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetAvatarCache.cacheAvatar (cognitive 19): WidgetAvatarCache.cacheAvatar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 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":"Starcat/Core/Widget/WidgetAvatarCache.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22a671e8be31ca294e289eb587ee390c4496abdba80b556b2730d187220ee88"}},{"ruleId":"D2","level":"warning","message":{"text":"AITagSuggestionPolicy.normalizedSuggestions (cognitive 19): AITagSuggestionPolicy.normalizedSuggestions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 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":"Starcat/Features/AI/RepoAIInsightModels.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ac7927df4c33c868b51b160b129f9e48b2c81be5784813ee8882d1f14dd736"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoAIInsightService.makeSource (cognitive 19): RepoAIInsightService.makeSource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, match/switch 1 (2 pts), 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, 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fae28f1e81391d872cac9571727f603d3967f89fe7e78b3b764457dc1316cc"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemTranslationSessionBroker.consumeSession (cognitive 19): SystemTranslationSessionBroker.consumeSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/SystemTranslationSessionBroker.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1fc826e0cb39cba016eabc7b334552f371c98f9470a6bea1101fe7bde710aa"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarProgrammaticCover.drawNetwork (cognitive 19): DailyRadarProgrammaticCover.drawNetwork has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 2 (5 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarProgrammaticCover.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c35a03b1d6d03df3e0ca26e302d1ca4d374418aa7df35448ac8c165405b078"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreCatalogStore.reload (cognitive 19): ExploreCatalogStore.reload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, 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":"Starcat/Features/Explore/ExploreCatalogStore.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4929cc2870ebda438983f6f5213a2a0056fc1b0d12a1361de26a249db3df703e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreDiscoveryViewModel.deriveLocalRepos (cognitive 19): ExploreDiscoveryViewModel.deriveLocalRepos has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"021d10a3d5d1a7f664128be7f1b3b4262f60979782bd43e8f210f60884a4e6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.refreshSidebarFacetCounts (cognitive 19): HomeViewModel.refreshSidebarFacetCounts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (7 pts), boolean chains 3, 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6b4c78efa9cdc060c5bdc569f0166e93a173e7d708ccb3c0c4c80ffd2218fe"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.prefetch (cognitive 19): HomeViewModel.prefetch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3511}}}],"partialFingerprints":{"codehealthFindingId/v1":"396fa4821de9e708fac3ce4f7a5bc7e610565da1d185c9a0d602cc9032d647e1"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoFileBrowserViewModel.runDownload (cognitive 19): RepoFileBrowserViewModel.runDownload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2, loops 2, match/switch 1 (2 pts) (nesting depth added 5). Of this number, 16 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":"Starcat/Features/Home/RepoFileBrowserViewModel.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8d50873144fae35874e7ce05344fcf227c24b63f389b2b8c038e08dc56cebb"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryInsightsView.timelineSection (cognitive 19): RepositoryInsightsView.timelineSection has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (6 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":3198}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb166b7439239d0dc48a6aa36ad251636a15e26c7788f9cb83e5e62f3543654"}},{"ruleId":"D2","level":"warning","message":{"text":"StarHistoryViewModel.refreshLoop (cognitive 19): StarHistoryViewModel.refreshLoop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 3 (6 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/StarHistoryViewModel.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"096696bc32554a0269ba4c9ade4252d3937b4b6fd11164c5e78bdbe007946d1b"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectPassConstellation.body (cognitive 19): DirectPassConstellation.body has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 2 (5 pts), loops 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f3b00e371a3f4bb369e64fae4d5e79a276a850e4ed6950b3af40977498a84b"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeDownloadButton.body (cognitive 19): RuntimeDownloadButton.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3 (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":"Starcat/Features/Settings/RuntimeDownloadButton.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a23ac92d0e035efaace6c0a5a03c811361930d7f6637584caaad140624f44fc"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticBundleExporter.export (cognitive 19): DiagnosticBundleExporter.export has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 11, if/else 5, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Diagnostics/DiagnosticBundleExporter.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a21229bf4f5141a5545c5c4653b2f712f2557cf304b4153e4fe2fc0688c85c4"}},{"ruleId":"D2","level":"warning","message":{"text":"UserFacingError.map (cognitive 19): UserFacingError.map has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Diagnostics/UserFacingError.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec41e982a95bf1c92b17c0229199bdf9f08580b043064f13130c5c7d3a8b49cc"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMLXRuntime.performRecorded (cognitive 19): LocalMLXRuntime.performRecorded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (2 pts), loops 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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"562147b4dbdecf991652de2301013bf0c6ca1691f01a0954d5edc88f2900d09f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentMessageTimelineView.timeline (cognitive 19): AgentMessageTimelineView.timeline has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, ternaries 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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d770b6cf675a65566d769276bd40ea498998772cbe8b3755049527e5802ce4e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGRetriever.retrieve (cognitive 19): KnowledgeRAGRetriever.retrieve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 5, ternaries 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ad5f7945d9872bd21699208a00f459bace4f2beac0b68f74e4cd87196d0e5a"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGService.runPlanningPhase (cognitive 19): KnowledgeRAGService.runPlanningPhase has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, 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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"5682617b9f5d0a08c5553aae0eaf29a51a2bd89ba6a99019b749f628167fddd4"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteRAGVectorSearchProvider.search (cognitive 19): SQLiteRAGVectorSearchProvider.search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGSearchProviders.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"de59858199c8f3b9080c4531728fa6b9d46d44a365225d043bacb852dc32590d"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.schedulePagedMentionQueryIfNeeded (cognitive 19): KnowledgeRAGWorkspaceViewModel.schedulePagedMentionQueryIfNeeded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, error handling 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"01eec2c8e78fbc66bb5ce936c89e752ff6495302a0cf39ddbbf9baae95fc075a"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGBrowserView.repositoryDetail (cognitive 19): KnowledgeRAGBrowserView.repositoryDetail has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 3, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac69099584cb32ca49e0ad29b5455505db16bd75f917ecc942009f41d3a921d6"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.debugRepoContextGroup (cognitive 19): RAGWorkspaceInspector.debugRepoContextGroup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":3021}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eea0931387c2683d1792a5a1f4779f8a66ffe8ed1cbe4283b798bcd3577089"}},{"ruleId":"D2","level":"warning","message":{"text":"GitLFSPointer.parse (cognitive 18): GitLFSPointer.parse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, 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":"Starcat/Core/Download/GitLFS.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a965ea47197010ac71be30d30de9a77cea1da1504ec9894c27780bd2cf99435d"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryReleaseDeepLink.init (cognitive 18): RepositoryReleaseDeepLink.init has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (7 pts), match/switch 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":"Starcat/Core/Navigation/RepositoryDeepLink.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4645e1cb0033f2612a021fb5f79fc6edca0bc51794800544bd593ddebfd1d936"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeSafeClient.sendWithRetry (cognitive 18): TypeSafeClient.sendWithRetry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 3 (7 pts), boolean chains 1, 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":"Starcat/Core/Network/TypeSafeClient.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ee8c2a3932f45c95fce9cbc2b42628b8487d89f989b1c7f5e449127503f09a"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoSkillStore.runWorkerIfNeeded (cognitive 18): RepoSkillStore.runWorkerIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 7, error handling 1 (2 pts), 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":"Starcat/Core/Skills/RepoSkillStore.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bdcd633464b10845ba6fae2da1893850c414fa0926d3e5406861c4577184be"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchStarService.runBatch (cognitive 18): BatchStarService.runBatch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (4 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/BatchStarService.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d0c889ee8b87a0bb7cb7b6b251b29e7ec250a783f8ba4e559bc423af19d795"}},{"ruleId":"D2","level":"warning","message":{"text":"AIOrganizationBannerState.tags (cognitive 18): AIOrganizationBannerState.tags has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, 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":"Starcat/Features/AI/AIOrganizationBannerState.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a417709c6221af75b606adc85764aec79b28b8d967a89a81963c117645ff4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"LayaDecisionRuntimeStore.evaluate (cognitive 18): LayaDecisionRuntimeStore.evaluate has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 4 (8 pts), error handling 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":"Starcat/Features/AI/LayaDecisionEngine.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d9f83dea4dfc46ec3d24cd8249661198a29b5de8341770104fd8c448938295"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownHeadingDemoter.demoteToH3 (cognitive 18): MarkdownHeadingDemoter.demoteToH3 has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/MarkdownHeadingDemoter.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37a339bafb85736a5b5d7e8d0444adfcbbc9a20d37ad00448e5134a2d059672"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityView.body (cognitive 18): ActivityView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4f4b64029b080f83101f49e16ec4e8de82d9ef98b15fb7827cdef259b3ff8d"}},{"ruleId":"D2","level":"warning","message":{"text":"WeeklyContentViewModel.loadMoreIfNeeded (cognitive 18): WeeklyContentViewModel.loadMoreIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5776f24b48e2cf7ab7706f0d1489ee942f240571d1c3ca883b5774b2efb162cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCollectionsOverviewView.systemCollectionCard (cognitive 18): SmartCollectionsOverviewView.systemCollectionCard has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 14, if/else 3, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionsOverviewView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"031688d1a155fdc74761755fc5486bfd686a248bbd2b59b5802a3c89eb5d77bc"}},{"ruleId":"D2","level":"warning","message":{"text":"CompanionEventHub.init (cognitive 18): CompanionEventHub.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (4 pts), loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Companion/CompanionEventHub.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8503cd40813900f567f56e36f4210a4f7e61816690ba2368380f2291662071"}},{"ruleId":"D2","level":"warning","message":{"text":"LinuxDoStore.load (cognitive 18): LinuxDoStore.load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, error handling 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":"Starcat/Features/Explore/LinuxDoStore.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5842261cfabf505eef36c2abd56a200fb0da3fc24b24862088cbbc5249dd3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalSearchCredentialTester.test (cognitive 18): ExternalSearchCredentialTester.test has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/ExternalSearch/ExternalSearchCredentialTester.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c24b8e2dc37149e26504d67f80272eb8ee8f288015ffee22855c3316db9cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoNotesSection.body (cognitive 18): RepoNotesSection.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Notes/RepoNotesSection.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1aab84b456439ae70200fa6e49ea025690e017348c184b5dd4b7f37a3557efe"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeDownloadInstaller.validate (cognitive 18): RuntimeDownloadInstaller.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), match/switch 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":"Starcat/Features/Settings/RuntimeDownloadInstaller.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0df3618aaa0addd217aa930c7f6088bed2c1f0ef17b1ae398efee6c4196789"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageSettingsTab.body (cognitive 18): StorageSettingsTab.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 8, error handling 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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc12ef94ab513e9d57edcccb8696dbf9c1a29daf8c32e089d5dc10e29cf5b13"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceRunSurface.handleComposerCommand (cognitive 18): AgentWorkspaceRunSurface.handleComposerCommand has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b7804e686ccfbe2d4829906bcabb180c4b2dc90a9fabb7a7d722f083138ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentLineReader.lines (cognitive 18): ExternalAgentLineReader.lines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (6 pts), error handling 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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"5590bd7f00e40755a0769bdc2b2368338ee54a68a616dd3bee1fd66e1c975efb"}},{"ruleId":"D2","level":"warning","message":{"text":"StarredExporter.collectLibrarySupplements (cognitive 18): StarredExporter.collectLibrarySupplements has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 4 (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":"Starcat/Features/Profile/ShareCard/StarredExporter.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7356f3b9e9745755cfa083ec624c66152046a36c5a35fb2f31aba479b0a57239"}},{"ruleId":"D2","level":"warning","message":{"text":"GreedySnakeAnimator.bfsPath (cognitive 18): GreedySnakeAnimator.bfsPath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"330bc444b027a53784e99f1552d5b4a95373a193255b56ae82fe18aa8afa8efd"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGRepositoryInsightsXMLProjector.project (cognitive 18): RAGRepositoryInsightsXMLProjector.project has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 3 (4 pts), error handling 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":"Starcat/Features/RAG/Core/RAGRepositoryInsightsContext.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5843d8fbb10ee1762113d5c7ddfe26d6ea7b6f002dea63fd352baa22d332e9b8"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGBrowserView.retrievalTestSettingsPanel (cognitive 18): KnowledgeRAGBrowserView.retrievalTestSettingsPanel has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 4 (6 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"0824046479eac982e25d8f3bec4c7827d541108a3c66a81e02fc0fbfcb683f35"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.citationDetail (cognitive 18): RAGWorkspaceInspector.citationDetail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9ddf651a754348f5b6e65f5657276c96d0a9ee3a2d90b411857d069501c20f"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.debugInspector (cognitive 18): RAGWorkspaceInspector.debugInspector has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (6 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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"9983b53c77e2d19218d18659881b662cd33a8f9b65aff04feeacba746be4df52"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGWorkspaceInspector.indexBuildStageMetrics (cognitive 18): RAGWorkspaceInspector.indexBuildStageMetrics has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":4166}}}],"partialFingerprints":{"codehealthFindingId/v1":"0294b0c8ef7c1d6480e60a3492f8bfdad9ae96212e445672e3ee431c894e11cd"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobCompiler.toRegex (cognitive 18): GlobCompiler.toRegex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/RepoContextPacker/Internal/GlobCompiler.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8cb811a8e3c8c9897cd00413ee6bc45fa7395cd280f480cd80b285e915f514"}},{"ruleId":"D2","level":"warning","message":{"text":"entry.syncAnimation (cognitive 18): entry.syncAnimation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/entry.js"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"340a85b6cc8c14826cb9ca1f97e20a901b2db3868fa85318ae052aebbe53b53f"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarRepository.fetch (cognitive 17): DailyRadarRepository.fetch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, 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":"Starcat/Core/Sync/DailyRadarRepository.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"872e1413c23a8fd07abb1f1712f9ca551c954afd9d8387f6a2a413a60d25fe0a"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationMapper.autolinkIssueReferences (cognitive 17): GitHubNotificationMapper.autolinkIssueReferences has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccee502be0f21330c549e4ff49d7c9ec046a4ff9e63fcd615f8d122277922fd"}},{"ruleId":"D2","level":"warning","message":{"text":"StarActionService.unstar (cognitive 17): StarActionService.unstar has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 4 (6 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":"Starcat/Core/Sync/StarringSubsystem.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e5dbc83ce0915b71308656dc7858c2432bcdc164371712d316101b77a27f60"}},{"ruleId":"D2","level":"warning","message":{"text":"AIStreamReasoningNormalizer.ingest (cognitive 17): AIStreamReasoningNormalizer.ingest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, 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":"Starcat/Features/AI/AIClient.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2737b37417116d0892566e60975d8d197d4402b62e797c4066d44919b687276"}},{"ruleId":"D2","level":"warning","message":{"text":"AIOrganizationBannerState.grouping (cognitive 17): AIOrganizationBannerState.grouping has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 2 (4 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AIOrganizationBannerState.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c479067b4c1ea3dfda1b0b53a2f5ce5bb0fee4205292e57bcfc00373b0231543"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangelogParser.parseBody (cognitive 17): ChangelogParser.parseBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, ternaries 2, loops 1 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body 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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a42645b59d94ed1f5f1a637c4d84f386d34746706a4544a5b699e075b30bba"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationCommentCard.body (cognitive 17): GitHubNotificationCommentCard.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6 (7 pts), boolean chains 2 (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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ef9faf7cf905aa9c863dfd873ed6fb62b32b85f67cd69661b1e3b48126d498"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.loadMore (cognitive 17): DailyRadarWorkspaceViewModel.loadMore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, error handling 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbba6688311219f69e265dcb3a286b65da0cf08c9f93ed2e9f0329dac2e38ad6"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreDiscoveryListView.fillSkillResults (cognitive 17): ExploreDiscoveryListView.fillSkillResults has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (6 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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c653bdaa7609240d2328fd8a8a888a673d4c8051f1c545000fdc3eae37a1ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.flush (cognitive 17): Coordinator.flush has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6 (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":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b8a5864dbf4c7b51d9191e0d4af3d0b0ce48dd4f174569d97754a1d1443118"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.hasActiveFilter (cognitive 17): HomeViewModel.hasActiveFilter has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 17. 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"375c41931251decb59ee424be7ad9d77f613d04515df7dbb55d40b5e1fe96cee"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchersMenu.body (cognitive 17): WatchersMenu.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7e0734a76472b8874290b9194aad822199463ccb0e83fa8a771c291cec582a"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoListNavigationSubtitleModifier.exploreRepoCounts (cognitive 17): RepoListNavigationSubtitleModifier.exploreRepoCounts has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 5 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 6). 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc66d7c7129a15d707c98c1a16874c0caccdfe4d7a984ecea1ab2c8296e9cafb"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarView.isExploreSelectionCurrent (cognitive 17): SidebarView.isExploreSelectionCurrent has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, match/switch 1. 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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a619667109c5efd40ba305e1fe90b61da56a5953c1b8036c0a3ea8c9a170a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SidebarView.manageSidebarContent (cognitive 17): SidebarView.manageSidebarContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"826ee8a9ce23fe5b2e9592b39625060ea017e1b46502080755aa21f8f24a7ded"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticSystemDiagnostics.sanitize (cognitive 17): DiagnosticSystemDiagnostics.sanitize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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":"Starcat/Shared/Diagnostics/DiagnosticSystemDiagnostics.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"43100e43e3cbc4c88f35fcbe943decedda17d2dd6ed635c532801a9946e7abf5"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskReadmeTranslationCache.lruSweep (cognitive 17): DiskReadmeTranslationCache.lruSweep has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 5 (8 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskReadmeTranslationCache.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d254d94c200058c46dba3b5caea991bf41380817103c744b2912290f3153b22"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentWorkspaceViewModel.canSubmit (cognitive 17): AgentWorkspaceViewModel.canSubmit has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), match/switch 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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f030eacd6577ef5c8df3f438e8d629ed64932c728053be8a1beeac4e3539f1"}},{"ruleId":"D2","level":"warning","message":{"text":"CodebaseMemoryStorage.migrateProjects (cognitive 17): CodebaseMemoryStorage.migrateProjects has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (6 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"697434d6769592649e8a38d2294c50d7fae63350bb384cf578bc1836d687795c"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGRepoFilter.hasEffectiveConditions (cognitive 17): RAGRepoFilter.hasEffectiveConditions has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 17. 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":"Starcat/Features/RAG/Core/KnowledgeRAGModels.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a02c2e27983cdedbf823dcbc64fc293e09df5c03820241e162b4aeba3e34e73"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepositoryInsightsLoad (cognitive 17): KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepositoryInsightsLoad has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a298171caa3fb207e33b038e717d0caeeb24e2448d666da950c68b0adab7f4"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepoContextLoad (cognitive 17): KnowledgeRAGWorkspaceViewModel.scheduleHistoricalRepoContextLoad has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 6. 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"100d9bac82c1237da22c468ef32baaff8c3b302920304c4c064380e283d124f6"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.scheduleConversationPrefetch (cognitive 17): KnowledgeRAGWorkspaceViewModel.scheduleConversationPrefetch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2299fdaee57962312c6618f90e0208e6332311e5ccb0055b073eff0b8d784d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.detectGitHubLink (cognitive 17): KnowledgeRAGWorkspaceViewModel.detectGitHubLink has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), ternaries 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":4389}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedecca0e024f6c8bdad9b4664f1dd1aff29bfe7cb36682fb2cd4c6bfa8dd1e8"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGBrowserViewModel.generateRepoContext (cognitive 17): KnowledgeRAGBrowserViewModel.generateRepoContext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, error handling 2, 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"99adebc48bfa688ed6db4bcd3c470845006c05dda8602e1a5e38aead57c3ca9e"}},{"ruleId":"D2","level":"warning","message":{"text":"CCSwitchConfigStore.matchingParenEnd (cognitive 17): CCSwitchConfigStore.matchingParenEnd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/CCSwitchImport/CCSwitchConfigStore.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d272ed0a0eafa061534a9fae4a31106413297d45cda9a10f98f6988a11c1f357"}},{"ruleId":"D2","level":"warning","message":{"text":"useAudioPlayer.useAudioPlayer (cognitive 17): useAudioPlayer.useAudioPlayer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2 (nesting depth added 2). None of this is in the body itself: all 17 points belong to 7 function literals inside it that branch (lines 62, 127, 79, \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":"starcat-promo-video/presentation/src/hooks/useAudioPlayer.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b58757fac49798f25e9d673c8d7f1acd5b43d998184248ce8d3f6b2cb8672b"}},{"ruleId":"D2","level":"warning","message":{"text":"useStepper.useStepper (cognitive 17): useStepper.useStepper has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 2, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 4 function literals inside it that branch (lines 140, 42, 58, \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":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d79b2049ccb4f79e32ba25296a9c65ae48c9d41acae6c9e433d3c007e35ed07"}},{"ruleId":"D2","level":"warning","message":{"text":"RepositoryTagCapabilityExecutor.apply (cognitive 16): RepositoryTagCapabilityExecutor.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 5 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Capabilities/RepositoryTagCapability.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dbe0291dae2e695491d2c4db6e372d315cea2ecb6801853da512591e356735"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGChunkBuilder.parseSections (cognitive 16): RAGChunkBuilder.parseSections has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 1 belongs 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":"Starcat/Core/RAG/RAGChunkBuilder.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d62debb7b21454ede76f5799805057ce01063e28d882b38bc8a3dc6b237a33"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionManager.refreshEntitlements (cognitive 16): SubscriptionManager.refreshEntitlements has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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":"Starcat/Core/Subscription/SubscriptionManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"472f5d44df8be54a2f2d679455303e0cfdb4ca77d95f319f9f4852c893cb5539"}},{"ruleId":"D2","level":"warning","message":{"text":"UserProjectSyncCoordinator.syncAffiliation (cognitive 16): UserProjectSyncCoordinator.syncAffiliation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 1 (3 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/UserProjectSyncCoordinator.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af03aafb63a58132a9f43f6dec508b1ef3b809db52bc5ed90f05ef111b9ea3a"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAIQueueService.makeTagExpansionSession (cognitive 16): BatchAIQueueService.makeTagExpansionSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"d401c6203f3cdec0c38219017c9bdc360dc8d0b1a4b0238733dc6d94f4956698"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubStarListAIGroupingSession.applyMembershipRequestBatches (cognitive 16): GitHubStarListAIGroupingSession.applyMembershipRequestBatches has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"2438859986664a352c770dd8df3a504370b3f90123bcdcc977f9dd5cc3520c15"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIClient.chatStream::consume (cognitive 16): OpenAIClient.chatStream::consume has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (5 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (OpenAIClient.chatStream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f3427001c64518c1ebac1ec390fbbac51231d379c703098617235fd937852d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangelogSectionKind.infer (cognitive 16): ChangelogSectionKind.infer has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"4743ab98aba3094fab3760de7cf7942b9335ea47774da6e2462ddb25664dd000"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityViewModel.formatFollowingTitle (cognitive 16): ActivityViewModel.formatFollowingTitle has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (7 pts), ternaries 2 (5 pts), if/else 4 (nesting depth added 6). 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc98274b7e65a854ae936d498674d2deff217149ad1e152fe31d20d3e78fae2"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubNotificationCommentCard.== (cognitive 16): GitHubNotificationCommentCard.== has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. 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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a3259c800709b8c858eab218b085e921bb714b214612eb06b9004c253b71c6"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarProgrammaticCover.drawArchitecture (cognitive 16): DailyRadarProgrammaticCover.drawArchitecture has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarProgrammaticCover.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb3a673ca3aef1ca9b20f757753ec4a6da739e11ab6610d7d4bc0682f27a5b2"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyRadarWorkspaceViewModel.open (cognitive 16): DailyRadarWorkspaceViewModel.open has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, error handling 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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"903f87d38751db694919d60b15565da26c987352555b2d03da376f8e6fd05216"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreDiscoveryListView.body (cognitive 16): ExploreDiscoveryListView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, ternaries 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3889631b33257218237d8cd3b504e41add42362ed84990d4bc029f664e27aca0"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.detailColumnBody (cognitive 16): HomeView.detailColumnBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cd870643f0bff1194a5cad91be5e5df0a89521252a70081330035ef1f2a91d"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.syncViewModelSettingsFromAppSettings (cognitive 16): HomeView.syncViewModelSettingsFromAppSettings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4fa7460bb43613dd57da402b91f19ecbaad11af1f98a9ed09fa5760e8c6b4f"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.startBatchAIIntegration (cognitive 16): HomeView.startBatchAIIntegration has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 4 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"3338a294e4304df910114aba23034888b0699e23bc219a2ead171c28061aec7a"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeView.handleAuthenticatedEntry (cognitive 16): HomeView.handleAuthenticatedEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae71e024da17c8c2f23a62315ee08097e0c7522d60652e87372f743914054af"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeViewModel.buildSmartCollectionFilterContext (cognitive 16): HomeViewModel.buildSmartCollectionFilterContext has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d30a314a55bae3c3f6a0c63eabe5de93d3c3f0afcaaac3c184076b32ea9395"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchersMenu.updateSubscription (cognitive 16): WatchersMenu.updateSubscription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, 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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"031c77674cf155989aeaf88bdecd7db5904c61b01d8e9104d9ced4d80a52a0d9"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoListView.body (cognitive 16): RepoListView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 1, ternaries 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"1343b3e5cd5def19d5c06b72fb5cd01b6f352172bdd6972790ce1ae46f14f598"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoNoteAIGenerationViewModel.run (cognitive 16): RepoNoteAIGenerationViewModel.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Notes/RepoNoteAIGenerationViewModel.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9120ab691014c50be0f3df61402b3df04411b6db910312d5fad7ac9553f50e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ExploreCatalogSettingsSection.groupRow (cognitive 16): ExploreCatalogSettingsSection.groupRow has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 4 (5 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":"Starcat/Features/Settings/ExploreCatalogSettingsSection.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f3579703e6c08604ff92eaa0531551d2d6b67c78b6b58f861ebd4789eb4428"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.loadMermaidRuntimeIfNeeded (cognitive 16): Coordinator.loadMermaidRuntimeIfNeeded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6d6644bc0c6145851f57823e5e81f02e1390df2475ec8acfc0219437165d24"}},{"ruleId":"D2","level":"warning","message":{"text":"ToastModifier.body (cognitive 16): ToastModifier.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (5 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":"Starcat/Shared/Components/ToastOverlay.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"014409c941a5539f8563a02bd68f528a0fdd45bec8702608e1088d66f4b9d075"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedSnapshotService.archiveIfNeeded (cognitive 16): SharedSnapshotService.archiveIfNeeded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 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":"Starcat/Shared/Services/SharedSnapshotService.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"948dc8499ecc7ff67190dbdd60002013e72dfe3607eb5c32824c637575b76df6"}},{"ruleId":"D2","level":"warning","message":{"text":"DatabaseMigrations.registerV20 (cognitive 16): DatabaseMigrations.registerV20 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d9bdde02705e2d0cf1fa528d46d4c0ba62c5890410fe3f567d5ea3f4150612"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeAPI.performRefreshReadme (cognitive 16): ReadmeAPI.performRefreshReadme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 4 (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. This shape REPEATS in the file: one other method here (ReadmeAPI.performRefreshTrendingReadme) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ba95c91dbec6c5664cb7a75cb7548945570731683b5201a8ca241cb89290c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadmeAPI.performRefreshTrendingReadme (cognitive 16): ReadmeAPI.performRefreshTrendingReadme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 4 (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. This shape REPEATS in the file: one other method here (ReadmeAPI.performRefreshReadme) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cee6808594a9e2fffbb073ef103c14f0f59a3325db90467c6d4a7e29edf6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAIModelManager.resolveFileSizes (cognitive 16): LocalAIModelManager.resolveFileSizes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 1 (3 pts), match/switch 2 (3 pts), boolean chains 2, 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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"4782b2afa8170590d39c67967814d9728210c83bf69997da3e4a2f3c89314dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentJSONSchema.validate (cognitive 16): AgentJSONSchema.validate has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (7 pts), if/else 4 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentJSON.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"140a01314d4546efdc0fe64668b628ebce16ea4fe29935e50ad35d7eb615ec07"}},{"ruleId":"D2","level":"warning","message":{"text":"LoopAgentRuntime.executeWithPolicy (cognitive 16): LoopAgentRuntime.executeWithPolicy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (4 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"c626c75696f0f469f9a1d9f3b7e004a9706c74267dcf4e3894bf0d67a3eb6487"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentRuntimeError.errorDescription (cognitive 16): ExternalAgentRuntimeError.errorDescription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9409f67555d167fa3015cd63dda8f7a00754138f7c0cda57f8d624f55ec4ee09"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalAgentRuntime.run (cognitive 16): ExternalAgentRuntime.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 4 (5 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba0c561b4120bf0702df5d43731e5ecf58d345280fc5891bb8a98baf6688de1"}},{"ruleId":"D2","level":"warning","message":{"text":"SpiralSnakeAnimator.buildSpiralPath (cognitive 16): SpiralSnakeAnimator.buildSpiralPath has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/MultiModeSnakeAnimator.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcbd30169b9f8f3551d3184d7e7576ccf938bc58ad6d934d75295ba696ae08a"}},{"ruleId":"D2","level":"warning","message":{"text":"RAGCLIJSONLineParser.parseCodex (cognitive 16): RAGCLIJSONLineParser.parseCodex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGCLIModelClient.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f8e5e58c9daeafe45b6c88d86dfca222e9320bab6b10e08fac941c3511e240"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeRAGWorkspaceViewModel.loadIndexIssueChunks (cognitive 16): KnowledgeRAGWorkspaceViewModel.loadIndexIssueChunks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), loops 1 (3 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2576}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1515b47c62bce5c81ea26dd4e8170bff40fea429909b952f557993a73aa1a45"}},{"ruleId":"D2","level":"warning","message":{"text":"analyze.public_event (cognitive 16): analyze.public_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"90168c9971ff06fd17de79cec35ca69ea3a557bfdc6e0897fe8cbf3e9c27be55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RAGWorkspaceInspector: ClassTooLong \u2014 3074 significant lines (blank, comment-only and punctuation-only lines excluded), 138 methods. The bar is 400 significant lines; this is 2674 over it, 7.69\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"72475a9be5a3f4f1df3edf118cf16472f6a401ea2da8ab43ca3dffd36f0ab467"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGWorkspaceViewModel: ClassTooLong \u2014 2859 significant lines (blank, comment-only and punctuation-only lines excluded), 169 methods. The bar is 400 significant lines; this is 2459 over it, 7.15\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0f0b2a8e9a0dced266e3df133cf214ec522bab95a783ce5bc87c589c90aac0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDependencies.init: MethodTooLong \u2014 init runs 696 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 596 over it, 6.96\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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a2f36e64857fbee5dd9318ad202dabbcbebfd2bcb8115a8c6dfa0612bccbe6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/RAGWorkspaceInspector.swift: FileTooLong \u2014 3118 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: RAGWorkspaceInspector (55-4303). The bar is 500 significant lines; this is 2618 over it, 6.24\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3b3e8f11f5df4f846fa3801bdab8bbadc22e43efe0f171fe3171ac7344af5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/KnowledgeRAGWorkspaceViewModel.swift: FileTooLong \u2014 3093 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: KnowledgeRAGWorkspaceViewModel (357-4447). The bar is 500 significant lines; this is 2593 over it, 6.19\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad55523af1eb24911b7aa0362c56a745ab6107febde0a3094d396df49b458b60"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeViewModel: ClassTooLong \u2014 2449 significant lines (blank, comment-only and punctuation-only lines excluded), 116 methods. The bar is 400 significant lines; this is 2049 over it, 6.12\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c68e38838eee6c29ed853b2b340d6df3daad802689ad20008c0671ba291ef0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeRAGWorkspaceViewModel: TooManyMethods \u2014 169 methods. The bar is 30 methods; this is 139 over it, 5.63\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba989e5e3a1b4a5e78e6ba2c714af007e3381aeee7706974291364827e727af"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepositoryInsightsView: ClassTooLong \u2014 2245 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 1845 over it, 5.61\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cb183802ba13dc7adbc3158c73256813661291fd48e76ed5a9daaed67b0c5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/RepositoryInsightsView.swift: FileTooLong \u2014 2595 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: RepositoryInsightsView (345-3441). The bar is 500 significant lines; this is 2095 over it, 5.19\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79945bc8367516b2af6c8229da514d4ca5dda0ca72761e03c9d8f241b896301"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StarredHTMLRenderer.buildStylesheet: MethodTooLong \u2014 buildStylesheet runs 513 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 413 over it, 5.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/StarredHTMLRenderer.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4b6721658305faab058eff116fa24979faca578563840095ab383dc2a122f8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DatabaseMigrations: ClassTooLong \u2014 2050 significant lines (blank, comment-only and punctuation-only lines excluded), 113 methods. The bar is 400 significant lines; this is 1650 over it, 5.13\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"809da04a809d69f90a94226c51a4cb5fbba05e4c3e27c3c1842e9a8e7a46ead8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/KnowledgeRAGWorkspaceWindowController.swift: FileTooLong \u2014 2521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2021 over it, 5.04\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb0a4a6d29b26e6d9b62616b7697cc0f3fc47d0376d5c6660c547b66456ac79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/HomeViewModel.swift: FileTooLong \u2014 2492 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: HomeViewModel (40-4204). The bar is 500 significant lines; this is 1992 over it, 4.98\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5e4cade1721cdde7bc4d1b4863b7677a2989da3e329d8ccf8ca09ace04ad5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RAGWorkspaceInspector: TooManyMethods \u2014 138 methods. The bar is 30 methods; this is 108 over it, 4.60\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"27446b5d0e66d92c5cd497cff88fd1704d6ea86afef7771c49353c77ac993fc3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SidebarView: ClassTooLong \u2014 1799 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 1399 over it, 4.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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdddca122321ba19a2abd1252312423c9847988fd940bd16b80a42ea59bb279"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsView.swift: FileTooLong \u2014 2215 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1715 over it, 4.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae400a890f96a42c5d2c9ee2346397ff88fe427e421a5265ac3ea91588ca884"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Activity/GitHubNotificationDetailView.swift: FileTooLong \u2014 2207 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1707 over it, 4.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"322fd02b3f86e8aa7fcd77b39c5c4c642d5f0d36ba553cb27795192e36f17b78"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeView: ClassTooLong \u2014 1685 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 1285 over it, 4.21\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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"70116b03189c9cbefc90ebfbef79d603442e74cdb700dda10a35d3dbeef1a668"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Migrations/DatabaseMigrationsV1.swift: FileTooLong \u2014 2052 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: DatabaseMigrations (63-3447). The bar is 500 significant lines; this is 1552 over it, 4.10\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3391beeab6f8c4ceb9579a0b2688bd9e437fddde163e287001acc8e23bd0902"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchAIQueueService: ClassTooLong \u2014 1615 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 1215 over it, 4.04\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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43f91b01133a4022373ec726c1288f82f32cca0bc72268e00bb27bb3b5459db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppSettings.init: MethodTooLong \u2014 init runs 403 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 303 over it, 4.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b8617d83c078b6b87266b3987a0912d9505084f00aab2fa8cc5af0cfe8ed84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/RepoListView.swift: FileTooLong \u2014 2012 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: RepoListView (458-2929). The bar is 500 significant lines; this is 1512 over it, 4.02\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0b81757548f90e2055530e01622944aa7e746d936fc19acea1d8bb32c6de97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Search/SearchCenterView.swift: FileTooLong \u2014 1973 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: SearchCenterView (12-1890). The bar is 500 significant lines; this is 1473 over it, 3.95\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea888d784f36b740b9843770484e4492c73e70bf38d03e36fc53f21f7497410"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AppSettings.swift: FileTooLong \u2014 1959 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: AppSettings (833-3331). The bar is 500 significant lines; this is 1459 over it, 3.92\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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3374869f09352a83d263f3e645497d880ddec44ee19a7298e8c13db97ac174ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShareCardContent: ClassTooLong \u2014 1554 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 1154 over it, 3.89\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1f5c11d8036550febc70d4e012b333a9fd4ef5fb36e859be3da5e45b1f0895"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HomeViewModel: TooManyMethods \u2014 116 methods. The bar is 30 methods; this is 86 over it, 3.87\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"433afb2a21d316303e82aad277acaf4b7720a4b914f1ac3ff36b71aa33139e7e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoListView: ClassTooLong \u2014 1535 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 1135 over it, 3.84\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"d740a6f8e684417debed398802bcc7893159c10e8292e829913dffc42ed34c3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexAppServerDriver.receiveNotificationOrRequest: MethodTooLong \u2014 receiveNotificationOrRequest runs 378 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 278 over it, 3.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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8a02ba8bd24688c211a5ff848bf9d724184b5e990ed88cefa478df8780ca1d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGWorkspaceViewModel.runQuestion: MethodTooLong \u2014 runQuestion runs 370 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 270 over it, 3.70\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2908}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a97e21c202457474c121f3eb011bf77a44e248e1c933c51ac185eb3ac42d22c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/SidebarView.swift: FileTooLong \u2014 1816 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SidebarView (57-2840). The bar is 500 significant lines; this is 1316 over it, 3.63\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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07a656e7c788ed972b98a34b39a606bce98c4e7fbd6811559f7d8d28d59a9a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppSettings: ClassTooLong \u2014 1452 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 1052 over it, 3.63\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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e3a90b6f79ebcbad51c780cbbc2be6700c1389b5e83a0b9a9be6d5b77fed71"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeepSeekHarnessDriver.mapEvent: MethodTooLong \u2014 mapEvent runs 357 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 257 over it, 3.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12f10cc881ce2c97b2526fb5491a76740b82c2315392ca01c6c1d16d9fbe1bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GRDBRepoRepository.makeListQuery: MethodTooLong \u2014 makeListQuery runs 347 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 247 over it, 3.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"424312b330be853565ba2398b0f8e5f86e2eef1d005f04bde6e942682d1c5901"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/HomeView.swift: FileTooLong \u2014 1687 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: HomeView (39-2900). The bar is 500 significant lines; this is 1187 over it, 3.37\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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efba2bc0346a1468f22d66c7ff92bd321b84f70d5be4d95f654725e1a61e5718"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AISettingsTab: ClassTooLong \u2014 1349 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 949 over it, 3.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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"41266054ad7c65daada6c2b2b8ef8168c93e03c4b12fde7705ad86bc6bcef7ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubStarListAIGroupingSession: ClassTooLong \u2014 1336 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 936 over it, 3.34\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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc636cf5a8d29c86587e331757ede5daa2e2ed8446f4f2937906dce08c467a9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ShareCard/ShareCardContent.swift: FileTooLong \u2014 1668 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ShareCardContent (62-2407). The bar is 500 significant lines; this is 1168 over it, 3.34\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afd3f888ff9699aefaa1dae95ce5f9c4e6308c3c6cb637dadef908f746e69c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/ReadmeWebView.swift: FileTooLong \u2014 1667 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: ReadmeWebContentView (318-1866). The bar is 500 significant lines; this is 1167 over it, 3.33\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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5c925bec200c5bc52697884f872d2ddd4151a4ba347fbb2735d484d7275ad0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StorageSettingsTab.body: MethodTooLong \u2014 body runs 333 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 233 over it, 3.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b675b9a50fc6fe7c089fd287ba8fffb9d536d475da9aaaffcf6d12c400d299"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/BatchAIQueueService.swift: FileTooLong \u2014 1619 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: BatchAIQueueService (28-2522). The bar is 500 significant lines; this is 1119 over it, 3.24\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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"364c2ad1c900b32c20da543955503b2fadbd8d1c2acb70e0022fa3bd698f57e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StarredHTMLRenderer.buildClientScript: MethodTooLong \u2014 buildClientScript runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/StarredHTMLRenderer.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"87820a2d5917b2bbe6ccfae1d709f94dd98ce48b6f52fbf590fbd71eacc568f5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ActivityViewModel: ClassTooLong \u2014 1259 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 859 over it, 3.15\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"989804da1536f2a0b880d8f7c3d99d191f1f830d149b6aab005fc554ebb3c14d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoAIWindowContentView: ClassTooLong \u2014 1251 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 851 over it, 3.13\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7869b3bf533f0fa4dc910800ae92e3ed55330b2af5c10281fa6799396dc55fee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ProSettingsView.swift: FileTooLong \u2014 1560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1060 over it, 3.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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8966929a95396167e0b8954307eb3fc21c66d4e888135c74803a849d7db637"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGPromptBuilder.build: MethodTooLong \u2014 build runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd913f6610197c12c57adaf09751c888dc93743eb1c277eecf91e118930057d8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDependencies: ClassTooLong \u2014 1246 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 846 over it, 3.12\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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"73507663be91fd2dd5dbfb40bc4bb8c774af889fb77650b4ddca53fc705c4604"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGBrowserView: ClassTooLong \u2014 1234 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 834 over it, 3.09\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50d182e1d6db351daba48e677373934b834075f9fe13a2c8c850a00b432b249"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoAIInsightService: ClassTooLong \u2014 1220 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 820 over it, 3.05\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcdcee95855c6f379a39c8067bfdf5905856d030f77f853b485f53cfcb6b892"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubAPIClient: TooManyMethods \u2014 89 methods, declared across 24 files: GitHubAPI/GitHubAPIClient.swift (21), GitHubAPI/NotificationsAPI.swift (12), GitHubAPI/GitHubStarListsAPI.swift (8), GitHubAPI/UserAPI.swift (7), \u002B20 more file(s). The bar is 30 methods; this is 59 over it, 2.97\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":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ad6e1c6f473561cb123955f63693bdba1ad34b3afadae80c19abd3cb154e1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/GitHubStarListAIGroupingSession.swift: FileTooLong \u2014 1474 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: GitHubStarListAIGroupingSession (217-2083). The bar is 500 significant lines; this is 974 over it, 2.95\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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac02806fd23f4adb122f1d5e2737d8c6c376090a4fbff3edc98292c2929a1ba0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchCenterView: ClassTooLong \u2014 1178 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 778 over it, 2.95\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4271f75b3f93882997874261df0e2affbf603f912d459994ef7e27624bf151"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/KnowledgeRAGService.swift: FileTooLong \u2014 1448 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: KnowledgeRAGService (426-1876). The bar is 500 significant lines; this is 948 over it, 2.90\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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e30c5d0adeb46486c0abc2c01f296cea19c7fa95bcef4cb27cec987bb877e8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StarredHTMLRenderer: ClassTooLong \u2014 1154 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 754 over it, 2.89\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":"Starcat/Features/Profile/ShareCard/StarredHTMLRenderer.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7ffb76c8066bf59901df436221547dbb6b64d085a1bffeaa4943503977e29f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGService: ClassTooLong \u2014 1148 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 748 over it, 2.87\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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"86281a70882d4e99bd845436ad854e0064fa4a9ac994706b09ea65bf6eff1459"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AISettingsView.swift: FileTooLong \u2014 1392 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AISettingsTab (37-2116). The bar is 500 significant lines; this is 892 over it, 2.78\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c5f24e218abcae072eef14063551698378632c1fdfc0b77d6afa72f73b48ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RAGWorkspaceInspector.planInspector: MethodTooLong \u2014 planInspector runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"63117b267456880bad35c1b0c33e8f9a32d5a116510460d7e954131fa5644044"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/RepoAIWindowContentView.swift: FileTooLong \u2014 1364 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: RepoAIWindowContentView (95-2315). The bar is 500 significant lines; this is 864 over it, 2.73\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"146c229827f9d47f154fc42f033f204727009f4371fc4621c077667685b41332"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentWorkspaceRunSurface: ClassTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 675 over it, 2.69\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e1855c7a8e5a82ba24c93324bec41b3f4c542486e725141e5749cddd6b180e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BatchAIQueueService: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1bc04a726d4089013157c3ee5f70439b2a8378d2f6473b939ef60e0d9703bd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubStarListAIGroupingSession: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"be754f7c439fa545b52c543ecb6e977da7b01dd5a8be98c9f768caae5b2e16eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Activity/WeeklyContentView.swift: FileTooLong \u2014 1323 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 823 over it, 2.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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd41de6602aab3a049c71dfeaf3501abbd73372888f161ffd660ac2f03ce955"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HomeView: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1818c360077df6436cac0f4e1a0f547b9fe765ec2d07dac8e935180fd1704630"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/RepoAIInsightService.swift: FileTooLong \u2014 1300 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: RepoAIInsightService (149-2181). The bar is 500 significant lines; this is 800 over it, 2.60\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"508a19bdbc70ccaa69fac9246e53d88ecc1a107ec005bb9adf0416ab9bd4b79e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeViewModel.reloadItems: MethodTooLong \u2014 reloadItems runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2757}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd43555a742dee58764dbf902cbefa556547ff8092b11b6fb9b9a63247c49f0c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ActivityViewModel: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ec902511b1f2590f7821bd48ca536a1e41506a22a2f9d5a30acc469d744489"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadmeWebContentView: ClassTooLong \u2014 1013 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 613 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9b3bd238816508611c3c0ff80ad414c213ac327d293e251f172f1b766e8a8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Activity/ActivityViewModel.swift: FileTooLong \u2014 1266 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ActivityViewModel (61-2058). The bar is 500 significant lines; this is 766 over it, 2.53\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2e85544e4552f2e7bbf14ec983f431d5ba5946b19ef60b7380518011077be3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppDependencies.swift: FileTooLong \u2014 1251 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AppDependencies (22-2222). The bar is 500 significant lines; this is 751 over it, 2.50\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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5278b3e89d72a0e5220b9d14dae559581ad9cd781e0822d39326e12505a8add1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBRepoRepository: ClassTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 574 over it, 2.44\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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d48db90b6ebeeb9badeb9d7b3ca8fba262331c783f4313b389ed9e7a908ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RAGWorkspaceAnswerSurface: ClassTooLong \u2014 952 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 552 over it, 2.38\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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be75a5c3afae92c93af7a3b5db19efd01ba5ab9d346db35ae2991e2ccb3e75d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GRDBMyInsightsSnapshotProvider.makeStarredSnapshot: MethodTooLong \u2014 makeStarredSnapshot runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.37\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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef6b7cc62eeff9af8fa9760415922975a2e5d7e9f0ed91796c6105294c78e79"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatabaseManager.repairPrelaunchDevelopmentSchema: MethodTooLong \u2014 repairPrelaunchDevelopmentSchema runs 236 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\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":"Starcat/Core/Database/DatabaseManager.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"969714274110dc05bfd00c8e6ee5e0440a2ef6823635ace482904936ca893892"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LoopAgentRuntime: ClassTooLong \u2014 940 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 540 over it, 2.35\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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bd3d28b30769c14b1478aabd23d218cde8fa7574fa9004fbce824cde83217b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StarcatMCPToolRegistry.tools: MethodTooLong \u2014 tools runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34\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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"87520db7c56132b7e48e1f82d06476791241d2c4825a33df15d1781052dff69c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ShareCard/StarredHTMLRenderer.swift: FileTooLong \u2014 1168 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: StarredHTMLRenderer (41-1686). The bar is 500 significant lines; this is 668 over it, 2.34\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":"Starcat/Features/Profile/ShareCard/StarredHTMLRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0937032671c4fcda9a4fa52f9d9b493f0d65c7fb4a5b69687a9fe675e514a5cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentWorkspaceViewModel: ClassTooLong \u2014 928 significant lines (blank, comment-only and punctuation-only lines excluded), 68 methods. The bar is 400 significant lines; this is 528 over it, 2.32\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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9596e55a37adf1e807f4c7abe3a4db9f901bc708b0f9b47f2405beedaf55e89e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LoopAgentRuntime.execute: MethodTooLong \u2014 execute runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abfe9677eb4d6bea9a9aa11c98379c6c6ef86ece903264c196a60959416c85a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentWorkspaceViewModel: TooManyMethods \u2014 68 methods. The bar is 30 methods; this is 38 over it, 2.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb9811dd43138205a87b0dd1b96d6aff16886cc79e876f4159f87656fa38944"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/RepositoryInsightsViewModel.swift: FileTooLong \u2014 1127 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: RepositoryInsightsViewModel (449-1585). The bar is 500 significant lines; this is 627 over it, 2.25\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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d9f1385801dfb13fff15921cd304dd31eeb1ef94c2a65742e28b575fadd4cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/RAGWorkspaceSettingsView.swift: FileTooLong \u2014 1123 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: RAGWorkspaceSettingsView (203-1457). The bar is 500 significant lines; this is 623 over it, 2.25\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc6d5dde27fe051967a18337ee1fd7f0a0b8fbc2a9abf1c05cddd43c1223f17"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGIndexBuilder: ClassTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 490 over it, 2.23\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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffc2ebbe0a75a01449695e4b9a4837f9ad8bd5783f9fd794a613df2c33f4abc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RAGWorkspaceSettingsView: ClassTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 490 over it, 2.23\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59bc3799f800129ba3d647ff500a848064b724eebd85ecb02029f1aea89e317"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPSettingsTab.body: MethodTooLong \u2014 body runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\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":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5e41686000e010a23da285800097f4f5fbd30f9f9f53e031bf790d853470e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/LoopAgentRuntime.swift: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: LoopAgentRuntime (162-1377). The bar is 500 significant lines; this is 599 over it, 2.20\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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bd83769797ac0fb6726ebf2a88f11766fe7e24ca2f95dbb186991a141c0f2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/AgentWorkspaceRunSurface.swift: FileTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AgentWorkspaceRunSurface (38-1511). The bar is 500 significant lines; this is 591 over it, 2.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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad97ef8428a00c4e68f481419b8f92de6b9900b83b29ae79ccf33ef4861cd1f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/FirstRunWelcomeSheet.swift: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 586 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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1b685e9db07660b1fc262819406843184fe321323aeb72aa05beb5dff066fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGWorkspaceViewModel.applyExecution: MethodTooLong \u2014 applyExecution runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b94ebbf485c3ec75087c6bb4418c6d153ff7d988c9bfbc61e94b13cdae39dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/RepositoryInsightsRemoteProvider.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":"Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b080335f3f8fe6acaa1470fc0e68633129c1750bf6c26f971d8645f366ac60f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GitHubAPI/GitHubRepositoryMetricsClient.swift: FileTooLong \u2014 1067 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 567 over it, 2.13\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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb6320f80dcb36ff6ee494f12371e379aea418620edc822baa1e5d69512f134"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepositoryInsightsView: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"a339d3f9c5ff6305392cf4be91357d4e0bc8940f85ad2e100fe45683cd870d5d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartCollectionRuleEditorSheet.body: MethodTooLong \u2014 body runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionRuleEditorView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54b8bddb8fa6e974aafb315b10e0cd7558e034a21c0f0ebddfbe562f969451c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubNotificationInboxService: ClassTooLong \u2014 846 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 446 over it, 2.12\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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc58b941cd13d38470bae0170b9c88f79997eebb91438d2f612ed71a7ff9bdc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsView: ClassTooLong \u2014 837 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 437 over it, 2.09\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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebc19d29bc06d5dc16114cdcc6b30c2dbcfc618af15e4de22b51cdaff73b6aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/LanguageIcon.swift: FileTooLong \u2014 1035 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 535 over it, 2.07\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":"Starcat/Shared/Components/LanguageIcon.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74462a03e75711e1de6866684b08d8e84c4727cc65f3768ccf009a108d56c98"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoListView: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebc2ac3fa4e30eb08fa014fc947ca0d1c8f39deecfa8fe7be0b46c24b0f4c06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/starcat-localization.py: FileTooLong \u2014 1023 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 523 over it, 2.05\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":"supports/scripts/starcat-localization.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebc2696796fa7431af412b3d57e4f037d3b9c411b204d5b7fffcf46275764d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoAIInsightService: TooManyMethods \u2014 61 methods, declared across 2 files: AI/RepoAIInsightService.swift (56), AI/BatchAIInsightProviding.swift (5). The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"11122657c719099f0429b1018e37402d963729fcae7aa5f86c7dec28500cabc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepositoryInsightsViewModel: ClassTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 408 over it, 2.02\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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e09c59b796afb3ff3c77d20e8766855aa151db78bd0d97e30e579cb5b6ba504"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StorageSettingsTab: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 405 over it, 2.01\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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"1191bb7a605a62dede2b7ff3269a9227a902c4d251e0af6c393b977c9b7822c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodebaseMemoryViewModel.generate: MethodTooLong \u2014 generate runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe48448af62ede82ca2baefec0579cd8217bc62ef6e9bbe41a0241a9c4a0b59a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/RepoRepository.swift: FileTooLong \u2014 999 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: GRDBRepoRepository (53-1482). The bar is 500 significant lines; this is 499 over it, 2.00\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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37619cef9ffef567b90642a41caea814a2551e4f02f87efed2f4d1ca4685978"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RAG/KnowledgeRAGIndexBuilder.swift: FileTooLong \u2014 995 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: KnowledgeRAGIndexBuilder (182-1439). The bar is 500 significant lines; this is 495 over it, 1.99\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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f8f0c0a4f62c21c93299d7f3553c00338dce80dc0a06df4ac83c20669a8756"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/DiskChatHistoryStore.swift: FileTooLong \u2014 995 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 495 over it, 1.99\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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"715950677e02d014a3c6108d33ae89d82a2df10698be67975f5ec62eb3460ba8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexAppServerDriver: ClassTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 387 over it, 1.97\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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5fdcd2b8903759b39c2bd705781f6b086e1c96e70a45e4a1bdd5077791f841"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenAIClient: ClassTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 380 over it, 1.95\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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f707749bccda50f819bd83899a464d2f9f21596dd290312b99fa1851028c4d1f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeViewModel.reloadDatabasePagedItems: MethodTooLong \u2014 reloadDatabasePagedItems runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5bd970684ef0d85e9e7756a9b9389e26cbc2ac25b08bcbac144611f15b30ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/AgentWorkspaceViewModel.swift: FileTooLong \u2014 965 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AgentWorkspaceViewModel (18-1310). The bar is 500 significant lines; this is 465 over it, 1.93\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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8725369eaeed7c367d9be4fc1a2364bde0bbf1d42ce19536d43ade18917a5bc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/RAGWorkspaceAnswerSurface.swift: FileTooLong \u2014 958 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: RAGWorkspaceAnswerSurface (18-1393). The bar is 500 significant lines; this is 458 over it, 1.92\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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"474e1e63ffc661dcbfcfef8bc960697b52cc17d6700e6ce6df95da1d67269014"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/AIConfiguration.swift: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 457 over it, 1.91\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":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a90c5e2872eb53b824909ac76427a3f819eb7a3525a53750b781a64ea037e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubNotificationInboxService: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2008904df1a66f3fe8167eb7ac8f7762e09a63fae8127130ea3430486e1bcde"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/KnowledgeRAGModels.swift: FileTooLong \u2014 947 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 447 over it, 1.89\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":"Starcat/Features/RAG/Core/KnowledgeRAGModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c829b751d0370b7a8894b4a4a89bf06337c28b8e695c7bde8ee211f4373076"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MyInsightsView: ClassTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 353 over it, 1.88\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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ba5da8220d3c95db091c36999b607d4de8dfd64a0f5710a6c9ffd263524ebe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoAIWindowContentView: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"12af3b65d9d6751c95098411a81511fe400046ff898fb6c65bb029becc587156"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: About/AboutView.swift: FileTooLong \u2014 930 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 430 over it, 1.86\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":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0b77473a91d0ea1ffb55f16603bacc514be73818961a0fdfcd68e58b48eefa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppSettings: TooManyMethods \u2014 55 methods, declared across 4 files: Settings/AppSettings.swift (42), LocalAI/LocalAISettingsSelection.swift (8), AI/AIConfiguration.swift (3), LocalAI/LocalAIConfigurationLifecycle.swift (2). The bar is 30 methods; this is 25 over it, 1.83\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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20ba87ec7d4cdfdf43e33f081eec42e137813d25ddbf6b4e55faa02f9056d85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/MyInsightsView.swift: FileTooLong \u2014 913 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: MyInsightsView (18-1099). The bar is 500 significant lines; this is 413 over it, 1.83\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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad7326e1a0c94b7896d60a7634aec3954ff3bf37ffee5eff801c122faacc3d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WeeklyContentViewModel: ClassTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 330 over it, 1.83\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6be62cd5180bc3c23070d907643b7528d9432d5fa7ae70254d7783852226c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/RepoDetailView.swift: FileTooLong \u2014 894 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 394 over it, 1.79\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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0c9844aa558c287c49860f684d8a4a7568eb60f087c745d7f50dd91346d198"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentMessageTimelineView: ClassTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 308 over it, 1.77\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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad3c021a8ea5923be19bbde6b2ebc8a8526dcc6a7271b565d73ca8ac9ac5ab7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 53 methods, declared across 37 files: App/StarcatCommandRouter.swift (4), Components/PressableHover.swift (4), UI/RAGWorkspaceTypography.swift (3), AICommandComposer/AICommandComposerView.swift (3), \u002B33 more file(s). The bar is 30 methods; this is 23 over it, 1.77\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":"Starcat/App/StarcatApp.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec15ac28c109a8e1e8bad3464be12dc9a4328322dfd177e0bb7efb0ba526407f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeRAGIndexBuilder: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a7e0259af2335ce41fcbb38f16d64df816fc1d24016fb241bf807fb017d5a7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubNotificationCommentComposer: ClassTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 301 over it, 1.75\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec14ebcdf77053b3e1cb2f84df1632a359cff814cb42d91c7004ec2ab99c253"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBRAGChunkRepository: ClassTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 299 over it, 1.75\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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e168e624907b69d4e0af6dcfbc4a056e9d97e111ee399fdb20444b5d0a147549"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncManager.runSyncBody: MethodTooLong \u2014 runSyncBody runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\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":"Starcat/Core/Sync/SyncManager.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d96eec246e1bf930a68425d275c5a9c8a344088c94ea12a80b958e0536feef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/GitHubNotificationInboxService.swift: FileTooLong \u2014 862 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: GitHubNotificationInboxService (46-1241). The bar is 500 significant lines; this is 362 over it, 1.72\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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b030412fc2e60c529647effd1d13fe5cb0f08ad363d515429b1b5c7ad56f156d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SearchCenterView: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99019d85a376cd21bf03eaea866ac07c6e5ffe10698fe2675338bd259785993"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubNotificationMapper: ClassTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 400 significant lines; this is 272 over it, 1.68\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":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e0e427be267783a2d2d6627445a59db381f63379ff6b9ce1249a1188524f2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SidebarView: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3948b8e0dfc5343fdf02d8c12024a84b877890eb478211e9b4386628d3d78b45"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadmeTranslationService: ClassTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 259 over it, 1.65\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e85448404b49d2e574836957e123e5ad0f47779ff2c8546601d01d7adf6dd97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StarcatMCPToolRegistry: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 255 over it, 1.64\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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"303eee7c6edb9096449b91e5dcc9121b0e13627ddce005c54d72947da2492bea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenAIClient.chatStream: MethodTooLong \u2014 chatStream runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c88f04fce8c0d491edd9304ef6355ed00afbc63a209a7fb1af6de780e9e427"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ExternalRuntime/CodexAppServerAdapter.swift: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: CodexAppServerDriver (43-1048). The bar is 500 significant lines; this is 311 over it, 1.62\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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ae1793c42626889e352238bf77bb5bfe28f595d5de6604f9f2d4de53d7af30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Activity/GitHubNotificationInboxView.swift: FileTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 309 over it, 1.62\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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c134299ad66c7e6eee158f3e8a8987bd22134c96ff85e546e2623519e6f01e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodexAppServerDriver.traceEvent: MethodTooLong \u2014 traceEvent 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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88e2f4903199259b066863f1c7382f71b3346ac99d2d46e9fe9a0676233d4c7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StarcatMCPToolRegistry.callTool: MethodTooLong \u2014 callTool 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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3ab8f41d5c4fc8f48ecb14ca729d2a29cb6974876a6eada088edea209ca598"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGService.runPromptPhase: MethodTooLong \u2014 runPromptPhase 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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c78a66392ef2d3f281a4e9425b46b10054ac95df71eff89e7cb468aacc3e6c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GRDBRepoRepository: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bfc653d6a99989c07b90a83f2f6ed57c6774fe153f152a6dcd21b32a34578b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeRAGBrowserViewModel: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff13cd11c7eb660fc656a5aa4743566d40844193a080125af54d8a0367854fa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/GitHubNotificationMapper.swift: FileTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: GitHubNotificationMapper (51-1020). The bar is 500 significant lines; this is 299 over it, 1.60\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":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e119a2ce609ec64e9f9c75dd7a578075ff1ecf7ef868ab65159e2157c2a8c13d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/OpenAIClient.swift: FileTooLong \u2014 796 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OpenAIClient (23-1088). The bar is 500 significant lines; this is 296 over it, 1.59\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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"404a542a78ce11878363594df70e7e30cedc01323897556a158408872e3f3bfa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubNotificationDetailView: ClassTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 234 over it, 1.59\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bd33385ea2ccf33bac4dc1eacb2ed38fb38a3cc9c4dfd612ac7861eb055fca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoAIChatViewModel.performSendMessage: MethodTooLong \u2014 performSendMessage runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"153359ed80660bc4aff148fe1011270c369492ad88043f95f40d32722b1fa12d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/AwesomeRepository.swift: FileTooLong \u2014 788 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 288 over it, 1.58\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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2784cda40cafe91a845d8a0cfab3c49c982e0409b4be88e538aeec70684fd67a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AISettingsTab: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff0ad2ec4231c15f37f44a3529d9c7fce9b672bb8ccf63b5d3a72885adcc20e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/RAGConversationStore.swift: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: GRDBRAGConversationStore (133-746). The bar is 500 significant lines; this is 283 over it, 1.57\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":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b8e4ec704a6e1855349ec2633d2d97f4d14f6c405a75bb5cf6ce3823313610"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RAG/RAGChunkRepository.swift: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: GRDBRAGChunkRepository (147-1032). The bar is 500 significant lines; this is 280 over it, 1.56\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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e334b936db672a0e5099af7a5239811054c4fbfc7c6675c2309e7c701ff9a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitHubStarListAIGroupingPresentationSnapshot.init: MethodTooLong \u2014 init runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"56af74965dc50a5ac87aeb38b8ddf7f6ce55b00e1497391387209d4f79b27c00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ExternalRuntime/ExternalAgentRuntime.swift: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 274 over it, 1.55\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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5b286eb6a16f71a873b663dea6b84b58afeadb0d31c258c997ad9f0aa3a5e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/RepoStarHistoryRepository.swift: FileTooLong \u2014 769 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 269 over it, 1.54\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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d94a0cb3b9e229bb9be0887d65cd360f2ececdbd762a965634b4c0aabac729"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGBrowserViewModel: ClassTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 214 over it, 1.54\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6761e03d325d54b8afbabd5a9cf79a84a8a3cb2e30a3eaeac40fbb0f5d5daa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/ReadmeTranslationService.swift: FileTooLong \u2014 762 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ReadmeTranslationService (147-1076). The bar is 500 significant lines; this is 262 over it, 1.52\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c30b45f69a91ff0f5d7a4ae1448987388e200ad08f2ee928b6804d2b44bf97d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoDetailScaffold: ClassTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 209 over it, 1.52\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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd1b33cec3f35f71531553ac8ca6052136b6616dfc5ce11aa2dbcc142b72944"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DeepSeekHarnessDriver: ClassTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 205 over it, 1.51\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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f539e5519e2bc7c534f0d0da642f6d602cf185078a11f8b5db9d8a80a96e31d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ExternalRuntime/DeepSeekHarnessAdapter.swift: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: DeepSeekHarnessDriver (220-993). The bar is 500 significant lines; this is 253 over it, 1.51\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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f8c07cc08b2d2e7a6e7ef4042bd617e09c0f9c2eb0612237b2c42df3a5809e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/RepoMetadataHeaderView.swift: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 253 over it, 1.51\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":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32be3d7a439d879d688602f43ddfd57552bde8a9a0d7f82322b98df7aa856d54"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StarcatMCPWriteFacade.batchOrganizeRepos: MethodTooLong \u2014 batchOrganizeRepos 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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2804b3c9a2bcac7a4943002d6e255ed40c02996776bd280096e1d93772d9dab8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetSnapshot.placeholder: MethodTooLong \u2014 placeholder runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Shared/StarcatWidgetTimeline.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0c86f91f61a4aa315833ee330f2204a9b59b335a6baac5d8a6e580cda9b15b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WeeklyContentViewModel: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b934d429e207c0f7a05e78e37413dc4ab4a1674ff02cdb145204d19cdccf44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExploreDiscoveryViewModel.reload: MethodTooLong \u2014 reload runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66f3d1f7b545de71817cd9575a95c304fb275f43f929377532fcf1540310549"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProSettingsTab: ClassTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 178 over it, 1.45\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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bd7d5c6a4428c520179152cd2a9bd30ed9054548b06339fd3901f9821479c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/AgentMessageTimelineView.swift: FileTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AgentMessageTimelineView (34-1021). The bar is 500 significant lines; this is 220 over it, 1.44\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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3758654141f0b56dc37101249ba41736dd6bb51390923e12d68408688876c94"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WeeklyContentView: ClassTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 165 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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"72349c3e0e7a4720e8c60959e815d69f309c65078f51b1454480517b830c2f66"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExploreDiscoveryViewModel: ClassTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 165 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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b486aa782ae284dab886977a7e51e3faf46732b98b89de6e45a47f4dd98b9091"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBMyInsightsSnapshotProvider: ClassTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded), 15 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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc45c7b8dc791c1e21988e096db9b008fb0c5c5c75362f8679b7e79ab89745f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Collections/SmartCollectionDetailPanel.swift: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionDetailPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"984c8386b09bf1de06af5e812ba0d0b4cf1a14ff40858c1dc4556dc59e6ea9e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/KnowledgeBaseMetadataSnapshot.swift: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"335a46db15e957a263604d59da2edea5d544fc8b2463618f4f3f88a66d4c467b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GRDBGitHubNotificationThreadRepository.upsertMany: MethodTooLong \u2014 upsertMany runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a38f14559f209233a409fdf4f967da9b5eca72435d969eedc2857307cbb60b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExternalAgentEventProjector.consume: MethodTooLong \u2014 consume runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0eafc3d076cfdc811d231c95532df2fbc7d824c1cd844f6ba1a6c9e28acd2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyRadarPreviewWorkspace.home: MethodTooLong \u2014 home runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b12eceed42096a269d37a7c4480bf233feb9c3b5353229d4278221fa03f68d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGService.runRetrievalPhase: MethodTooLong \u2014 runRetrievalPhase runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2df162b3df23ccdb9ddbb040c539098526c3ec9a3462f1e5f9fe81369003f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RAGWorkspaceInspector.evidenceInspector: MethodTooLong \u2014 evidenceInspector runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece9fbf63d69b5faf7ba8f4743a699f7aad4db8cfccaa148b19056679cdbfb10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetSnapshotBuilder.makeCollectionTrend: MethodTooLong \u2014 makeCollectionTrend runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"Starcat/Core/Widget/WidgetSnapshotBuilder.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"015c3c3d24f9401f4ebea0f1bbf60b837656ffe531b00ce4afc09b0d84f06273"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGBrowserView.repositoryDetail: MethodTooLong \u2014 repositoryDetail runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7907e87b25dddc5468b7f9e9ee93f279837b8111f0ae5a3ea152f03af87b74"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultRepositoryRemoteInsightsProvider: ClassTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 143 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":"Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ab361b1ee933df05af50afd75e0a083d7df2e2b88ccb2a88236af826f40733"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GRDBRAGChunkRepository.replaceSource: MethodTooLong \u2014 replaceSource runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffb184fb8a35754fad561d2adb3711369b97572ab762dc99d07d233157579ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExternalAgentProcessSession.run: MethodTooLong \u2014 run runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85f42650c6813d17efaa59ec83f35677962a51ed025ccf8ba813d8645a3f7a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoSkillScanner.scan: MethodTooLong \u2014 scan runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"Starcat/Core/Skills/RepoSkillScanner.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f001e34786cd15aa5ed2a9406c0054f5a3fcd1a5cbb680dca5626058260fd5b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalMLXRuntime.generate: MethodTooLong \u2014 generate runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb485bc23a801d2108bade60f8a47d25bd6ecac9da427ad8b84b40054cd89a03"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoAIInsightService.generateInsight: MethodTooLong \u2014 generateInsight runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7dba302b7ce712ef6cf309ea511142a7b8ca2f78c5ff7e2cea41c2ba4e80a7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShareCardSheet: ClassTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 127 over it, 1.32\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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b7f212e3689a77a697d121505f6674550c2c4742e512963cd78737c3c7b428"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MCP/StarcatMCPToolRegistry.swift: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: StarcatMCPToolRegistry (15-882). The bar is 500 significant lines; this is 158 over it, 1.32\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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffc92bc40a62c7a3f143eb3e501ac844497cb7e40f880729046ff9310eb06e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchAIWorkspaceView.footer: MethodTooLong \u2014 footer runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"245ee0b3795e917be0be6bf90f9882147d29deaf28be36b6128423694a9919f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReadmeStarHistoryHTMLRenderer.render: MethodTooLong \u2014 render runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7372c05bc8890ad3103f8971171a59fb8901da2f16f36548c9bcdeeef3a48fec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GRDBRAGConversationStore.appendTurn: MethodTooLong \u2014 appendTurn runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0482e2efb6530080bc0c9b2d731e303e8cd7860932e671066832c25f443082de"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StarcatMCPWriteFacade: ClassTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 123 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd154cdf710f662accab7391e214af5d4d8771d8a98fb210b831b245072c1807"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LoopAgentRuntime: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac14816c6b28578cf9a8b3e4fee2ce074ff03ea6a83bb534622e7fb8c34fc35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReadmeTranslationViewModel.performTranslation: MethodTooLong \u2014 performTranslation runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"457e3eef9a616a1a47de39bcde2982b369ea0197f06562946f6980f10d63bd5c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoAIChatViewModel: ClassTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 118 over it, 1.30\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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80114a84422f8af143164a6fba6fae2fb9617a902322820f6212216640ab3a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/BatchActionBar.swift: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: BatchActionBar (39-685). The bar is 500 significant lines; this is 142 over it, 1.28\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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0cdf2d4daab8547c9aa1e96920b86816a103d2a5da8bae44f0dd6740fb61bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/AppStatusToolbarButton.swift: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: AppStatusPanel (257-894). The bar is 500 significant lines; this is 138 over it, 1.28\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":"Starcat/Features/Home/AppStatusToolbarButton.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"103fd88ff28ed6d43dafab7378e5273dc498a3031281c08866eacc0a544e7aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Explore/ExploreView.swift: FileTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: ExploreDiscoveryListView (181-840). The bar is 500 significant lines; this is 136 over it, 1.27\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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c66b919bcf516ec1eb056813610c85d06083251dbb1d78f8cda0b2c8657717"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGPromptBuilder: ClassTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 108 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c217a138b2f81078bb744248bc6956abec73890d00571c60cfd532bf8940ee1b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GRDBRAGChunkRepository: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. Most of these members implement repository.RAGChunkRepositoryProtocol (32 of 36 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4431d86983889a903646a233e213581a7b6211090866a23995153fe68542b55d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepositoryInsightsViewModel: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2da7f31a4ac1da334bb5e3a88e47733de02da55d8a2515ebcb1e5050f268dce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JSONChatHistoryStorageBackend: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"725c7e42ee4239e511dda6e4340282c3f7e4e4e148710c299b9b6b3b6aa07d5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: follow-graph/entry.js: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 132 over it, 1.26\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":"resources/follow-graph/entry.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0c1fc52507231853519b03e2ff66649cd92b841712af2a08b29e5b5193782b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGChunkEditor.body: MethodTooLong \u2014 body runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dccc2785a22b32452263e1b0fac999df740127714b35ca70ce63830b6c14fe8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatabaseMigrations.createRAGSchema: MethodTooLong \u2014 createRAGSchema runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd4d0c2b21865ffee5da605ad06c0ca520f6b15996b715215b6231882abd3c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/RepoDetailScaffold.swift: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: RepoDetailScaffold (151-1208). The bar is 500 significant lines; this is 124 over it, 1.25\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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab5aedfbddce456326bcd46c92ccc692d540d494f058e8aa052ba1557e2564d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsView.shortcutsTab: MethodTooLong \u2014 shortcutsTab 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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"da719965cc6819cfd49e65087e66751b9665fbeec3f1928df72400cebebc2cd6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadmeTranslationViewModel: ClassTooLong \u2014 494 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 94 over it, 1.24\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":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb21e930229c85539b7cd2c9adf58bb40b3929a5d301fbaf46dab9b3a1d4e4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/AgentTraceDetailPresentation.swift: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\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":"Starcat/Features/Agents/Core/AgentTraceDetailPresentation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f9a6e5bfece458896c16c8820450a1f12f7a5c629938c9e49fb9e0267be3a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/GitHubStarListAIGroupingResultList.swift: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: GitHubStarListAIGroupingResultRow (154-634). The bar is 500 significant lines; this is 111 over it, 1.22\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":"Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"884c95dc2511d8a1413db62c824f2f7cec6dc46fd94bcbfbcf80c5862b0d52e3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FollowGraphViewModel: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 88 over it, 1.22\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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a19f45dd379cc4c63684706afb9979bacedad85c6af5b13b972a5a406344310"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TrendingView: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 88 over it, 1.22\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":"Starcat/Features/Trending/TrendingView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ac66541c62749c5a10c874d6b5d6c6da85fdf175a108980cc6e43c9a54347a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppSettings.resetToDefaults: MethodTooLong \u2014 resetToDefaults 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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a62ba4cbdd87045efc1d203420a8223d330dffae036faffe5df08658397b370"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetSnapshotBuilder.build: MethodTooLong \u2014 build 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":"Starcat/Core/Widget/WidgetSnapshotBuilder.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"36acb3c13f3b573d034f5095115a6075edd5dc0709fbe5fb52c5403c080a8892"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiskChatHistoryStore.migrate: MethodTooLong \u2014 migrate 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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f3bd8b8b535c18529b2921490d6d17cf11bb29f94f586f05bca451ab8584de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RAGWorkspaceAnswerSurface.commandComposer: MethodTooLong \u2014 commandComposer runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdb22bd9ba3d8bffc8c9305eec048aba2f0b0aae5035667117ee6b296693037"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/RepoAIChatViewModel.swift: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: RepoAIChatViewModel (164-1107). The bar is 500 significant lines; this is 104 over it, 1.21\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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb5994a8ec4327f6be53e750f3297450a173150726dbd8d8db83d8e6a3e3d8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoContextStorage: ClassTooLong \u2014 482 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 82 over it, 1.21\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":"Starcat/Shared/Services/RepoContextStorage.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b91b66dde6335ece298dc46c603ebd73bd3cc98249b3eb6264f8c46b08e3bd9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeRAGRetriever: ClassTooLong \u2014 481 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 81 over it, 1.20\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":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc219a91dd70b91950378ce14e8d95e5d060d45675a3a1d21e3f83332d38900"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ActivityView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a18ff61f6c92d9773364e10f4de11277c276b37cbaf645ad3a8cfa6ffdcfca"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodebaseMemoryRunner: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 80 over it, 1.20\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4b18cbcd5b1024aa4560b2954890f5523d929799439eda4d731b0ea39a71f3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchAIWorkspaceView: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 80 over it, 1.20\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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1caf230120e2ff83d512b79e143e0c89f5e0731e249fe88bd5ea2be5080583e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Insights/MyInsightsSnapshotProvider.swift: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: GRDBMyInsightsSnapshotProvider (73-763). The bar is 500 significant lines; this is 97 over it, 1.19\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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0fe1267143cc213f7eda0ddf7f3ac2bade3f9c68c1f081bde04a225db2512d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExploreDiscoveryListView: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 77 over it, 1.19\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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bfa88e98214e0b7bea0f7174bb068f7f765e44c81f4351bbfe5c5ee914eea7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkspaceRunSurface.agentComposerInputBox: MethodTooLong \u2014 agentComposerInputBox 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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"96265d42254f4c16a8e87df1e0acffb25e4c13d7fef98da47df010d29d5d03c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WeeklyReport/GitHubWeeklyReportTools.swift: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"399c0ec6ab2684489e90af07883fb1b21f148046ab198b78fd45e2b6dda192b7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ActivityView: ClassTooLong \u2014 471 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 71 over it, 1.18\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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c5a011a18e21918d77229a93b939ce534a5f711593d58844f4918ff5ce3753"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodebaseMemoryViewModel: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"469a400ffc658c65b09bce38fd0c10f1b60056310c581444ed36f3dc6b71f178"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBRAGConversationStore: ClassTooLong \u2014 468 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 68 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20721ec5e8dc6f039785bab45fd33da63e8f485f1043ea4f42d51094d5b0008"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartCollectionRuleFilter.apply: MethodTooLong \u2014 apply 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":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a83db023c5a4925c3b7adfbaf6cdcc659de8d20ad68a3e314ce133902e8171"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyRadarPreviewReader.body: MethodTooLong \u2014 body 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":"Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fab78b6de05680e32b2218dd2fa19c7637ed1cf245775c5533f544d1d1e4b06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAIClient: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc7e0e272d5049a30d8daf360454ccc22775573ff93feb2435d6b876fea6cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WeeklyContentView: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1905cb0c01f4f43c4ced15b9593b08e8f153891a2a6dce649ced4f77a958c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/RepoFileBrowserSheet.swift: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: RepoFileBrowserSheet (23-619). The bar is 500 significant lines; this is 83 over it, 1.17\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":"Starcat/Features/Home/RepoFileBrowserSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3667d9756c989c3d05a34293168ca236ef56dd504c93db522dc5c00f0e21c35"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBRAGRepoCandidateRepository: ClassTooLong \u2014 465 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 65 over it, 1.16\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":"Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0ee5d16c70aac6c6191a4f3d80fceb827e2d38c06ee522ea53dc77beef4e9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Activity/ActivityView.swift: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: ActivityView (44-757). The bar is 500 significant lines; this is 81 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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2770eafe17c626cce448310d2ef5a416db98be558ecee3f01b2eb995ddae440"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadmeStateView: ClassTooLong \u2014 464 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 64 over it, 1.16\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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d874be576ad547f356d2cd2fbbbfbf7ee59df64d82621557930ea472e4f99dd4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocalAIModelManager.runInstall: MethodTooLong \u2014 runInstall runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc6af67fc5bcba439f65234da34f18d6d1fb1e687bbe536205993f3abcefd9f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IntegrationSettingsTab: ClassTooLong \u2014 463 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 63 over it, 1.16\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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f034665c4fde194d3ab740f0580c8a0245d564394323078bc4058dc775084ec7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: About/ReleaseNotesView.swift: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 78 over it, 1.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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8794f1b6312e307a2b388b7c979ace11ff965c1ac1ac33db3ee200bfad5a0600"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppStatusPanel: ClassTooLong \u2014 461 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 61 over it, 1.15\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":"Starcat/Features/Home/AppStatusToolbarButton.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ba3da3bfb4f9ccbf643c72547efcd0b75da24e3c2189607c302db08dfe4e4b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchAITagReviewRow: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 60 over it, 1.15\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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc09489d3e2b715f8926d2318d1073780da3a2256c4bc27b14cf96d2755b63d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoListView.unifiedListContent: MethodTooLong \u2014 unifiedListContent runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bfa243528b8112050c1a8eab579a14739380af9b0dd0e79e29bbd9c244071f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: render-app-store.htmlFor: FunctionTooLong \u2014 htmlFor runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"resources/screenshots/1.2.0-app-store/manifest/render-app-store.mjs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb1c8f7c04ec333db66da398738b4b8800963dda476da9265abfdeb30904aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Explore/ExploreDiscoveryViewModel.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ExploreDiscoveryViewModel (19-763). The bar is 500 significant lines; this is 69 over it, 1.14\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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa1b8535cf870fea537b31aa88da082c6d6696cd6082cefdd67215280a59a6a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoIssuesWorkspaceViewModel: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54662704ffda126aadb208c9b1abe6e495f57f38898711fdaae82db8091fd05"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoContextStorage: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Starcat/Shared/Services/RepoContextStorage.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b45065543c32fb4c179864ba9027633488545104640303f8d02f8dcb78a58f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Tags/RepoTagsSection.swift: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\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":"Starcat/Features/Tags/RepoTagsSection.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85806fe72052344a909568605455126a56f2c34817e8095fcebec860df61a10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBGitHubNotificationThreadRepository: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 52 over it, 1.13\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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5941dba0098643c41debf5706ca12129016b9fcf03063a45c464eb79441255"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubStarListAIGroupingSheet: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 52 over it, 1.13\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":"Starcat/Features/Home/GitHubStarListAIGroupingSheet.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a6e03d51758a783c4c1e50d43fba5671aec1c71731f6e2ce59bd95026b75b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoDetailScaffold.body: MethodTooLong \u2014 body runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aeb77f6b5dfd460fe98bc586c62dace5e98dbfeee4747b62027e6fe8ca3bfcb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoFileBrowserSheet: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 51 over it, 1.13\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":"Starcat/Features/Home/RepoFileBrowserSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a77e70c05b7ff768ff6abb6e58c9142d6da40376f4d6454302c714862d7105e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocalAIModelManager: ClassTooLong \u2014 449 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 49 over it, 1.12\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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed1b8632b04686701c496effc15bf6066b04d68869a5f3ad0c8b46439e92810"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/IntegrationSettingsView.swift: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: IntegrationSettingsTab (18-660). The bar is 500 significant lines; this is 59 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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd53944f4dd2d7b6717343ac0d59ad7f32f466691feb68c8af27c23f99f52b20"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReadmeStarHistoryHTMLRenderer: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 45 over it, 1.11\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":"Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"402f4f9f2c0a700ee6d8749e225b68d608fbe27305e50dd2b5d218f972b326c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnboardingScreenshotPreview: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 45 over it, 1.11\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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a1fcf98284b8bf19d866c5773eeae0d4027fa12bd7f59a8eb10280752ae6f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubNotificationInboxView: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 45 over it, 1.11\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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc45fa82b0025ce0e94e15d59755389e6a7a75bfcbcd0bbd574118faa3262840"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExternalSearchSettingsSection: ClassTooLong \u2014 444 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 44 over it, 1.11\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":"Starcat/Features/Settings/ExternalSearchSettingsSection.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdc8aafa366005e9a13efbece14d4c07ef8c2a44dd7237b5385eb47aeb56d27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGService.runPlanningPhase: MethodTooLong \u2014 runPlanningPhase runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"600f002aaa3d3d4ce4985b470c8dc94d11f6791d4eb0debd075cdf47872ddac4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AISettingsTab.aiConfigurationForm: MethodTooLong \u2014 aiConfigurationForm runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"981a8b363eda2eed68083f276d233094cd8e85e2ceafdf6290d11b9705d990af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Auth/ProjectAccessSession.swift: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ProjectAccessSession (166-751). The bar is 500 significant lines; this is 53 over it, 1.11\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":"Starcat/Features/Auth/ProjectAccessSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7712a82c695399ffe664d6174038e8b289873279b15a7cf2cc0733c438286642"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Onboarding/GettingStartedOnboarding.swift: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/GettingStartedOnboarding.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b0d47a8a62bd58536d4a2fda687640584e8b7d46505efbfc0268d419159eca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RepoAIChatViewModel: 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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb85f788821232bec80bdf521681f13a81af6f9ca939a80ed04c1ae21f83899d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FollowGraphViewModel: 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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecad98d8276958f50d450d1576e1f39b201f4bf71e45640dd9e775921eaf98c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TagTaxonomyBootstrapAnalyzer.analyze: MethodTooLong \u2014 analyze 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":"Starcat/Features/AI/TagTaxonomyBootstrapService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09e68e24bc2ae5d4b25c2d375e9a329793e155b512138683501ac9eaa37116c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExploreDiscoveryListView.repoList: MethodTooLong \u2014 repoList 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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"3724f5dfb532f62ea694bbf6e5d0c7c2f1fa94d36b3b73f43d6b55c3ac89f216"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/RepoContextStorage.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: RepoContextStorage (158-970). The bar is 500 significant lines; this is 47 over it, 1.09\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":"Starcat/Shared/Services/RepoContextStorage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab46b94b5aee970d379aa6b1a667ce885087300e90f0dd0631172a97e7ebf125"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GithubAuthView: ClassTooLong \u2014 437 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 37 over it, 1.09\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":"Starcat/Features/Auth/GithubAuthView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"889ef1ef2477071a049ca03e34dd743207dbdab09686f193336288182c80f849"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RepoIssues/RepoIssuesWorkspaceView.swift: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 46 over it, 1.09\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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a693ad81b76375767bf8ad971110c961da6dbeb3f680a842241fd4a69bb891"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoAIInsightService.generateLLMTagSuggestions: MethodTooLong \u2014 generateLLMTagSuggestions 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77533b45077d9141d17808efb6d8f7716c0a4fbb5df1364b5c2b798dcbb337e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TrendingViewModel.reload: MethodTooLong \u2014 reload 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":"Starcat/Features/Trending/TrendingViewModel.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f7fc4c7ea4b586a7601d21ef180397c5cba805027ec7f51ae19aa9e70bb2d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ShareCard/ShareCardSheet.swift: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ShareCardSheet (28-1028). The bar is 500 significant lines; this is 44 over it, 1.09\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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02fa9313abcb0dd7fcf01fa92502e0cbee9af1fe3a8bf2b662ec5a0f85f669a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GRDBUserRepoActivityRepository: ClassTooLong \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 35 over it, 1.09\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":"Starcat/Core/Sync/UserRepoActivityRepository.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ded7d6e3643bb33d23f9595b50447199545aabdf204704cc7ae5099ae6b1b6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CompanionLocalServer: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Starcat/Features/Companion/CompanionLocalServer.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed660c4dc3ac835312b1c273a881540ab4122ae7646564466509e519cdac149e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/BatchAIWorkspaceView.swift: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: BatchAIWorkspaceView (103-736). The bar is 500 significant lines; this is 41 over it, 1.08\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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaf032a26142b23c4e021eb33f66888cd78bd5d6c16d32688ddf771b1a8d68a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MCP/StarcatMCPWriteFacade.swift: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: StarcatMCPWriteFacade (36-697). The bar is 500 significant lines; this is 40 over it, 1.08\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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb3770a8f394e393aef8ec035298d6d91f893c386a95ac2fe2b0f97740e0954"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KnowledgeRAGIndexBuilder.embedPendingChunks: MethodTooLong \u2014 embedPendingChunks runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"f516f09cd7780a68fef818900ca4202bd9560ae951b0369a1b379ab33db58f97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ActivityViewModel.reload: MethodTooLong \u2014 reload runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ce9979b7a48902e6bd991c639741b443d379a6ac42a005a6162a15c4d4c11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentWorkspaceRunSurface.agentContextPicker: MethodTooLong \u2014 agentContextPicker runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3ebeefba16ca80771fdfb098eabfc402d3b8bd52bceabfeda8647dc249cb5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepositoryInsightsXMLRenderer.renderBody: MethodTooLong \u2014 renderBody runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Starcat/Features/Insights/RepositoryInsightsContextModels.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e6813953ae97d7d803fb80183299bd82aae9ef71e8070a1d9d2f9e2404bae7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RAGWorkspaceInspector.debugInspector: MethodTooLong \u2014 debugInspector runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2778}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b4931f2b0c85b1dcead8f1d4b1136475b4e5c826047bf2924c7b06c2acd502"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubStarListSyncService: 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":"Starcat/Core/Sync/GitHubStarListSyncService.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6644c6cd5ef5918d9ea55567597091b14af26dc2a2413b88e9a606fd439aa6a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchActionBar: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 24 over it, 1.06\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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c0bdf3d7af39321edea38ccd4b825cc32924046847cea773dd8cd48ad032cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ShareCard/LibraryExportRenderer.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: LibraryHTMLRenderer (219-671). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ed4523f97e1ab145011d041da31d5fe139265298132f7c7a6374e31c1a08ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/KnowledgeRAGPromptBuilder.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: KnowledgeRAGPromptBuilder (46-706). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d9a02af5b75615d3e58c471a7b155d690c423022be16a0e6504a33e2ac8fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WidgetSnapshotBuilder: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 22 over it, 1.06\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":"Starcat/Core/Widget/WidgetSnapshotBuilder.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1096f7aac391ee3a8f6674d44bff0d4650c3d2a2b4647bfeee405822d985879a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Explore/AwesomeView.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: AwesomeView (14-544). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8bbd7722814c52816fe441565cf0b082ef103bf5fe7ae6430676779d1117b8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchRemoteRepoDetailView: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 21 over it, 1.05\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"043c058e27757f8d1a1757217e02837d4937e1765b83ab767feb3da0713b0cfe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AIUsageDashboardView: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 20 over it, 1.05\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":"Starcat/Features/AI/Usage/AIUsageDashboardView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"97174dfe7feaf9749674ea4f9612240725b625b4098a2038adacf4a0437ecc4e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RepoDetailScaffold.trailingActionsView: MethodTooLong \u2014 trailingActionsView runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"b275299deefa7d133e3b6c8354a4ae69471ef52ccfb4cff8d048e142db1dead2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LocalAI/LocalMLXRuntime.swift: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2517a897c490b82bcffa315f2ecec5ab47c680520b631376994bc8d3c4c477ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentTimelineProjection.makeItems: MethodTooLong \u2014 makeItems runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentTimelineProjection.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9103d492e8180fffe94d90b66bdf96466ceefe4c82a042a2cfcec30231ece3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubStarListSyncService: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"Starcat/Core/Sync/GitHubStarListSyncService.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb87fdb61b48aeafd292462543a995d7d1bf812bfa42320fbd704b0cdc287a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentMessageTimelineView: 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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5882e7e0e0a75add4daa8ffe0d8ebdff137199bec7447f165e4f5408fd2533"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodeFlowStorage: 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d604ce851cc54b7c7c2fa69ca94993707cd27831fff5a9e87b18322c04f0ddec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/KnowledgeRAGRetriever.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: KnowledgeRAGRetriever (34-652). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9a8175c51d68a9ffdce93ab43f0174b8278fbcd5a1a9bd37c20981d1cd62c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsView.privacyTab: MethodTooLong \u2014 privacyTab runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"0951d00bde0b0c7b18625cf00da8babda325dfe427afb81e83e982d5e7286437"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/RAGCLIModelClient.swift: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGCLIModelClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae0ff6c5f43293628e4744e5be67d29beb09223ad70deed7c6c7df590a17ed2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Home/RepoHealthSheet.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: RepoHealthSheet (24-629). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoHealthSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b12e5b3999c02295bc56af8185d126c0f650df6405f5e51ec2f044563b50b55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RepoHealthSheet: ClassTooLong \u2014 410 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 10 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":"Starcat/Features/Home/RepoHealthSheet.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"77adea0cfa23e04b274af175fbad0f9128767c5726a22280546d5acbcc745763"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/UserRepoActivityRepository.swift: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: GRDBUserRepoActivityRepository (127-668). The bar is 500 significant lines; this is 12 over it, 1.02\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":"Starcat/Core/Sync/UserRepoActivityRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dee38c20c7220c35a797615b9d370cd94619f5ea9426796dfbd6edf61ca4595"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartCollectionRuleEditorSheet: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 9 over it, 1.02\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":"Starcat/Features/Collections/SmartCollectionRuleEditorView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"553370aa84426ac0a939c1bd8d7db472bb12682671df3682707c879f4cf9d954"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProjectAccessSession: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 8 over it, 1.02\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":"Starcat/Features/Auth/ProjectAccessSession.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e08084775868bcf54d31a068e8a22ddabf3f2e337761c19658c96adcc5bba85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodebaseMemory/CodebaseMemoryRunner.swift: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CodebaseMemoryRunner (69-804). The bar is 500 significant lines; this is 9 over it, 1.02\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f91003e65dccb1bd5715b9ec4accd3e375e4d125d42f0921480951442aee26c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentRunInspectorView: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 4 over it, 1.01\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":"Starcat/Features/Agents/Core/AgentRunInspectorView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"717c7e23685eaee4bd2d5add09e22802549bbbe21a7665ee3a18d972926db28d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/RAGRepoCandidateRepository.swift: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: GRDBRAGRepoCandidateRepository (70-649). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"602430e2fd4e164052891b02cd7f4f3a02fa68d4d591406c8877c6a3f56f5832"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitHubNotificationDetailView.conversation: MethodTooLong \u2014 conversation runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37e5cc3a191a9cb7945670ea3a5cd3e7f72305ac4848af040369d2001194f89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sync/GitHubNotificationThreadRepository.swift: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: GRDBGitHubNotificationThreadRepository (12-563). The bar is 500 significant lines; this is 3 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f1c4577d8e8a11dba6ae41a87fadba70cae89fcac176e9cc2e746410714818"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (100 shared lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3363-3470 | Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:157-275 \u2014 These two members are variants of one another: 100 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a689817e8a0ee19812ade0ed713ef5e72be82c9e080e09cd04bad5c818469b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): Starcat/Features/Home/LocalAIStatusSection.swift:165-258 | Starcat/Features/Home/LocalAIStatusSection.swift:262-355 \u2014 These two members are variants of one another: 69 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3decb0170525046b724dba3a21ffd40f51ee5c77e4cae8617affe872022f869d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:871-1006 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1067-1188 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"712b330169ab19534bf5b2501ebf73969f075de9ad3fd3ab851333fdcd73d22e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2922-3017 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3021-3127 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2922}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f75108733558dc828123ddca73f198c4533f73372c3f2eb2319b034812b852a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 shared lines): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1582-1685 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1691-1777 \u2014 These two members are variants of one another: 44 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a463a67ea5479ec27d52607a19a61e077757501b862e462fd3a5a496842a3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:231-274 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:278-358 \u2014 These two members are variants of one another: 29 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c3681ea6069f6766624925b374997e480ae63e9329f905e734440825d85e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2805-2870 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2874-2947 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80b1062626b84ac72baa018e32d0fb2d264be234c4296300259170c4a28a1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift:260-286 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:544-587 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0719a7be7475f084e683da149122b42d323990535713742b264c394ba512822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/Activity/GitHubNotificationIssueSummaryMarkdownView.swift:80-113 | Starcat/Features/RepoIssues/RepoIssueCreatePane.swift:266-300 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/Activity/GitHubNotificationIssueSummaryMarkdownView.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"db328f78c7d137311af79f0a62ff3088e850a97f1998dc323c87821e3d89e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift:254-284 | Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift:286-309 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f7aa97bd663db684d9202ca0519ada669bffe9468799e6215b5e167497c3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:378-409 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:637-708 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1730-1748 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1789-1805 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2416-2467 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2512-2553 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2566-2580 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2586-2633 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2686-2733 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2881-3030 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3208-3221 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb81eb823b74af39ba5111d363f144815c9d0215fcf7878d0089a66bc536d092"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:369-398 | Starcat/Features/Settings/AISettingsView.swift:404-436 | Starcat/Features/Settings/AISettingsView.swift:930-961 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:48-80 | Starcat/Features/Settings/GeneralSettingsView.swift:55-87 | Starcat/Features/Settings/SettingsView.swift:703-785 | Starcat/Features/Settings/SettingsView.swift:814-970 | Starcat/Features/Settings/SettingsView.swift:975-1113 | Starcat/Features/Settings/TranslationSettingsView.swift:77-109 | Starcat/Shared/Components/SettingsPageIntroduction.swift:19-53 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1fc3cf018abc82e2f741aaf50fcc682e2a594057c2d38022327134bb2f3673"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Starcat/Core/Network/RecommendAPI.swift:33-50 | Starcat/Core/Network/ShareAPI.swift:62-84 | Starcat/Core/Network/StarHistoryAPI.swift:121-144 | Starcat/Core/Network/TrendingAPI.swift:71-92 | Starcat/Core/Network/WeeklyAPI.swift:82-103 | Starcat/Core/Network/WikiAPI.swift:24-41 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/RecommendAPI.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce73f3821774cdbf61fd46d0a0e435fc5dc18eafd4e59335ce02a106ac7d251e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Starcat/Core/Settings/AppSettings.swift:318-347 | Starcat/Core/Settings/AppSettings.swift:354-385 | Starcat/Core/Settings/AppSettings.swift:423-452 | Starcat/Core/Settings/AppSettings.swift:455-485 | Starcat/Core/Settings/AppSettings.swift:488-542 | Starcat/Features/AI/AIConfiguration.swift:1658-1687 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e5cbbd5b7ed90ce2ebd5f1b50a3d288b88d9244c4b9f7fe5781609ea2298d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:197-215 | Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift:127-145 | Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:364-383 | Starcat/Features/Explore/DiscoveryDetailView.swift:114-133 | Starcat/Features/Home/RepoDetailView.swift:241-256 | Starcat/Features/Trending/TrendingScaffoldShell.swift:198-217 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de1e13f95e34a20afd77126f282cbd7bb2bdb62f9d54ff9b0ac63c5acb79aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Starcat/Features/Activity/ActivityView.swift:656-664 | Starcat/Features/Activity/WeeklyContentView.swift:799-807 | Starcat/Features/Explore/AwesomeView.swift:502-510 | Starcat/Features/Explore/ExploreView.swift:743-751 | Starcat/Features/Home/HomeViewModel.swift:1238-1247 | Starcat/Features/Trending/TrendingView.swift:299-307 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b82a1bb0b15b325f8d7517accdd93531d6a76d7d3a677f6090c541c3515be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Starcat/Features/Companion/CompanionLocalServer.swift:283-296 | Starcat/Features/Companion/CompanionLocalServer.swift:298-326 | Starcat/Features/Companion/CompanionLocalServer.swift:353-382 | Starcat/Features/Companion/CompanionLocalServer.swift:384-413 | Starcat/Features/Companion/CompanionLocalServer.swift:415-451 | Starcat/Features/Companion/CompanionLocalServer.swift:453-480 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Companion/CompanionLocalServer.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f101834b54e289226e031e1d017f96ac524a80f8daa410bd0a84cd98ee67ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:714-722 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:939-947 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:953-965 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3067-3144 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3147-3169 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d1697b421317e06be8cc8e1426ae6b01efb0b166792ab1c55a540d60def584"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Starcat/Core/Network/GitHubAPI/DeveloperLanguageAPI.swift:20-37 | Starcat/Core/Network/GitHubAPI/OrganizationIssuesAPI.swift:54-85 | Starcat/Core/Network/GitHubAPI/RepoIssuesAPI.swift:60-99 | Starcat/Core/Network/GitHubAPI/RepoIssuesAPI.swift:103-133 | Starcat/Core/Network/GitHubAPI/UserProjectsAPI.swift:121-143 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/DeveloperLanguageAPI.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c3d2ddb1e95246f9595e8c3de07bbde30c56c9009d2be802194f593acad19c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Starcat/Core/Settings/AppSettings.swift:2677-2703 | Starcat/Core/Settings/AppSettings.swift:2706-2731 | Starcat/Core/Settings/AppSettings.swift:2828-2853 | Starcat/Core/Sync/StarringSubsystem.swift:263-337 | Starcat/Core/Sync/StarringSubsystem.swift:373-488 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a9c96757383e2af6fd079aa100b3a8665f9cda67bac436b9c3ae95bc5195d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Starcat/Shared/Services/DiskChatHistoryStore.swift:741-776 | Starcat/Shared/Services/DiskChatHistoryStore.swift:867-883 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:248-294 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:301-339 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:374-390 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4888a99a47adcabbdfe6134bd4924f3dea2fa454c0cd640a062206588198ff45"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1656-1677 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3067-3144 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3147-3169 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3172-3204 \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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c8e8761d344374d37929ba23c3e652b8180079f111cba8eada7ac9ed4f55bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Core/Download/RepoFileDownloader.swift:141-203 | Starcat/Core/Download/RepoFileDownloader.swift:335-350 | Starcat/Core/Download/RepoFileDownloader.swift:384-419 | Starcat/Features/CodeGraph/CodeFlowRunner.swift:110-122 \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":"Starcat/Core/Download/RepoFileDownloader.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adb251f542a5d0297ec013021a30b0697fdc9c6c3e8b2640a77d3b2738436e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Core/RAG/RAGChunkRepository.swift:492-516 | Starcat/Core/RAG/RAGChunkRepository.swift:553-574 | Starcat/Core/RAG/RAGChunkRepository.swift:576-598 | Starcat/Core/RAG/RAGChunkRepository.swift:600-620 \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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e28151aa5026c22bc13d624fd74be56ed3e87326eb856243278b73e3f6611c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:36-61 | Starcat/Core/Scheduling/ReadmePrefetchPoller.swift:40-69 | Starcat/Core/Scheduling/ReleasePoller.swift:69-96 | Starcat/Core/Scheduling/RepoHealthPoller.swift:42-69 \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":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"67151962de2bc3863fb0be282a5f7c1acbba931a0841192f4ee50f2994d478c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Core/Settings/AppSettings.swift:173-188 | Starcat/Features/Activity/WeeklyContentView.swift:488-499 | Starcat/Features/Trending/TrendingViewModel.swift:103-124 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:224-240 \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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd4239c3aecee0f20d8632838dfb85b9179980312ccacf14fd761baed077125"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/Activity/WeeklyContentView.swift:216-228 | Starcat/Features/Explore/AwesomeView.swift:148-167 | Starcat/Features/Explore/ExploreView.swift:433-444 | Starcat/Features/Trending/TrendingView.swift:504-515 \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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"674bad71f72556017d151373506a28ebfb0f974a63ec299cd7be2dc2940734ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/Auth/AuthSession.swift:208-277 | Starcat/Features/Auth/AuthSession.swift:417-482 | Starcat/Features/Auth/AuthSession.swift:495-539 | Starcat/Features/Auth/AuthSession.swift:672-742 \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":"Starcat/Features/Auth/AuthSession.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"887a9ff2a6df0ecad1c76406dda828a2abc47b9bc629f3b6c9b548c0adad9e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/Auth/GithubDeviceFlowService.swift:58-115 | Starcat/Features/Auth/GithubDeviceFlowService.swift:190-233 | Starcat/Features/Auth/GithubWebFlowService.swift:134-240 | Starcat/Features/Auth/ProjectAccessOAuthService.swift:267-293 \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":"Starcat/Features/Auth/GithubDeviceFlowService.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2c771bf80b9d8c01a7342e3920ade03e59729521d6cdeae6b8d0be56db93e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/Auth/GithubWebFlowService.swift:274-281 | Starcat/Features/Auth/GithubWebFlowService.swift:284-291 | Starcat/Features/Auth/MockGithubOAuthService.swift:123-130 | Starcat/Features/Auth/MockGithubOAuthService.swift:132-139 \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":"Starcat/Features/Auth/GithubWebFlowService.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f659ff2d50965533a1990b52c4da3dad1de7488ed4d9a08f41453bc5b5c898c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:491-501 | Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:505-515 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1368-1378 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:4292-4302 \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":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"284a82ae8540b3977742382c5388b5b309942286377933904d07fc5571b60276"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:166-216 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:954-967 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:32-163 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2778-2919 \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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37b78f00dec56d104aec5a4fde8139c217801313d333ecef2f28c906cad1711"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:505-601 | Starcat/Features/Settings/AIModelManagementSheet.swift:27-82 | Starcat/Features/Settings/AITaskPromptSheet.swift:22-99 | Starcat/Features/Settings/TranslationPromptSheet.swift:22-105 \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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"366fb085e8104fa2bc4a81faa92868662041b63bbc5d00186163727450edfef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Features/Settings/RepoContextSettingsSection.swift:69-87 | Starcat/Features/Settings/RepositorySourceDownloadSettingsSection.swift:14-35 | Starcat/Features/Settings/SettingsView.swift:1760-2194 | Starcat/Features/Settings/UndoStarRetentionSettings.swift:25-116 \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":"Starcat/Features/Settings/RepoContextSettingsSection.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"42be03a979d61b408d11d86a6bda156ddbeb15121401f48e00f40a137b5af28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Starcat/Shared/Components/CommonActionIconButtons.swift:54-66 | Starcat/Shared/Components/CommonActionIconButtons.swift:169-183 | Starcat/Shared/Components/CommonActionIconButtons.swift:209-221 | Starcat/Shared/Components/CommonActionIconButtons.swift:246-258 \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":"Starcat/Shared/Components/CommonActionIconButtons.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25259b8078a71adb23a20f635696ea818a9ae364f79e144627df28782e3b03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:160-233 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:85-160 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"90955be12835c28d604a91a191dd6f6175779f873a799153f3eaac41d46bcb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1331-1415 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1419-1528 \u2014 These two members are one piece of code written twice and then edited apart: 85 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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9dc2101059ef526ab8387626137197be7dbad3598280e3c00a0b4b1ed7f1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:238-318 | Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:368-452 \u2014 These two members are one piece of code written twice and then edited apart: 81 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":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcacfe0a97979ede5fdde53c53253dc08665f22331a679e18ac177961b0ce839"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): Starcat/Features/MCP/MCPSettingsView.swift:515-580 | Starcat/Features/Settings/IntegrationSettingsView.swift:700-771 \u2014 These two members are one piece of code written twice and then edited apart: 66 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":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca56a4e47b168c3f3dd0be9043d6d44361baaf13c8d8ab13a5dbdcf6daca575"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1777-1849 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1852-1903 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c53d074616bc37550fb671f1efbf8aa158d89cfd1734ef2977f2945c090cfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 71\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsViewModel.swift:975-1079 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1091-1174 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1180-1259 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1261-1342 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1354-1424 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1434-1513 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 71 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b830c843692aad5ba50c124725aceb76d481b27a960a317edd296d6b084da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:2900-2966 | Starcat/Features/Insights/RepositoryInsightsView.swift:3354-3421 \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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":2900}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4887e11b8f14b5864d2732ad7d451c698bc4428f2396c3c709d3e9bcc9910b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:578-628 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:540-611 | Starcat/Shared/Services/RepoContextStorage.swift:816-867 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"1867adf0b7a011ef7103168c4f36838b81741dd4e2445c10ed74f797e46b1377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:97-195 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:434-511 \u2014 These two members are one piece of code written twice and then edited apart: 78 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":"Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb8588488412bf17c22213e22d003f01a77d91d11e40b6c6fef557f7bcc9bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.swift:29-83 | Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.swift:89-136 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"528560b55823a3c589185f7a430051478d81945a4ac9bb02c4aec8e3c6d55edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Starcat/Features/Home/SidebarView.swift:1762-1837 | Starcat/Features/Home/SidebarView.swift:1841-1901 \u2014 These two members are one piece of code written twice and then edited apart: 61 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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4227bd69033610a0d3e0673fc49272e05f55991409a70e868bea665eea799e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Starcat/Features/AI/BatchAITagReviewRow.swift:270-317 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:701-746 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d84f72fb3dab1e004ac63fc1240e06d4615d55f3cae690c9561d3e34ade415b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1565-1610 | Starcat/Features/Settings/AIPromptPlaceholderPopover.swift:115-165 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf35c078a30b1e5a47d35bdc5c8a1e86ac371707c9a91947957426a8366c9876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:805-855 | Starcat/Features/Insights/RepositoryInsightsView.swift:859-906 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c59426a68f316d59af7adb72eb149adc9e4779787656f77cbd97e5d7c85b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:215-266 | Starcat/Features/Agents/Core/LoopAgentRuntime.swift:318-369 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c838538e92ed777a7176c08c5e9c7216205c4137e4753b7e065a5fcfc9012364"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:473-516 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:519-568 \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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc9f2df8dde2b4bec85dfc6c9ecabdba1915c7cfb43737a8723dd02409315c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:304-332 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:586-619 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a083a4f9fdd9322b19bf49e53aa2bcb0d5c9feaf180925d6e936570a7edc4121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:544-615 | Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:625-672 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0a34d849b92d4b5481f0e5d56f581b3728e9576da5ff60462b78dc299f4033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1719-1775 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1924-1967 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63acbf647a9eb08459a39ba15ce5f6f49be6770bb0a1fb7f508170c616fb472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Starcat/Features/Activity/GitHubNotificationInboxView.swift:492-546 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:199-239 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce704df2dbae219779284ef4ad0d1c7b9d116bcc92d7aa5bbdbecdc49139282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1052-1110 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1260-1306 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff3e4b6178cf48d00507dbe19983042cc9a52d562eb692e78cea402118a4f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:448-503 | Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:111-161 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ef09a7a7418c823e71deb5ea4b4b92c8466225a5aada1e09f4ce53976f179c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Starcat/Features/Profile/ContributionService.swift:108-150 | Starcat/Features/Profile/UserProfileService.swift:175-229 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82bb59a2cb9c6d030877aa8e2458aa320b114f5b08fd905132dda314db9101c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): StarcatWidgets/Focus/StarcatFocusWidget.swift:114-160 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:81-134 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"StarcatWidgets/Focus/StarcatFocusWidget.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"910f7fdc4d553025e1231f83cab25e5424b81e456c4b1898b3dd72ad3a8e2c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Starcat/Core/Network/WeeklyAPI.swift:128-170 | Starcat/Core/Network/WeeklyAPI.swift:219-260 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Starcat/Core/Network/WeeklyAPI.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1a2a27ebf798fae1184da070b4d44eda60fdf2410a0543ee8418b342b535dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Starcat/Core/Network/RecommendAPI.swift:89-145 | Starcat/Core/Network/WikiAPI.swift:44-82 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Starcat/Core/Network/RecommendAPI.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebcbbf5eee7622136c708cac241653fb6ceaaf4b41140c7f9d54b8864b08f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Starcat/Features/Insights/MyInsightsView.swift:293-344 | Starcat/Features/Insights/MyInsightsView.swift:645-693 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60f275e281aa5a20797aec8a3c7f8877055253f555c2ecb8868348fcadbd3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Starcat/Core/Download/ReleaseAssetDownloader.swift:189-232 | Starcat/Core/Download/RepoFileDownloader.swift:260-309 \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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec8a61d04994c9e867bd52a492d76c8a264e3250d3bfb83d4625afa8b8156d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Features/Activity/ActivityView.swift:363-393 | Starcat/Features/Activity/WeeklyContentView.swift:728-766 \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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e5238dbaea7b22611fc75104230dce9c69de045990480b27b2971fe111496e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Starcat/Features/Settings/CodexRuntimeSettingsCard.swift:32-80 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:37-90 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/CodexRuntimeSettingsCard.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"35236fa683aba1d0dcf3a7cb41af27f4e1b047066338b24e4f755a15396ca349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:541-592 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:823-861 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5be259d4fe2929197e74731b12eb0a9ddcb8c7ec3452164cbde4fdd6e00692"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2202-2238 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2240-2281 \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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2202}}}],"partialFingerprints":{"codehealthFindingId/v1":"64284c92ee12c1a31d5a6773eae47499fe9293ea9e581c8dbbe646bbf841f352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Starcat/Features/CodeGraph/CodeFlowPanel.swift:369-415 | Starcat/Features/Home/RepoFileBrowserSheet.swift:739-781 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82f9e8d4f92eb8e99fe601558a68241c441adcb9cb2bdbd45206b94bcd93b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): Starcat/Features/Home/SidebarView.swift:601-672 | Starcat/Features/Home/SidebarView.swift:674-729 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"292b6e5d0abf0c6ee7bd2ef2fad3b71800aec3bbeb2c79b837896fdb9597f0fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Starcat/Features/Settings/IndexRebuildConfirmationSheet.swift:22-68 | Starcat/Features/Settings/ListPreferencesResetSheet.swift:16-62 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Starcat/Features/Settings/IndexRebuildConfirmationSheet.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"734a2c14d5e887c92885db61446eb0f21758ca70df133c2b752d7cd03eaaccee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPortAvailability.swift:16-57 | Starcat/Features/MCP/StarcatMCPPortAvailability.swift:36-77 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPortAvailability.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb213bd6f3d0d6bf49e543d88629540475b93638efad5212ea7004372f763305"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Starcat/Features/AI/ExternalSearchContextProvider.swift:134-179 | Starcat/Features/AI/ExternalSearchContextProvider.swift:181-221 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Starcat/Features/AI/ExternalSearchContextProvider.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf55bf69a2a49f6d33407dd7a88e44683fceeed3b64f2c1054aeb0d63bdb2ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/Insights/InsightsCardIllustration.swift:234-258 | Starcat/Features/Insights/InsightsCardIllustration.swift:261-287 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"74201088f8ff9218da4fe0b013df90bbf34b91bb2abcd0c535ddf7180bd5ec6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:499-528 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:531-564 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0c5c7a2c794468c42b0d8aeacaa2479028d206f2aa1d2fd7da3cf749327ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): Starcat/Features/Home/RepoListView.swift:2733-2781 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:197-248 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2733}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c05c1ca23b84aff91f8ff2ad03d0556a0542735918e1c8942672ef8a7a7562"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:502-527 | Starcat/Shared/Services/DiskChatHistoryStore.swift:529-559 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccea9666157bac0ca16bcf1279002c2baeaa460b2617c0397d6308f5eaee66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:151-194 | Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:387-426 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"364dcc3a650e00298a0c6cf8989748ea394bd4b99a31c06d093917e91b37ee5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift:171-202 | Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift:125-155 \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":"Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f333a2028d607e9d915b6a1c60cfe83f24e521f91ae3f43f70fddc69bd6edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Starcat/Core/Network/AwesomeModels.swift:134-192 | Starcat/Core/Network/GitHubAPI/GitHubDTOs.swift:261-317 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"Starcat/Core/Network/AwesomeModels.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d616d628d58402f6c152f88645c96b780e66cd24f59db997a98f930eb41f46ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Starcat/Features/AI/BatchAIQueuePanel.swift:74-116 | Starcat/Features/Home/GitHubStarListAIGroupingSheet.swift:337-387 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Starcat/Features/AI/BatchAIQueuePanel.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f283c19eee88cdd3e44ba8ca7d1963c72a9aa0e4b47319e307db71429d22a595"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Starcat/Features/Home/RepoListView.swift:2783-2825 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:250-288 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2783}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a2cf048d9802fb245c7ec727bac609344b9a867188e00f480104d9bd7d0e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): Starcat/Core/Sync/GitHubNotificationInboxService.swift:521-563 | Starcat/Core/Sync/GitHubNotificationInboxService.swift:566-612 | Starcat/Core/Sync/GitHubNotificationInboxService.swift:615-654 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8972bb9dd1c2171a232cd7691dc3239786ed1860d5ed49daf17c409e45c7d05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Starcat/Features/Explore/ExploreView.swift:296-343 | Starcat/Features/Explore/LinuxDoView.swift:72-121 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2ba6882ad4a666b874ded166dfd1b2641305c038c7947b9bf3f486bc86ff28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:1797-1831 | Starcat/Features/Insights/RepositoryInsightsView.swift:2538-2572 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1797}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbce1f70eb3e767298d610530ca4a373f15d4a89902097e389a0c3488ac5279"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:95-140 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:101-146 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3085a1917c8920520d6ba0245526fbea0e3cc6c39d3b056a4a7161d058c648ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1008-1049 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1190-1233 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d87b8678bb9968e9dd7adde2c647006826dd38c5b29422efa6b4aa475eb28cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:118-155 | Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:184-245 \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":"Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2a04e9841e6544105f1c1999a01ddc340a2d6c260c8b9f5856704fcae6e101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Features/Insights/InsightsCardIllustration.swift:127-161 | Starcat/Features/Insights/InsightsCardIllustration.swift:290-324 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b62ed70e4110392535745d6c672105b3b5d06c1328bf9b8621479f876514da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Starcat/Features/AI/BatchAITagReviewRow.swift:126-171 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:270-309 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffe5c2ace89846a5ffe74fb5b395c867decbd85b4b606285b69bf291ed04299"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift:97-115 | Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift:245-265 \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":"Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac92f400bec20acdf69392d4a51c97550c4f9f52a5e4f7c9ed09febea2748d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Shared/Services/DiskIssueTimelineCache.swift:80-118 | Starcat/Shared/Services/DiskWikiCache.swift:192-222 \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":"Starcat/Shared/Services/DiskIssueTimelineCache.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8430f9fc7b2f0471f97ee01635a4f2dd2ded97d4df4e53883782201452c24846"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Core/Network/NetworkError.swift:50-79 | Starcat/Shared/Services/RepoContextPacker/Models/RepoContextPackerError.swift:69-94 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Core/Network/NetworkError.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"940103fa646e8ba85bd3642f4c22daf6ee2e631ef960892180fc6a26e2858d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:334-378 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:521-559 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc6698330737e98761a61ac41abbdf1e7c7e63f54e60d8601b17e4435d873ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 47\u002B corresponding lines): Starcat/Core/Database/Models/TrendingRepoRecord.swift:290-344 | Starcat/Core/Network/AwesomeModels.swift:378-424 | Starcat/Core/Network/StarcatRepoCardDTO.swift:258-310 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 47 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":"Starcat/Core/Database/Models/TrendingRepoRecord.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c1b9e152c2bdd2b7fcc0c65e729b119b360250fb71f2feeace14b33edd5352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Starcat/App/AppDependencies.swift:2117-2159 | Starcat/App/AppDependencies.swift:2175-2216 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"01daf31619fa7a7cf8f5de555fbed5cf424f198e0a02cfb994a0bf29694f04a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:544-583 | Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:586-624 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ec7d3e4dba416ed4af838cfbc46be747e504a1c68119a6aef7d9462fbf6ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Starcat/Features/CodeGraph/CodeFlowPanel.swift:25-69 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:34-81 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41b3ab2288b9455e3b513403c3540ea99d40960055d0f7bff85800964b486d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Core/Sync/GitHubNotificationInboxService.swift:963-997 | Starcat/Core/Sync/GitHubNotificationInboxService.swift:999-1043 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"83df8bea82e75861b8f89a2573ff7ff7ca3117d8b0479c4f1add7fd86fb10db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Core/Sync/AwesomeRepository.swift:155-174 | Starcat/Core/Sync/AwesomeRepository.swift:303-324 \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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f485f9330845226571e5adfda8e08e09724c8cd3b605814275946e2dafab314"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:116-149 | Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:342-385 \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":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdeb01240eda001dbe6fd061426af2b972315e0b701f732e7c8c930b06f07c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:634-669 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:779-821 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"1573e277950e835dedb57272a5e1f62550061a99eb49bd3a7f9400ee62afa984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:178-218 | Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:220-265 | Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:267-308 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 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":"Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b351e8d1415f8c8519c913db55c16d559c2ee8154d263fcd38099e60e9b4a526"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:411-439 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:572-600 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff62a43fec4a5b971d328c9f9ef95418f4c0ba22b6e1a84a2aa12ba8eff30b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/RAG/Core/RAGSearchProviders.swift:397-410 | Starcat/Features/RAG/Core/RAGSearchProviders.swift:444-464 \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":"Starcat/Features/RAG/Core/RAGSearchProviders.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"276dd40cd704acbd43f9f8fcf5f740935e1d93d4b093f2699be10c05acbd75d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Explore/ExploreModeHelpPopover.swift:175-204 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:213-236 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreModeHelpPopover.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69d20764e0d7e2de4feb467729587fd369b49a387b4201824c9b4d4d58c62f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Core/Network/WeeklyModels.swift:487-501 | Starcat/Features/RAG/Core/KnowledgeRAGModels.swift:1138-1154 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/WeeklyModels.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f1db4f3f234f5814fffd010437142e8418b0f3562d26b57ff6a5ccaf4a8a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): Starcat/Features/AI/AIChatInputView.swift:350-384 | Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.swift:46-88 | Starcat/Shared/Components/ImagePasteTextEditor.swift:43-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 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":"Starcat/Features/AI/AIChatInputView.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3d76b0aae57c77dc648f9adcdd073d865ce9a6acfe0029c110c33ea9c76d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:79-116 | Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:118-153 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8dcc18329f03d91e9d7a7098f4ea475de66abd7e9d96551bd18db0847b6eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Features/Recommendations/RepoRecommendationItem\u002BViewData.swift:61-90 | Starcat/Shared/Components/SemanticScoreBadge\u002BRecommendation.swift:24-71 \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":"Starcat/Features/Recommendations/RepoRecommendationItem\u002BViewData.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d583c43c3dde360f28b0c1aacd016d4d7b17ff375c5e091f1ec14b773006c204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:249-285 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:287-324 \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":"Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42530ea140fdce9a10bf6467e9f9012518e0efa25df4918cb00dfe27a122156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Starcat/Features/Home/SidebarView.swift:2458-2538 | Starcat/Features/Home/SidebarView.swift:2706-2750 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3172e24449d8f6840e3fb26d37e9742c5c6ec22e9868c88c4928b8e2865b4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:485-519 | Starcat/Features/AI/RepoAIGenerationOptionsSection.swift:102-135 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff003ecb63240d6a645b6d796565f6586e53062ead07a1a1a4673006d1e6b45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift:84-115 | Starcat/Shared/Components/RepoDetailNoSelectionPlaceholder.swift:73-101 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"063995399e84b32f7e6f02bc9c2c754100ba85ac13a57cbfc834bf9ca8355986"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:674-692 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:745-766 | Starcat/Shared/Services/RepoContextStorage.swift:922-949 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"072759e663bf8064391f38a636a9c05e1a62ff6d56cd419d7dfc3a80d15e38fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Insights/InsightsMetricMotifBackground.swift:177-200 | Starcat/Features/Insights/InsightsMetricMotifBackground.swift:292-316 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/InsightsMetricMotifBackground.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b736a94770f2e65e92d1b258ed4ebd1e3dfa708f0e0292f8de99ec5c2f3ef560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Shared/Models/RepoDetailViewData.swift:122-145 | Starcat/Shared/Models/RepoDetailViewData.swift:148-171 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Models/RepoDetailViewData.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4295df3fcc248ffd1348ac9a9e02f625bfa149b59544eddd84b8686a26a6576b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2348-2382 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1931-1973 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2348}}}],"partialFingerprints":{"codehealthFindingId/v1":"528c0fb39bee4508a8a76e5db2509aadb6e0f456bf5a75fcffe1f68d6845ac22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:1507-1552 | Starcat/Shared/Components/RepoDetailScaffold.swift:1073-1103 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00ff2343e7747f0cac42a08dff2b5751d541df4ad62f13ced164e875cd8e20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Core/Settings/ThirdPartyService.swift:193-213 | Starcat/Core/Settings/ThirdPartyService.swift:219-239 \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":"Starcat/Core/Settings/ThirdPartyService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f3fe82247fcacddba5d7af9c83098de205f0f526ad93a24c529b754fbdd002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:65-109 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:112-153 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cfe1168f97552cf384170c81cd394547c4afaa8d6bec5046ae314ef16f43a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Starcat/Features/Settings/AISettingsView.swift:1041-1087 | Starcat/Features/Settings/AISettingsView.swift:1284-1329 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5f7d513a73b93e008d5d36aa571e2d91c44340c4949e254677ce789d392f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:189-219 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:193-223 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b163912219533321eba17b632c9b2378e309d38c49459bfc7a9d4c9aca30bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:630-662 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:439-475 | Starcat/Shared/Services/RepoContextStorage.swift:869-905 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96aa6adf8902da95e738446b626c2ec7bb391797484c69852fe08a060769af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardExporter.swift:129-159 | Starcat/Features/Settings/ProSettingsView.swift:1920-1944 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/ShareCardExporter.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b102f23cc3b5ca0d76a95c9e458c8561074a8a6338f457d761b7f9d1ff3f4720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Core/Health/RepoHealthService.swift:101-129 | Starcat/Core/Health/RepoHealthService.swift:135-157 \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":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2f5ac6d2d97937b034f77844fd8d5f3807a08a7b84d495b97a5296762c41a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1559-1582 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1780-1815 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9be578cbccadac9cc766195efdbebedd4b74c9ee0cb1644762b93591563f25d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:819-849 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:916-939 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fefc84c6733c9cfcf980b6de50d3659da6c1be29cf2bbf0f82c0bf89eb4f7d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Core/Network/GitHubAPI/OrganizationIssuesAPI.swift:87-119 | Starcat/Core/Network/GitHubAPI/RepoIssuesAPI.swift:164-187 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/OrganizationIssuesAPI.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"af140175634771a3561e2a78846c1c8e1939c017b2e8b16d2c5ae7be2a69de11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/AI/OpenAIClient.swift:439-461 | Starcat/Features/AI/OpenAIClient.swift:493-516 \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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8ad8fab0b2ecaa02a1fecea6326421fc950ef43223541eec0da8da3459e258"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Features/Home/OpenSSFScoreSheet.swift:161-195 | Starcat/Features/Home/RepoHealthSheet.swift:105-141 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Features/Home/OpenSSFScoreSheet.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78283a2a209ba8031f9788c05c6faa9a2478ccfa7228c9ba3db1340ae8ee6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift:20-38 | Starcat/Shared/Components/ReadmeAttachmentImageSchemeHandler.swift:25-43 \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":"Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0306f9c70777ed1d3ac1dc989bc95c678362358a669d4a6e01be0c69e9d40d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Starcat/Core/Sync/AwesomeRepository.swift:773-810 | Starcat/Core/Sync/AwesomeRepository.swift:812-844 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"3501bd97f4c7f3fde218de22bda7020bad7a7d9d0643858d80ba1a9c9116fa09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/AI/ReadmeTranslationService.swift:819-842 | Starcat/Features/AI/RepoAIInsightService.swift:1615-1639 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"db51ba445b7fdd0f4e62a77b14a541716c7205c8cb11c9aa360d36813225818f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Starcat/Features/Collections/SmartCollectionMultiSelectField.swift:58-82 | Starcat/Features/Search/SearchCenterView.swift:2032-2056 | Starcat/Features/Search/SearchCenterView.swift:2169-2195 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"Starcat/Features/Collections/SmartCollectionMultiSelectField.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"517bd165ba0c80d2cee65a5b58ef87a4592d7d9b57f8cf73f17cc56531c60660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:1657-1694 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:1792-1827 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"df32b232c20a037cb93f3492f1b477ec1eedfbf286b5ec4f7048d296de29c787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1845-1873 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3817-3845 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f227e4690ca81d2609058015b53f189d553ef541c2cc90e54eb92f81d7c159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:742-767 | Starcat/Features/Home/SidebarView.swift:1475-1507 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"2497c2b5b6d74824257e22747dd2cf009f3481b31b34bb7db37f5914efbb0031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubDTOs.swift:74-108 | Starcat/Features/RAG/Core/KnowledgeRAGModels.swift:169-207 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Core/Network/GitHubAPI/GitHubDTOs.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b41c920f866db1d6c98d424b962c3e62b05e54c83b5cc0fd47194cde1e9628"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:518-551 | Starcat/Core/RAG/RAGChunkRepository.swift:622-645 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d59812bcc7b130fbc8acb3a4ef8444c29a1f102f0cf6526904cd26ade4614da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift:91-120 | Starcat/Core/Widget/Shared/WidgetSnapshotStore.swift:73-103 \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":"Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6bf7c63e9c0371c055c94077bd6a61389016a8a43905de13abc64b7e003fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:292-307 | Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:565-583 \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":"Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3a6fb9857730ae9eb21a7fced8243d6cbcfb8f19c9fe852a1ab154a9828ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:279-308 | Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:310-335 | Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:366-391 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"737de7f7e3fe4cdfc4ccad9c21ea1d51b1dada3b7d19951009e7f816491e57b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:728-744 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1091-1104 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1107-1122 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"faae4dc837eea7d75e5da800a2fb09a86149061649cb46515c28b54390181542"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:854-894 | Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:897-933 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c15fd5fbbc61bf07ceb97a38ecf3e396c45dd3d0c7f71f34f170d0f6361a3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/AI/RepoAIInsightService.swift:1998-2018 | Starcat/Features/AI/RepoAIInsightService.swift:2041-2062 \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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc9e987f5a35e3a560713c77f919fbaa4226a2b211d9f80c704161267cdbf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Core/Health/RepoHealthStore.swift:55-73 | Starcat/Core/Sync/OpenSSFScoreStore.swift:58-76 \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":"Starcat/Core/Health/RepoHealthStore.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccb846ab0f60cc6887aa03b9792dc88057390ed6f74577050f4603f2798eea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1244-1275 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1345-1382 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4318039886db09671ee1aca07a712e0e6a8c0b15f81df7070b234195deb9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:123-150 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:400-427 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:430-457 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6295da2946bb3b38e0a0f1583a14b958fbec0a0f608c3f8efafe8952f3d046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): Starcat/Shared/Models/RepoCardViewData.swift:342-374 | Starcat/Shared/Models/RepoCardViewData.swift:392-425 | Starcat/Shared/Models/RepoCardViewData.swift:438-475 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 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":"Starcat/Shared/Models/RepoCardViewData.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfaee45e8089aa6b14638be38a95a52a4fb060102ec2b6d36d07058d31236da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/CodeGraph/CodeFlowPanel.swift:71-94 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:109-136 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5855b1a841998f0c92b882c92f86d397c0f17238c473a1352fec044899b3f02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:541-559 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:494-512 | Starcat/Shared/Services/RepoContextStorage.swift:795-813 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf676629b7a31ef20666ce950c762e5c9c123f390520d5c941c619e7a3705389"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:213-224 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:249-260 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:359-373 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fb58e0a08df5f4fe0135548840786d72eeb1620682cd37e62b79953372acc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:462-505 | Starcat/Features/Home/BatchActionBar.swift:508-545 \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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb841cb1db50941ff39e10a901fadef84abf997ec2fe0ce35d5f842a5c05ad88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): StarcatWidgets/Focus/StarcatFocusFeaturedRepository.swift:16-44 | StarcatWidgets/Focus/StarcatFocusWidget.swift:221-250 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"StarcatWidgets/Focus/StarcatFocusFeaturedRepository.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"252e395289a8355818d82f8ac3670f639438e44e59f9736e9f5c398bc152b9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Features/AI/RepoAIInlineWindowController.swift:314-348 | Starcat/Features/Search/SearchCenterWindowController.swift:101-127 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInlineWindowController.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2608cbcf176d0a541ca1061fd7f62ada2017429d240eec4faba68fa5f374407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Starcat/Features/Activity/WeeklyDetailContent.swift:68-109 | Starcat/Features/Explore/DiscoveryDetailView.swift:170-198 | Starcat/Features/Trending/TrendingDetailContent.swift:56-96 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"Starcat/Features/Activity/WeeklyDetailContent.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9904b401017dbf8f9de58816a995f37415cff4b9341a9a75628426016b16cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Features/Settings/SettingsView.swift:2889-2914 | Starcat/Features/Settings/SettingsView.swift:3034-3064 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":2889}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e784e7327b29f3d84cf0570b10af3f468c62bcf7abc0a157482fdef348c974d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/AI/AIConfiguration.swift:553-577 | Starcat/Features/AI/AIConfiguration.swift:583-616 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c4f20aede1536218e57a441174d8bdf29abfc76e520af757a35df179645d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:847-867 | Starcat/Features/AI/RepoAIWindowContentView.swift:1031-1051 \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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f420ce5d8262c5672af5e61b2edcf3e191b89fcf9f2ef65fb6bd37937910b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1744-1778 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2110-2136 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71160e9cad59143b64a4c72eddfd2073080198818beaddcd62908ef636fbfbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Core/Sync/DiscoveryRepository.swift:276-296 | Starcat/Core/Sync/DiscoveryRepository.swift:356-370 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/DiscoveryRepository.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc6b02266caf2855fb13ac8146419e6772ef11c1e50c60415eb17938d1633b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): StarcatWidgets/Contributions/StarcatContributionHeatmapWidgetView.swift:21-52 | StarcatWidgets/Contributions/StarcatContributionRadarWidgetView.swift:18-48 \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":"StarcatWidgets/Contributions/StarcatContributionHeatmapWidgetView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"736f36707d5ea1993a15cdfb9c552d539940efa504274dc4871e737e769b3804"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:91-116 | Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:236-257 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7e053a651adf5134938801aa6d9ddb0ab818930c33ee95fffd010606dac988"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Starcat/Features/Settings/AISettingsView.swift:1092-1127 | Starcat/Features/Settings/AISettingsView.swift:1333-1373 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1622790191d3c9a9695cf08a49e6faafaa10625d6e7909ce9387fbb22247ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Core/Network/TrendingAPI.swift:219-237 | Starcat/Core/Network/WeeklyAPI.swift:307-325 \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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8f855781292c2a9221e3f3e6815e9396c0dabb1266eaa577d2548d7da4fd7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:387-409 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:615-637 | Starcat/Shared/Services/RepoContextStorage.swift:606-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 23 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da15c3ee88d3b37b515e220b7d6ad84b253f750946163875e3fba52eada2eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:1354-1373 | Starcat/Features/Search/SearchCenterView.swift:1377-1392 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"558e162212bfa42449693a4f41996d418f825e05c8bda9008bebd6e45405efb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Shared/Components/EmptyStateView.swift:118-143 | Starcat/Shared/Components/EmptyStateView.swift:146-171 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Shared/Components/EmptyStateView.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3a4ec4f8968844d4b600d5557223b2db8f441d5feafbf028f1214fce7865de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Core/Network/DiscoveryAPI.swift:101-120 | Starcat/Core/Network/DiscoveryAPI.swift:123-146 \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":"Starcat/Core/Network/DiscoveryAPI.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab62c9fd8ecf7402f173a324087f85dd62d4388eb98e7a92b38f85b184ace039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Starcat/Core/Sync/ReleaseRepository.swift:41-64 | Starcat/Core/Sync/RepoNoteRepository.swift:45-69 | Starcat/Core/Sync/RepoNoteRepository.swift:82-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/ReleaseRepository.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddd85b1ab11ec8cf5ff41dac37179e8f49fadc1517cc773031b1bb40cb5fce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Starcat/Features/Activity/ActivityViewModel.swift:1798-1819 | Starcat/Features/Activity/ActivityViewModel.swift:1821-1842 | Starcat/Features/Activity/ActivityViewModel.swift:1844-1870 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d422e4fa682847f8af694e1c6a64296f6234f6739de2c0a5d7f2245eb7af9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2436-2446 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2448-2459 \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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f29484ed9ec8460c5e311f8b927573496636800b2f8011354f8de7bddeb2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/CodeGraph/CodeFlowPanel.swift:175-194 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:402-425 \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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36872afc179b1bade788acfcbd0f7cbb4ce3f228bda3ba54a7cc8a0da7ec02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:426-460 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:653-681 | Starcat/Shared/Services/RepoContextStorage.swift:657-686 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2242cd69ccf8c3c9014390cb0818b5269bc169c9325a16eb5a52e066b0b5bf58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Starcat/Core/Sync/UserProjectRepository.swift:79-110 | Starcat/Core/Sync/UserProjectRepository.swift:221-254 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/UserProjectRepository.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"675047959e0888c411a90de2e4631137e01dd25e12b6149a60566d48162fa228"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:127-159 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:350-377 \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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cdf901f45f35c9bc7cca8af22cc53b66bf86c42f360f07e0a7152255248e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:536-572 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:656-695 \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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"5050ac2984b95eb403603b0b7657dfd0e89fa4e72a79cf3c013da0153af2bc29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:2026-2053 | Starcat/Features/AI/RepoAIWindowContentView.swift:2288-2314 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0fe6b871d11a4adf6bb2bd75ec88526298cdd78f47b03724d82c3882f28467"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Collections/SmartCollectionDetailPanel.swift:761-781 | Starcat/Features/Home/HomeView.swift:1294-1316 \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":"Starcat/Features/Collections/SmartCollectionDetailPanel.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f60b067b3b46ed8edd5239668add7dd9ecc275294dbc23344220394ba0b426"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Features/Home/SidebarView.swift:2618-2655 | Starcat/Features/Home/SidebarView.swift:2805-2834 \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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"9543486a0058ba2382d9153a88da24f75ad0b9a7143bb7fd01cb183ca6142ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:281-303 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:630-650 \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":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f86370e8bef87a08242d54a33b60f09146ad2cc6b97710f537cf8b9111b9a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:51-84 | Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:221-244 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0012b2c395300d1354b041df6a782f95a44b689d35f39fffb528d8d568d16c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Tags/RepoTagsSection.swift:784-804 | Starcat/Features/Tags/SFSymbolPicker.swift:63-84 \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":"Starcat/Features/Tags/RepoTagsSection.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"783a8582ee85a5b423a7b66e63c39fea0bde6268bd43d07b8ad59ee7594e85a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:462-491 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:683-706 | Starcat/Shared/Services/RepoContextStorage.swift:714-747 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fb7b1f0cefceef3183394db85708bbc22bce39e89accc9d33fbc47a552d627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Settings/ExternalSearchSettingsSection.swift:168-197 | Starcat/Features/Settings/SettingsView.swift:788-810 \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":"Starcat/Features/Settings/ExternalSearchSettingsSection.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fe6b17fe131f63881f23e4207fb099fc3709e5c6da37ee03d512ec85d05901"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:339-369 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:371-400 \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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd074691ef6def64d276df404795416b7d6624a2e7c9bc32dbc6f6bc7fdd293a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift:1256-1275 | Starcat/Features/AI/SemanticSearchService.swift:380-398 \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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef771be06838bdb5254b0984401e40bcb5b0284a0588c941f136fac623e225a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Activity/ActivityViewModel.swift:376-398 | Starcat/Features/Activity/ActivityViewModel.swift:403-425 \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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5ebccafc6a8356efd41f644660bf6c007553ebdca043f75336f17caada2a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2052-2079 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2083-2106 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f054603c451ae08ea1f14cc9e340a41e4f1df49704db7caaa9665c543896a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:989-1010 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1014-1039 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"433d3e1f638590f1c1ab573bebfb10ff3c520a736850aeb884d89e2f4224bc3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:2366-2384 | Starcat/Features/Tags/RepoTagsSection.swift:865-883 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0393106c4bfb7def29f80736db96e6fa77c551233e876e6d4b0e63eed3df168b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Activity/ActivityDetailView.swift:587-603 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:1660-1676 \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":"Starcat/Features/Activity/ActivityDetailView.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee32932673d9284bf9777fe8d3e60dca3820ff763c3125f4ba4b4b35b343525"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3076-3094 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3117-3141 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3076}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be0bfed40181e616ce48d23179269e3853b3168350ca30b62907b38a2697c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Features/Auth/ProjectAccessSession.swift:454-485 | Starcat/Features/Auth/ProjectAccessSession.swift:491-517 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Auth/ProjectAccessSession.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af49e012c0c38c4bbcd0f0f50213edf2b2d93993adad94f1cefefd32964b98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Starcat/Features/Home/SidebarItem.swift:84-100 | Starcat/Features/Home/SidebarItem.swift:103-122 | Starcat/Features/Home/SidebarItem.swift:126-142 | Starcat/Features/Home/SidebarItem.swift:336-351 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarItem.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac30937f307582466234e6941a74bc24a1b303645bc3709f112ecb6cd9f209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 27\u002B corresponding lines): Starcat/Features/Home/SidebarView.swift:1096-1123 | Starcat/Features/Home/SidebarView.swift:1613-1641 | Starcat/Features/Home/SidebarView.swift:1905-1931 | Starcat/Features/Home/SidebarView.swift:1933-1960 | Starcat/Features/Home/SidebarView.swift:1962-1989 | Starcat/Features/Home/SidebarView.swift:1991-2020 | Starcat/Features/Home/SidebarView.swift:2022-2052 | Starcat/Features/Home/SidebarView.swift:2054-2081 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 27 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9219b1af6a6abc6b0d3deb213327f49bac23e9456ff845c2518a99072daa0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:689-721 | Starcat/Features/Insights/RepositoryInsightsView.swift:1662-1697 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8301b783175e039d4efa81062043f83484ef4e791dd7b01e267537baebf0dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Core/Sync/ReleaseNotificationService.swift:103-130 | Starcat/Core/Sync/ReleaseNotificationService.swift:133-156 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/ReleaseNotificationService.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5250495c4d622105251eb4aee8615cc756ea3137a1047f3b13cb0fcf3d6657"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:759-777 | Starcat/Features/AI/RepoAIWindowContentView.swift:984-1002 \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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8ea699ae0c06a0328263032a1ded6f6f386eb788e7078c5f4bfa8b75511044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:467-489 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:657-680 \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":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"879fa49eda2c2891af68f1cea9b9c1d5885c9cdfb6567110110847bc73da3818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Profile/ContributionService.swift:188-201 | Starcat/Features/Profile/DeveloperLanguageService.swift:245-256 | Starcat/Features/Profile/UserProfileService.swift:285-300 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07e64fe94847f4cd0375bb5845f6dcdc2d10e1593670e385f1ef99799309774"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift:494-509 | Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift:133-149 \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":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca84ea6b1ea6d500869d4a08e2094819eda16d24f506956ee6e0afc53afc046f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:955-981 | Starcat/Shared/Components/RemoteAvatar.swift:300-322 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea79a0433b6e76904f46c5f1efeb96171a6b5467bef37f1c34ccca958afbd0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:213-235 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:268-294 | Starcat/Shared/Services/RepoContextStorage.swift:223-246 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"529b35c31e77f7c66022ea58470794c7f66c8f647f04cc03a7872a2e0413dc7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:706-741 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1287-1317 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8883b6ecc706d7470c7ce2aa438804bfac22f49357d6596fb95650fb6c5cc676"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/MCP/AgentToolMCPRuntime.swift:63-81 | Starcat/Features/MCP/StarcatMCPRuntime.swift:76-110 \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":"Starcat/Features/MCP/AgentToolMCPRuntime.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac23a096a8f13d9312c6acd5cf7b005878e7bf08892b6e42ad09625f5f89752"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:3303-3325 | Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:421-447 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":3303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35210a64fe92e368d98a152b09be4ee3a5010e3481cfa83e52c4e03d99d7b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:57-90 | Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:92-131 \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":"Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a0f3fa4d3bd8523d8fbfe9156c50d618162c0d3e8918d1c0319aaf5ae22f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:694-707 | Starcat/Shared/Services/RepoContextStorage.swift:951-969 \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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"2232caeb28c88a40c65751d7dcff8174119794f9d1217527c12c57eba35390b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:950-974 | Starcat/Features/Tags/RepoTagsSection.swift:427-451 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c4ab884300e9c6531cfbb45ed2fffea92ae5efd77e8f44a9ebb0e5dafc9bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/AI/SemanticIndexBuilder.swift:415-428 | Starcat/Features/Home/HomeViewModel.swift:2643-2656 \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":"Starcat/Features/AI/SemanticIndexBuilder.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"000fd476540ebe8cbb237c11aee5eb8d95701f6ad61bb996990e8393ec28f5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:2784-2805 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:486-509 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf2738a05dccb3e447f117d24ef0264a82f6089c677c664f18704921cac3703"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Profile/SnakeFrameRenderer.swift:149-169 | Starcat/Features/Profile/SnakeFrameRenderer.swift:173-197 \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":"Starcat/Features/Profile/SnakeFrameRenderer.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4e47273a0bc7fad2d598f6694798a912df81808fa93907a8f9c27b0336abae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Core/Settings/LocalizedBundle.swift:122-138 | Starcat/Shared/Utilities/L10n.swift:103-120 \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":"Starcat/Core/Settings/LocalizedBundle.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7db1f17d774f4e09a1181db472283846972d9475105c4e7fc75a9f118dd9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Core/Sync/TrendingRepository.swift:106-128 | Starcat/Core/Sync/TrendingRepository.swift:209-228 \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":"Starcat/Core/Sync/TrendingRepository.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2216a6d9af5154567ae322f72eac61fee14142d51662e685be1655cca78a0517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:3116-3136 | Starcat/Features/Insights/RepositoryInsightsView.swift:3139-3160 \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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":3116}}}],"partialFingerprints":{"codehealthFindingId/v1":"650392eb6606fa51c4b55f8e7b672a0e848782313d0beb91e67784dd8a9b3a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:89-109 | Starcat/Features/Agents/ExternalRuntime/CodexModelCatalog.swift:175-193 \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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11403c84b137d92d0b6dcd3e849dbe3e020a31a91fbabcfaea7555587177a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Shared/Components/WorkspaceColumnWidthPersistence.swift:47-68 | Starcat/Shared/Components/WorkspaceColumnWidthPersistence.swift:71-91 \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":"Starcat/Shared/Components/WorkspaceColumnWidthPersistence.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc0f1d6dfa483ab39bcc12da7cfa32f0141efb97b445eca4a2ac55136f35bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:732-766 | Starcat/Features/Insights/RepositoryInsightsView.swift:1725-1760 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd3b2932788e36e07d9406e96735cc50272579c92e48fa7eaf998e1b9fa432c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1005-1028 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1945-1972 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5af82f0d1cc3623123953177794b72bcf15b14b1e810c0a516f5a74d2f668fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Starcat/Core/Health/RepoHealthStore.swift:75-88 | Starcat/Core/Health/RepoHealthStore.swift:90-103 | Starcat/Core/Sync/OpenSSFScoreStore.swift:78-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Starcat/Core/Health/RepoHealthStore.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f9bc2259bf902852cce16382200e709b84747cb394f6ae4e4ad716aa9df557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Core/Network/GitHubAPI/StargazersAPI.swift:34-51 | Starcat/Core/Network/GitHubAPI/StargazersAPI.swift:76-94 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/StargazersAPI.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2efffc0b0f9506cc5829e7b32496f73f64cf783f6709642a1fa18729913ea3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:914-931 | Starcat/Shared/Components/PillSegmentedControl.swift:109-129 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a9aba007e3a88e23ec3c4da8e07f2179b0a288bfe4274b65cc28f263c0f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:840-868 | Starcat/Features/Tags/RepoTagsSection.swift:391-424 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5aacd3a468c388cc9dc26afcc1323e0fd755e6c81435fed3e50250f78dd132"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Core/Health/RepoHealthStore.swift:37-53 | Starcat/Core/Sync/OpenSSFScoreStore.swift:39-55 \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":"Starcat/Core/Health/RepoHealthStore.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d699e761edbc06e7db6c4dee8609dfee6a9e14765ea79447066c56e6d38f2f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:183-195 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:199-213 \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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0728328def407fd866c9e294ad5c4acc1e945dbdea1a39f368c2e9fb82c3f054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:526-542 | Starcat/Features/AI/RepoAIGenerationOptionsSection.swift:150-166 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"6404f7f9856d2b41cc7fc2a282721f54fe5d6553eb5b4e3e4b08ad3cf6c3bde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:1997-2014 | Starcat/Features/AI/RepoAIWindowContentView.swift:2065-2082 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddce34c90fc829a2a81ad2cae7398c4739943e75bb1f80aade35e4843dbe7a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:2991-3004 | Starcat/Features/Home/RepoFileSourcePreview.swift:70-87 \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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":2991}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaf4f95e5e7c093856cef52b076d74090165d3c0c676ed435b90516e5074205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:311-324 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:354-374 \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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5c545037a0ebe71f9c0c9af16c50a5a39e10ceda88b79c4b951e43676e70bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:84-99 | Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:107-122 | Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:125-140 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"799ea4f842f2708ade217bd7c5e6065210e39a188b94f1fce43d945baff76c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:697-726 | Starcat/Core/RAG/RAGChunkRepository.swift:786-816 \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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d4536e56bf7746d7437b32cbb8b04dae315f52bfeee7c9ce8c92188ce55d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/Home/ProjectAccessSheet.swift:59-78 | Starcat/Features/Home/RepoContributorsStatItem.swift:169-190 \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":"Starcat/Features/Home/ProjectAccessSheet.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ae84810749f41c10c56a2117e1e89ad55baae33512fec443f96e5ed37f8445"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:48-63 | Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift:38-55 \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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"572f41df762e379855589a78eb55176de1156e9914696f0218fa3e8f3ac9ff58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Releases/ReleaseAssetDownloadCoordinator.swift:150-170 | Starcat/Features/Releases/ReleaseAssetRowView.swift:289-314 \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":"Starcat/Features/Releases/ReleaseAssetDownloadCoordinator.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"093aaeed18f45f4296c6825d85d68360cffb19920775824da86d4dcee055bf4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:778-796 | Starcat/Shared/Services/DiskChatHistoryStore.swift:798-811 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abb4cd89682f7b46f02299a10c23c38629c858fa35904f2990d5861839a8f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift:67-88 | Starcat/Core/Widget/Shared/WidgetSnapshotStore.swift:47-70 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"663aaeffa119d8b55b1383a952330d01a9236f08cb5483a05f84e0902a1ec0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Starcat/Features/AI/RepoAIInsightService.swift:1316-1341 | Starcat/Features/AI/RepoAIInsightService.swift:1388-1414 | Starcat/Features/AI/RepoAIInsightService.swift:1418-1444 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c099fb7bdf89eb4731f552ed3597b91101c0ae98b54db175bdd7b98814378ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift:260-291 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:761-788 \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":"Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"35163fa3386d0cd481e6dfcb6a71d518ca90f6cd59fffb3b23d7f5bed0df4be7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:42-60 | Starcat/Features/Settings/SettingsView.swift:2869-2887 | Starcat/Features/Settings/SettingsView.swift:3014-3032 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4885a72e2eac407a8d5138ebc7ecc74e7b6782fadae4ac1478df736397d07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:129-139 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:161-170 \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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6327d09aea34b7127af3b3b4f92766ecb5c5a0d4aa8047f7e2e361e87c091ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/RAG/Storage/RAGConversationStore.swift:140-159 | Starcat/Features/RAG/Storage/RAGConversationStore.swift:548-561 \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":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"069f51490ea968a85ba428f3e1e3b2b38a626e8b937a028a93933ab612b61b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:175-198 | Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:200-218 \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":"Starcat/Features/RAG/UI/RAGExecutionTimeline.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"636f225d1f8bcad502aa6f6758b417998a1a255c7aac7e47820cd3f57afe5e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicClient.swift:320-338 | Starcat/Features/AI/OpenAIClient.swift:550-567 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7c374851c2d3b5ebabfc17ae3dc100af5f8ff1c4075b303eebb8001712296d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Agents/Core/AgentRunSession.swift:181-204 | Starcat/Features/Agents/Core/AgentRunSession.swift:209-227 \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":"Starcat/Features/Agents/Core/AgentRunSession.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32236d65ae9fd707bee3b999b8089eb6320161827e24db1a285e8d19c9fb1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift:558-579 | Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift:627-651 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"776bd8da005fce21298a322d21f7c45d7f4f84736e24063ee44ef8e0f0b03bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/Home/SidebarHeaderView.swift:269-280 | Starcat/Features/Home/SidebarHeaderView.swift:287-298 \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":"Starcat/Features/Home/SidebarHeaderView.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd19e7a582ebe359d1d4bfbd58767c47dae9b04b00f0be97c0175ef4f33c275"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Shared/Components/LicenseKnowledgeCapsule.swift:338-357 | Starcat/Shared/Components/LicenseKnowledgeCapsule.swift:359-374 \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":"Starcat/Shared/Components/LicenseKnowledgeCapsule.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d283ae4cbb799133644c5f91c345b14b0b3f9781d8a4d55ae91cf955f7540dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1095-1117 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1152-1174 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1277-1300 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1384-1408 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dd68c71864791a25ba259e4154f99c8e7397815a0256667bdae59f2c183de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:3921-3939 | Starcat/Features/Home/HomeViewModel.swift:3941-3963 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3921}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa7899e039f204e9df423a4cffa2edd1e15c1c75bfe1dfed493e96e67b96a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Home/RepoListView.swift:2854-2873 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:290-306 \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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2854}}}],"partialFingerprints":{"codehealthFindingId/v1":"14812b3788fd2616a3eb14ecbaa537f2036236a232d0e041ad7ecde7ccddb58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:896-909 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1606-1622 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"decc1276cea55aa939508ae3434a468654f43c6d506af1015f0ca527834f1e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:2213-2233 | Starcat/Features/AI/RepoAIWindowContentView.swift:2238-2260 | Starcat/Features/Insights/RepositoryInsightsView.swift:909-925 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":2213}}}],"partialFingerprints":{"codehealthFindingId/v1":"04237ac8eca25c1a523412a9f889cc393c0b70db79aa5d6ffc795d03540038f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Starcat/Features/Settings/IntegrationSettingsView.swift:184-211 | Starcat/Features/Settings/IntegrationSettingsView.swift:213-243 | Starcat/Features/Settings/RepoContextSettingsSection.swift:90-116 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c251b92c6b99e60b4a0a5df020c634c6c1def57d5ce4eb573fea512036bf72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2118-2130 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2155-2166 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2639-2649 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2842-2854 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2858-2871 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"459e61d31c7b5a5a73cf191d7835728151b65c30844b3a3bb694076432935b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/AI/RepoAIInlineWindowController.swift:486-511 | Starcat/Features/Search/SearchCenterWindowController.swift:147-168 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInlineWindowController.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b00578095d0aef5d518e02c9b62b3bfa0afec536f76343548825d0445ac38c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/AI/Usage/AIUsageWindowController.swift:35-54 | Starcat/Features/About/ReleaseNotesWindowController.swift:52-72 \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":"Starcat/Features/AI/Usage/AIUsageWindowController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5718e167209764b1eeb0d0218f7dd9ea0217611c4f05e9e4b1a814aa116a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Activity/ActivityViewModel.swift:720-734 | Starcat/Features/Activity/ActivityViewModel.swift:737-751 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7e8fd2a4903d31afb71905405c4ec252070dec9676909680de750629ce213b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:58-82 | Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.swift:115-142 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5890226255de1a8f9b1ab2327e806e595684e1e6dc4a7b5e1fae49794eab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1252-1271 | Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1273-1292 \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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f688d06e590a5606d3558f06e7639bf91bfa830ffaec68f59a8203fac6c8ceec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:1282-1293 | Starcat/Features/Search/SearchCenterView.swift:1319-1334 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"417ef0a412d3c02de93996e7b6b9993c2e24d1ee4bde3298c0ce7f6414066d15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Starcat/App/StarcatCommandRouter.swift:257-277 | Starcat/App/StarcatCommandRouter.swift:290-314 | Starcat/App/StarcatCommandRouter.swift:326-347 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"Starcat/App/StarcatCommandRouter.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d624c41f5d46cc32ad395f7ae25f4405adeb69429612ad7092b417799205ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Core/Subscription/DirectLicenseManager.swift:222-242 | Starcat/Core/Subscription/DirectLicenseManager.swift:244-274 \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":"Starcat/Core/Subscription/DirectLicenseManager.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"715341a52edd6683db91d99b952abcb790e4c5d36a68c7f3604591a3c10a6d81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:115-139 | Starcat/Features/Explore/DiscoveryDetailView.swift:72-96 | Starcat/Features/Trending/TrendingScaffoldShell.swift:83-117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca86af9a2a9ee52ac1e14f33ca350e638cf2f11e7a00fa6578fc56bedc16841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/DailyRadar/DailyRadarSkeletonView.swift:46-53 | Starcat/Features/DailyRadar/DailyRadarSkeletonView.swift:56-65 \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":"Starcat/Features/DailyRadar/DailyRadarSkeletonView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"807c57dc38e074d6263dfb8b191d709c92bec7f2c303c931c2d79ebe51f4360c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 29\u002B corresponding lines): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:344-373 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:375-404 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:406-434 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:436-468 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:470-500 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:502-534 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9352c0baa4ab6a757484c76b102a5561496c38dee8fffb1b7f62a2c210a7824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:851-869 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:979-999 \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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"192d50fbfeb9f241bcd45eebe5fa99310313ff504336f0ed5c10021c491690a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Starcat/Features/Search/SearchCenterView.swift:1234-1249 | Starcat/Features/Search/SearchCenterView.swift:1297-1314 | Starcat/Shared/Components/RepoRowComponents.swift:260-277 | Starcat/Shared/Components/RepoRowComponents.swift:292-305 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18f343dd2613106cfb4960427e69a66391cae1cba64db358f5e6ee7aba3b448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:70-99 | Starcat/Core/Sync/ActivityEventRepository.swift:57-85 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a77a7a3130055b4946314e73689054c6f0cb9074a61a619416e44f19b919d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Core/Sync/GitHubStarListSyncService.swift:162-183 | Starcat/Core/Sync/GitHubStarListSyncService.swift:185-212 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListSyncService.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0ef296b03e8e5e9de29e03a12cf6cac42b6ad532e57d07f4257f9dd1f46d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryExtractor.swift:128-143 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:177-192 | Starcat/Shared/Services/RepoContextPacker/Internal/SourceZipExtractor.swift:181-199 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryExtractor.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89b0f546daa32cfa68d0e2a0cbb2142f6c62e9c9896f782dd79f01c1ad5aa35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): Starcat/Features/Home/RepoListView.swift:997-1029 | Starcat/Features/Home/RepoListView.swift:1034-1062 | Starcat/Features/Home/RepoListView.swift:1067-1097 | Starcat/Features/Home/RepoListView.swift:1100-1135 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"84656cbb5f960873ff958a70e23db2848bf2e96ad90c90b85389fba7ae9ef07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Notes/NoteEditorSheet.swift:174-192 | Starcat/Features/Notes/RepoNotesSection.swift:383-399 \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":"Starcat/Features/Notes/NoteEditorSheet.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9bf54c0522e3ca865b92c43e8b312968837aaf97ad76f2d59fb2306e1196f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Core/Sync/AwesomeRepository.swift:568-591 | Starcat/Core/Sync/AwesomeRepository.swift:593-619 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfba3ab1ae9b50aba7464f2f61f8e389fece8cd83c0f81cf4bf7a51ccfa0822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:86-107 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:111-127 \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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"285881a02ccf0e943b81ae4727348612a18ddfe6e01c068258812860d42a1739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:806-827 | Starcat/Features/Tags/RepoTagsSection.swift:359-380 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb81f33d5310358441db276bb27bf6f4aafd1f73d243c5e87169de241f43b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Starcat/Features/Home/ProjectAccessSheet.swift:175-196 | Starcat/Features/Home/RepoHealthSheet.swift:755-771 | Starcat/Features/Settings/ScreensaverSetupHelpView.swift:48-69 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"Starcat/Features/Home/ProjectAccessSheet.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a379d72a0dc643d5c5993786ff020b408300dd5438e2782327ae99eba9c183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Home/RepoMetadataHeaderView.swift:1058-1070 | Starcat/Features/Home/RepoMetadataHeaderView.swift:1114-1126 \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":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ba430d491673bb5275d26f55ad8a36098111b7407ed1d5f704c0235998678a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:143-165 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:149-169 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"382f4cf7a22b8f4866afcfa988132366e1c3c475fac85c373e95cd591e5b9d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:29-39 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:27-37 \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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9978465a121518b9836fae76ee60f8298606ee8792074f694b7ef7edab82abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:2224-2239 | Starcat/Features/Home/HomeViewModel.swift:2241-2256 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9d2eeac3b5456fe3146909ce40164c1c164a0c0c955ac29e059167b4a69511"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift:288-293 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:599-610 \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":"Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c63e8f9f571d9b5a687893b4b1f138ae5bf8c0e108ba4fc1c664cc8e90ece93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:976-997 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1071-1088 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"a372101ae0728951616cfebd894dab646d3ff003c8c2270377b6707454b40ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Releases/RepoReleaseSection.swift:355-363 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:680-707 \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":"Starcat/Features/Releases/RepoReleaseSection.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87a805c6ccd42f620a74c7ab69e8f3e1c7dc6f19d3b571cc93b6fa6caceb50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/AI/RepoAIChatViewModel.swift:96-106 | Starcat/Features/Agents/Core/AgentJSON.swift:158-172 \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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d977f1c09c37e8248ab8741270ec2d02161e712f3366061497452bffe55cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/Home/HomeView.swift:1640-1664 | Starcat/Features/Home/HomeView.swift:1666-1691 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"67042bff2b09402f7a2de54a4ba3f2dc53ab46bd686cd77c6beeef8a1cd72473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift:288-298 | Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift:301-312 \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":"Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"111b53da9a87a37996e7ce4aa75262b6cef090cdd8ac5c84c2ededc758d466a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Shared/Components/RepoDetailScaffold.swift:620-639 | Starcat/Shared/Components/RepoDetailScaffold.swift:641-666 \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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f4d5f514e57f7bba3fb9572334e268a267a9dbaa3fce9dd46c8c8d7a824afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Core/Sync/RepoNoteRepository.swift:156-175 | Starcat/Core/Sync/RepoNoteRepository.swift:177-193 \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":"Starcat/Core/Sync/RepoNoteRepository.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"36829001549366d00eba40533642a2bcbb46f813757f5f10e21ed3f16d5568ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1683-1699 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:2924-2940 \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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"438a6bd5b6fb41ebf061450e71b81bcbbd76dc09589d0c524c536c40fa1ff08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:411-423 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:639-651 | Starcat/Shared/Services/RepoContextStorage.swift:636-648 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbee917b9c9fd0d26160eb54ea28fb6761b389fc39b0e5b7143f2e511917fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3342-3360 | Starcat/Features/RAG/UI/RepositoryInsightsXMLViewer.swift:165-181 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3342}}}],"partialFingerprints":{"codehealthFindingId/v1":"17afbd549626eafa24116d2d443fcabaa52170120452dc3365ce865b22c92f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2306-2335 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:3041-3060 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb725f761c4c86db54ae3d8033ad033d82eefb4077e6881a1fc12af5180b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/AI/RepoAIWindowController.swift:98-121 | Starcat/Features/Detail/RepoDetailWindowController.swift:81-103 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIWindowController.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2df2d0f14f340d12603b1153563e413e30719878dc7f3457c4a37e854e99fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:792-817 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:869-895 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e5d81f37fddd6835b5b8918655e073fff022fa33bd30cb53ee959b5bbc5b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Explore/AwesomeView.swift:710-718 | Starcat/Features/Explore/AwesomeView.swift:720-731 \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":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"e589c1e5a4e0f4d8513649e512f179ae721bc8e286fd97a05273692413911915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1409-1426 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1428-1449 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7996b184dfa3bbde9574663939f4c0e3754ed4086da2e3e9c7a9d3955eda5eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Core/Sync/RepoEmbeddingRepository.swift:37-48 | Starcat/Core/Sync/RepoEmbeddingRepository.swift:79-89 \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":"Starcat/Core/Sync/RepoEmbeddingRepository.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e252bf4f022772c3490f971776b1ec8dd2733a86fd7f716af8e5acc7432aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:258-279 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:597-617 \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":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"54434e6dad6dac14c25dafa133321455931ccd6f1c3121ec78a7c7d05aa53112"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/RAG/UI/RAGBackendConnectionSettingsModel.swift:52-69 | Starcat/Features/RAG/UI/RAGBackendConnectionSettingsModel.swift:72-89 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGBackendConnectionSettingsModel.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a6e5013e4d24bb19348ab87a372968d65d70ea2722188f93b9dc5f249c5d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Starcat/Shared/Models/RepoCardViewData.swift:158-183 | Starcat/Shared/Models/RepoCardViewData.swift:189-214 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Starcat/Shared/Models/RepoCardViewData.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5948361e9fb4718c5e4132bc8cd89646638af9d67f939d22d118010a342e3b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): Starcat/Core/Capabilities/RepositoryTagCapability.swift:379-400 | Starcat/Core/Capabilities/RepositoryTagCapability.swift:402-422 | Starcat/Core/Capabilities/RepositoryTagCapability.swift:424-443 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"Starcat/Core/Capabilities/RepositoryTagCapability.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4d2dc7b91802a1a1da7ce8f7d31e2318fc63d728e13c6b95ce52b891694bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:106-129 | Starcat/Core/Scheduling/RepoHealthPoller.swift:116-140 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7417eb9a63cb67c37007adf906da674caa5e6cdb7a0d144886874caf35512bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/AI/AIChatBubble.swift:353-368 | Starcat/Features/AI/AIChatBubble.swift:438-454 \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":"Starcat/Features/AI/AIChatBubble.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"762683d34dc76d95ff683c379de695d9a68f30e8488c6e85f85d38ec16a106df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/Auth/ProjectAccessOAuthService.swift:325-336 | Starcat/Features/MCP/StarcatMCPDeviceStore.swift:273-282 \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":"Starcat/Features/Auth/ProjectAccessOAuthService.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f04a5ccd8234d64d1d01f3466249f9259c648cf95589f22a10dbe4a3784eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:330-351 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:559-574 \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":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a43f5ae037c3919eaa90498095f7ec850d4f48a41fd6f81fde1f1b16104a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Features/Home/ManageDetailContent.swift:158-182 | Starcat/Features/Home/RepoDetailView.swift:860-889 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/ManageDetailContent.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb3c2327d4e9f6ebb786c172ffd62bf019254c9d5e1d729dbd0587703160bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/MCP/StarcatMCPToolRegistry.swift:742-758 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:766-786 \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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"b464ea50a9dd5a8cd0d478acda1dda3de32450e4c3ec56a192c6551076ca4f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2969-2976 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:305-325 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2969}}}],"partialFingerprints":{"codehealthFindingId/v1":"099cf6462b5e9a35b8b51930119c29b6774b67eed15c946d228f48c1a4065e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Tags/RepoTagsSection.swift:316-335 | Starcat/Features/Tags/RepoTagsSection.swift:680-698 \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":"Starcat/Features/Tags/RepoTagsSection.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc3653edc61d5518efb75d9b4d23b57a43c966544906add192a8fef8c7aa4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Core/Subscription/DirectLicenseManager.swift:309-331 | Starcat/Core/Subscription/DirectLicenseManager.swift:337-362 \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":"Starcat/Core/Subscription/DirectLicenseManager.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"422c45e40e438c2fa2430f2ed6cdc036cb32c55f9c7a6de8aabc1b9834ad8422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Starcat/Features/Activity/GitHubNotificationInboxView.swift:328-342 | Starcat/Features/Activity/GitHubNotificationInboxView.swift:350-369 | Starcat/Features/Home/RepoHealthSheet.swift:589-605 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ded3d838e1099d2e87ce224a05a04345a082a02f71a4f03fbc2dd360fef4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/Detail/ReadmeWindowController.swift:126-147 | Starcat/Features/Detail/RepoDetailWindowController.swift:107-124 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Detail/ReadmeWindowController.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c803bae71d24b3d29a3219c0bea3d3326b8fe06f96bcdf8271d79f3a3cdd982e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:95-121 | Starcat/Features/Settings/SettingsView.swift:2916-2943 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2f68b5b89d20c435cfa9d87a82c1065e36019734a2c80b30f45b767b4706ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:2010-2029 | Starcat/Features/Search/SearchCenterView.swift:2144-2163 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"217ef7208d2b865cf0298874f99f93a8d9173c413ceb6f37a8ee2727682f2925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:94-113 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:105-122 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b54eaece78a1d65e74005b668c8345c51f3b39f5a7f42ad79336d9d634d4bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2284-2300 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2302-2315 \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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"4792eb3f8a6e3979afca332cbc7ae169385abbde4f1e81f8b80c62e705dad38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:268-292 | Starcat/Features/Agents/Core/LoopAgentRuntime.swift:294-314 \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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9871274f7ccf3b123053da9889bbfb0c9064b732a66323a270208aaea2282a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Home/GitHubStarListMenuLabel.swift:46-56 | Starcat/Features/Tags/TagColorPalette.swift:48-56 \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":"Starcat/Features/Home/GitHubStarListMenuLabel.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e354ed97b2f158c90621948d5b1c33dea8da7d79afc92af778f0940ae4151040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Home/RepoMetadataHeaderView.swift:1038-1056 | Starcat/Features/Home/RepoMetadataHeaderView.swift:1091-1109 \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":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04732a6ab4bd76877cb031ef9af8a2b55812178c353300edf142c951b1af6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:451-462 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:465-479 \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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f69942284834c62d3c4bef27ce0e66c0539035aa314703312dc3b609c6fbac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:2553-2574 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:876-893 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1519c2a0dd5ed72264ca569471b6d8c58d29be76b528af799690bf79933596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/Settings/TranslationSettingsView.swift:381-400 | Starcat/Features/Settings/TranslationSettingsView.swift:402-421 \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":"Starcat/Features/Settings/TranslationSettingsView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de5af6dea201e9b4d42cb68914f75e9f08abce7f1165dfc01b35763a7b81da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Core/Navigation/RepositoryDeepLink.swift:80-93 | Starcat/Core/Navigation/RepositoryDeepLink.swift:97-108 \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":"Starcat/Core/Navigation/RepositoryDeepLink.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9b8dd59301e8ff03e6911e4750439b095396469a42d15cb8068e2e9afb8a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Agents/Core/AgentTools.swift:239-250 | Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift:1336-1349 | Starcat/Features/RAG/Core/RAGBackendConfiguration.swift:194-213 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Agents/Core/AgentTools.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7354ad20bfe490ab0c9a637f2c551d00bf6078c83835064cf17f8a0645b1512a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Auth/AuthSession.swift:550-573 | Starcat/Features/Auth/AuthSession.swift:594-616 \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":"Starcat/Features/Auth/AuthSession.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"facc9567318e5781ceef6b5f4211c42ce79b60eff9d0a278fb40de70393ac430"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift:41-64 | Starcat/Features/Home/GitHubStarListAIGroupingPresentationStore.swift:246-271 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95a1f25276d26edc590c9c05852706cc0e34566682478cbde9095dd49657c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): supports/scripts/starcat-localization.py:190-204 | supports/scripts/starcat-localization.py:560-575 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supports/scripts/starcat-localization.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"108ccfdb008804e2052fa2ed70e36c66cbf2b090917942c5c26e443d8c842e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Core/Capabilities/RepositoryReadCapability.swift:245-260 | Starcat/Features/Home/HomeViewModel.swift:2658-2669 \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":"Starcat/Core/Capabilities/RepositoryReadCapability.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d926cb8ee8a1337f8bb10a10810d5371caa65bf5f943434d38ba2339cb5865"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2231-2239 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2475-2486 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2652-2660 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2757-2765 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca45130b1bd407e95969574891a2782cb38de50dc905477cef577405689bd70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Features/Agents/Core/AgentApproval.swift:22-32 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:1000-1010 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:317-334 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentApproval.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fc007fc513a348faf45d6a4bfd025d9834796cc258c40f1ac3583720dd8d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1006-1021 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:364-379 \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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c87c02b02dbd53ec615ea162f6bdd380e95f3f8a0405f622055c71acdd0b723"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Starcat/Features/Home/SidebarView.swift:2328-2340 | Starcat/Features/Home/SidebarView.swift:2409-2425 | Starcat/Features/Home/SidebarView.swift:2427-2442 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2328}}}],"partialFingerprints":{"codehealthFindingId/v1":"60464d9fd148c4161f30d6472db9b14a78fbb33770f69f8c1b372f59a58267d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:440-461 | Starcat/Features/Settings/AITaskPromptSheet.swift:113-130 | Starcat/Features/Settings/TranslationPromptSheet.swift:126-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ab11c61ce1700dd49ddaf49e6b9987ce27650d59acd721c659165093f36881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/MCP/StarcatMCPFacade.swift:358-367 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:619-631 \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":"Starcat/Features/MCP/StarcatMCPFacade.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4a0c2aeb2b4b2319fe0aa05baca7bc4d5df846bfa5a03a491492153d51ba9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift:276-290 | Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift:293-307 | Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift:310-325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"587dc9a79a19b4f7819fe4a9505092617e5dd57124e97fa385adffe76cb501e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:218-226 | Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:230-238 \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":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3bd5bb65b49659f4a0390161f0d0b1f92fb413f8e0becc9f12bdaeb2f92e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/Auth/ProjectAccessSession.swift:556-580 | Starcat/Features/Auth/ProjectAccessSession.swift:583-605 \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":"Starcat/Features/Auth/ProjectAccessSession.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18f476868d672ca92585289aeea77d5dfd46dc63456b48d5d79d612e610c8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Companion/CompanionNoteWriter.swift:48-58 | Starcat/Features/Companion/CompanionTagWriter.swift:55-67 \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":"Starcat/Features/Companion/CompanionNoteWriter.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d25e2cb8cd31b0b4182cf05f890e2c642f7ad11dd67c2361c627f4bed7e48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Starcat/Features/Home/ReadmeTranslationViewModel.swift:219-253 | Starcat/Features/Home/ReadmeTranslationViewModel.swift:309-332 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"550315163ee63610e6f01b1b9c2cf06a38af4b47b40246e7f4ef563788c5d8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Features/Insights/MyInsightsView.swift:529-550 | Starcat/Features/Insights/MyInsightsView.swift:805-824 \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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd0dfaacb960aa5fa2b480fc4f8817b54a4a32112d5a98e83178f9579ff55e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Starcat/Core/Database/Models/InitialWarmupJobRecord.swift:45-71 | Starcat/Core/Network/RecommendModels.swift:34-58 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/InitialWarmupJobRecord.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24bebedd45226a1be3ace60bc6f17830a711d56fabd46137af8950d33834d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Starcat/Features/AI/BatchAITagFlowLayout.swift:25-38 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:765-773 | Starcat/Features/RAG/UI/RAGCitationChips.swift:167-175 | Starcat/Features/Settings/SettingsView.swift:1548-1556 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAITagFlowLayout.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db856e0c7e7a9520afb5d66edae1dcde23ee3068fcfdf22f2fd95114dd32e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:310-318 | Starcat/Features/Settings/RuntimeDownloadInstaller.swift:209-220 \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":"Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9561c501068cda52d5c153edd6842f32af008d2196cf6db55fc82cb3513e8d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): Starcat/Features/AI/ReadmePreprocessor.swift:157-166 | Starcat/Features/DailyRadar/DailyRadarMarkdownView.swift:49-55 | Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift:604-610 | Starcat/Features/Insights/RepositoryInsightsContextModels.swift:479-486 | Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:663-670 | Starcat/Shared/Services/RepoContextPacker/Internal/XMLEscape.swift:36-43 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ReadmePreprocessor.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b641814b9bc0d9ab5a40c8914c38cc2c01070a518be6c81e1503416eb39449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Home/RepoListView.swift:2190-2201 | Starcat/Features/Home/RepoListView.swift:2203-2213 \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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"116d7557901bf92f28f1a18400a9a8049b44703aca2e00f9b85eaa1552a4b9a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicClient.swift:447-470 | Starcat/Features/AI/OpenAIClient.swift:742-764 \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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"055eb2f9f3cb3e7c7682b9e7016226326f25c992ba2020a5b2def7690f42dfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Starcat/Features/Home/RepoListView.swift:2678-2697 | Starcat/Features/Home/RepoListView.swift:2699-2714 | Starcat/Features/Home/RepoListView.swift:2716-2731 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:182-195 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe49bd3d0d8e7975604f8cd734fefd0b72d6200feb77bb3a46d6c732438b25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/Network/AppEndpoints.swift:451-460 | Starcat/Core/Network/AppEndpoints.swift:465-474 \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":"Starcat/Core/Network/AppEndpoints.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6c518914dba8457b0a963e0f40d5b75150011753f5587d10a39eb43fa6e91d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:579-586 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:591-598 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1570-1579 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1617-1626 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3963629dea2d99a14de1c8ea6bac55f020c7fa8bf4baa0b8484092a7220c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:728-743 | Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:773-788 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"b837a86f71fd09fcf2c08455cf4faeb23d7749158ff57f8fd34d75132125a0a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:230-242 | Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift:320-331 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd11676348a137707e21ee9225eb02369b64846049818106271074274a6d2cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:99-113 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:53-67 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:67-81 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:83-96 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e6848fefc057b9bdc9e07d4e1e67bc681e62e84d3ed3e5a5aa16a77244b17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Features/Notes/NoteEditorSheet.swift:199-218 | Starcat/Features/Notes/RepoNotesSection.swift:403-421 \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":"Starcat/Features/Notes/NoteEditorSheet.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db290563792746333a146b6642f1da2033a8d550c85a77dfb6d4e6409bfa4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Core/Distribution/AppStoreToDirectImport.swift:236-251 | Starcat/Core/Distribution/AppStoreToDirectImport.swift:253-266 \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":"Starcat/Core/Distribution/AppStoreToDirectImport.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52228fa5da5bc05dd1a558a6a2c9d792a393ab728d78659336aec41b22a3827"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Core/Health/RepoHealthRepository.swift:46-54 | Starcat/Core/Sync/OpenSSFScoreRepository.swift:45-53 \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":"Starcat/Core/Health/RepoHealthRepository.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"57947a4c56370ebf27025789eccd1582371496c247a634493d8849862dd7d744"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/AI/AIConfiguration.swift:147-159 | Starcat/Features/Activity/GitHubNotificationIssueTimeline.swift:40-50 \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":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"41136176abd8e10686b9dd868238813a2da15730011770c3b8095bbe13ca04ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Starcat/Features/Home/HomeViewModel.swift:3806-3823 | Starcat/Features/Home/HomeViewModel.swift:3965-3979 | Starcat/Features/Home/HomeViewModel.swift:3981-3995 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3806}}}],"partialFingerprints":{"codehealthFindingId/v1":"c736426a64f36ba0d729dfa2687191816397aa79b15bbc3042a1945ecafb08c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Starcat/Features/Profile/ContributionService.swift:178-186 | Starcat/Features/Profile/DeveloperLanguageService.swift:232-243 | Starcat/Features/Profile/UserProfileService.swift:274-282 \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":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e41d73fbed4e4fde8506363ab306e00bc44de26711f9ed0c3776933b3c0e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Settings/CodexRuntimeSettingsCard.swift:83-95 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:93-106 \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":"Starcat/Features/Settings/CodexRuntimeSettingsCard.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fe11df5e65399b932b4415e76113b25cfc6c373043b0cfb7ff48a4ecd8cd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:59-71 | Starcat/Features/AI/TagTaxonomyBootstrapView.swift:83-94 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fb620b036a4df70d5f9ae8a2a41d0239468c71dbd0769c455ffef52fe9b4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:870-880 | Starcat/Features/AI/BatchAIQueueService.swift:882-892 | Starcat/Features/AI/BatchAIQueueService.swift:895-907 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6c21d04c91fbd6674d8c2dc17d608dc2cbfe37f710b357d558fe71cd6318c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:411-429 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:490-505 \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":"Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"647e230db24b068a8bf38311631f720442c28e0737c88f1e5cc1ee857d5d1adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Core/Capabilities/RepositoryMetadataCapability.swift:95-112 | Starcat/Core/Capabilities/RepositoryMetadataCapability.swift:114-129 \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":"Starcat/Core/Capabilities/RepositoryMetadataCapability.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7f0eabf368a90006061329524d9bede70d58d8e4eeab3cb84741f78445bd58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:363-393 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:469-504 \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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8e398330c714dee7520ab3c6731fc18fb6855b804a0a96e1a48a77a9261290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2089-2103 | Starcat/Features/Home/HomeView.swift:2528-2542 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"565744251cc4dba30dab5a425ff52b5f52b2edb4c16e47190e4787d6f68acf32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/About/AboutView.swift:610-627 | Starcat/Features/About/AboutView.swift:635-651 \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":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b747c611c3665432396f2e3cc4b04d37ae896369f28a28bb2dd82b112a8fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 19\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:230-248 | Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:250-268 | Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:270-288 | Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:290-308 | Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:310-328 | Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:330-348 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2bb535a22fb4c83686781ac0126e3c99dfd81a3026444005f44fb0db4ef8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Shared/Services/DiskIssueTimelineCache.swift:147-166 | Starcat/Shared/Services/DiskRecommendationCacheStorage.swift:110-125 \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":"Starcat/Shared/Services/DiskIssueTimelineCache.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed3300807d05f333eef51b3698a8af08bf74eb4af66938549f97b197d73085c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:230-256 | Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:258-286 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf23f513ddf0d455059f18179d748174017a9346807f800f7f049a77e1dc117"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Network/WeeklyModels.swift:681-686 | Starcat/Core/Network/WeeklyModels.swift:688-693 \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":"Starcat/Core/Network/WeeklyModels.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"384df7e13a521d331752c0df894e199901ea489df4118061a92a3e4cb8652aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:3023-3037 | Starcat/Shared/Components/GitHubMarkdownFitWidthImage.swift:232-248 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25b7b1430063a5c46355c7d1aa46d55152336b0ec72e1fbd112612cbf4f42e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:122-145 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:105-119 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57c0e3e29a1c3fc31faad3ea37afaa26a5cd44ede11a260fa66a9eccc1c73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Features/Explore/ExploreModeHelpPopover.swift:77-94 | Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:54-69 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:134-149 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Features/Explore/ExploreModeHelpPopover.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"add1989d197bb95c6a6c559c43c6db4eab589688ca647f11ba9341a48cc349e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Starcat/Features/Home/RepoDetailView.swift:1344-1358 | Starcat/Features/Home/RepoDetailView.swift:1366-1381 | Starcat/Features/Home/RepoMetadataHeaderView.swift:1177-1198 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8580e8e1d45961f479992e8a085e28d085296bf85213700581f48306d529d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Core/Cache/ReadmeInflightTracker.swift:80-96 | Starcat/Core/Cache/ReadmeInflightTracker.swift:99-114 | Starcat/Core/Cache/ReadmeInflightTracker.swift:117-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Core/Cache/ReadmeInflightTracker.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d623627937110d8d768a85636470295ac4d337cdba171d335809d16c5bb731f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Core/Sync/RepoRepository.swift:623-643 | Starcat/Core/Sync/RepoRepository.swift:708-724 \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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60ef3e6ccaa125b37a072719db4f566db6fb5a7731795f9ef6a958068be6ee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:779-792 | Starcat/Features/AI/RepoAIWindowContentView.swift:1004-1014 \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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"97321fd5fe0de507f2af0d40fb8774bccfb5d32792838deb9c916f7fbb90daf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/AI/TranslationSourceLanguageGate.swift:34-50 | Starcat/Features/Activity/GitHubNotificationCommentAI.swift:56-73 \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":"Starcat/Features/AI/TranslationSourceLanguageGate.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e147b877aa2531de845142a766b0026023fa16fcb1516e1ce70a226603de1e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Models/LicenseKnowledge.swift:88-93 | Starcat/Core/Models/RepoLicenseFilter.swift:47-52 \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":"Starcat/Core/Models/LicenseKnowledge.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"929400e4d7cc39dac27e62d454f91422413d474a4a2b2435d8b55f98d19112a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Starcat/Core/Sync/GitHubStarListRepository.swift:302-320 | Starcat/Core/Sync/RepoNoteRepository.swift:108-119 | Starcat/Core/Sync/RepoNoteRepository.swift:121-132 | Starcat/Core/Sync/RepoTagRepository.swift:181-201 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListRepository.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9830ee46ecefa614149523f6c14b1ddd8096556ee80c7ba7364ed271ebc6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1472-1482 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1484-1499 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1938-1950 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"03167b7f5a8ae05790d1cc00a7e85219f592f306808fb07e646d5539b1b93394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Trending/TrendingView.swift:62-78 | Starcat/Features/Trending/TrendingView.swift:81-93 \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":"Starcat/Features/Trending/TrendingView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc7840168eb08980d47890e73e742440d9598c5a73cd3f8e7371c1680889fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/About/ReleaseNotesView.swift:786-795 | Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift:160-165 \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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17fa24b63bb04afd251166ce08259a3592dbf08c9e3e69f0243e3e519d1fec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Home/RepoDetailView.swift:730-743 | Starcat/Features/Home/RepoDetailView.swift:745-758 \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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"663e885cbca9d905fc264da3435d5b5f51a873a16ce9d22c58b9b89fe1fb5b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:1137-1156 | Starcat/Features/Search/SearchCenterView.swift:1171-1186 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5eca2c0279a5e6279ffba4728a14853616e5493a1c1e02328632ca79fd50a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift:1314-1326 | Starcat/Features/RAG/Core/RAGMentionPickerLogic.swift:53-68 \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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f62ecc4c3923914573a4508fda35662868fb87ce98419e98be2932c47714abf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1047-1058 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1061-1069 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61385ea3a8e0db7e5ce2bffb0b0b140189292a3013ade4e8becda19aea38715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Shared/Components/PressableHover.swift:93-107 | Starcat/Shared/Components/PressableHover.swift:121-135 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/PressableHover.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4566eebf3ed6a05de223bac3c4ca408442bad2760e40a7ad82d98cbf6d4f7848"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/Settings/AppSettings.swift:2911-2928 | Starcat/Core/Settings/AppSettings.swift:2980-2992 \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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":2911}}}],"partialFingerprints":{"codehealthFindingId/v1":"b264cb1bb5b654bae0602fa1c285e35826140d93345b6faa882fd877ae3e38de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/Sync/WeeklyBulkRepository.swift:148-160 | Starcat/Core/Sync/WeeklyBulkRepository.swift:381-394 \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":"Starcat/Core/Sync/WeeklyBulkRepository.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06f6feee1710f4613879545c7e5392b42bff3c8c0c53c6a48cec5d3d9f6a77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/Agents/Core/AgentExternalSearchTool.swift:85-96 | Starcat/Features/Agents/Core/AgentExternalSearchTool.swift:98-109 \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":"Starcat/Features/Agents/Core/AgentExternalSearchTool.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"324efb809bb28fccc527b0e1f3c70a4dabd7f2ccb87bd003471f4b30825c7622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/DailyRadar/DailyRadarDateFormatting.swift:41-49 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:753-762 \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":"Starcat/Features/DailyRadar/DailyRadarDateFormatting.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2854e184a1bb39c03e441ff3cd8c68aceebbab956ea47f137ae366a046fb55bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/Subscription/ProPaywallSheet.swift:378-387 | Starcat/Core/Subscription/ProPaywallSheet.swift:389-398 \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":"Starcat/Core/Subscription/ProPaywallSheet.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c85eb94e5a2848b36e9c95032bd887db24344eeef4310034887d6857d69adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/AI/AIOrganizationDraftRepository.swift:244-253 | Starcat/Features/Agents/Core/AgentRunRepository.swift:514-523 \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":"Starcat/Features/AI/AIOrganizationDraftRepository.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"78150a80cea450b681f287c51d899d58292c47fdf3b03ea7e077c8e9596962cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Starcat/Features/About/AboutWindowController.swift:31-52 | Starcat/Features/About/ReleaseNotesWindowController.swift:30-50 \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":"Starcat/Features/About/AboutWindowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"db264d8e040518244fb3b3ad21b18a38248389315043487b26890ca2901d903d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:1026-1042 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:964-978 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"6879f265d4902efb2922ca6a347c508453abbda8a1272d29f1c9e468313ca0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Home/HomeView.swift:1257-1272 | Starcat/Shared/Components/RepoDetailScaffold.swift:569-582 \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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1c95b782d2bb7ba7e6171d20f5651bde4f63b0bd9e6f5036a52b9cd74967cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/AI/SystemTranslationSessionBroker.swift:399-410 | Starcat/Features/AI/SystemTranslationSessionBroker.swift:413-422 \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":"Starcat/Features/AI/SystemTranslationSessionBroker.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"9925a48bf301d9a4d6fa619ba27bb7b244da8e46fcc6cfa0f4e4dd6c1f2bc0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Activity/ActivityView.swift:643-654 | Starcat/Features/Explore/AwesomeView.swift:489-500 | Starcat/Features/Explore/ExploreView.swift:730-741 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d63330490267c1eeb285c995850920327606cb9fcd1dd802c15f2cb4f46b271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Starcat/Features/Home/SidebarView.swift:1510-1529 | Starcat/Features/Home/SidebarView.swift:1532-1551 | Starcat/Features/Home/SidebarView.swift:1554-1572 | Starcat/Features/Home/SidebarView.swift:1575-1594 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29d7cdf7ce879654b1a98e6e2253416348b484adde55171bd798220e730bc6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Releases/ReleaseAssetRowView.swift:232-244 | Starcat/Shared/Components/CopyFeedbackButton.swift:146-162 \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":"Starcat/Features/Releases/ReleaseAssetRowView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23e24ba2ef0724e4db02f1ca8f1a73062f0876bbe34a3e77919d5d6762eb58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Settings/DiagnosticsSettingsTab.swift:296-311 | Starcat/Shared/Diagnostics/StartupFailureView.swift:87-100 \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":"Starcat/Features/Settings/DiagnosticsSettingsTab.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ffc53985a4f3d7d2dd6990d90264d6b41d70296a611afc7769e0c416c0deb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/AI/SemanticIndexBuilder.swift:124-133 | Starcat/Features/RAG/Core/RAGCandidateResolution.swift:107-116 \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":"Starcat/Features/AI/SemanticIndexBuilder.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa59e3bed8418fd2099a1e4569e97ecb21abc4660937e3dbb1989ff30dbbe81b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/CodeGraph/CodeFlowRunner.swift:303-312 | Starcat/Shared/Services/SharedSnapshotService.swift:246-258 \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":"Starcat/Features/CodeGraph/CodeFlowRunner.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad52febbe474d62618b46b1599698fde328f3d383a7421f54951591d08538c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:1238-1249 | Starcat/Features/Settings/ProSettingsView.swift:1196-1211 | Starcat/Shared/Components/GrowthShareCopyButton.swift:16-27 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e14af583fb77aa0adfa73b7fa17c01ca28e2aa61f2fcc88fb189f7b1acd139"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:3051-3055 | Starcat/Shared/Components/RepoDetailScaffold.swift:1192-1198 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":3051}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a65bf4a252f482d55cdd67caf7c41bff6f742918a457a3850caff177907006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Features/Settings/GeneralSettingsView.swift:152-169 | Starcat/Features/Settings/GeneralSettingsView.swift:282-300 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/GeneralSettingsView.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fae76348f6344bd2eb67a0213c1c67365bb0dec2a2d77b8384f92814db9956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Starcat/Shared/Components/StarsSyncButton.swift:97-115 | Starcat/Shared/Components/SyncIconButton.swift:241-268 \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":"Starcat/Shared/Components/StarsSyncButton.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bb507d3b734281c7e48f26cf9f1dbcc4c4e5637bdde5d5b18835f2ff50ade2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Shared/Utilities/RelativeTimeText.swift:46-57 | Starcat/Shared/Utilities/RelativeTimeText.swift:62-73 \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":"Starcat/Shared/Utilities/RelativeTimeText.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f9b86de3c4e4adf337856da8a9ab12de4e7daa9ae9732b9c2547e16a974a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1969-2005 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2043-2077 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"42557f15bd423f9ccbe8dc18a7c9c7675b489e3fed5a026e2e1274c6955885f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:117-138 | Starcat/Core/Sync/RepoNoteRepository.swift:211-230 \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":"Starcat/Core/Sync/ReleaseSubscriptionRepository.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe5a02014b9fff976a8313f984592e60d48fd1afba0a65018a84a93840b0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Starcat/Features/AI/ReadmeTranslationService.swift:67-85 | Starcat/Features/Home/ReadmeTranslationViewModel.swift:198-217 | Starcat/Features/Home/ReadmeTranslationViewModel.swift:288-307 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3fcaf8dcc26160009e14a9648f61b7678ca13b95e15820118934ee303344ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:504-514 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:717-727 | Starcat/Shared/Services/RepoContextStorage.swift:761-769 \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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b2fa6face23f12760e8ed404ae858faa85d6bb6e1df25cb698d89779eba3d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Insights/MyInsightsView.swift:636-643 | Starcat/Features/Search/SearchCenterView.swift:2809-2819 \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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed93d785b42eb26f643738dab9c179b144e34c259b178cfd07ff992bedaee363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:374-400 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:192-212 | Starcat/Shared/Components/LaunchSplashView.swift:468-494 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0729d07aa81cfaf9402796e25e5f67971dfe45ed7db73078ac17cfb1a4ee5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Starcat/Features/Settings/CodexRuntimeSettingsCard.swift:118-130 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:140-152 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:154-166 | Starcat/Features/Settings/IntegrationSettingsView.swift:594-608 | Starcat/Features/Settings/IntegrationSettingsView.swift:628-642 | Starcat/Features/Settings/RepoContextSettingsSection.swift:121-135 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/CodexRuntimeSettingsCard.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc2fcff934e6a758a42481756e28b95233638d3a099b2cf4770f507ba56cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:167-178 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:171-182 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6b91b60a4a0791a50905b5bc84aaa5b849332560dc5a579b3c796325c21cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): StarcatWidgets/Contributions/StarcatContributionProvider.swift:23-40 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:39-56 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Contributions/StarcatContributionProvider.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4763b680295347769e0685a7f2115989ea20ba2d533ae450c05bbbcabf5bf741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:63-79 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:67-85 \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":"StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9388a36d96fd3650d77a5670740ae98cd1af89afe2a71a21ac300d8a44e1050"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:179-184 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:108-114 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c1977ac5fc1c6389676253de51fd46f554637eb989f46e97726e5a86327ee8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Core/Network/OpenSSFScoreAPI.swift:23-37 | Starcat/Core/Network/TypeSafeClient.swift:256-273 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/OpenSSFScoreAPI.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33672248d4187d4ed403f2140a458211e1470a7c2b9734f7eaed2c4c752f699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Starcat/Core/Sync/GitHubNotificationMapper.swift:76-98 | Starcat/Core/Sync/GitHubNotificationMapper.swift:106-127 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4fae1c31a8196ab2eb04ccfa6c18b5ebd5af829a0e478f84700d100bd491e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1858-1873 | Starcat/Features/Home/RepoDetailView.swift:1318-1333 | Starcat/Features/Settings/TranslationSettingsView.swift:436-451 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be644863825b6e4c72d09b4966645577cb84c4166ccfa84fbad7661cac3d3aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): Starcat/Features/Agents/Core/AgentRunRepository.swift:341-355 | Starcat/Features/Agents/Core/AgentRunRepository.swift:357-367 | Starcat/Features/Agents/Core/AgentRunRepository.swift:445-455 | Starcat/Features/Agents/Core/AgentRunRepository.swift:457-469 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b803557272426348a248fd03fac3352f9566ac8ab433b4a2fb05e9a6ba1dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:214-228 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:232-246 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e96b238d75f2a93ea776228f93f45d4bc50beacf5f0424c4eb90585c5adf5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/Settings/CCSwitchImport/CCSwitchCredentialExtractor.swift:164-174 | Starcat/Features/Settings/CCSwitchImport/CCSwitchCredentialExtractor.swift:176-185 \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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchCredentialExtractor.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03912ced423fb2111e988d8419347216f182027b8441fbec0eb04441ea49001"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/Settings/ExternalSearchSettingsSection.swift:415-433 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:435-446 \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":"Starcat/Features/Settings/ExternalSearchSettingsSection.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d91e5be734db2e20d2e08b9ebf34727886a3c8abdcda76748b5d5d2fd2a1516"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Starcat/Core/Capabilities/RepositoryTagCapability.swift:515-520 | Starcat/Core/Capabilities/RepositoryTagCapability.swift:522-527 | Starcat/Core/Capabilities/RepositoryTagCapability.swift:529-534 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Capabilities/RepositoryTagCapability.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c2ab3b46f42266070d41c34076e2986d950208c422557a87266ed56f425eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:615-625 | Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:654-664 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6f04d2ea4b09bbab9c486a8ef816386cdf63b8f1862f32ce0e4b460b2dc645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/Subscription/ProPaywallSheet.swift:419-428 | Starcat/Features/Home/RepoListView.swift:3197-3206 \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":"Starcat/Core/Subscription/ProPaywallSheet.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9236c7cb9d32356ceb7ff150f9a824f3584bd1ee695c7c92be841003953368c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Core/Sync/AwesomeRepository.swift:131-141 | Starcat/Core/Sync/AwesomeRepository.swift:143-153 | Starcat/Core/Sync/AwesomeRepository.swift:510-522 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26da26bc1cac1513fbd5a0c2b77de98c1f6325cb41b11253efe96ce4b559104"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift:422-430 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift:432-439 \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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cb15efedb6c04c4aa925435905b8c1e9d6b20f260a631d0cd908c1fcb73f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:88-97 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:42-51 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:56-65 \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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"932d87eb08f074ae1fcad60f88f957a89167f41caef629396c89bedf19ff1fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift:306-318 | Starcat/Features/Settings/RuntimeDownloadInstaller.swift:377-384 \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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4272d8977e4392b0f9589420b85639add13ab2c9dbf876e53f1d70659b635c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:777-794 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:843-858 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:919-934 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1005-1020 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1224-1240 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1309-1323 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5687d4d102ccb3d797140bb57ad229bf5cd485f29169f1a38b374d3c89fcbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:939-955 | Starcat/Shared/Components/LaunchSplashView.swift:554-574 \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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0336d4be7ae63275498609d3a193432c6120232850d5acb304cfc466f30938"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/Settings/ProSettingsView.swift:1791-1807 | Starcat/Shared/Components/SettingsActionIconButton.swift:18-31 \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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5986a8fc5d0e77e910f37e85a9518895eabf7f3e622ab8a29540f684fc60ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:128-142 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:326-336 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:338-347 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:397-406 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:408-417 | Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift:419-428 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c775b11d65833e04a5b5176ec59e8d39f98e3fe05035285baed3e5be41372425"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/AI/AIOrganizationDraftRepository.swift:255-262 | Starcat/Features/Agents/Core/AgentRunRepository.swift:525-532 \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":"Starcat/Features/AI/AIOrganizationDraftRepository.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50dab9dc637f7c7f150f72f448e6a97a2f9e29e7f4bf9a54b5fc7bc867f752e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:95-107 | Starcat/Shared/Services/DiskChatHistoryStore.swift:1223-1231 \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":"Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a6609ae544253aa6edafa6743a0c4522026502a2b6b164c935f94b1c248042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift:244-258 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:189-208 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e9d306d5c874efb89c8b1441175ffadfc9be854061712ee96895ebbe899f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Shared/Services/RepoContextStorage.swift:330-338 | Starcat/Shared/Services/RepoContextStorage.swift:344-352 \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":"Starcat/Shared/Services/RepoContextStorage.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91f15d523f5b3083b3d7fa72fbb60cc9337304c0c1c0982a1bf6413a9f22ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift:88-100 | Starcat/Core/Widget/WidgetRefreshCoordinator.swift:61-73 \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":"Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fd55391eec301ea7d13de389a606c69cadc06532d5da326d9a9d95ef7c7f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Home/HomeView.swift:1419-1435 | Starcat/Features/Home/HomeView.swift:1530-1540 \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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99ad816e47c8c3933bcf2156749531e64010ea555ccd8287a3f90105527527e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/Profile/ContributionGraphView.swift:352-357 | Starcat/Features/Profile/ShareCard/ShareCardTheme.swift:524-529 \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":"Starcat/Features/Profile/ContributionGraphView.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2793b1a33228d1beb67d91b0127e949dfe6a226a5e17c277c6dc03d88452c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Tags/TagManagementViewModel.swift:161-173 | Starcat/Features/Tags/TagManagementViewModel.swift:179-191 \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":"Starcat/Features/Tags/TagManagementViewModel.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"37160b9cde2129513d1eee7098091044af9512af658ff6fc99a4ecf297b6ec7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Shared/Services/DiskIssueSummaryCache.swift:206-216 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:203-213 | Starcat/Shared/Services/DiskWikiCache.swift:375-385 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskIssueSummaryCache.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49a3d65ced7bbd28436a7f3548a6672ecd02be1353dcaefed843acb7f4af722"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Sync/GitHubNotificationMapper.swift:447-454 | Starcat/Core/Sync/GitHubNotificationMapper.swift:481-488 \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":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f56c701f66fa47077cca9749522d9b49e3f9056c68a6697c40af20d5fb39645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/AI/RepoAIInsightService.swift:1970-1978 | Starcat/Features/AI/RepoAIInsightService.swift:2031-2039 \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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"08197de6b1492abb708cfe099c06441539d5e51f3848c7beb0ee455d02983d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:493-502 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:708-715 | Starcat/Shared/Services/RepoContextStorage.swift:750-757 \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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e90ff97fb01ba1b45f3b01bbfbb7597fbaa22c5857e8e44d86465bb6427649"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Insights/InsightsSectionSkeleton.swift:77-94 | Starcat/Features/Insights/InsightsSectionSkeleton.swift:242-254 \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":"Starcat/Features/Insights/InsightsSectionSkeleton.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e550ac3b1522ec48dc1fef4954dcdc963b948b8e58c94eb446fcfc1fa0aaa194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Starcat/Features/Insights/MyInsightsView.swift:1145-1163 | Starcat/Features/Insights/MyInsightsView.swift:1234-1251 | Starcat/Features/Insights/MyInsightsView.swift:1253-1270 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6628fcce91a841a7ab4fe23685e75de79fb95fe20d172742050cff72664155e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/MCP/MCPSettingsView.swift:583-590 | Starcat/Features/Settings/IntegrationSettingsView.swift:774-784 \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":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5d581cfd4fbec23fdb6f8ed689e6931194116b1c2eb244eed51fba5ec311dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:116-127 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:148-159 \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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b35dc92653c3868410da965fb87a2d7ec9cef3ca034c84160d54a7a95ab5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1030-1043 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2038-2050 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3557-3566 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3571-3582 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3585-3594 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3faab94e2a00b868a36afe2971c9b158b6e86b66775f49e6623d9fdcbbf2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:595-603 | Starcat/Shared/Components/CountedSegmentedControl.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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03c5565e90291469644d85bf1c802fe4bac2981034c1a7883ff211ebb2e3a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Core/Database/DatabaseManager.swift:591-606 | Starcat/Core/Database/DatabaseManager.swift:608-628 \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":"Starcat/Core/Database/DatabaseManager.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f728871009f785ed71c177010b8aa52e243bd78601e2f6a8dcaf2c4d00f858"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/AI/DecisionEngine.swift:90-99 | Starcat/Features/Insights/RepositoryInsightsView.swift:2968-2978 \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":"Starcat/Features/AI/DecisionEngine.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e47078cd7e27dbcf93a0723141478d46b2659c17f01735b8fd145a616d5b76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:53-63 | Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:177-188 \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":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"44969583e7e4260e87fa52e9a8ee2073c16e61753c0ab3d53a896d86fbb819cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Profile/ShareCard/AvatarCacheLoader.swift:181-189 | Starcat/Features/Profile/ShareCard/AvatarCacheLoader.swift:193-200 \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":"Starcat/Features/Profile/ShareCard/AvatarCacheLoader.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5053d0c741cfcf9e9717dc2ae74cff215ab6c386e3b9cdd2d618fe38a156595c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift:295-299 | Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift:301-305 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:612-622 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:624-634 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfce56448152ddf6615238de36186d9fa15f8e4b6d10d6b6197d1a9ba07982b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:2511-2519 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3259-3267 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2511}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3923b9e0521a69892fbb602651ca45196f029ddb3a8dcc4aeb00d2f929161d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceTypography.swift:67-79 | Starcat/Features/RAG/UI/RAGWorkspaceTypography.swift:81-92 \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":"Starcat/Features/RAG/UI/RAGWorkspaceTypography.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cbba7f22975c693c04a5f3c4d5ff7de9a77d2f6b93b51fff91e00eee833057"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Database/Models/ActivityAnnouncementRecord.swift:130-135 | Starcat/Core/Database/Models/ReleaseRecord.swift:132-137 \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":"Starcat/Core/Database/Models/ActivityAnnouncementRecord.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcbde2a262c90434f4993e9953cfa0eafd3a9ed4db244c4ba9c4a780b7e1d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Starcat/Core/Health/RepoHealthRepository.swift:107-127 | Starcat/Core/RAG/RAGChunkRepository.swift:404-422 | Starcat/Core/Sync/ReadmePrefetchRepository.swift:97-125 | Starcat/Features/RAG/Storage/RAGConversationStore.swift:528-546 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Health/RepoHealthRepository.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f669314a6f513d5e7fc62e2de59b136318920a5aacf159cec9225cc367add7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Core/Insights/RepoStarHistoryRepository.swift:210-223 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:257-271 \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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2206753bb08189adae569f0beff1e0a9f829f1363e1afe0175650bf5049c87a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/AIDebugLogger.swift:87-92 | Starcat/Features/AI/OpenAIClient.swift:518-523 \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":"Starcat/Features/AI/AIDebugLogger.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ec7a0e01aa983ce19fb7abbc3ad2c32e5f404c061697bc9c0598faa7a42607"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Shared/Services/DiskExternalSearchCache.swift:77-85 | Starcat/Shared/Services/DiskExternalSearchCache.swift:87-96 \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":"Starcat/Shared/Services/DiskExternalSearchCache.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d609b385cece763cdb52a3ba5d2abfc7cd3574729d7101f6cebecb6bb9535b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2507-2516 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:2027-2036 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cb9d92f02f3dd41e82c2e0e762fd5f74f66e2ba1b1cb18e75db7c335f327db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Collections/SmartCollectionRuleSummary.swift:402-416 | Starcat/Features/Collections/SmartCollectionRuleSummary.swift:418-432 | Starcat/Features/Collections/SmartCollectionRuleSummary.swift:434-445 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd564289193b8749fb9ec28c49df25fbdc8a7c6c64bdc6b409ec82ea8c59d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Home/SidebarView.swift:1156-1177 | Starcat/Features/Home/SidebarView.swift:1650-1666 \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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d58269407754b3ae046c0c48e0b425f22585ce62b7c96b254a0c9b2cc912bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/RAG/Core/KnowledgeRAGModels.swift:933-940 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:233-240 \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":"Starcat/Features/RAG/Core/KnowledgeRAGModels.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d180af577b16702d8fc4b780f0e8b40be9b49d3c8557770062f577defad2fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Database/Models/Readme.swift:84-91 | Starcat/Core/Database/Models/TrendingReadme.swift:89-96 \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":"Starcat/Core/Database/Models/Readme.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8557eb5c51d6b6f388ea74abf52c0c002d0c0d3b9929b9ab7ea23b7b330b5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:699-714 | Starcat/Core/Network/GitHubAPI/RoutingGitHubRepositoryMetricsClient.swift:56-72 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"08298f7c10b8cff9697509812d133707673b6d6a2a1a78f79c9ae795d8a5d52f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Sync/DailyRadarRepository.swift:46-51 | Starcat/Core/Sync/LinuxDoRepository.swift:22-28 \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":"Starcat/Core/Sync/DailyRadarRepository.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7755ad7df3aace83a8218d0f267afef309096e999c66159bcd46572237bc0b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Starcat/Features/AI/BatchAIInsightProviding.swift:138-155 | Starcat/Features/AI/BatchAIInsightProviding.swift:203-222 | Starcat/Features/AI/BatchAIInsightProviding.swift:224-243 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"Starcat/Features/AI/BatchAIInsightProviding.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0071888f6c9c855e2270c0922a13b92ba67110162b249267168b6e26f4644aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:362-367 | Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:369-374 \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":"Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"303a5b50810b3e2d2fe965367b49f99b3399a3c9c1c2d73e31ea986bf2d081ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/Home/RepoMetadataHeaderView.swift:757-764 | Starcat/Features/RAG/UI/RAGUserMessageBlock.swift:163-168 \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":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5d513818e88e68e9f29b559e2e2ecc2932b3b4cf48ff743f9f0231bc82dea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Navigation/RepositoryDeepLink.swift:124-132 | Starcat/Core/Navigation/RepositoryDeepLink.swift:134-139 \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":"Starcat/Core/Navigation/RepositoryDeepLink.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55fe2b81cbb5dcd21956fcacbd55d79ffda51022ae9811b3f8c536d77884ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:672-684 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:395-409 \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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b418842870ccac40684bb79d05d5a97b5d10f574d8725ab223e25dc22ae7fe8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicClient.swift:129-139 | Starcat/Features/AI/LocalAI/LocalMLXClient.swift:136-144 \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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ef9d48f9b4edf04112871cc0d0b21362a9f23b53e03e36464277fc0164194c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:47-51 | Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:168-175 \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":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d392916730129d46f1b1de2ad9a1f60fa820c621b2fb28c472ac1f5bd9d9e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:221-232 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:120-129 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:225-236 | Starcat/Shared/Services/DiskRecommendationCacheStorage.swift:89-98 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fa3c30c8daa9096032d97bd2e467868379cd647fda440ff6f68dd8053757be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:301-309 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:299-307 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f543610426b7e79c430449a9330fc10dad8d3bd4cfa543e3d6a29e929a10a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Core/Sync/ActivitySyncStateRepository.swift:73-89 | Starcat/Core/Sync/ActivitySyncStateRepository.swift:91-107 \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":"Starcat/Core/Sync/ActivitySyncStateRepository.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"137362cc9b58646cf80f41eaf92c7324b360289401ffff61a30e25890b82c7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Sync/GitHubNotificationMapper.swift:588-595 | Starcat/Core/Sync/GitHubNotificationMapper.swift:597-604 \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":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"5956ccd0e2bb49b46c7b78b3fe00fe2e3e61f511f320e8332a8796134b8de497"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Sync/RepoRepository.swift:345-352 | Starcat/Core/Sync/RepoRepository.swift:379-387 \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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7243ddf1c6bd16146c1d1467b5a4ced9541965c3f5a1f702c35ee2342b4a371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Starcat/Features/AI/BatchAIWorkspaceView.swift:675-688 | Starcat/Features/AI/BatchAIWorkspaceView.swift:690-705 \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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad716b9e805792c210435f24e53b6f8fa2dd3538831b20736a5c0b3d1bb2f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Starcat/Features/Activity/ActivityViewModel.swift:1234-1249 | Starcat/Features/Activity/ActivityViewModel.swift:1463-1476 | Starcat/Features/Activity/ActivityViewModel.swift:1478-1491 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"41175b3b81e63562b892d9b7454d6603c9f6395f2210c9b443a1bf705e45e53c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Agents/Core/AgentExternalSearchTool.swift:253-265 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2574-2586 \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":"Starcat/Features/Agents/Core/AgentExternalSearchTool.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00d2c34f2a5c969755980c478865471e08390f150e12b75cb118cc5c4b24b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/RAG/Core/RAGPromptCompatibility.swift:84-93 | Starcat/Features/RAG/Core/RAGPromptCompatibility.swift:105-115 \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":"Starcat/Features/RAG/Core/RAGPromptCompatibility.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01ee94843801601f153736339f95f59a2c8b37bb95a7bf0349d7faa779c09c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGIndexSettingsSummary.swift:169-179 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2338-2347 \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":"Starcat/Features/RAG/UI/KnowledgeRAGIndexSettingsSummary.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bc9148000eddab7824ae9faa6ffc9e57fb5bedf7b57edff611a439f3ad9061"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Search/SearchCenterView.swift:3058-3062 | Starcat/Shared/Components/RepoDetailScaffold.swift:1201-1207 \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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":3058}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fd6727ccee9772111ee0316e39eb4d9351cd4e283815cea57eb4173dec6638"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Shared/Components/LanguageIcon.swift:1101-1108 | Starcat/Shared/Components/LanguageIcon.swift:1119-1126 \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":"Starcat/Shared/Components/LanguageIcon.swift"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"831f6e598fd14586c4362bc0ed46b0978cf444fde16325428c6ea0022cb84d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Starcat/Core/Sync/RepoRepository.swift:1519-1527 | Starcat/Features/Activity/ActivityViewModel.swift:2034-2042 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:878-886 | Starcat/Shared/Models/RepoDetailViewData.swift:175-182 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"4025b96a38824fa6c19cda1fd672fc9d3489ef55187e06edd12c699f5c8e1199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Auth/MockGithubOAuthService.swift:46-53 | Starcat/Features/Auth/MockGithubOAuthService.swift:105-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":"Starcat/Features/Auth/MockGithubOAuthService.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91cfcc30777a6543a5e12f90d86f4cde83a37f719a4588474443013b55b4ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Companion/CompanionContextProvider.swift:255-262 | Starcat/Features/Companion/CompanionContextProvider.swift:264-271 \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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"be27e8d10c18234920d3b7e05cdaf45b5586c250ac07cc5950e068548a7cc204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Home/SidebarView.swift:2279-2286 | Starcat/Features/Home/SidebarView.swift:2289-2298 \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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"98546d72c6f12301c8466a28a62e95cf948802fb5f26acda93225fcb07ce6844"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:650-661 | Starcat/Features/Insights/RepositoryInsightsView.swift:663-674 | Starcat/Features/Insights/RepositoryInsightsView.swift:676-687 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8c5765e75e08b036e822263f9a69ffb23a7fbea98dcf0a1ba19f74fa89ac12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Settings/AISettingsView.swift:1261-1269 | Starcat/Features/Settings/DiagnosticLogGuideSheet.swift:51-60 \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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ffaaf8bfc29b101259fcb70fc5cb57cf5ce529f73622eee01d7d9a0086f84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift:19-33 | StarcatWidgets/Contributions/StarcatContributionHeatmapWidget.swift:15-25 | StarcatWidgets/Contributions/StarcatContributionOverviewWidget.swift:15-25 | StarcatWidgets/Contributions/StarcatContributionRadarWidget.swift:15-25 | StarcatWidgets/Contributions/StarcatContributionSummaryWidget.swift:15-25 | StarcatWidgets/Focus/StarcatFocusWidget.swift:15-29 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:14-24 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:14-24 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f718e8d86f73d1c37a2a2da7f193ff26a3a317b2a55ce9d719b4976a81d10204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Core/Database/Models/Readme.swift:50-64 | Starcat/Core/Database/Models/TrendingReadme.swift:59-73 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/Readme.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4afb3be3f684ee1addbdfe34cc24a6531e4da12371219971cd724c18faabfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Core/Download/GitLFS.swift:90-95 | Starcat/Features/Activity/GitHubNotificationIssueTimeline.swift:109-113 \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":"Starcat/Core/Download/GitLFS.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f060663fdbda1fad55dfea26d048c98ee40a72732f649b4afcb5467016a1062"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Starcat/Core/Health/RepoHealthRepository.swift:63-83 | Starcat/Core/Health/RepoHealthRepository.swift:85-105 | Starcat/Core/Sync/RepoRepository.swift:390-407 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"Starcat/Core/Health/RepoHealthRepository.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c41778cb602c7c5e079a44e19840969016e290c63192c1952e749c1363fe771"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Core/Insights/RepoStarHistoryRepository.swift:1046-1054 | Starcat/Core/Widget/WidgetSnapshotBuilder.swift:229-240 | Starcat/Features/DailyRadar/DailyRadarDateFormatting.swift:60-63 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e7d787a7165d52e3b9fc2411889cca45caf046df65988472be56e2b4ca2be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Network/GitHubAPI/GitHubGitTreeAPI.swift:17-22 | Starcat/Core/Network/GitHubAPI/GitHubGitTreeAPI.swift:25-31 \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":"Starcat/Core/Network/GitHubAPI/GitHubGitTreeAPI.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f658397d48917cf4a1da640a822b522cadd09b800f50a74c946ca6754776fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Core/Network/GitHubStatusMonitor.swift:205-217 | Starcat/Core/Network/ServiceAvailabilityMonitor.swift:167-179 \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":"Starcat/Core/Network/GitHubStatusMonitor.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e919af1b38cfd9343c21b2da2f66e790cd791a63601c48bc99895f053c7df58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/Agents/Core/AgentModels.swift:216-232 | Starcat/Features/Agents/Core/AgentModels.swift:375-389 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentModels.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5725d22e93fd584758aa5165175edcbee735a87a4b8d3c14a5f9e93486fdc6f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:273-275 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:162-164 \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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff3d5556043dd183a536bc0384a72e9051afb6e95f4c5fc443807728a9982e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/Companion/CompanionLibraryStateWriter.swift:23-35 | Starcat/Features/Companion/CompanionStarStateHandler.swift:23-38 \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":"Starcat/Features/Companion/CompanionLibraryStateWriter.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c0c383d8304d2224a75a63707ee56f330eb4b22df027c9c071fc8210dd899c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Companion/CompanionRecommendationHandler.swift:75-83 | Starcat/Features/Companion/CompanionStarStateHandler.swift:41-49 \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":"Starcat/Features/Companion/CompanionRecommendationHandler.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a845d71f15c8c2d38466248ccacb99de5309ae1d6750e29b0d1918d15c31586"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/DailyRadar/DailyRadarEditionCalendarPicker.swift:362-366 | Starcat/Features/DailyRadar/DailyRadarEditionCalendarPicker.swift:368-372 \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":"Starcat/Features/DailyRadar/DailyRadarEditionCalendarPicker.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce033f21df21a7443f88023ff47ca8f99f612f2d363ee1d84330fc76e669828"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/RAG/Core/RAGQueryGuidance.swift:37-46 | Starcat/Features/RAG/Core/RAGQueryGuidance.swift:48-61 \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":"Starcat/Features/RAG/Core/RAGQueryGuidance.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7d4092943591266b1ff946fc71c6bcce61ebcbe05c99f31b8e775eca639014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1209-1214 | Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1217-1222 \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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d06b52d37fb7a788b5d6151d45e59d13e7335d3f59cf82086d3987b250216b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/Releases/RepoReleaseSection.swift:318-329 | Starcat/Features/Releases/RepoReleaseSection.swift:331-340 \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":"Starcat/Features/Releases/RepoReleaseSection.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8672b9ff1d370fd1ebdb54c316b13da879e7fc4945045c21e368599e680db4e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:234-241 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:238-245 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19685515d900f57eb390a0dfbd897d7deaaa292b85ae6b45ed34f7219b9f541"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Shared/Services/RepoContextPacker/Internal/XmlOutputBuilder.swift:272-281 | Starcat/Shared/Services/RepoContextPacker/Internal/XmlOutputBuilder.swift:283-298 \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":"Starcat/Shared/Services/RepoContextPacker/Internal/XmlOutputBuilder.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3522945625b2c624b666f6038d84b8d0be4cf5cfed821195a5105ec416e68153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Shared/Services/SharedSnapshotService.swift:99-106 | Starcat/Shared/Services/SharedSnapshotService.swift:108-115 \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":"Starcat/Shared/Services/SharedSnapshotService.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"164ae5a1a3a052f78aef586f197443e243a770698419e56bf785514fd40e7b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift:59-75 | StarcatWidgets/Focus/StarcatFocusWidget.swift:50-66 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:39-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"690a5cac4334a759d515d0f5f5f2ae98823d3a6b1deb0a2ac766940b4103b80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Starcat/Core/Database/Models/Readme.swift:70-78 | Starcat/Core/Database/Models/ReadmeContent.swift:55-61 | Starcat/Core/Database/Models/TrendingReadme.swift:77-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Starcat/Core/Database/Models/Readme.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"60878de4c573ae225ee21b4bcb7470700662e6c5a2e5170c3838a96a47051fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Starcat/Core/Spotlight/RepositorySpotlightService.swift:204-213 | Starcat/Core/Spotlight/RepositorySpotlightService.swift:215-224 | Starcat/Features/Home/RepoListView.swift:2215-2225 \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":"Starcat/Core/Spotlight/RepositorySpotlightService.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6defcf74cd4e31db025c3a3657672b32dcf6e859c2c44ca7e2e8f58131ea78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicClient.swift:479-484 | Starcat/Features/AI/OpenAIClient.swift:380-386 \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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5291e1947134f6f3969d4510843f9d09360eb77a93cddfabe30d523467424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Starcat/Features/AI/RepoAIInsightViewModel.swift:450-458 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:2673-2685 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:468-480 \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":"Starcat/Features/AI/RepoAIInsightViewModel.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea1f350ee232ea86c504bcd5ce2a8833ff3a56fdcf0c948da1a7c74b7b6cd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:79-97 | Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:108-128 | Starcat/Features/Explore/DiscoveryDetailView.swift:55-70 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fc3d9f78a09d34d67b7434e20e131e76b94197c65394d27228ec79b57ae1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:876-883 | Starcat/Features/Tags/RepoTagsSection.swift:459-468 \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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b52af465b435d86c207c27083b272be2822f0f52e49ce7b98d2edc9e86c17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:902-919 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:513-530 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a52ec48dcde36b70dc79f23883ffb9d1c8f46bce647fbba0da998664be1092"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:169-182 | Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:45-57 \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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"69279ea971dca50eb59447dc0c572ed96bd83cacc2cd5464c93c6d26acc806a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/Activity/ActivityViewModel.swift:2023-2028 | Starcat/Features/Settings/CCSwitchImport/CCSwitchCredentialExtractor.swift:155-162 \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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66b16799c014e3a09cce2deac3619a96e207d795f4140ee9f68f973b682ca1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Shared/Components/CommonActionIconButtons.swift:325-336 | Starcat/Shared/Components/SheetCloseButton.swift:24-36 \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":"Starcat/Shared/Components/CommonActionIconButtons.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"549a26f22bbe00d2bf9bd07d2cc718494dd3707c46687f4c3e0020960f3af57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Shared/Services/DiskIssueTimelineCache.swift:181-188 | Starcat/Shared/Services/DiskWikiCache.swift:342-348 \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":"Starcat/Shared/Services/DiskIssueTimelineCache.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a894d91425f0b6fcbe387de49085653d31f3f788ea550418358c43752a54cd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Shared/Services/RepoContextPacker/Models/PackerIO.swift:65-83 | Starcat/Shared/Services/RepoContextPacker/Protocols/PackerProtocols.swift:114-124 \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":"Starcat/Shared/Services/RepoContextPacker/Models/PackerIO.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b076cfbb3feab7dfb196653a92296d470bb5e594aba493f62cbee673aee82e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/DataContribution/CollectionAPIClient.swift:26-33 | Starcat/Shared/Telemetry/TelemetryManager.swift:80-87 \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":"Starcat/Core/DataContribution/CollectionAPIClient.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73af8c41adf521d27966d458980566fbc68e1b261cb0250cbbcb1e6909ee388"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/Network/DiscoveryAPI.swift:68-77 | Starcat/Core/Network/DiscoveryAPI.swift:217-226 \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":"Starcat/Core/Network/DiscoveryAPI.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef911fa66f0fdeef0eed11527d769d42f0f9f495c8db044f8620bc50b3150a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift:404-409 | Starcat/Features/Activity/GitHubNotificationIssueTimeline.swift:224-229 \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":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0f4f0d70c46959cb5d12507bff0e59b8717ec8f5a03b3cf982a2a990432de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Features/AI/RepoAIContextProvider.swift:167-181 | Starcat/Features/AI/RepoAIContextProvider.swift:187-203 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIContextProvider.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba888c4270acd76c3634233d3435c4388aa776ef7810ae990c76c634d5ca2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Agents/Core/AgentContextPickerRepositoryRow.swift:26-33 | Starcat/Features/RAG/UI/RAGContextPickerRepositoryRow.swift:24-30 \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":"Starcat/Features/Agents/Core/AgentContextPickerRepositoryRow.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"512febd33b1caab4d69f8d19a3e1504fcfbac034cf1acafccba39b8e26df8553"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:71-87 | Starcat/Features/Agents/ExternalRuntime/CodexModelCatalog.swift:157-173 \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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aea506941719b711e7932989e3f2ef16a0af625252ef8e054599caec091dbd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Features/Home/RepoContributorsStatItem.swift:122-133 | Starcat/Features/Trending/TrendingDetailContent.swift:161-173 \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":"Starcat/Features/Home/RepoContributorsStatItem.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2df64da0a6685e76b47e2edd2bbc35b15985089a3a92a9259034b7c1a328196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:977-989 | Starcat/Features/Insights/RepositoryInsightsView.swift:2103-2115 | Starcat/Features/Insights/RepositoryInsightsView.swift:2342-2354 | Starcat/Features/Insights/RepositoryInsightsView.swift:2766-2778 | Starcat/Features/Insights/RepositoryInsightsView.swift:3273-3285 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:36-48 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0cdac8ffb2dcd5671a5cb3619935ce371fc34d8831f06b98f9ed57cb4791c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Starcat/App/StarcatCommandRouter.swift:362-376 | Starcat/Shared/Components/AutomaticListPagination.swift:118-136 | Starcat/Shared/Components/AutomaticListPagination.swift:139-155 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Starcat/App/StarcatCommandRouter.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c377287ed84c8877c622b6cf49ac5b31902255488fc8d680938279e5bd24f643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Core/Network/GitHubAPI/RepositoryMarkdownLink.swift:69-75 | Starcat/Core/Sync/RepoSources/BackendHintRepoSource.swift:38-48 \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":"Starcat/Core/Network/GitHubAPI/RepositoryMarkdownLink.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2d881e52de1f3ae31c0ead65a5e29696e16186069be251b37803e101cfdd7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Shared/Components/SkeletonPlaceholderSupport.swift:113-129 | Starcat/Features/RAG/UI/RAGConversationSkeletonView.swift:160-172 \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":"Starcat/Shared/Components/SkeletonPlaceholderSupport.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44e7c598482071604f17f04891f08bb066a9ca0c825db2a5b453e391f4e7da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Shared/Components/SkeletonPlaceholderSupport.swift:135-141 | Starcat/Features/RAG/UI/RAGConversationSkeletonView.swift:174-179 \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":"Starcat/Shared/Components/SkeletonPlaceholderSupport.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6dc15cbcf7a245da2604306a87502aaf3f2321849e959d5de80f0c272d9ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:204-207 | Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:436-439 | Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift:188-191 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d2127b7f32f704696812075b26ede8867c8d0bf0c4ae4df18a952a91181fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Starcat/Core/Health/RepoHealthCalculator.swift:376-384 | Starcat/Shared/Components/RepoHealthBadge.swift:86-94 | Starcat/Shared/Telemetry/TelemetryEvent.swift:82-90 \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":"Starcat/Core/Health/RepoHealthCalculator.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52807569ed4b68aee382968f0f012393f17fd219cb68cede77629dfd7e86c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Core/Sync/GitHubNotificationInboxService.swift:504-508 | Starcat/Features/Activity/ActivityViewModel.swift:1365-1369 \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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bee052577cf2757590c2b62329279bbdc9235ba192b4543b19395dbee9af004"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Starcat/Features/Activity/WeeklyContentView.swift:408-420 | Starcat/Features/Home/GitHubStarListEditorSheet.swift:319-328 | Starcat/Features/Tags/TagEditorView.swift:218-227 | Starcat/Shared/Components/LicenseKnowledgeCapsule.swift:402-409 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"1889fb6739e35a6f4b59f3f619c8b3650cd697ecc063d5c8fe983d8a5603b357"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Starcat/Core/Database/Models/ActivityAnnouncementRecord.swift:121-126 | Starcat/Core/Database/Models/ReleaseRecord.swift:123-128 | Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift:249-254 | Starcat/Core/Network/TrendingModels.swift:208-215 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ActivityAnnouncementRecord.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d673a847f27f71e089225041092eb477338857c57a08479a340010f646d84e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Core/Network/GitHubStatusMonitor.swift:89-100 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:22-32 \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":"Starcat/Core/Network/GitHubStatusMonitor.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02adb6695536f1c53033a25238f666637741dbc1e66109cd4e4bf970cd47cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:65-85 | Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:87-100 | Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:102-115 | Starcat/Core/Sync/RepoNoteRepository.swift:352-369 | Starcat/Core/Sync/RepoTagRepository.swift:36-45 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/ReleaseSubscriptionRepository.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"482f69640404501baa1523e0317658583d2069bc9047cfbb45f056881c6d6c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Starcat/Features/AI/AIOrganizationDraftRepository.swift:130-145 | Starcat/Features/RAG/Storage/RAGConversationStore.swift:243-264 \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":"Starcat/Features/AI/AIOrganizationDraftRepository.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de809749ce66f77177ca6bad8dd7f872f1dfd3fbdcc7feda9322568777f07d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2447-2459 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1989-2001 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2527bfd92b4e577e6f32f526f4da61a2f14b71d3e4bed70b4f4168e94a0dad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/MCP/StarcatMCPTLSIdentityStore.swift:202-208 | Starcat/Shared/Utilities/RuntimeContextProvider.swift:102-108 \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":"Starcat/Features/MCP/StarcatMCPTLSIdentityStore.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e3aa20ff874f4d2e2af2b1b70ff00275bbbf65e4dc3c4d3ee269a43da5e135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Starcat/Core/Subscription/SubscriptionManager.swift:94-108 | Starcat/Features/AI/RepoAIChatViewModel.swift:300-315 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Subscription/SubscriptionManager.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"de33c88ea69a59f551b9795b5610d6ea0cb840b85efd45a8e17f975ea6b2bc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/AI/RepoAIInlineWindowController.swift:513-526 | Starcat/Features/Search/SearchCenterWindowController.swift:170-180 \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":"Starcat/Features/AI/RepoAIInlineWindowController.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b95281d6e953c6cf4e321f043971e8e2c3a4be968908379077b1d6e491ba65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:743-753 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:112-119 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d55a94e067c4dd36efe903dbea31a1fde380dbf020c7e3316f4798fd92d7026"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Home/GitHubStarListVisibilityBadge.swift:48-55 | Starcat/Features/Insights/RepositoryInsightsView.swift:1605-1614 \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":"Starcat/Features/Home/GitHubStarListVisibilityBadge.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62bee5b2bede2553f7f40a829110e0c7ebcb95ff4379e2b2b8780330285d2b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Home/RepoListView.swift:2901-2904 | Starcat/Features/Search/SearchCenterView.swift:3281-3284 \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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2901}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6fe9a606e36a3d1e0ce437b0da9bb0812eb1cd6fd705bd030eecc4b8716a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:90-100 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:323-333 \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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d598a80653ccb0ad2df175905fa0b23e9c6cb6c3a18a41507683c7a3fc005b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Starcat/Core/Database/Models/Repo.swift:155-158 | Starcat/Core/Spotlight/RepositorySpotlightSnapshot.swift:36-39 | Starcat/Core/Sync/GitHubNotificationMapper.swift:718-721 | Starcat/Core/Sync/GitHubNotificationMapper.swift:772-775 | Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:357-360 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/Repo.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49b451da281e53bde688ced76efb8caf5f1eb809ee34bd32f437900fdb4dda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Starcat/Core/Sync/UserRepoActivityRepository.swift:134-149 | Starcat/Core/Sync/UserRepoActivityRepository.swift:178-195 | Starcat/Core/Sync/UserRepoActivityRepository.swift:197-212 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Starcat/Core/Sync/UserRepoActivityRepository.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55f7df4c35df507a6378a47417287902f1cab1ad127d499d3f3d11f8a58d787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Starcat/Features/Profile/ContributionService.swift:153-163 | Starcat/Features/Profile/DeveloperLanguageService.swift:144-155 | Starcat/Features/Profile/UserProfileService.swift:248-259 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d99598325fcc460ffe8faf476515fac57e82ddc23c8633040dea5749067ba1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:1122-1130 | Starcat/Shared/Services/DiskChatHistoryStore.swift:1132-1140 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcf456517af77df9d9b5a77c317d80130f9d4213eb6b817759dcbd85f54a937"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Starcat/Features/Activity/WeeklyContentView.swift:1740-1751 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:467-475 | Starcat/Features/Trending/TrendingListPipeline.swift:233-243 \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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"f958a3ec023f11c210789bad37e26081def9db427169112519b1207a61060079"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Agents/Core/AgentExternalSearchTool.swift:267-272 | Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:282-286 \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":"Starcat/Features/Agents/Core/AgentExternalSearchTool.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"463d90d441bb20f3fd531d0612a5d6afd68d0ab307f7afab882dfa46a5b40a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Ambient/Core/AmbientGridEngine.swift:255-261 | Starcat/Features/DailyRadar/DailyRadarCoverComposition.swift:92-98 \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":"Starcat/Features/Ambient/Core/AmbientGridEngine.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6f4880de9376071b2f873b77c54d1302e3c78f3f2001e8f849e33d668292b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:562-568 | Starcat/Features/Search/SearchSessionCache.swift:24-31 \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":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51869d7f53fdf9b7f90e6e1fc10362ba3f3d9885abdf243e24741cd3ae8a790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift:93-105 | Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift:107-120 \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":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1295e9da8fd3260371506ec3b9d3c774bb399fa6c0c0d4fca8e50525b8b398a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/AI/RepoAIWindowContentView.swift:2321-2329 | Starcat/Features/RAG/UI/RAGMetadataDrillDownStyle.swift:19-22 \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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b915aa765b5671b606b15a5be48a228e687e0c65c6b65c946e0184447e83458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Collections/SmartCollectionDetailPanel.swift:858-861 | Starcat/Features/Releases/ReleaseTimelineView.swift:650-653 \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":"Starcat/Features/Collections/SmartCollectionDetailPanel.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69f449faa07dcc21bcedc4f36e463a7fc52ca02f05304ea82573e83f540f350"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/Home/DailyRadarPreviewColumnAnchors.swift:21-26 | Starcat/Features/Onboarding/GettingStartedOnboarding.swift:167-169 \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":"Starcat/Features/Home/DailyRadarPreviewColumnAnchors.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b334bce91fb5ba6891f3391535deb46dea48339053dd3ba8ac2672fccc43a7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/MCP/StarcatMCPRuntime.swift:35-47 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:21-31 \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":"Starcat/Features/MCP/StarcatMCPRuntime.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"889b406dc621ebf79e00837bc9e74a9475a5362eb03e059e0daf315bf0206b7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): Starcat/Core/Database/Models/RAGChunk.swift:117-120 | Starcat/Core/Database/Models/ReadmeTranslation.swift:82-85 | Starcat/Core/Screensaver/ScreensaverSharedConfiguration.swift:51-54 | Starcat/Core/Widget/WidgetAvatarCache.swift:93-97 | Starcat/Features/AI/ReadmeTranslationService.swift:1072-1075 | Starcat/Features/AI/RepoAIInsightService.swift:2177-2180 | Starcat/Shared/Services/DiskExternalSearchCache.swift:235-238 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 4 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RAGChunk.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8236dacff4d7885fba0117539dc0356f758e61dc6f238e664bc678a53e48645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Core/Database/Models/RepoNote.swift:138-144 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2465-2471 \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":"Starcat/Core/Database/Models/RepoNote.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d54b8b7dc499c521505ad0d21c3f9e7e03a258e3863fa5aaec556d18f853c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:927-931 | Starcat/Features/Agents/Core/AgentAssistantMessageContentView.swift:85-88 \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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb220b2f3f67bb888442a609abfc5ddba39496ceeaace51dec5b06f9fb5e251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift:38-43 | Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift:39-42 \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":"Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef624f84fe4f77823d275735c106c1b8968113c73f535625c4292357c2c018b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:345-361 | Starcat/Core/RAG/RAGChunkRepository.swift:858-869 \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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bd6b14fd6c35ac59d6514d084de43e250e4b62a020d465c022a728d71c436a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:80-92 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:153-166 \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":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3364ffe31a06dabcb6ce43b420f406da4373bc517ed35d21dee91da679ad123"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsContextStorage.swift:354-362 | Starcat/Shared/Services/DiskChatHistoryStore.swift:635-642 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:218-226 \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":"Starcat/Features/Insights/RepositoryInsightsContextStorage.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f11a3f089ee4dc07df929701fadb8f3b9c4f72c121c249822d5c10332a1af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:470-479 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:506-514 \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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f1dd7f6d860c6c2b20fd92101382eaf1f71b5e74c1bd04cf07a5a25d46da26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/BatchAIWorkspaceWindowController.swift:126-137 | Starcat/Features/Explore/AwesomeSourceManagerWindowController.swift:70-75 \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":"Starcat/Features/AI/BatchAIWorkspaceWindowController.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cc94fc5b25145e7bf5a689431cf042768f0e378828c97c9fe9b8c16e3652e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:277-280 | Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:210-214 | Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift:373-377 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d4e8dad9f3cf66a850acc5c7d8ceba991d4bed5437ac4bc1805588ba124d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:40-42 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:165-167 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:104-106 | Starcat/Features/RAG/UI/RAGWorkspaceTypography.swift:36-43 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f736f33631fb434b4a9fa8ea47cfe20d768c73f8955aa1cf3ee8b7d2cb9c55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/Sync/AISummaryRepository.swift:57-66 | Starcat/Core/Sync/ReleaseRepository.swift:26-39 \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":"Starcat/Core/Sync/AISummaryRepository.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bbcc3c4236f4c1cbd0ee19eaeabd5e89c01a2bf4fc027cd733ddb8de4499c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Core/Sync/RepoTagRepository.swift:166-174 | Starcat/Core/Sync/UndoStarHistoryRepository.swift:135-141 \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":"Starcat/Core/Sync/RepoTagRepository.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb6f045a411db57cab1e76cb8ff21ec920b33df5044395a62cea66d7bafdf84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Starcat/Features/Explore/ExploreModeHelpPopover.swift:108-125 | Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:80-90 \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":"Starcat/Features/Explore/ExploreModeHelpPopover.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf784576a2dd21292dad5b313cce2ce92f6c66550dcbeb3e6a9e8b0ddd0e9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Starcat/Core/Cache/CacheCleaner.swift:195-204 | Starcat/Features/CodeGraph/CodeFlowStorage.swift:664-667 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:477-485 | Starcat/Shared/Services/RepoContextStorage.swift:907-915 | Starcat/Shared/Services/SharedSnapshotService.swift:201-204 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Cache/CacheCleaner.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"041c5b7aea82c6a3ee54fc9089589863451ad15a4d44f9f2cca8edd7b73e9d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Insights/RepoStarHistoryRepository.swift:681-688 | Starcat/Core/Sync/RepoTagRepository.swift:47-55 \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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f86b251c1f8bf055c1420a8d77dd28d0483ea02053914a0254311ebda7e254"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Core/Network/DailyRadarAPI.swift:43-45 | Starcat/Features/Insights/RepositoryInsightsContextModels.swift:488-492 \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":"Starcat/Core/Network/DailyRadarAPI.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2249ba002038feb8664321b0bd71ad5bc5753ab0862bf1ac5113dfb670b99aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift:1434-1438 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:539-543 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:938-942 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1803c816d084ca0aa884aef27a8b37dfd3568a5ddf5d14efd44b0a5ba9fc563"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:107-109 | Starcat/Features/AI/TagTaxonomyBootstrapView.swift:126-128 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecb458ff013b1a97b26ac3b6f4ec1ab53ec7ade61499f8d215ce97a319852f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Auth/GithubWebFlowService.swift:295-299 | Starcat/Features/Auth/MockGithubOAuthService.swift:141-145 \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":"Starcat/Features/Auth/GithubWebFlowService.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbd2525a3efb88ba0c857e5649be4f6572d3378e8b3a65dc32be74788691976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/CodeGraph/CodeFlowRunner.swift:138-141 | Starcat/Shared/Services/SharedSnapshotService.swift:234-237 \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":"Starcat/Features/CodeGraph/CodeFlowRunner.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6af2055e2688feef94b5f497a63c48135d8a9172155c6cc938fbc4995ec8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:118-121 | Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:280-283 \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":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f30f96376336d3384822377fbbd85fb5a756c60b20baf6221ed69ca531e8f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:23-31 | Starcat/Features/Agents/ExternalRuntime/CodexModelCatalog.swift:117-129 \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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce79e9ae108e667ebe87a47b55d82cdfee109022ad6c38728a9460044d95155"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:731-737 | Starcat/Features/Home/SidebarView.swift:1464-1470 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed9e83946fe575466b211264b1a13afe7795d2d231a04b775de77d7ecaec34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:570-572 | Starcat/Features/Search/SearchSessionCache.swift:33-35 \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":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"608c2be575593c8d1acb71c7ea8ac3d5fc64745ab83b75da1c47efa1a98d39ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Settings/ProSettingsView.swift:865-869 | Starcat/Features/Activity/GitHubNotificationIssueTimeline.swift:103-107 \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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9915996835e96fcb361767b45e41e169237cd1069da1a5fc635e202e3faddf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift:616-621 | Starcat/Features/RAG/Core/RAGCLIModelClient.swift:388-392 \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":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebf228b11a3239da0b5f8f62c9581437d003d0017182ad19a790e83d23d5cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/Activity/WeeklyContentView.swift:1733-1738 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:460-465 \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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aeedeb87d44e3680b380641dcc31887f418bf116cbed54283c3d1381eeb3dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/RAG/Core/RAGSearchProviders.swift:163-167 | Starcat/Shared/Utilities/FTSQuery.swift:55-58 \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":"Starcat/Features/RAG/Core/RAGSearchProviders.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c9dccd851723f99e07bdcc950f9aadb3d76da8280984ddba486eedb143ef65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:327-332 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3697-3702 \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":"Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95e63da1a161958915ab80bcf2b7cd210d727d94788269376dcc4a7d2055ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.swift:116-122 | Starcat/Shared/Components/ImagePasteTextEditor.swift:142-147 \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":"Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"501abf43827dd7692e57b2aa7f0fab7ba5154a76e99ebdcaa8c9cc580b3ebbbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:686-695 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:332-343 \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":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6f15400540863777e571c7bd9a7d1dbd6b2c310e9c81dcc1338fe99287d03b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): Starcat/Core/Settings/AppSettings.swift:2641-2647 | Starcat/Core/Subscription/DirectLicenseManager.swift:579-584 | Starcat/Features/AI/IndexedTextBuilder.swift:148-153 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:756-762 | Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:682-687 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb76e5bb08459511fe316faa23748c80e005f248150c8ff69a506a51baf50900"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/AI/AIOrganizationDraftRepository.swift:201-208 | Starcat/Features/RAG/Storage/RAGConversationStore.swift:515-519 \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":"Starcat/Features/AI/AIOrganizationDraftRepository.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e4d8c92d2999dea7b3f483added34ab974d5cf99265cf0f971cf369ea71069"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:299-302 | Starcat/Features/AI/TagTaxonomyBootstrapView.swift:356-359 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b41f9e15c8796a9b8eb25d2f1b12488ed1655b4b1c60415cca0cf54a9cb1766"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Home/BatchActionBar.swift:979-982 | Starcat/Features/Tags/RepoTagsSection.swift:454-457 \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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"478d7b31b08f42811b5f3f382a772c9abfed4ac2e209407ece7988482e19f038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Home/RepoListView.swift:2880-2886 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:391-397 \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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2880}}}],"partialFingerprints":{"codehealthFindingId/v1":"a931bd2ac3c70d251eda74ec16dfa5c83c5567e4eecb44d952b29d3c101cd238"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:1567-1575 | Starcat/Features/Insights/StarHistoryChartView.swift:339-341 \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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"56892367ca5958b67c1b1bbe3ebdcc71087e03cfc259d41633eb5fa42f135cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Shared/Components/LayoutDebugOverlay.swift:79-85 | Starcat/Shared/Utilities/MainWindowFrameModifier.swift:102-108 \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":"Starcat/Shared/Components/LayoutDebugOverlay.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b3ebd9cd51809c51c5e3a00c5febc208f5ee720fd5d38ca4127a078b014b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Core/Skills/RepoSkillInstaller.swift:143-145 | Starcat/Features/Insights/RepositoryInsightsContextStorage.swift:436-440 \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":"Starcat/Core/Skills/RepoSkillInstaller.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fece6374602392255c2a4333b350e5842e31d6c8bd28af6fdf26e49da13c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Features/AI/BatchAITagFlowLayout.swift:17-23 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:761-763 | Starcat/Features/Settings/SettingsView.swift:1544-1546 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Features/AI/BatchAITagFlowLayout.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc04f9d20602423e62aa669c61f93435fdd68cf0dab3c3b93d1622b63349b383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Features/AI/OpenAIClient.swift:947-950 | Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:1044-1047 | Starcat/Features/MCP/AgentToolMCPRuntime.swift:176-179 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"1016aeac4e677c8470b7ee19a302d649eb18be88195d7cc6ac11abf5117f8819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/AI/ReadmeTranslationService.swift:731-736 | Starcat/Features/Ambient/Core/AmbientGridEngine.swift:236-239 \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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ffc5121e11a6787b2795c6e8cbd8f9fb6b8237fdae5c76539e6a37a521f6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Starcat/Features/AI/RepoAIInsightViewModel.swift:555-558 | Starcat/Features/Home/ReadmeTranslationViewModel.swift:671-677 | Starcat/Features/Releases/RepoReleaseSection.swift:348-351 | Starcat/Features/Tags/TagManagementViewModel.swift:204-207 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightViewModel.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"614b8488628335582f50b415605761d16ac675a138c5d09d5a609d4947632b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift:117-120 | Starcat/Shared/Components/RepoDetailNoSelectionPlaceholder.swift:110-113 \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":"Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c50f7a150ceea21018f0e933b8ad89910a22c69a4bf6d65deb9fbefc8c15043"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:644-651 | Starcat/Shared/Services/DiskExternalSearchCache.swift:119-125 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:139-145 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:231-238 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cc2e0ca44dea294f7bceb100a4ff4d26d2a82d11cfc066f50a32f47b9f039c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:951-954 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:431-434 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2530cfca07e27a6a322ede360d97039dd473a6955a135ee8a0759d81d60796a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Shared/Services/DiskIssueDraftCache.swift:276-279 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:280-283 \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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"558669242967063a045e07da13d364950a34cf340c2c7ebd0952afb4a81d09bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Starcat/Core/Sync/RepoNoteRepository.swift:134-143 | Starcat/Core/Sync/RepoRepository.swift:366-376 | Starcat/Core/Sync/RepoTagRepository.swift:133-142 \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":"Starcat/Core/Sync/RepoNoteRepository.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb103e2a9268a3c681180eeac6f232b28593e37b5376a6ac61926e72532c3a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/BatchAIQueueService.swift:2481-2486 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:2017-2025 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8be9a44edb28ad4929a860a32ebd9131b4c6dc24e261df1badc6002f94526d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Agents/Core/AgentTraceDetailPresentation.swift:56-59 | Starcat/Shared/Diagnostics/DiagnosticEvent.swift:396-400 \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":"Starcat/Features/Agents/Core/AgentTraceDetailPresentation.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e445d22730ed063745a6d2c8b5230327e8bd5618049bf3c53a89e0b327a9b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:669-672 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:425-428 | Starcat/Shared/Services/RepoContextStorage.swift:917-920 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a331c5373c34a21e96f64268e8f9643f46fe76bab67f595c6cb04fb2383240e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Collections/UserSmartCollection.swift:41-44 | Starcat/Features/Home/RepoHealthSheet.swift:45-48 \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":"Starcat/Features/Collections/UserSmartCollection.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe64d53bb0ea96ea6cf0bbcb63956841a15b7d6e5e3649804c87174e78469b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Core/Network/TrendingAPI.swift:98-101 | Starcat/Core/Network/WeeklyAPI.swift:111-114 \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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc56e3d9f516fae91ca7dfda2988ccaf2873035ef578e913d979c8acdc0a00fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Starcat/Core/RAG/RAGChunkRepository.swift:392-402 | Starcat/Core/Sync/GitHubStarListRepository.swift:288-300 | Starcat/Core/Sync/ReleaseRepository.swift:129-137 | Starcat/Core/Sync/RepoRepository.swift:333-342 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4753ed53436484a8f3cb8c242a3fadbeaba9f8fd968924096c60ece69bfd3377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:516-524 | Starcat/Core/Sync/ReleaseRepository.swift:193-200 \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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63718715e4fbca6bd0d6aa35fd7cab7c38303f4a3c0b856344aeec737f13225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift:391-393 | Starcat/Features/DailyRadar/DailyRadarSkeletonView.swift:24-26 \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":"Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd71589d1fac17e6c27ee7ecfca81c2f3cd9e0bb328ba71335a44731718e13a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift:359-363 | Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:175-178 | Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift:102-105 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2025-2028 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ShareCard/StarredMarkdownRenderer.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97f41556e8fc48b316597dd942df617a5c96d3b9ba196508c5810a5a103fd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Shared/Components/LanguageIcon.swift:28-32 | Starcat/Shared/Components/LinguistLanguages.generated.swift:17-21 \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":"Starcat/Shared/Components/LanguageIcon.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"835131610615b541d10c2cffa42f1b3ad4be343f515a71792f7b058c1065b9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Core/Network/AppEndpoints.swift:479-481 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:336-338 | Starcat/Features/Home/RepoFileTreeSessionCache.swift:54-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Core/Network/AppEndpoints.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"03622184083658fccf53f751e6ca87dd7a60babf9e4387a72d34fb3f5ace132a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Core/Subscription/ProPaywallSheet.swift:344-352 | Starcat/Features/Home/RepoMetadataHeaderView.swift:664-673 \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":"Starcat/Core/Subscription/ProPaywallSheet.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb3c958a71830f809a42ba0d6716100fd7261db475f9c1e4f83eb9ed204e967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Core/Sync/ReadmeRepository.swift:140-144 | Starcat/Core/Sync/RepoRepository.swift:1382-1386 \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":"Starcat/Core/Sync/ReadmeRepository.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1432f3b70652fb3f1920d2008e2537ddf8f82114bd47f0c90b3a76c98b4362c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/AI/BatchAIOptionsSheet.swift:304-308 | Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift:528-534 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89be1c6f1a38ae678685463f9a892b532702c26882c22fa29e541e84436eff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/CodeGraph/CodeFlowPanel.swift:364-367 | Starcat/Features/Home/RepoFileBrowserSheet.swift:734-737 \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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"83316269106d3ab3523334010a1f1aa5cec4768da93a77d48f617f2b738027aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:536-539 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:489-492 | Starcat/Shared/Services/RepoContextStorage.swift:581-584 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7de753d54bd420e6d7cef8c86fde2ef6909d09110d658fb39ad8913d6971de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:715-721 | Starcat/Features/Home/SidebarView.swift:1456-1462 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"a931e80e640735fe683afabab85345abfa77f7dfe0c229a3ab0daf4e50edece4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Home/OpenSSFScoreSheet.swift:126-129 | Starcat/Features/Home/RepoHealthSheet.swift:55-59 \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":"Starcat/Features/Home/OpenSSFScoreSheet.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5927b44b0d3a0cf7f9cfce481cb1daec798b415140468c93cdd167a3c9c25da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Core/Network/GitHubAPI/ContributionsAPI.swift:237-240 | Starcat/Core/Network/GitHubStatusMonitor.swift:27-30 \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":"Starcat/Core/Network/GitHubAPI/ContributionsAPI.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fd8361ae1498dc6717bc28259db7c650f60d89ba8420e286daf665ff6571bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:49-56 | Starcat/Core/Sync/RepoRepository.swift:302-306 | Starcat/Core/Sync/UserRepoActivityRepository.swift:335-339 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb40f079d816bb30050e4b18f6dcc74a7e21ac59d11354b57454b78009e6ca37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Core/Sync/RepoRepository.swift:440-444 | Starcat/Core/Sync/UndoStarHistoryRepository.swift:113-117 \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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac6e704b1345514354a9acf9b641d84b7abe15668c8b4e2f344d801ac77a972"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:392-394 | Starcat/Features/RAG/UI/RepositoryInsightsXMLViewer.swift:24-26 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f6d762c8cc0ddb23719e1dad128190d463d0078039ab4e4694ebd1a3b15a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Settings/AISettingsView.swift:2163-2167 | Starcat/Features/Settings/SettingsSidebarWidthLimiter.swift:37-41 \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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d493c0cf6bb48226fb158fc16c068f44d0143924ea8651e561d4e38b43302176"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Starcat/Core/DataContribution/RecommendationSnapshot.swift:137-141 | Starcat/Core/Database/Models/UserRepoActivityRecord.swift:74-78 | Starcat/Shared/Services/RepoContextPacker/Internal/XmlOutputBuilder.swift:335-339 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"Starcat/Core/DataContribution/RecommendationSnapshot.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de68b6560a96a0dfe7584c73aa4a60c313c91ee02b19faefc11fb56b5cad7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/AI/AIClient.swift:477-480 | Starcat/Features/AI/RepoAIChatViewModel.swift:915-918 \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":"Starcat/Features/AI/AIClient.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"2256b7a206139c73b0396066119188020b490ccb1564dd72728ca77672be51c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Starcat/Features/Home/HomeViewModel.swift:3610-3617 | Starcat/Features/Home/RepoListView.swift:2966-2973 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3610}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f64171c23708e38ec2cb9c6610d5fb6808b6ab2e3ceb5a30dae60a75d0a22e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsView.swift:1577-1582 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1319-1321 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:4266-4268 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"198fe911863d1c9859b64f4ac2fb4bf25dae5888652d7923e7ca42f5ac890282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Core/Subscription/ProPaywallSheet.swift:438-441 | Starcat/Features/Settings/ProSettingsView.swift:774-777 \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":"Starcat/Core/Subscription/ProPaywallSheet.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9a0e49514e1e1fbca42f349b16ad55879ea158bbb7cce8d7616a055450ab73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Core/Sync/SmartCollectionRepository.swift:50-55 | Starcat/Core/Sync/TagRepository.swift:32-37 \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":"Starcat/Core/Sync/SmartCollectionRepository.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c962e0aed3fb7b6dbecc648e8dadf079eba07bfe37fc986904f6ae48b937b632"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 3\u002B corresponding lines): Starcat/Features/AI/Usage/AIUsageDashboardView.swift:543-545 | Starcat/Features/Home/RepoContributorsStatItem.swift:382-384 | Starcat/Features/Insights/MyInsightsView.swift:1079-1081 | Starcat/Features/Insights/RepositoryInsightsView.swift:2254-2256 | Starcat/Features/Settings/SearchIndexSettingsView.swift:279-281 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/Usage/AIUsageDashboardView.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd8dfa4de55190a603c4a40b52ece260196735f9c07637e2a03cb4d7630f975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Starcat/Features/Activity/WeeklyContentView.swift:688-692 | Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:305-310 \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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc8192e57aaac1a1b8f9b03100ad0e0246f987bf417e6da230d7d0fe4dd4337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/Insights/RepositoryInsightsContextModels.swift:467-473 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3727-3729 \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":"Starcat/Features/Insights/RepositoryInsightsContextModels.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f27f21cbf9cc278282aa254604a577993c7d1f1dec2ea5fba058d69ce28dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/BatchAITagReviewRow.swift:185-190 | Starcat/Features/Home/OwnerCardSheet.swift:84-90 \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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4862ff6e6be9c1246d4cbf4346e36e044d749490321d48794c20c1be2879697"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/AI/LocalAI/LocalAILogEvent.swift:101-103 | Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift:544-546 \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":"Starcat/Features/AI/LocalAI/LocalAILogEvent.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6016f5a28867f1bdee3192482c6a0ea75fb527777a2d1d10dd5bdf8504375f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Starcat/Features/AI/RepoAIInsightModels.swift:217-220 | Starcat/Features/AI/RepoAIInsightViewModel.swift:807-810 | Starcat/Features/AI/RepoAIWindowContentView.swift:2414-2417 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Starcat/Features/AI/RepoAIInsightModels.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3863975ca07d72f4854e691580ac6b25d4fd5b2a2b11bc16753fa5d341b9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:695-698 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1274-1277 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b78e4b238361c95ef4c6bf8163554af82b617239384264ec2c96b09f2815209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 3\u002B corresponding lines): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1507-1509 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:424-426 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:44-46 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:169-171 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRow.swift:246-248 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:108-110 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"964ef2ace9de650db9898024a60ac21d228eeadb712f2cd3b4ddb7a6f4960058"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift:40-42 | Starcat/Shared/Components/ReadmeAttachmentImageSchemeHandler.swift:46-48 \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":"Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef0b30bde492243ef767b0d0b7e01c977c45e7a6245b3430e617a10069fe128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift:504-506 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:1430-1432 | Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:433-435 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06623289ca68af1e2065c2855ed39b66674f79dd525d0ee7e2496d46ebb8497"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Shared/Services/DiskChatHistoryStore.swift:946-949 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:426-429 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"3251196f24c6f437d5b657ccd07d81ba9efcaf3e8364e44ce6f2e78f3cbf0e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Core/Capabilities/RepositoryReadCapability.swift:266-268 | Starcat/Core/Sync/RepoSources/LocalRepoSource.swift:26-29 \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":"Starcat/Core/Capabilities/RepositoryReadCapability.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e8b519f676a34f1a469b2e5f2cf9095fcb7ea278186948f0c6d25c3e451171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Starcat/Core/Sync/RepoListQuery.swift:82-88 | Starcat/Features/Home/RepoListView.swift:2625-2631 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:375-381 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Starcat/Core/Sync/RepoListQuery.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9779bbe96d246921e8a239f19d25a86265802fa25dd5cddd55925efa65b30681"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Features/Home/ManageDetailContent.swift:185-191 | Starcat/Features/Home/RepoDetailView.swift:891-897 \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":"Starcat/Features/Home/ManageDetailContent.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ef64bb0300e73d7bc8a2050b1b42708bb58af4350199fc2f06480f40fadced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift:232-235 | Starcat/Features/Settings/SettingsView.swift:584-586 \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":"Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ca80cfed786ed641f507cc2b5b623df6c0b5bfb55f8c1ff9b59e646f2cea75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Features/RAG/Core/RAGRepoContextXMLProjector.swift:111-113 | Starcat/Features/RAG/Core/RAGRepositoryInsightsContext.swift:366-368 \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":"Starcat/Features/RAG/Core/RAGRepoContextXMLProjector.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de3c60db4990236380e06151ddbd99176c4285f57a7adef40018fec04c3c16c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2961-2963 | Starcat/Features/RAG/UI/RAGAddToLibrarySheet.swift:332-334 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2158-2160 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"badb04da09c76775dd25d106eb280a15c5e31b28fc06d8546fefb37eb309253a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Starcat/Core/Network/GitHubAPI/RepositorySearchAPI.swift:46-49 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:173-176 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:228-231 | Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift:170-173 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/RepositorySearchAPI.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab70c5f787d1ae9e019fd6887eb965e6d72e73793120799a77a2ea7d61e2e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Starcat/Features/AI/Usage/AIUsageDashboardView.swift:539-541 | Starcat/Features/Home/OwnerCardView.swift:502-504 | Starcat/Features/Insights/MyInsightsView.swift:1075-1077 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Starcat/Features/AI/Usage/AIUsageDashboardView.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e1ff68dfc971422b36f79510a784f66ff37c0911908ca501950ea064d90f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Starcat/Features/AI/WikiContextService.swift:73-81 | Starcat/Features/Recommendations/RecommendationContextService.swift:75-83 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/WikiContextService.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc7289e9565f6011168b0bd30d4bc25f7954e76144fbf70cd04827fe465fc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/CodeGraph/CodeFlowStorage.swift:97-101 | Starcat/Shared/Services/RepoContextStorage.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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"afac6de583094e06c8dae55dffb94d956dc3d59175f3eb1638487a7e4c8f4481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Home/RepoListView.swift:2875-2878 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:308-311 \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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7fef852ac4443e9f810af284756dcc8ffe159848df398b1a5f29ca5d49e76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Starcat/Shared/Components/RemoteAvatar.swift:147-154 | Starcat/Shared/Components/RemoteFavicon.swift:98-104 \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":"Starcat/Shared/Components/RemoteAvatar.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece2a902711c18182568eb866b2e9cc4b91e964647f418fc09fe8c929ae520e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:323-328 | Starcat/Features/Insights/RepositoryInsightsContextStorage.swift:423-428 \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":"Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd9d09a6cf0d7a106183130a634bf6f57c8e7ab45bde6ff07f605bc5e62aa70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/Companion/CompanionContextProvider.swift:370-373 | Starcat/Features/Home/OwnerCardView.swift:448-451 \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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a19106e68f089b53b5f2d3a9262f337977a213447e8521c5928618ce9a2d1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:337-340 | Starcat/Features/RAG/Core/RAGExternalWebSearchProvider.swift:22-25 \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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87be0c9e501df9e38630e2ffe91a06c285475653e85fdc1c830e40c0e8c0041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 3\u002B corresponding lines): Starcat/Core/Models/RepoExternalLinks.swift:102-104 | Starcat/Core/RAG/RAGChunkRepository.swift:1014-1016 | Starcat/Features/RepoIssues/RepoIssuesSharedStore.swift:114-116 | Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:151-153 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 3 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Models/RepoExternalLinks.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f680c32930284c1c2c04450f84ab9d413d23203ddd97e2a8bedbe5000f9aa26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Starcat/Core/Network/GitHubAPI/NotificationsAPI.swift:90-92 | Starcat/Core/Network/GitHubAPI/UserAPI.swift:94-96 \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":"Starcat/Core/Network/GitHubAPI/NotificationsAPI.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b9af48a3f528592c4930764e52601e92b9e2ef30b33ef17fede1b673c4121a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Starcat/Features/Agents/Core/AgentTools.swift:90-99 | Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1330-1339 \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":"Starcat/Features/Agents/Core/AgentTools.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2ad7ce89baf7de2119b6b557d0070ce3207106704d6eb84d028d0713a4bb88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:278-337 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:298-357 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6585bd4a417b547320fb9a384a9c5b2aa1fa8465ae5412870202396b022f0fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1766-1819 | Starcat/Features/Home/RepoDetailView.swift:1226-1279 \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 \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:1766\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a120e60f48aca3694513197538073bf02b898278b44b8d769944dab07b7d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201352 lines \u00D7 2): Starcat/Core/Database/DatabaseManager.swift:312-363 | Starcat/Core/Database/DatabaseManager.swift:393-435 \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 \u0060Starcat/Core/Database/DatabaseManager.swift:312\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/DatabaseManager.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b613eaf93a4c6e0ffb34d7ae0bc449b6923058531e104dba1626d0af5d1812ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201349 lines \u00D7 2): Starcat/Core/Database/DatabaseManager.swift:327-375 | Starcat/Core/Database/DatabaseManager.swift:437-448 \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 \u0060Starcat/Core/Database/DatabaseManager.swift:327\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/DatabaseManager.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"982df33f3665b5d9e91b22d3029db1948fa412b4e9356d3ea0ed9831d9f309a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201346 lines \u00D7 3): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3431-3470 | Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:234-275 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:235-280 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3431\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3431}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a39fb82dbb82a09a450b2f6254067b831f1434bb9c2473fadee8bd997a870a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3364-3406 | Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:158-200 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3364}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a8d10f5d79c6dd782a20a45602d38e295f6fc0e4834158a8d2a1e39161a39f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): Starcat/Core/Sync/RepoRepository.swift:981-1022 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:232-273 \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 \u0060Starcat/Core/Sync/RepoRepository.swift:981\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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6a3e4d9ae78b985d677c4bc8d5262ad039746cad9ab54fa9ed6fcbaf89a671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Starcat/Features/MCP/MCPSettingsView.swift:515-554 | Starcat/Features/Settings/IntegrationSettingsView.swift:700-739 \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 \u0060Starcat/Features/MCP/MCPSettingsView.swift:515\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":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0385cecd3240d19e12e3d676e85731a1e127e15c847091307e9a6a30ca6469e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:120-155 | Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:210-245 \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 \u0060Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift:120\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":"Starcat/Shared/Components/Toolbar/ExternalLinksMenu.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6120084c41906f31b88799c3ad8683a3f24fa886d786bebb23f2a754e86fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201335 lines \u00D7 3): Starcat/Features/Activity/WeeklyDetailContent.swift:76-104 | Starcat/Features/Explore/DiscoveryDetailView.swift:173-195 | Starcat/Features/Trending/TrendingDetailContent.swift:59-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Activity/WeeklyDetailContent.swift:105\u0060 calls \u0060environment\u0060 and \u0060Starcat/Features/Explore/DiscoveryDetailView.swift:196\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":"Starcat/Features/Activity/WeeklyDetailContent.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88595923ae3803e076ef29ad3065c6cdbaa55234b2ecfeb91381c0b16089782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:732-766 | Starcat/Features/Explore/ExploreView.swift:672-706 \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 \u0060Starcat/Features/Activity/WeeklyContentView.swift:732\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd38e7a3efe5ab701e8710fd3a39f7950194f01faaf09fc57d08cc09b2dcf9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:233-266 | Starcat/Features/Agents/Core/LoopAgentRuntime.swift:336-369 \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 \u0060Starcat/Features/Agents/Core/LoopAgentRuntime.swift:233\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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4c081fcd166f91ac0d28fadef0ee8672bfeaadd5fb1c44b9f905a51e87def2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): StarcatWidgets/Focus/StarcatFocusWidget.swift:127-157 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:98-131 \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 \u0060StarcatWidgets/Focus/StarcatFocusWidget.swift:127\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StarcatWidgets/Focus/StarcatFocusWidget.swift:125\u0060 calls \u0060StarcatFocusStatusLabel\u0060 and \u0060StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:95\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":"StarcatWidgets/Focus/StarcatFocusWidget.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"77686e9085ef4761d39ce6e3875ec10d2e4ef6c352731a24cfd7679287309b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:34-66 | Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift:29-61 \u2014 before extracting anything, compare \u0060Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift\u0060 and \u0060Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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":"Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0c2047796e3ec833fa241f370e006c12d6c3999d452341caa0b9e40ecb72bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): Starcat/Features/Home/ReadmeViewModel.swift:299-330 | Starcat/Features/Home/ReadmeViewModel.swift:480-508 \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 \u0060Starcat/Features/Home/ReadmeViewModel.swift:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060forceRefresh\u0060 to \u0060Bool = false\u0060 in one and \u0060Bool\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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f539dd91b01b67952ea803848488d8dff688de7a6af0c4d6dba1873bf516311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:506-536 | Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:585-615 | Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:642-672 \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 \u0060Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:506\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":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"7190b74b5a8d3a668452fa22c32e333c541131472041cc06c212a48962c88415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2950-2981 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3050-3078 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2950\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf71a8abace1eb6870c4e23a53c159c6cbee1f19647e1b3d8da34bd92bbfe2a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1033-1062 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2917-2946 \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 \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1033\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51f41ec7c1e712eb5ccefa1b45812bd7a08dcad1962453086f723e5663f0ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:117-145 | Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:345-374 \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 \u0060Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:117\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":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae3363774ef63128fc73f2a763d080f6b05983f7ccffaabccfc2cd23bea4734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201330 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:58-83 | Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:94-123 \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 \u0060Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift:58\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":"Starcat/Core/Network/GitHubAPI/GitHubStarListsAPI.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e2dbe4a9826ff4d2ba66ebb5699404637364cd8e7809d5adbc525597a77dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPortAvailability.swift:25-53 | Starcat/Features/MCP/StarcatMCPPortAvailability.swift:45-73 \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 \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPortAvailability.swift:25\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. 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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPortAvailability.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5abb38d751cef61ba72d9d282f2972f41fde5e1f3e6294915051853de950b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): Starcat/Features/Home/LocalAIStatusSection.swift:190-216 | Starcat/Features/Home/LocalAIStatusSection.swift:286-314 \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 \u0060Starcat/Features/Home/LocalAIStatusSection.swift:190\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":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc1c91571553fa79c448c4358eaec384556d376af7d17a8def68f2e548b6af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:104-131 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:446-474 \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 \u0060Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:104\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":"Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"777a7f7502b035cc7298f047d8aaf18bb1ba6d4744bb586042017fcd09edb631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:162-189 | Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:389-416 \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":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25ba654a7e658ab14647ca0323e7117d8747868d782ebe6975fe8ff7540c36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationIssueSummaryMarkdownView.swift:87-113 | Starcat/Features/RepoIssues/RepoIssueCreatePane.swift:274-300 \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 \u0060Starcat/Features/Activity/GitHubNotificationIssueSummaryMarkdownView.swift:87\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":"Starcat/Features/Activity/GitHubNotificationIssueSummaryMarkdownView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f6bf8b95493a2211585bfe117f08ae86e3d6cc86f90eda53d6ede8b6a38932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift:294-320 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:211-233 \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 \u0060Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift:294\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 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":"Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be6b3a9f2b386c44ce5d66b27c04ee5ea266f5bca0eab517c50daec2769a201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:145-171 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:604-630 \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 \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:145\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":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"611c49e968fad66a3686fef3d5766047a3ca4ae461093190bee21f4677470c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:145-171 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:476-499 \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 \u0060Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:145\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff8f4c19794e8dad0c7afa367df2e8406a5e1be495aebb37d1b6602c8fdebfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3249-3274 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3288-3313 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3249\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb4012017a08d916dbda2bc2ba224bd960126d5d4e2f203d8c9445ae57f8150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:600-622 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:563-587 | Starcat/Shared/Services/RepoContextStorage.swift:838-859 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:600\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"608ac01333eb6ab87230e77885b27fe4dda132a10d8c8517440aa38d21af5743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Starcat/Core/Insights/RepoStarHistoryRepository.swift:371-395 | Starcat/Core/Insights/RepoStarHistoryRepository.swift:482-506 \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 \u0060Starcat/Core/Insights/RepoStarHistoryRepository.swift:371\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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc117a507874fac5e29a48bd8110406c802df59ba1406fd2424b7a125dc64c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): Starcat/Features/AI/ReadmeTranslationService.swift:445-469 | Starcat/Features/AI/ReadmeTranslationService.swift:622-643 \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 \u0060Starcat/Features/AI/ReadmeTranslationService.swift:445\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54811f87fd19c9fbcf5019f651a21d7c786af0ed718d504096325a9c0ab195d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201325 lines \u00D7 2): Starcat/Features/Explore/DiscoveryDetailView.swift:73-84 | Starcat/Features/Trending/TrendingScaffoldShell.swift:85-109 \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 \u0060Starcat/Features/Explore/DiscoveryDetailView.swift:73\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":"Starcat/Features/Explore/DiscoveryDetailView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3264a737f6cf6f4caaf28e32bfbfa0d80ad1a0fff6ce0f03552f1dcfa0ffec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 3): Starcat/Features/AI/BatchAITagFlowLayout.swift:42-65 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:775-795 | Starcat/Features/Settings/SettingsView.swift:1558-1578 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060subviews\u0060 to \u0060Subviews ) -\u003E (origins: [CGPoint]\u0060 in one and \u0060Subviews) -\u003E (origins: [CGPoint]\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":"Starcat/Features/AI/BatchAITagFlowLayout.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe0281303b74ab31cdca130a3865ecccc674ee7e7ee8eb0bfc1eab0d0fabdda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift:95-117 | Starcat/Core/Widget/Shared/WidgetSnapshotStore.swift:77-100 \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 \u0060Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift:95\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":"Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0956d0ee8c1498843393d206688955573f4e920eaf47c5d8062f7184c25a6a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): Starcat/Features/AI/ReadmeTranslationService.swift:491-514 | Starcat/Features/AI/ReadmeTranslationService.swift:671-692 \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 \u0060Starcat/Features/AI/ReadmeTranslationService.swift:491\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7aed1310ce4907dd8f43c7c0e893a66e2bab02ca12c781893dad524807ae7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Starcat/Features/Insights/InsightsCardIllustration.swift:128-151 | Starcat/Features/Insights/InsightsCardIllustration.swift:291-314 \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 \u0060Starcat/Features/Insights/InsightsCardIllustration.swift:128\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":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd67a46a658ab8753fb13a818f052dadf474ef6f91b7cc62ceae10d0bc192f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:1798-1821 | Starcat/Features/Insights/RepositoryInsightsView.swift:2539-2562 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1798\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f86042906df98e3f274c2dee751dd89cf6d240e132dc06a4d166b058ac2c45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2343-2366 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2370-2391 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea305395b6da1e1a76958bd7487a7dd28cc56859e109bdf1c035e969756d471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Starcat/Features/Home/SidebarView.swift:650-672 | Starcat/Features/Home/SidebarView.swift:707-729 \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 \u0060Starcat/Features/Home/SidebarView.swift:650\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacbd9ac06f24a83cb26a01acb4382e1a59a26c867b50be51af6bc8f67022b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsViewModel.swift:214-236 | Starcat/Features/Insights/RepositoryInsightsViewModel.swift:393-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. 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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fce77bc35064f61376df377440f8e8d0c500d434dd707d019b75cd7b8503f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1344-1364 | Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1374-1396 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1366\u0060 calls \u0060contains\u0060 and \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1398\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3062c64d0dc11cd913ef6889884938c48d86b11b15db34465976d9942c019506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:25-46 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:34-55 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift:25\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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a74badde52a08171384ee3d6ff21c177423f54a64c27aa45c7054e035c2895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:298-318 | Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:564-583 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:298\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":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20efefcdae6e2170d5a39098c16d93959a66fd84818710570d3305e41e2e2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Starcat/Core/Screensaver/ScreensaverAvatarCache.swift:224-244 | Starcat/Core/Widget/WidgetAvatarCache.swift:171-191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Screensaver/ScreensaverAvatarCache.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90a13aa21eb8ed6b6d86f68e1f6a309607dfc0a5c11561fc5b43990fc46095f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Starcat/Core/Sync/UserProjectRepository.swift:83-103 | Starcat/Core/Sync/UserProjectRepository.swift:226-246 \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 \u0060Starcat/Core/Sync/UserProjectRepository.swift:83\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":"Starcat/Core/Sync/UserProjectRepository.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9b98a81b536304565c7a4783f5abbed7e2c739ef61484c3bea13f70f16f29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1829-1849 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1884-1903 \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 \u0060Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1829\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1828\u0060 calls \u0060remove\u0060 and \u0060Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1883\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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"505e0bb980d233bbe08bc26761ec9165a4ff1282de04adeb890b1bc9b43895ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:468-485 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:658-678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:468\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:487\u0060 calls \u0060l10n\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:679\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0aee0a152d53084e068ddf4c9094efd447e29a34a9a065135bd85dd17d9230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:216-235 | Starcat/Shared/Services/RepoContextStorage.swift:226-246 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:216\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 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6539e1c7b1b9c9c138d29a9e7ec301817f7b915ca84cb13935546465621bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:51-71 | Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:221-240 \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 \u0060Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:51\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":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5faa056b869f9460c902aff6b47cb0437931eb927e38c5d28bcb5b83b1d5cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:454-474 | Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:117-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:454\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":"Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"293431095bb721f5d8bfd72732657f90442395bc398104c80b82220df8e3553a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1585-1605 | Starcat/Features/Settings/AIPromptPlaceholderPopover.swift:134-154 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1585\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u0060interfaceScale.scaled(8)\u0060 in one and \u00608\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e13ce68620bd0c09c10d8e3c22d21fce83669948ff51f589ca453a9ce4912c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201337 lines \u00D7 2): Starcat/Features/Recommendations/RepoRecommendationItem\u002BViewData.swift:65-82 | Starcat/Shared/Components/SemanticScoreBadge\u002BRecommendation.swift:29-65 \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 \u0060Starcat/Features/Recommendations/RepoRecommendationItem\u002BViewData.swift:65\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":"Starcat/Features/Recommendations/RepoRecommendationItem\u002BViewData.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54dddb33a8513975f5041c7869eb940b81a66c48ffc029d733748c76dd4cb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Starcat/Features/Insights/RepositoryInsightsView.swift:2736-2755 | Starcat/Features/Insights/RepositoryInsightsView.swift:2875-2894 | Starcat/Features/Insights/RepositoryInsightsView.swift:3210-3229 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:2736\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eeb5bd2970b3dab74d42bb2e34a980a9662a9207de3765e8b26ccfd68bf6648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): StarcatWidgets/Focus/StarcatFocusWidget.swift:137-154 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:109-128 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:180-197 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u006010\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:178\u0060 calls \u0060Spacer\u0060 and \u0060StarcatWidgets/Focus/StarcatFocusWidget.swift:135\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Focus/StarcatFocusWidget.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e0f361fe77ab89bfca4b732661de05639761efdff103694d3cafb5fc766299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:433-452 | Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:605-624 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6762189378c4b2ad882945ad600043503c252ade916fff56fb054495e004b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:85-104 | Starcat/Core/Scheduling/RepoHealthPoller.swift:95-114 \u2014 before extracting anything, compare \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift\u0060 and \u0060Starcat/Core/Scheduling/RepoHealthPoller.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fb50cd3a33d438b0c48391e44203c31add198c7bc3f64f370f7abe31c2169c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201320 lines \u00D7 2): Starcat/Features/AI/AIChatBubble.swift:129-148 | Starcat/Features/AI/AIChatBubble.swift:225-236 \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":"Starcat/Features/AI/AIChatBubble.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed075f325ec6b7cc65d357b55c8f45fdfe54006503fe6f95f0f251a5f2989c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:78-94 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:117-136 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift:78\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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3270084992e92a02badc6a4ee21d847ed94dd797a486c24c07339e2edfe08f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:1436-1455 | Starcat/Features/Settings/TranslationPromptSheet.swift:108-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c2d3347fcd00a5026cfe20b6fe237f0354990ed81d0a46a78e805375036f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Starcat/Features/Releases/ReleaseAssetDownloadCoordinator.swift:151-170 | Starcat/Features/Releases/ReleaseAssetRowView.swift:292-310 \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":"Starcat/Features/Releases/ReleaseAssetDownloadCoordinator.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b343c6caa26e994a6e0ef85c783bf5a3de886754f5ac6b34b7b4dd9085f50a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): Starcat/Features/AI/ReadmeTranslationService.swift:387-404 | Starcat/Features/AI/ReadmeTranslationService.swift:493-511 | Starcat/Features/AI/ReadmeTranslationService.swift:671-689 \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 \u0060Starcat/Features/AI/ReadmeTranslationService.swift:387\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d847d28ef0c475ec8632d01c61e02cce2a05e7879eae31b374b587ad144d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:516-534 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:729-743 | Starcat/Shared/Services/RepoContextStorage.swift:773-791 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"921919a2c21859e7c10d5d17cffd4780118e0740ee74abac8c3929b5f1eebb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:630-648 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:439-457 | Starcat/Shared/Services/RepoContextStorage.swift:869-887 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:630\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb0a4a2c0b0b3d3a7895b7466745fb3e939a45145542d6e2688b5630d1b672d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201319 lines \u00D7 2): Starcat/Core/Widget/WidgetSnapshotBuilder.swift:335-343 | Starcat/Core/Widget/WidgetSnapshotBuilder.swift:362-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Widget/WidgetSnapshotBuilder.swift:335\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":"Starcat/Core/Widget/WidgetSnapshotBuilder.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"88560e0fb189f91cc477983884a461f69a5569bbb35433d0986cf1eb825ac07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Starcat/Features/AI/BatchAIWorkspaceView.swift:455-473 | Starcat/Features/AI/BatchAIWorkspaceView.swift:477-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade17bb9fc24db04c38a4452c5e442d66ee75f709c5f573d03bb15b63bf9c9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Starcat/Features/Activity/ActivityDetailView.swift:567-585 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:1640-1658 \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":"Starcat/Features/Activity/ActivityDetailView.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"3984f93fcf4c9f07932637872854a9dde459b23324793ca56433eb3b6b3aeb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:959-977 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1139-1157 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:959\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eb7cbaa0f4f63942780a5f0b1e3937814c54787c6b2f1172470e5638d2bbc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Starcat/Features/Home/ManageDetailContent.swift:160-177 | Starcat/Features/Home/RepoDetailView.swift:866-884 \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 \u0060Starcat/Features/Home/ManageDetailContent.swift:160\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":"Starcat/Features/Home/ManageDetailContent.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3769a7d91cde87498a6d7de9c843276049e8ced78f320180de2e42221441991a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Starcat/Features/Home/RepoListView.swift:2807-2825 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:271-288 \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 \u0060Starcat/Features/Home/RepoListView.swift:2807\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4de58f431982c82c793d0141d132d65ae2ba97ca79ab155a907766a1400c7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1358-1373 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1460-1478 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1358\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0994f005d2a93dcdc823d0e587bd1cba31159f24e7c1628f4a746cca74ceb74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Starcat/Features/Settings/AISettingsView.swift:414-431 | Starcat/Features/Settings/AISettingsView.swift:939-956 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:58-75 | Starcat/Features/Settings/TranslationSettingsView.swift:87-104 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c6ef02ed9b58d6938e36bdd91f99c2283266f31dd9ab7fb53ead6c6a75f9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:124-141 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:401-418 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:431-448 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:124\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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a5e6bc8203dfdd67ae744058ba6bdd6ef609c7a22442c806dc7565db5bf895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Core/Network/TrendingAPI.swift:75-92 | Starcat/Core/Network/WeeklyAPI.swift:86-103 \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 \u0060Starcat/Core/Network/TrendingAPI.swift:75\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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd9cdc334501181ae15e57229f3b7fe78f5ae46a946707db1c919b0612aba3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/AI/BatchAITagReviewRow.swift:246-263 | Starcat/Features/AI/BatchAITagReviewRow.swift:291-308 \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 \u0060Starcat/Features/AI/BatchAITagReviewRow.swift:246\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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3fcf804ae31c0b15a40513adecf124de7ca31bf651f2d652d0feeebed31ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Activity/ActivityViewModel.swift:612-629 | Starcat/Features/Activity/ActivityViewModel.swift:801-818 \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 \u0060Starcat/Features/Activity/ActivityViewModel.swift:612\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57ed4a4dbebfab548d3ed618d5f88a7e48705c41736700816d79db7c6f79ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationInboxView.swift:521-538 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:214-231 \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 \u0060Starcat/Features/Activity/GitHubNotificationInboxView.swift:521\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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01872defa03e6a7f23d7276e76a1add50071b30a9d6d05277d39a5bd0406dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Auth/ProjectAccessSession.swift:465-482 | Starcat/Features/Auth/ProjectAccessSession.swift:500-517 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Auth/ProjectAccessSession.swift:500\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Auth/ProjectAccessSession.swift:464\u0060 calls \u0060now\u0060, \u0060addingTimeInterval\u0060 and \u0060Starcat/Features/Auth/ProjectAccessSession.swift:499\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":"Starcat/Features/Auth/ProjectAccessSession.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f930df3cf6cff1c3e3389e395c2d0ee9da7c875c5e3c600883a295c4683f1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Explore/ExploreView.swift:151-168 | Starcat/Features/Home/RepoListView.swift:1510-1527 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"190aaf5f83ec021e65e2f6338c7a6be46f725ea5bae6588a013310ed4f60b132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Home/LocalAIStatusSection.swift:241-258 | Starcat/Features/Home/LocalAIStatusSection.swift:338-355 \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 \u0060Starcat/Features/Home/LocalAIStatusSection.swift:241\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":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"555633f31750a0a958a8a9dc1585b3c052b0545e114afe126cd891b7ed7c6c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Home/RepoMetadataHeaderView.swift:459-476 | Starcat/Shared/Components/UnifiedRepoRow.swift:487-504 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"94056975f10266c9c0aefe1c886c4d2e2c7d5403578ad29f4c15ee0d08816ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Starcat/Features/Insights/InsightsSectionSkeleton.swift:105-122 | Starcat/Features/Insights/InsightsSectionSkeleton.swift:216-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u00604\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":"Starcat/Features/Insights/InsightsSectionSkeleton.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a392e8d6122af1186ee278dbb2e51292da01562ed1e30a7804fdce7c3b143d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1629-1645 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1717-1734 \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 \u0060Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1629\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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"140f78d8018d1776c23ccffc162bcb755f337eac15d16f552d8198cb1c02038d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Starcat/Features/RAG/Storage/RAGConversationStore.swift:283-298 | Starcat/Features/RAG/Storage/RAGConversationStore.swift:424-441 \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 \u0060Starcat/Features/RAG/Storage/RAGConversationStore.swift:283\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cd684b228b63c9ce198be34da4776a928834c3dabccb8c4aa85f892772e296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): Starcat/Features/Settings/GeneralSettingsView.swift:66-82 | Starcat/Features/Settings/SettingsView.swift:717-733 | Starcat/Features/Settings/SettingsView.swift:828-844 | Starcat/Features/Settings/SettingsView.swift:989-1005 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/GeneralSettingsView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a772f5f809861003938b63b8c72d5071f530b94a198a51261c820f3965278049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:338-353 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:396-409 | Starcat/Shared/Services/RepoContextStorage.swift:555-571 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bc2b35a40b414f150e592d8bb7ccb4b4c6b9f5118c0dbd288ed5a32553a4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:878-894 | Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:918-933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:878\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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"902bd4c6eb8a1fe3e3801ba05cf556f740bb42855d6ff2605433c7fecf80b236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:43-59 | Starcat/Core/Scheduling/RepoHealthPoller.swift:50-66 \u2014 before extracting anything, compare \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift\u0060 and \u0060Starcat/Core/Scheduling/RepoHealthPoller.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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 \u0060interval\u0060 to \u0060TimeInterval = OpenSSFScorePoller.defaultInterval\u0060 in one and \u0060TimeInterval = RepoHealthPoller.defaultInterval\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Scheduling/RepoHealthPoller.swift:67\u0060 calls \u0060scheduleInitialRefresh\u0060 and \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift:60\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f0df8b41a8e8f5a91f2fbbdc6e3027b5d992256b098f7fe7412ccdc815fd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Core/Sync/ActivitySyncStateRepository.swift:36-52 | Starcat/Core/Sync/ActivitySyncStateRepository.swift:55-71 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/ActivitySyncStateRepository.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6800d239e30bfe90983dcbf9f3e09a2e2faf050d3b624ebb30bcb923f18b2d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Core/Sync/GitHubStarListRepository.swift:270-286 | Starcat/Core/Sync/RepoTagRepository.swift:206-222 \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":"Starcat/Core/Sync/GitHubStarListRepository.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d0ecad9c395a878aab9a0840587aa6068a8a1328bb2ffff470444c97e4c297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Features/AI/Anthropic/AnthropicClient.swift:322-338 | Starcat/Features/AI/OpenAIClient.swift:551-567 \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 \u0060Starcat/Features/AI/Anthropic/AnthropicClient.swift:322\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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"774f4bf72b91350a4d188f51588e5596dbb3d3951e4f0d62cbcab48871bca5cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:249-265 | Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:293-308 \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 \u0060Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift:249\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":"Starcat/Features/Agents/Core/AgentRepositoryCatalog.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38bbfbfc43fb74c3f944b198fc7e9f764463bf75fe81f9ac2a2bdb0703c4984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:93-109 | Starcat/Features/Agents/ExternalRuntime/CodexModelCatalog.swift:179-193 \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 \u0060Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:93\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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"439e09aa8e5d81adbb3a877abed7e5e14fdce63e58aebe31574c8310929c4730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:123-139 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:170-186 \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 \u0060Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2251cf69b3fec6e1fc8e821937a2e6d69033aca68fa283a50ec5080e69ea8a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Starcat/Features/Home/LocalAIStatusSection.swift:223-239 | Starcat/Features/Home/LocalAIStatusSection.swift:321-336 \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 \u0060Starcat/Features/Home/LocalAIStatusSection.swift:223\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":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d840bc0deac676739a5d064ec73350e4613184da603585f776821970f0e221a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:2366-2382 | Starcat/Features/Tags/RepoTagsSection.swift:865-881 \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 \u0060Starcat/Features/Search/SearchCenterView.swift:2366\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2366}}}],"partialFingerprints":{"codehealthFindingId/v1":"61404be9b27b58b226de2c5a361e1d696077695097b849dee6eccab2f141beb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:2386-2402 | Starcat/Features/Tags/RepoTagsSection.swift:885-901 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5b8b0571fa759e2f76a7316a640e437c9b85d0c219bb46c6aa54843ebac531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Starcat/Features/Tags/RepoTagsSection.swift:788-804 | Starcat/Features/Tags/SFSymbolPicker.swift:68-84 \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 \u0060Starcat/Features/Tags/RepoTagsSection.swift:788\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":"Starcat/Features/Tags/RepoTagsSection.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"24def272c22b0e4583d5c46b93ba2de5f26288c4313e17a186d662b25b0c7306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:199-214 | Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift:129-144 | Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:366-381 | Starcat/Features/Explore/DiscoveryDetailView.swift:116-130 | Starcat/Features/Trending/TrendingScaffoldShell.swift:200-215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:199\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:382\u0060 calls \u0060resolveRepo\u0060 and \u0060Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:215\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2522a3e1c59a75b685d8e60f54d72b86aea7a335e71e813038ed9a83396a2ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:578-593 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:540-555 | Starcat/Shared/Services/RepoContextStorage.swift:816-831 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:578\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f87ac3895b08fc4481c07d6c7b0ee6391b9f1add3230b73890b7a38467fd5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryExtractor.swift:131-143 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:180-192 | Starcat/Shared/Services/RepoContextPacker/Internal/SourceZipExtractor.swift:184-199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryExtractor.swift:131\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryExtractor.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee94f331de7d70726d34c71693519741d10cc7198695f80d0eff7c9a7d93af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Starcat/Features/Insights/InsightsSectionSkeleton.swift:106-121 | Starcat/Features/Insights/InsightsSectionSkeleton.swift:217-232 | Starcat/Features/Insights/InsightsSectionSkeleton.swift:263-278 \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":"Starcat/Features/Insights/InsightsSectionSkeleton.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e484756bf654ca33a78a83aafb7b8adecdfecaf58727edf4cf5da5c4beb7bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Starcat/Features/Insights/RepositoryInsightsView.swift:1457-1472 | Starcat/Features/Insights/RepositoryInsightsView.swift:1816-1831 | Starcat/Features/Insights/RepositoryInsightsView.swift:2557-2572 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1457\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, \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1814\u0060 calls \u0060minimumScaleFactor\u0060 and \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1455\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"9217ac7eb05ee681e1a15dd83c47b3d9553b814b7a4b6e51d377714a0606afdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Starcat/Core/Download/ReleaseAssetDownloader.swift:145-160 | Starcat/Core/Download/RepoFileDownloader.swift:170-184 \u2014 before extracting anything, compare \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift:145\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 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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd3cd3571272aa366ab5c533539a54a7bf83d4c97582ac48b31dbbfe425c03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Starcat/Core/Download/ReleaseAssetDownloader.swift:209-224 | Starcat/Core/Download/RepoFileDownloader.swift:283-297 \u2014 before extracting anything, compare \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift:209\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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb6296251c4fca5252fb3acc1c5637e72f42749efab1ff8fcfbce70e6395c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/AI/BatchAIQueueService.swift:2320-2335 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:3045-3060 \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 \u0060Starcat/Features/AI/BatchAIQueueService.swift:2320\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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e242b16caa991655a215ed8ed13be3245af49dce56f2cd334d933aa13ba4a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): Starcat/Features/About/AboutView.swift:239-254 | Starcat/Shared/Components/LaunchSplashView.swift:539-550 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dfca3e176becc11a427055beeaf9fd85905828883f050e55734eda23de9b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:489-499 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:225-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"760dd3425405de800a97f6724ce9e107bd02827b269d33ac1c271540416b5970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:890-905 | Starcat/Features/Agents/Core/AgentRunInspectorView.swift:435-445 \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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e8dc6c40243da8ac9375f2fa57c2c88d1f8dbeec9ecc134e9aa2700085e36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:726-741 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1302-1317 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:726\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"6526786b6f60f804dc19d6d1bb4b79a998e9ba674abcde5ad137532dea219b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/Insights/InsightsSectionSkeleton.swift:273-288 | Starcat/Features/Insights/InsightsSectionSkeleton.swift:332-347 \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 \u0060Starcat/Features/Insights/InsightsSectionSkeleton.swift:273\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":"Starcat/Features/Insights/InsightsSectionSkeleton.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d1b77cdfca41012020ef163ac485d871b059ceb72265c2913077cfb210922d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 2): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:574-589 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:850-858 \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 \u0060Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:574\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 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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"545585d5f495d4bdb054deffd7c143ef011e8e28ec63fbb7c102a4f7ddf53e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/MCP/AgentToolMCPRuntime.swift:46-61 | Starcat/Features/MCP/StarcatMCPRuntime.swift:59-74 \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":"Starcat/Features/MCP/AgentToolMCPRuntime.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17a5eddf3ef3e21af2483209dea4ff676b14b1e3c6a91902649e88b0465102"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:69-84 | Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift:64-79 \u2014 before extracting anything, compare \u0060Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift\u0060 and \u0060Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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":"Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73149fc101be4dddce266316346e9b74e8fd8b2645488577b205fb33f48d924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Shared/Components/ReadmeWebView.swift:370-385 | Starcat/Shared/Components/ReadmeWebView.swift:390-405 \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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"02defd4bf29b12742c5affbedb93a4b3851ef644ad76c3eebe195e13412a2b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): StarcatWidgets/Contributions/StarcatContributionProvider.swift:25-40 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:41-56 \u2014 before extracting anything, compare \u0060StarcatWidgets/Contributions/StarcatContributionProvider.swift\u0060 and \u0060StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StarcatWidgets/Contributions/StarcatContributionProvider.swift:25\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":"StarcatWidgets/Contributions/StarcatContributionProvider.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f69cd7761db17fed0a118cb00f4e843de8dd543ad55931807eef6fada9180e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:397-409 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:625-637 | Starcat/Shared/Services/RepoContextStorage.swift:619-633 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:397\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04ba5cadedd01fdd8b383126552e8a128954a023459649a439bab2ebd5a6d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Starcat/Features/Home/SidebarView.swift:2006-2020 | Starcat/Features/Home/SidebarView.swift:2038-2052 | Starcat/Features/Home/SidebarView.swift:2067-2081 \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 \u0060Starcat/Features/Home/SidebarView.swift:2006\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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c53afaa720f87d9a0830fedfd25d7ae0d0be6be4c1fc03c355558a3b11f1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Core/Download/ReleaseAssetDownloader.swift:193-207 | Starcat/Core/Download/RepoFileDownloader.swift:267-281 \u2014 before extracting anything, compare \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift:193\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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe454806f959bb78572bd3a99f563715d139089e81b07537c75fc91e842d4b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Core/Network/AwesomeModels.swift:170-184 | Starcat/Core/Network/AwesomeModels.swift:408-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/AwesomeModels.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ea368fe31fd8d0c549a953a275c7e7e8b50627dc6d7d2e398d4643bc02d4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/AI/BatchAITagReviewRow.swift:352-366 | Starcat/Features/AI/BatchAITagReviewRow.swift:368-382 \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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3db1551e6fda2bc62429d1d5300e7555702e5176a5e7a02c90314746df1d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:513-527 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:541-555 \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 \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:513\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0ac38068f3677e42ff34cfe804ba43150b0bc933e7c3f97825b46aca61f079"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:988-1002 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1170-1184 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:988\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"69db03b1f3ee9ba10f7a86fd42be2057dbbfd4bdad116d4a69719260a890dcbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:55-69 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:68-81 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift:55\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift:53\u0060 calls \u0060frame\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:66\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdd4a966a68f67a52abe5546c475053d3d88abb1341884ee318aac31cdf0f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:401-415 | Starcat/Features/Home/RepoFileBrowserSheet.swift:767-781 \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 \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift:401\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":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc74e7d31cb031e60f8aa0390c820ed39a05a0edd7a629267871fa2e5a01b357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:562-576 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:524-538 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8527f304faafbe861e6e5aa864de9e552dea704c6700edac519d3a7f8c4b09f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Explore/ExploreView.swift:350-364 | Starcat/Features/Explore/ExploreView.swift:544-558 \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 \u0060Starcat/Features/Explore/ExploreView.swift:350\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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed77679ad56d5fce9ab2d66157c5b606d47d33bef7b84ec9976a190f07a48d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Home/BatchActionBar.swift:813-827 | Starcat/Features/Tags/RepoTagsSection.swift:366-380 \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 \u0060Starcat/Features/Home/BatchActionBar.swift:813\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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"28df18b25dd77060c4c49ce8b9b54f424433bf5f4ffcf0106fed0f152dd63329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Home/RepoHealthSheet.swift:311-325 | Starcat/Features/Home/RepoHealthSheet.swift:327-341 \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":"Starcat/Features/Home/RepoHealthSheet.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62e57323976468fe7971e9af42b6832122c2e7dd14d8b962a474cdbb43713c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:1447-1461 | Starcat/Features/Insights/RepositoryInsightsView.swift:2231-2245 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1447\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5403f0a808b46be6b2325d21ab62a50ad7e1ea1ec69830dfdcc78e906ed047d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift:267-281 | Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift:294-306 \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 \u0060Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift:267\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":"Starcat/Features/MCP/StarcatMCPLoopbackHTTPServer.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"742373f0934de46107cf18c03602f13032a31963d02921ca2df7bb7eb265e268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:966-980 | Starcat/Shared/Components/RemoteAvatar.swift:306-320 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:966\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2c32784c854ea87ea900f5436da3a1fa6a064711fc793de77cffa18dcf75aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1143-1156 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1280-1294 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1143\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6860ca1b6245a60e37fd198e69a091bbc585c5d660a13280cc6fc711fe5a62d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3490-3504 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3513-3527 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3490\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ef82d9b98edcb12d456d694e9fa42caa0c12f56b02b89dd36c74efcc89c75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:4034-4048 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:4058-4072 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:4034\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":4034}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d9813686ca69e5cc9ff1ac41717b520ffc4c746aec2bb5c9ebf0eaf548759e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1854-1868 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3826-3840 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1854\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e7a0d4cbd6293f9cadbbab001c93b8ca614a4997100ed35273ed79a8f20774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:195-209 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:217-231 \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 \u0060Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:195\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":"Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f894099f7a8e6e2a45e643affb85e6d8add257861b4f9d17f45c5d26dee263c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Settings/AISettingsView.swift:1100-1114 | Starcat/Features/Settings/AISettingsView.swift:1346-1360 \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 \u0060Starcat/Features/Settings/AISettingsView.swift:1100\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d58d96c605b599b9631f367dd76bfda8caf378fc17bd33777029d97620366a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Starcat/Features/Settings/AITaskPromptSheet.swift:113-126 | Starcat/Features/Settings/TranslationPromptSheet.swift:126-140 \u2014 before extracting anything, compare \u0060Starcat/Features/Settings/AITaskPromptSheet.swift\u0060 and \u0060Starcat/Features/Settings/TranslationPromptSheet.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060Starcat/Features/Settings/AITaskPromptSheet.swift:113\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AITaskPromptSheet.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7522014ab22e57091cc017758f1520ed1917133b9f3802f2b0ecc76dcd1e5ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Features/Settings/CodexRuntimeSettingsCard.swift:62-76 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:72-86 \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 \u0060Starcat/Features/Settings/CodexRuntimeSettingsCard.swift:62\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":"Starcat/Features/Settings/CodexRuntimeSettingsCard.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f37d5aec0415d4a05e8796d1c1c638a2ee6626e62468a5e3d7b444984cb8026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Starcat/Features/Settings/ExternalSearchSettingsSection.swift:184-197 | Starcat/Features/Settings/SettingsView.swift:796-810 \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 \u0060Starcat/Features/Settings/ExternalSearchSettingsSection.swift:184\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":"Starcat/Features/Settings/ExternalSearchSettingsSection.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a147c35fd5f1d99083aa1e6d79bd97ded0b8a769a8b86fd075f4d99318e8dff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Starcat/Features/Settings/GeneralSettingsView.swift:253-266 | Starcat/Features/Settings/SettingsView.swift:1225-1239 \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 \u0060Starcat/Features/Settings/GeneralSettingsView.swift:253\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":"Starcat/Features/Settings/GeneralSettingsView.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47a7dc7414130edc006bcc8145e0b27f1c386da7dd24f6d77c6af05fcf7732b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:99-113 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:105-119 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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 \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c32b9e3c2cda18add62f033f9c1050caa48cba24ea34730c432979e3d06b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): Starcat/Core/Network/RecommendAPI.swift:33-46 | Starcat/Core/Network/ShareAPI.swift:62-74 | Starcat/Core/Network/StarHistoryAPI.swift:121-133 | Starcat/Core/Network/TrendingAPI.swift:71-83 | Starcat/Core/Network/WeeklyAPI.swift:82-94 | Starcat/Core/Network/WikiAPI.swift:24-37 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Network/RecommendAPI.swift:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Network/ShareAPI.swift:82\u0060 calls \u0060JSONEncoder\u0060 and \u0060Starcat/Core/Network/RecommendAPI.swift:49\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/RecommendAPI.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcffdf1cd479948af6173605cc434959264e8430dea04f2046b4bc56daa02d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:197-210 | Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift:127-140 | Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:364-377 | Starcat/Features/Explore/DiscoveryDetailView.swift:114-126 | Starcat/Features/Home/RepoDetailView.swift:241-254 | Starcat/Features/Trending/TrendingScaffoldShell.swift:198-211 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:382\u0060 calls \u0060resolveRepo\u0060 and \u0060Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:215\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"686de154309b728fc49f5e755d5682dcfc42fe99ae8b15fd1ec40d4f2666d34e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Starcat/Core/Settings/AppSettings.swift:319-332 | Starcat/Core/Settings/AppSettings.swift:355-368 | Starcat/Core/Settings/AppSettings.swift:424-437 | Starcat/Core/Settings/AppSettings.swift:456-469 | Starcat/Features/AI/AIConfiguration.swift:1659-1672 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Settings/AppSettings.swift:319\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ffcc092d862b1d967ebfbabcb95ac206b57d7c900cb41937efaa13002292b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Starcat/Features/AI/ReadmeTranslationService.swift:391-405 | Starcat/Features/AI/ReadmeTranslationService.swift:454-467 | Starcat/Features/AI/ReadmeTranslationService.swift:498-512 | Starcat/Features/AI/ReadmeTranslationService.swift:628-641 | Starcat/Features/AI/ReadmeTranslationService.swift:676-690 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/AI/ReadmeTranslationService.swift:454\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":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2cf19bfd39770465f9c0fff0aa70e84e982ffcef04e079db27ee472067a879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1860-1873 | Starcat/Features/Home/RepoDetailView.swift:1320-1333 | Starcat/Features/Settings/TranslationSettingsView.swift:438-451 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. 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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"5304e5607022b71299bbb75c1b637ee93962ac28b0156969607c9ca810e40e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201314 lines \u00D7 3): Starcat/Features/Activity/WeeklyContentView.swift:491-497 | Starcat/Features/Trending/TrendingViewModel.swift:107-120 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:227-238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/WeeklyContentView.swift:491\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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, \u0060Starcat/Features/Trending/TrendingViewModel.swift:122\u0060 calls \u0060business\u0060 and \u0060Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:239\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ebd163f9a97736749a434663b8c69449dab61a9bbc0f6a5c0af0b228d8cd22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201314 lines \u00D7 4): Starcat/Features/CodeGraph/CodeFlowStorage.swift:678-679 | Starcat/Features/CodeGraph/CodeFlowStorage.swift:680-690 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:754-764 | Starcat/Shared/Services/RepoContextStorage.swift:933-946 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:678\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:677\u0060 calls \u0060contentsOfDirectory\u0060, \u0060where\u0060, \u0060resourceValues\u0060 and \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:676\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"431df912b19bf9a16eaef12701058421590dd525fd2f492264d0029215a4ce9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Starcat/Features/Insights/RepositoryInsightsView.swift:1442-1455 | Starcat/Features/Insights/RepositoryInsightsView.swift:1800-1813 | Starcat/Features/Insights/RepositoryInsightsView.swift:2541-2554 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1442\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1814\u0060 calls \u0060minimumScaleFactor\u0060 and \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1456\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"58895cdd60d4e9ae85c58484d2b3f84bc48b5c374e48bfed658fe62f442687ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:997-1010 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1026-1039 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1051-1064 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:997\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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c518470c8a45421de2b8a2366c129d621989c176cf30f1732edfdb4c3bf250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Starcat/Core/Download/RepoFileDownloader.swift:422-434 | Starcat/Core/Network/GitHubBlog/GitHubBlogRSSAPI.swift:53-66 \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 \u0060Starcat/Core/Download/RepoFileDownloader.swift:422\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":"Starcat/Core/Download/RepoFileDownloader.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a547f3fbec459b9ae3b58162c23137d446d16129f93f7741a5c065d9c97074a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Starcat/Core/Network/DiscoveryAPI.swift:277-289 | Starcat/Core/Network/StarcatEnvelope.swift:224-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Network/DiscoveryAPI.swift:277\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":"Starcat/Core/Network/DiscoveryAPI.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"42890abadfd356bf36c897639c8141f546e055960f3edc3d6884a28150e22729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/ReadmeHTMLAPI.swift:23-36 | Starcat/Core/Network/GitHubAPI/ReadmeHTMLAPI.swift:44-57 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeHTMLAPI.swift:23\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":"Starcat/Core/Network/GitHubAPI/ReadmeHTMLAPI.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ee7bbe25d43bce408a7ec7f5feb5f779d6989799882be1b2b570a3912e504e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/AI/ExternalSearchContextProvider.swift:157-170 | Starcat/Features/AI/ExternalSearchContextProvider.swift:201-214 \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 \u0060Starcat/Features/AI/ExternalSearchContextProvider.swift:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ExternalSearchContextProvider.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c668c39cd522147bef31490683c7af75ace769821bcf4ad32aec605a8d734f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1791-1804 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1858-1869 \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 \u0060Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1791\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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"652643927690740fe696bff377ffb5d442479db396be7a39af6f090afa63ccc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Activity/ActivityDetailView.swift:587-600 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:1660-1673 \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 \u0060Starcat/Features/Activity/ActivityDetailView.swift:587\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":"Starcat/Features/Activity/ActivityDetailView.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ccd1035d3d851083f0616fe203f8cfc43f90aee38cd7e443c96a9d7afadbea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): Starcat/Features/Activity/ActivityRepoDetailContent.swift:55-64 | Starcat/Features/Home/ManageDetailContent.swift:95-108 \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 \u0060Starcat/Features/Activity/ActivityRepoDetailContent.swift:55\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":"Starcat/Features/Activity/ActivityRepoDetailContent.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b190bdfad18dce25d149c7d3e791afe55842ad0e8675780250c462a090005ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1620-1633 | Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:361-374 \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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da81c0ea8e435060beb6e87de823add9cb776084f9c5e63ae83253326b3c548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:924-937 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1104-1117 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:924\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9baafb5451e250da002352e7288aabd52ca8c9d6b59a3e1f7cb269dd90e251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:183-196 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:101-114 \u2014 before extracting anything, compare \u0060Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea0b03f40ff893e49cef0725d29c69e92652df3371f1db690755881006e9f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Starcat/Features/Auth/AuthSession.swift:551-564 | Starcat/Features/Auth/AuthSession.swift:597-607 \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":"Starcat/Features/Auth/AuthSession.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"062d09d8cbf253b8e3b70726f86db94900049ec953d6785997264421cfa1c4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Home/BatchActionBar.swift:953-966 | Starcat/Features/Tags/RepoTagsSection.swift:430-443 \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 \u0060Starcat/Features/Home/BatchActionBar.swift:953\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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"d737e14ecd169e551eeee4517cfe06643ebb235b6643e763fae3ef3f9007b8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Home/OpenSSFScoreSheet.swift:161-174 | Starcat/Features/Home/RepoHealthSheet.swift:105-118 \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 \u0060Starcat/Features/Home/OpenSSFScoreSheet.swift:161\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":"Starcat/Features/Home/OpenSSFScoreSheet.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"572f969467b108b16eccb5c5d8bf3c58864565e1968460ac8a9ae6d4640e33ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Starcat/Features/Home/ReadmeViewModel.swift:522-533 | Starcat/Features/Home/ReadmeViewModel.swift:543-556 \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 \u0060Starcat/Features/Home/ReadmeViewModel.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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"05452cf20187d6d014936b4faa83fc83379c32b534ce7785315dee51d0359f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Home/RepoListView.swift:2792-2805 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:255-268 \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 \u0060Starcat/Features/Home/RepoListView.swift:2792\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0c79ea91a62afd416d3cd3eca3ad4816c5aad7a1f569297f2ee5c552ee4734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Insights/MyInsightsView.swift:1238-1251 | Starcat/Features/Insights/MyInsightsView.swift:1257-1270 \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 \u0060Starcat/Features/Insights/MyInsightsView.swift:1238\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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e29e525d5c7c753b8a7f5ee2a8e9a802fe005fc110f43aa052c26ff5877ef7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:47-60 | Starcat/Features/Settings/SettingsView.swift:2874-2887 \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 \u0060Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:47\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, \u0060Starcat/Features/Settings/SettingsView.swift:2891\u0060 calls \u0060VStack\u0060 and \u0060Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2a6f6c699b9975e36a1c8afa51ba3bbadba8cbe94904690ae00b12f08403c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:484-497 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:535-548 \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 \u0060Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:484\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, \u0060Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:533\u0060 calls \u0060frame\u0060 and \u0060Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:482\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"f325697208734b55d5575826a838046e8805d187c5ea235459bd7382f901d2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:856-869 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:986-999 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:856\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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae56844c7200be8bdfb01ada1a20da142590c20591cbead5b321535015534888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1672-1685 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1764-1777 \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 \u0060Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1672\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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adafa0876679e4dcba2a104c26c1e180270e63bd8516211f508c4852962776c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3386-3399 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3450-3463 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:3386\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":3386}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d18b4bdaae40490a9d325a85e89cd1fe28576e75502ec5a14d811f572cd642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:347-360 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:484-497 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:347\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.firstTextBaseline\u0060 in one and \u0060.leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:344\u0060 calls \u0060truncationMode\u0060 and \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:482\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e89797ba5f8df3e1f1a98e373b06dd7ef39e5c69fa8c40635663a26458bd718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:2039-2052 | Starcat/Features/Search/SearchCenterView.swift:2178-2191 \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 \u0060Starcat/Features/Search/SearchCenterView.swift:2039\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df641c2bc2d0aabb3107ea28cd48d9fe93991b0bcebef88171e6a6b1b437012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:189-202 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:193-206 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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 \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"062d5fb146868365bdade75696d9029be4c2134d071c78f4789d601a70417d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Starcat/Shared/Services/DiskIssueSummaryCache.swift:83-96 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:92-102 \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 \u0060Starcat/Shared/Services/DiskIssueSummaryCache.swift:83\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":"Starcat/Shared/Services/DiskIssueSummaryCache.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"864fb5f2124b71dc60fd1060dbc3c56030330931422d68323526b7a6db341ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:42-52 | Starcat/Core/Scheduling/ReadmePrefetchPoller.swift:49-59 | Starcat/Core/Scheduling/ReleasePoller.swift:75-87 | Starcat/Core/Scheduling/RepoHealthPoller.swift:49-59 \u2014 before extracting anything, compare \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift\u0060 and \u0060Starcat/Core/Scheduling/RepoHealthPoller.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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 \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060interval\u0060 to \u0060TimeInterval = OpenSSFScorePoller.defaultInterval\u0060 in one and \u0060TimeInterval = ReadmePrefetchPoller.defaultInterval\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":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"70463da93eb9b25d03b011db215ad21c6e1b95738c16edf1e0a991292b702fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:261-273 | Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:318-324 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift:261\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 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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a2501827d493ab675e12a950e104988ce306e3b44853a1286d717813f44839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Core/Subscription/DirectLicenseManager.swift:319-331 | Starcat/Core/Subscription/DirectLicenseManager.swift:350-362 \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 \u0060Starcat/Core/Subscription/DirectLicenseManager.swift:319\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":"Starcat/Core/Subscription/DirectLicenseManager.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ca46341c1e580448a6bf0b8ef1817213770e037d8a55d9c62a30817e226cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 2): Starcat/Core/Sync/RepoNoteRepository.swift:47-59 | Starcat/Core/Sync/RepoNoteRepository.swift:84-91 \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 \u0060Starcat/Core/Sync/RepoNoteRepository.swift:47\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":"Starcat/Core/Sync/RepoNoteRepository.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"799c57f657c2c2392f53e49c221ec51438470223118c79faea538b52d804e27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Features/AI/BatchAIQueueService.swift:2091-2103 | Starcat/Features/Home/HomeView.swift:2530-2542 \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 \u0060Starcat/Features/AI/BatchAIQueueService.swift:2091\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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"906b615344cd5fa5847b0e422f91f556775b9425f0de3dbee28c713465d15f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Starcat/Features/AI/BatchAITagReviewRow.swift:78-90 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:236-246 \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 \u0060Starcat/Features/AI/BatchAITagReviewRow.swift:78\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":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52595e4896fa19fc6ce293fa6d1cbe93346373065071a8b12bc428a295270b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Starcat/Features/AI/BatchAIWorkspaceView.swift:161-172 | Starcat/Features/Home/GitHubStarListAIGroupingSheet.swift:50-62 \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 \u0060Starcat/Features/AI/BatchAIWorkspaceView.swift:161\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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe685f30e5ff550a4a0704d633df57c46a1f9af5ae0fb280630ac95ea630133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): Starcat/Features/AI/ExternalSearchContextProvider.swift:45-53 | Starcat/Features/AI/ExternalSearchContextProvider.swift:72-84 \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 \u0060Starcat/Features/AI/ExternalSearchContextProvider.swift:45\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":"Starcat/Features/AI/ExternalSearchContextProvider.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea36060012c0d710ad735de1111724921be91ffef9ae1c39e18f1e41c9d102c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Starcat/Features/AI/RepoAIInsightService.swift:792-804 | Starcat/Features/AI/RepoAIInsightService.swift:1583-1594 \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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc9d212dbf945888b4254e8607178d11b49fe3e3bb668b7354dca6a4b0e47d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Features/Home/OpenSSFScoreSheet.swift:309-321 | Starcat/Features/Home/RepoHealthSheet.swift:575-587 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u00608\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":"Starcat/Features/Home/OpenSSFScoreSheet.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9a2f07c99a6c897ffcf2a6ef35f56e049e90cdee68c6e511c4be6ec5f25f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Features/Home/ReadmeSkeletonView.swift:28-40 | Starcat/Features/Home/ReadmeSkeletonView.swift:43-55 \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 \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006022\u0060 in one and \u006010\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:56\u0060 calls \u0060paragraphLine\u0060 and \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:41\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":"Starcat/Features/Home/ReadmeSkeletonView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f248781df06cedba085fba1b78bff03ea46e63a6e387b39ffbabaab10011c810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:600-612 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:863-875 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7927f290076a6ca613be42f4f37a0eaf5934ccf7f92c309e67b32f1467a8f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1415-1426 | Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1437-1449 \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 \u0060Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift:1415\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":"Starcat/Features/Insights/RepositoryInsightsRemoteProvider.swift"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba559cc1bc5f5311fbee4785bd180a7bad376aca34e652e86bdbe3cc6934d1fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1657-1669 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1749-1761 \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 \u0060Starcat/Features/RAG/Core/KnowledgeRAGService.swift:1657\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e752bc74c935303e091fd8d0c88b3d5a59a04f6e77e2de79c6e4595cb11cee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1378-1389 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1483-1495 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6078970f15ca041716f843b439a5de3595e0a5783a61bd4bf4c16b397218b8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3770-3782 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3788-3798 \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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":3770}}}],"partialFingerprints":{"codehealthFindingId/v1":"35640720bdae863a5661c1df933103756fd4375909a90aceeedc7a4a2fedca70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Starcat/Shared/Components/RepoDetailScaffold.swift:876-887 | Starcat/Shared/Components/RepoDetailScaffold.swift:892-904 \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 \u0060Starcat/Shared/Components/RepoDetailScaffold.swift:876\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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c00dec6e13fd2f9bb92716c69cf2e658d4d318358bf5207c4c67db08f301f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:153-165 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:157-169 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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 \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift:153\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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8f420bb332458ed4e08d335b10a378006a1f1522e9e86797e2ef331d37f82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift:63-75 | StarcatWidgets/Focus/StarcatFocusWidget.swift:54-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/CollectionTrend/StarcatCollectionTrendWidget.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe449a3f3b7e6aea7df9f52e22b2653bcb64e999bef03ccfdde0f0f792e7a4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): Starcat/Features/Settings/AISettingsView.swift:411-422 | Starcat/Features/Settings/AISettingsView.swift:936-947 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:55-66 | Starcat/Features/Settings/GeneralSettingsView.swift:63-74 | Starcat/Features/Settings/SettingsView.swift:714-725 | Starcat/Features/Settings/SettingsView.swift:825-836 | Starcat/Features/Settings/SettingsView.swift:986-997 | Starcat/Features/Settings/TranslationSettingsView.swift:84-95 \u2014 there are 8 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Settings/AISettingsView.swift:411\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, \u0060Starcat/Features/Settings/AISettingsView.swift:423\u0060 calls \u0060help\u0060, \u0060Text\u0060 and \u0060Starcat/Features/Settings/GeneralSettingsView.swift:75\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce7ed16f4eec9acf7145bd9625d31e1282772ce8a6748b8baa6a0a4f1e00c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): Starcat/Features/Settings/AISettingsView.swift:424-435 | Starcat/Features/Settings/AISettingsView.swift:949-960 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:68-79 | Starcat/Features/Settings/GeneralSettingsView.swift:75-86 | Starcat/Features/Settings/SettingsView.swift:726-737 | Starcat/Features/Settings/SettingsView.swift:837-848 | Starcat/Features/Settings/SettingsView.swift:998-1009 | Starcat/Features/Settings/TranslationSettingsView.swift:97-108 \u2014 there are 8 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Settings/AISettingsView.swift:424\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Settings/AISettingsView.swift:423\u0060 calls \u0060help\u0060, \u0060Text\u0060 and \u0060Starcat/Features/Settings/GeneralSettingsView.swift:74\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce5909fd92676135495f84f0c6d791e726efe4389f800e0d249ffc7f179401b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Core/Health/RepoHealthService.swift:265-276 | Starcat/Core/Sync/ReleaseMonitor.swift:233-244 | Starcat/Features/Releases/RepoReleaseSection.swift:365-376 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce7e35cfe33e117b4dd57a741ab82b37af80691d70670b4b324c842be5f94bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Core/Network/WeeklyAPI.swift:133-144 | Starcat/Core/Network/WeeklyAPI.swift:181-192 | Starcat/Core/Network/WeeklyAPI.swift:223-234 \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":"Starcat/Core/Network/WeeklyAPI.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbc365169e5f89ba9ba0c463add07ff02f12061b3097629d7efbe1982a4c9c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1401-1409 | Starcat/Features/Activity/GitHubNotificationInboxView.swift:193-201 | Starcat/Features/Home/RepoDetailView.swift:1296-1307 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:1401\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, \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:1411\u0060 calls \u0060focusEffectDisabled\u0060 and \u0060Starcat/Features/Activity/GitHubNotificationInboxView.swift:203\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"750ba8088d0736e5d7620fb1bc4c0e8e20c2fac0512c588b0c0eafa911b0eca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201312 lines \u00D7 4): Starcat/Features/Auth/AuthSession.swift:249-253 | Starcat/Features/Auth/AuthSession.swift:467-473 | Starcat/Features/Auth/AuthSession.swift:512-523 | Starcat/Features/Auth/AuthSession.swift:705-715 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Auth/AuthSession.swift:249\u0060 calls \u0060authenticated\u0060 and \u0060Starcat/Features/Auth/AuthSession.swift:705\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":"Starcat/Features/Auth/AuthSession.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a1e78a03f1fc84485d4e3dfb48a785e2ef8c0c1acc5d68c3a0f750c4e4256f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Features/Search/SearchCenterView.swift:2373-2384 | Starcat/Features/Tags/RepoTagsSection.swift:872-883 | Starcat/Shared/Components/TagChipFlowLayout.swift:23-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Search/SearchCenterView.swift:2373\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1e3a97e80308fa4d201ea3d47d75e553ab855e5273734fd2893949434278b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Shared/Components/CommonActionIconButtons.swift:55-66 | Starcat/Shared/Components/CommonActionIconButtons.swift:210-221 | Starcat/Shared/Components/CommonActionIconButtons.swift:247-258 \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. 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":"Starcat/Shared/Components/CommonActionIconButtons.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c08279b41b1a5922c2838b851bc3eb9ab16a5dd7f08d3f1980b8c33c0a53cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Shared/Services/DiskExternalSearchCache.swift:216-227 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:190-201 | Starcat/Shared/Services/DiskWikiCache.swift:350-361 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskExternalSearchCache.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"defa0804c34a2147ddbea1c892f1721795637e294b6e5888f001ec513df34e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): StarcatWidgets/Contributions/StarcatContributionProvider.swift:23-34 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:39-50 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:39-50 \u2014 before extracting anything, compare \u0060StarcatWidgets/Contributions/StarcatContributionProvider.swift\u0060 and \u0060StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StarcatWidgets/Contributions/StarcatContributionProvider.swift:23\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":"StarcatWidgets/Contributions/StarcatContributionProvider.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7984cdaf48e1b0045cd9e64b3c695a820eaa6859d593510f7de0af25c058504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Core/Network/TrendingAPI.swift:25-36 | Starcat/Core/Network/WeeklyAPI.swift:26-37 \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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e24d0759c6ba3d3057cdbbcea3ac1a0cd12ca17564fd86653aeed8430f6d5d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Core/Sync/GitHubNotificationInboxService.swift:567-578 | Starcat/Core/Sync/GitHubNotificationInboxService.swift:616-627 \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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43b18ae2b58c6b8134edbbcc8d7dfa92e4ff80f4ea93de1cb5487926f715cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Core/Sync/WeeklyBulkRepository.swift:195-206 | Starcat/Core/Sync/WeeklyBulkRepository.swift:248-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. 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":"Starcat/Core/Sync/WeeklyBulkRepository.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6137d3108c8a789f2eccc7296a30c7cb14f803243885eece206c169e7355e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/AI/BatchAIQueuePanel.swift:86-97 | Starcat/Features/Home/GitHubStarListAIGroupingSheet.swift:348-359 \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 \u0060Starcat/Features/AI/BatchAIQueuePanel.swift:86\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":"Starcat/Features/AI/BatchAIQueuePanel.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa41d5e9b064ff95a362019be9d92646d420f5687aa3c8b120fa2de87b7e17c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:296-307 | Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:572-582 \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 \u0060Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6c52d838a80ed616792ad49e0b1df583e1ba4005cdefe5e5d0fe98592391a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:229-240 | Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:502-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:229\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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7801ad5c55a6187d7c7dc24b5053abb22b4e88d126089c0ccc8adf667e22803e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Activity/ActivityViewModel.swift:1831-1842 | Starcat/Features/Activity/ActivityViewModel.swift:1859-1870 \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 \u0060Starcat/Features/Activity/ActivityViewModel.swift:1831\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bdeb58c19a5311bc68ebfbda403e4f97d3ae381b0b655860629096fafc3373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:547-558 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:576-587 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:547\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73b981acf70ca62b38e2b9a9df8b43d0712e6fb1a52612b6f43f24dbc7ba009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:92-103 | Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:131-142 \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":"Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ae58445104aaac00a83ea58cca87b6d03bad9a7283c282c53be2a669d1f848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:474-485 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:211-222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"40140967ffae2f8f3b5f5092abf417868f98f9ecb35b736b2fc82dd9cc5d0a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/Activity/WeeklyLanguageStore.swift:60-70 | Starcat/Features/Trending/TrendingLanguageStore.swift:131-142 \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 \u0060Starcat/Features/Activity/WeeklyLanguageStore.swift:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060api\u0060 to \u0060WeeklyAPI\u0060 in one and \u0060TrendingAPI\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":"Starcat/Features/Activity/WeeklyLanguageStore.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"050158c54ba444c32a80602b42d683aef9a330e4a33d0ccf68cf9dea85a13d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:281-292 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:630-641 \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 \u0060Starcat/Features/CodeGraph/CodeFlowViewModel.swift:281\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":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"004cbeedd278430c95042481eb7b0e1d5da7cba34ffbc72d016fe7f52311ce92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:305-316 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:415-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:305\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"119084e2292f7dc5cafc020ab22288fa500b3f94e33cf5450b7f931863ed741e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Home/HomeViewModel.swift:3968-3979 | Starcat/Features/Home/HomeViewModel.swift:3984-3995 \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 \u0060Starcat/Features/Home/HomeViewModel.swift:3968\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":3968}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b84f196d0e8582bb3ab0d0abdd946eabbfef61c29698971ac0c7c2251b5ed87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Starcat/Features/Home/ReadmeViewModel.swift:341-349 | Starcat/Features/Home/ReadmeViewModel.swift:534-545 \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 \u0060Starcat/Features/Home/ReadmeViewModel.swift:341\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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"210eb9ec4c09e2d18529c1a5561def8a1b56ade09b2b3a6bca4a10ec69ae8759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): Starcat/Core/Widget/WidgetSnapshotBuilder.swift:250-258 | Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:548-559 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:828-837 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Widget/WidgetSnapshotBuilder.swift:250\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Widget/WidgetSnapshotBuilder.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c467c471e4b04254cf9e889c4160bb65014e13b1cc30df151ed969c6a4e9d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/Insights/MyInsightsView.swift:316-327 | Starcat/Features/Insights/MyInsightsView.swift:671-681 \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 \u0060Starcat/Features/Insights/MyInsightsView.swift:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.leading\u0060 in one and \u0060.center\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":"Starcat/Features/Insights/MyInsightsView.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f65c0f2fac424786dcdfe7ad86c3497d3de05e7b79f364042f3a073a9281c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:2936-2946 | Starcat/Features/Insights/RepositoryInsightsView.swift:3080-3091 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:2936\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":2936}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16e0d870c709f3e4f161d9f8d78662141b11502caf11cd2bc0024ee81f0d74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPToolRegistry.swift:313-323 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:362-373 \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 \u0060Starcat/Features/MCP/StarcatMCPToolRegistry.swift:362\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1481e9c20c20d0c8877b37b1673fe919600d01bbc56f87ab0349ded040667a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:517-528 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:553-564 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:517\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"476caf8daf0dae04b14bbf2b2a81f98327fd956b331fd313bc76430a1bba6252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:316-327 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:603-614 \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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca6f795d906d11696930cb29f7ccd9c69b99931182d7d1acfc00c48ed68dd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift:101-112 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1415-1425 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift:101\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4c425ae9ea4432fe708f163c177784550b67dc888a5e98cc4862e1c39151e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:980-992 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:1075-1086 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4117e64c110af011d01761c54ac7a9691af19e368b7d4f86b5cfe3ea612ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:54-65 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:134-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:54\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":"Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf01f0345e3abffd391d1511616ec1412d87cc76a8117bf8138cbfa773375c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Settings/AISettingsView.swift:1072-1083 | Starcat/Features/Settings/AISettingsView.swift:1314-1325 \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 \u0060Starcat/Features/Settings/AISettingsView.swift:1072\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdd58e85c7902fe1a3eabdbfd504fcb5791476f3aabb3ff13306880a934523a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Shared/Components/CommitHashLink.swift:95-106 | Starcat/Shared/Components/CommitHashLink.swift:109-120 \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":"Starcat/Shared/Components/CommitHashLink.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c79b3fa56bddaac5d67912e8f8f54483a9101468041f88c882587eb558c44b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Shared/Components/EmptyStateView.swift:121-132 | Starcat/Shared/Components/EmptyStateView.swift:149-160 \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 \u0060Starcat/Shared/Components/EmptyStateView.swift:121\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":"Starcat/Shared/Components/EmptyStateView.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2459e3fdb72b39e35d597bfe0e78bf69122e470e827a6f426d53bae74d8e29d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201312 lines \u00D7 5): Starcat/Shared/Services/DiskChatHistoryStore.swift:760-762 | Starcat/Shared/Services/DiskChatHistoryStore.swift:872-883 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:256-258 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:315-317 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:379-390 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:760\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c327fa3df919d5c3007da1416e8ee19f9007549de953986570726d4188b663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:250-261 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:254-265 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"960d6ae3e6063053cae90d5693925a5261e984593573ee3d1bc02b103ee4edfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Agents/Core/AgentKnowledgeTool.swift:174-184 | Starcat/Features/Agents/UntaggedTidy/UntaggedTidyAgentTools.swift:300-310 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:213-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/Core/AgentKnowledgeTool.swift:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentKnowledgeTool.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a57d8419461a2f01d9d2df81c84b31ce3e64f8063a311d0edaab2777b15e777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:180-190 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:98-108 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:169-179 \u2014 before extracting anything, compare \u0060Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:180\u0060 calls \u0060joined\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:192\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a8b56b0ddc787b3bc146d4198ffb57271337872123d8b29f57851749188b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:201-211 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:237-247 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:273-283 \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":"Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"11214b04897f60716ead5859494a2280975d515d769f074d79a2c313d5285a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Home/ReadmeViewModel.swift:467-479 | Starcat/Features/Home/ReadmeViewModel.swift:523-533 | Starcat/Features/Home/ReadmeViewModel.swift:544-555 \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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7692641aad457a49202e0bfa759d285e85fcb121054679318edda132abf761da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:69-79 | Starcat/Features/Settings/SettingsView.swift:2897-2907 | Starcat/Features/Settings/SettingsView.swift:3042-3052 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift:83\u0060 calls \u0060VStack\u0060 and \u0060Starcat/Features/Settings/SettingsView.swift:2909\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/AppStoreToDirectImportSheet.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"35af1dbbe68cb08f7e2f150803ef2c63b23b06484d7c0f8120e55c201cea7eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:285-294 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:382-391 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:539-549 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:285\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd7f73e1d79df6117301655b1b42d84471fb7456c8f284ad0b0ce352c25e04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:591-601 | Starcat/Features/Settings/AIModelManagementSheet.swift:72-82 | Starcat/Features/Settings/AITaskPromptSheet.swift:89-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:591\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"5009c6d0eb0b96534ec4621887b6b48b41079354ef7331b75ec856586e96cb7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Settings/AIModelManagementSheet.swift:71-81 | Starcat/Features/Settings/AITaskPromptSheet.swift:88-98 | Starcat/Features/Settings/TranslationPromptSheet.swift:90-100 \u2014 before extracting anything, compare \u0060Starcat/Features/Settings/AITaskPromptSheet.swift\u0060 and \u0060Starcat/Features/Settings/TranslationPromptSheet.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060Starcat/Features/Settings/AIModelManagementSheet.swift:71\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":"Starcat/Features/Settings/AIModelManagementSheet.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f6b18ec04443cc8d9d7a8815c1786ce4e2ef88a68b78a56199162adc0c87a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Starcat/Features/Settings/SettingsView.swift:703-713 | Starcat/Features/Settings/SettingsView.swift:814-824 | Starcat/Features/Settings/SettingsView.swift:975-985 \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 \u0060Starcat/Features/Settings/SettingsView.swift:703\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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5531caf1b0d542f4ffa9e8fe85fffff2141062ca1ce7637d58eb493a4bddeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/App/StatusBarController.swift:220-230 | Starcat/Features/Settings/IntegrationSettingsView.swift:421-431 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/App/StatusBarController.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6627a2fb3f3712fde868dfeddb1df78651bef36fb6bd1534e4852fdf5508928b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Starcat/Core/Download/ReleaseAssetDownloader.swift:167-177 | Starcat/Core/Download/RepoFileDownloader.swift:312-320 \u2014 before extracting anything, compare \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift:167\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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa584598c26d9ef8bb02e5f630fb4fd5e4e760ad8db5a846f85cc6e694c72f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Health/RepoHealthService.swift:197-207 | Starcat/Features/Releases/RepoReleaseSection.swift:277-287 \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 \u0060Starcat/Core/Health/RepoHealthService.swift:197\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":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fcba60971ae0a689544126025f1de8eedd5ee635a16dcb4b2683e2a36216c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Health/RepoHealthService.swift:192-202 | Starcat/Core/Sync/ReleaseMonitor.swift:185-195 \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 \u0060Starcat/Core/Health/RepoHealthService.swift:192\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":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"374f4edd1938ed9d931557ed4068ed2b344454e2423426e64ee9e4ad9fb523b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:553-564 | Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:595-605 \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 \u0060Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift:553\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":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df8e8f0205a0abe20761703360ed48ac48ce71ccb21b1b2343be655150f2f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Network/ServiceAvailabilityMonitor.swift:75-85 | Starcat/Core/Network/ServiceHealthChecker.swift:238-249 \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":"Starcat/Core/Network/ServiceAvailabilityMonitor.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5a8b81ce12424d6eddc451ccec831f2fcc3bbb199c9a01962f7acd92bab8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 4): Starcat/Core/RAG/RAGChunkRepository.swift:494-497 | Starcat/Core/RAG/RAGChunkRepository.swift:558-568 | Starcat/Core/RAG/RAGChunkRepository.swift:581-591 | Starcat/Core/RAG/RAGChunkRepository.swift:602-605 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/RAG/RAGChunkRepository.swift:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/RAG/RAGChunkRepository.swift:556\u0060 calls \u0060idBatches\u0060, \u0060Array\u0060, \u0060joined\u0060 and \u0060Starcat/Core/RAG/RAGChunkRepository.swift:602\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86b45627977e830a3da4b0146f039746c4ab7a91fe84546fb510f612c4cb189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift:90-100 | Starcat/Core/Widget/WidgetRefreshCoordinator.swift:63-73 \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 \u0060Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift:90\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":"Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"094d9e752f125e983c894a179c0c6e60dafe44bfa3639acddb2cb47074988638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowContentView.swift:765-775 | Starcat/Features/AI/RepoAIWindowContentView.swift:990-1000 \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 \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:765\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"38735abd1be61ce05ea05d1edf877981be6675f949d5c6160cf9bf72b2605595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowContentView.swift:2222-2232 | Starcat/Features/AI/RepoAIWindowContentView.swift:2248-2258 \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 \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:2222\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1252b88d76fb3026edb0dc609f3278c0a942e0a17f89b5bbaefee6ae4335581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1607-1617 | Starcat/Features/Activity/GitHubNotificationIssueTimelineConversation.swift:348-358 \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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a9185214900d9c217ac3a37634d8b178ee9b3828f78dd12e1db701b3a3355f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationInboxView.swift:508-517 | Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:200-210 \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 \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift:200\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":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fd61c8d9ceb418c5e2c3745af9557f49c33074363d327b09248869afb86f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift:101-111 | Starcat/Shared/Components/RepoDetailNoSelectionPlaceholder.swift:88-98 \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 \u0060Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift:101\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 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":"Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ede7b828f5b8aa90afc9f9ab6fdac33e6a8d22273186a6c8cb927225460a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:787-797 | Starcat/Features/Trending/TrendingView.swift:563-573 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"551b95c40d22bc842ea2c5b0a4589dfa5a59c3c7d169d40c1d8abe55deb878e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:1284-1294 | Starcat/Features/Activity/WeeklyContentView.swift:1503-1513 \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 \u0060Starcat/Features/Activity/WeeklyContentView.swift:1284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb152df2e59c1a53707e79edc218c059e3ea86dce30243867b0da4fa9329c2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/WeeklySourceEventsSection.swift:49-59 | Starcat/Features/Explore/AwesomeDetailView.swift:73-83 \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 \u0060Starcat/Features/Activity/WeeklySourceEventsSection.swift:49\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":"Starcat/Features/Activity/WeeklySourceEventsSection.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"61482a491815791562dcdf30ea5494cc0af12463c0b102e03b66496300de28f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:264-274 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:348-358 \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 \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:264\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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1247cb8219fc043a722dac3b8eb26b4461b3357c3e7afdcbef0fab1b87a1934f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:465-475 | Starcat/Shared/Services/RepoContextStorage.swift:717-727 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060removed\u0060 to \u0060CodeFlowStoredProject?\u0060 in one and \u0060RepoContextStoredProject?\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"c521fb3a0c0b9f82b26b51bcdcc63849c3f360ea1d9577d8f68768703ff56c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:419-429 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:672-682 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:414\u0060 calls \u0060Pipe\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:670\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c77e3cf1302409d8559d46b830c0006c78fc5dca6bc98c29933f38117e903e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Collections/SmartCollectionRuleSummary.swift:403-413 | Starcat/Features/Collections/SmartCollectionRuleSummary.swift:419-429 \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 \u0060Starcat/Features/Collections/SmartCollectionRuleSummary.swift:403\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 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":"Starcat/Features/Collections/SmartCollectionRuleSummary.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbd967b237c2f469de6ba28cfdc3a1b9dacfb037a4bbf68d8012a6e7d6e5384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Home/ReadmeSkeletonView.swift:43-53 | Starcat/Features/Home/ReadmeSkeletonView.swift:75-85 \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 \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:72\u0060 calls \u0060paragraphLine\u0060 and \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:40\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/ReadmeSkeletonView.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd0b7aec59141b9026b4235cccbd86532670559f78a4eceb5b8ae1434337610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Starcat/Features/Home/RepoListView.swift:2687-2697 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:187-195 \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 \u0060Starcat/Features/Home/RepoListView.swift:2687\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2687}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ba9a49e453fe60596a6a89e567735fe10a0f1bc0fe95ca9de2b1824f9fcd81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Home/RepoListView.swift:2760-2770 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:227-237 \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 \u0060Starcat/Features/Home/RepoListView.swift:2760\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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4c4d4c0a441ceed7ff2283715092b1d8e0c9703e93aa53b51d0120b1153134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Starcat/Features/Home/RepoMetadataHeaderView.swift:630-639 | Starcat/Shared/Components/RepoDetailScaffold.swift:572-582 \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 \u0060Starcat/Shared/Components/RepoDetailScaffold.swift:572\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5f670301d74c744a2de29b89efeff683091ad322149476cb20457b0cb44e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Home/SidebarView.swift:1674-1684 | Starcat/Features/Home/SidebarView.swift:2718-2728 \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 \u0060Starcat/Features/Home/SidebarView.swift:1674\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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcff900ce30aa8883d757d1097f8d5adbb27a99fe29d0e4cb7e61964c9d26828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Insights/InsightsCardIllustration.swift:235-245 | Starcat/Features/Insights/InsightsCardIllustration.swift:262-272 \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 \u0060Starcat/Features/Insights/InsightsCardIllustration.swift:235\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":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"560a14dbabb8f8bbaab6a9ae19d607d1e18c5f380a77bf16d25686052035bd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:833-843 | Starcat/Features/Insights/RepositoryInsightsView.swift:884-894 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:833\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, \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:832\u0060 calls \u0060foregroundStyle\u0060 and \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:883\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfa26d8e7e50ff55900b8364e9b04b725cca3f780c1acbffd597f78787fdb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/MCP/MCPSettingsView.swift:565-575 | Starcat/Features/Settings/IntegrationSettingsView.swift:744-754 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a743124f1c8f01daa46cb78c32a5541c159ca1c3e5012582eb416442a9d091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:92-102 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:184-194 \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":"Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc8d38fca93041cf55750cc81f337d1dc047cb1746d3a451f13521496bc98b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift:104-114 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:196-206 \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":"Starcat/Features/RAG/UI/RAGMetadataSectionHelp.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d8a3b60bd180b34b356f6361b5271de535f0bb26e03e3799ea7a0f1326202a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2983-2993 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3083-3093 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2983\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2983}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcdb94c5a1b4dcb09221fd7bc0a9c26386584f03ecf68e14df9d380db686f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:206-216 | Starcat/Features/Tags/RepoTagsSection.swift:323-333 \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 \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:206\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, \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:218\u0060 calls \u0060padding\u0060 and \u0060Starcat/Features/Tags/RepoTagsSection.swift:335\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c068631324ac34449302553a3ac65ca1f764aac13683f0d462d32777e65d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Starcat/Features/Settings/AISettingsView.swift:782-792 | Starcat/Features/Settings/TranslationSettingsView.swift:326-335 \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 \u0060Starcat/Features/Settings/AISettingsView.swift:782\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccaef078cc6a773f311e8a745daa255f2ad4444f9e4af2ba2c36fd47ba70393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Settings/AISettingsView.swift:987-997 | Starcat/Features/Settings/AISettingsView.swift:1136-1146 \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 \u0060Starcat/Features/Settings/AISettingsView.swift:987\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"f929c759fe09940db7873d53e7da4b66c5d704ef6502dd1f4c9b4262faffa654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.swift:204-214 | Starcat/Shared/Components/ImagePasteTextEditor.swift:255-265 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a8dd64735e6552705c1a62d27a440c51ffceb7154e94571697ca6f330fd04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Shared/Components/EmptyStateView.swift:229-239 | Starcat/Shared/Components/EmptyStateView.swift:240-250 \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 \u0060Starcat/Shared/Components/EmptyStateView.swift:229\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":"Starcat/Shared/Components/EmptyStateView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb5cb4e1fc038672963fe24087e4d40050b5485f9ed6dbea0c5d6a3c3400df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Shared/Components/RepoDetailScaffold.swift:323-333 | Starcat/Shared/Components/RepoDetailScaffold.swift:352-362 \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 \u0060Starcat/Shared/Components/RepoDetailScaffold.swift:323\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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b4ec873c1c4ce351809338446c5b887598e701e96b91c5e955c6f369f71920"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Starcat/Shared/Services/RepoContextStorage.swift:377-387 | Starcat/Shared/Services/RepoContextStorage.swift:513-522 \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 \u0060Starcat/Shared/Services/RepoContextStorage.swift:377\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":"Starcat/Shared/Services/RepoContextStorage.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a23bec3fd3a3ecc026822a508856bff0bc386fe95a19708e285822c1f0cd8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StarcatWidgets/Contributions/StarcatContributionHeatmapWidgetView.swift:29-40 | StarcatWidgets/Contributions/StarcatContributionRadarWidgetView.swift:25-35 \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 \u0060StarcatWidgets/Contributions/StarcatContributionHeatmapWidgetView.swift:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Contributions/StarcatContributionHeatmapWidgetView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b8b851ba913047c5fc731a634ddfe42fed96247beb8f0cd6543901fc7d20fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): StarcatWidgets/Shared/StarcatWidgetTimeline.swift:160-170 | StarcatWidgets/Shared/StarcatWidgetTimeline.swift:172-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060StarcatWidgets/Shared/StarcatWidgetTimeline.swift:160\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Shared/StarcatWidgetTimeline.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24d8b7b9bb7b749bc1e32258c81c174fff2e8ce5fcd69201017f8d578e4dbe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 10): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:373-380 | Starcat/Features/Settings/AISettingsView.swift:409-418 | Starcat/Features/Settings/AISettingsView.swift:934-943 | Starcat/Features/Settings/ExternalSearchSettingsSection.swift:53-62 | Starcat/Features/Settings/GeneralSettingsView.swift:61-70 | Starcat/Features/Settings/SettingsView.swift:712-721 | Starcat/Features/Settings/SettingsView.swift:823-832 | Starcat/Features/Settings/SettingsView.swift:984-993 | Starcat/Features/Settings/TranslationSettingsView.swift:82-91 | Starcat/Shared/Components/SettingsPageIntroduction.swift:24-33 \u2014 there are 10 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 10 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:373\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"353ede610ee5479ed50555981351360fb0f291cc7f1e6e6c64bc98c2cc3aa288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Starcat/Features/Home/GitHubStarListSidebarRow.swift:111-120 | Starcat/Features/Home/SidebarView.swift:1783-1792 | Starcat/Features/Home/SidebarView.swift:1800-1809 | Starcat/Features/Home/SidebarView.swift:1857-1866 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Home/GitHubStarListSidebarRow.swift:111\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":"Starcat/Features/Home/GitHubStarListSidebarRow.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d059dc24bd47ac46ff7d75e3861b7579eac1d6518a8943ac38ee51b3365da344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift:492-501 | Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:506-515 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1369-1378 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:4293-4302 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. 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":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ba379d326369bb2309d5bee1136bbfcc386e6f93c5bebc61d688ad0fa1ea8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Starcat/Shared/Components/CommonActionIconButtons.swift:54-63 | Starcat/Shared/Components/CommonActionIconButtons.swift:169-178 | Starcat/Shared/Components/CommonActionIconButtons.swift:209-218 | Starcat/Shared/Components/CommonActionIconButtons.swift:246-255 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Shared/Components/CommonActionIconButtons.swift:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Shared/Components/CommonActionIconButtons.swift:179\u0060 calls \u0060pressableHover\u0060 and \u0060Starcat/Shared/Components/CommonActionIconButtons.swift:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/CommonActionIconButtons.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fc5f69345d815d8013f3eaa5ab2f0d4e52d4638d8f3c2ff8759192ae822dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 4): Starcat/Core/Download/RepoFileDownloader.swift:159-168 | Starcat/Core/Download/RepoFileDownloader.swift:339-348 | Starcat/Core/Download/RepoFileDownloader.swift:392-401 | Starcat/Features/CodeGraph/CodeFlowRunner.swift:112-114 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowRunner.swift:112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Download/RepoFileDownloader.swift:155\u0060 calls \u0060url\u0060, \u0060repoGitBlob\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift:391\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Download/RepoFileDownloader.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f633ab12bc7a02b3d39528aeb3b2a0016ad1c7b8b43b06f6ad66e0e63de9058f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/AI/RepoAIWindowContentView.swift:1815-1824 | Starcat/Features/AI/RepoAIWindowContentView.swift:2044-2053 | Starcat/Features/AI/RepoAIWindowContentView.swift:2073-2082 \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 \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:1815\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"6816b5f9aa95b3f2df932fb4bdedd6fcf04e8fc39f33d888b3770dbbf2900f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/Activity/WeeklyContentView.swift:219-228 | Starcat/Features/Explore/ExploreView.swift:435-444 | Starcat/Features/Trending/TrendingView.swift:506-515 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/WeeklyContentView.swift:219\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0172962d7756e3081f8228a17c5d004c68e2f459764d132d1813deb5ab25ad39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1141-1148 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1167-1174 | Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1233-1242 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1141\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b0b1151e971c4d0b1180a038c6d7db862b444befa69010a3d5e25e49265579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:300-309 | Starcat/Features/CodeGraph/CodeFlowStorage.swift:316-324 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:365-374 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:300\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060metadata\u0060 to \u0060CodeFlowMetadata\u0060 in one and \u0060CodebaseMemoryMetadata\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:297\u0060 calls \u0060appendingPathComponent\u0060, \u0060write\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:364\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d433807449ed0f8beaaf6b81bc90b91a3c60d1ed2e6b151b3f02b616d760af3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/Collections/SmartCollectionMultiSelectField.swift:73-82 | Starcat/Features/Search/SearchCenterView.swift:2047-2056 | Starcat/Features/Search/SearchCenterView.swift:2186-2195 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Collections/SmartCollectionMultiSelectField.swift:73\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":"Starcat/Features/Collections/SmartCollectionMultiSelectField.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"859ae37e6ff025d07cfc4a420adad601de2c3fa19bbfd9495c110e37b1315620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/Explore/AwesomeView.swift:129-138 | Starcat/Features/Explore/ExploreView.swift:334-343 | Starcat/Features/Explore/LinuxDoView.swift:112-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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Explore/AwesomeView.swift:129\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":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"948c13410388d1ca6404a3d1d3101d365912658438e790a67962be462273d650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2776-2785 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2852-2861 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2929-2938 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2776\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2776}}}],"partialFingerprints":{"codehealthFindingId/v1":"470a8e32a9ae52b37a40b4b2b5626d5a1f703aba74549bfca01d0a5876ba3637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3412-3421 | Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:214-223 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:365-374 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3412\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3412}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb745a68963fa6cd0928f063a53b1bc76cf87339f4a9b16901c8cf4d8673418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:444-453 | Starcat/Features/Settings/AITaskPromptSheet.swift:116-125 | Starcat/Features/Settings/TranslationPromptSheet.swift:129-138 \u2014 before extracting anything, compare \u0060Starcat/Features/Settings/AITaskPromptSheet.swift\u0060 and \u0060Starcat/Features/Settings/TranslationPromptSheet.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift:444\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":"Starcat/Features/RAG/UI/RAGWorkspaceSettingsView.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab70f83b381f1377ecf589885b1c3f65ab8f17705b5dc2d54e750cc553c5c740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Core/Health/RepoHealthService.swift:120-129 | Starcat/Core/Health/RepoHealthService.swift:148-157 \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 \u0060Starcat/Core/Health/RepoHealthService.swift:120\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":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e4c312aef925fab520da9957aa9906eec91e56eb084a20c9595ff838827ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Core/Network/TrendingAPI.swift:219-229 | Starcat/Core/Network/WeeklyAPI.swift:307-317 \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 \u0060Starcat/Core/Network/TrendingAPI.swift:219\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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c560b4cc0bfced23fe9765d9fcfeebd14174e8b7fef9e4d0c381193fcb8f9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Core/Sync/DiscoveryRepository.swift:101-110 | Starcat/Core/Sync/WeeklyBulkRepository.swift:197-206 \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 \u0060Starcat/Core/Sync/DiscoveryRepository.swift:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/DiscoveryRepository.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"488cfbea1860c6d3bc7a70ce14481afedd08aa2984d7dc440e8cbef209b0ebcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Starcat/Features/AI/AIChatInputView.swift:362-368 | Starcat/Features/RAG/UI/RAGStreamingPlainTextView.swift:293-302 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/RAG/UI/RAGStreamingPlainTextView.swift:292\u0060 calls \u0060applyReasoningAppearance\u0060 and \u0060Starcat/Features/AI/AIChatInputView.swift:361\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/AIChatInputView.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"37493f1adce0ca1b37c24ce178d54d1d7cd03c57b320b937f3ea826496ad21e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/AI/LocalAI/LocalMLXClient.swift:166-175 | Starcat/Features/RAG/Core/LocalMLXRAGReranker.swift:61-70 \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 \u0060Starcat/Features/AI/LocalAI/LocalMLXClient.swift:166\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":"Starcat/Features/AI/LocalAI/LocalMLXClient.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"20688782edbb6a4d8208430cdc55acdd54fb4d163cad937a1eaa3c058b50e09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/AI/RepoAIInsightService.swift:1390-1399 | Starcat/Features/AI/RepoAIInsightService.swift:1420-1429 \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 \u0060Starcat/Features/AI/RepoAIInsightService.swift:1390\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f14e9c6bd1113d3ade2b07f70384732e526c148fbc8d127733d2d89e5e5ad0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowContentView.swift:2005-2014 | Starcat/Features/AI/RepoAIWindowContentView.swift:2305-2314 \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 \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:2005\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f040b7aa6d24c7da828510695a773cca08af12c345ddc1d9ff2a8d5c6d28d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:2995-3004 | Starcat/Features/Home/RepoFileSourcePreview.swift:73-82 \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 \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:2995\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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fea19f2ca5d521d5068842732d97d01c4bf59ea2d624c48a958dfbdec86fdcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:133-142 | Starcat/Features/Explore/DiscoveryDetailView.swift:72-79 \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 \u0060Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:133\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"386f4821f4d1321becac61e299c2f686c1cd28c8966a66f11b48ac4c8ee722c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:250-259 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:308-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:250\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, \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:248\u0060 calls \u0060Spacer\u0060 and \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:306\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d852a24965953d6aa810cfb1d100e54a7a6b7cb393b7bd8fa3fd85cdac732cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1012-1021 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:370-379 \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 \u0060Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1012\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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"281cab8ce131dbd81580fedf633fd55049d9cfb4ae28f865f7f0c90698128a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:385-394 | Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:403-412 \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 \u0060Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:385\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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1868c28b89df9627fff5fe34ce971a64ac7ebf84462600e332ae883339f023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Auth/GithubAuthView.swift:366-375 | Starcat/Features/Auth/GithubAuthView.swift:518-527 \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":"Starcat/Features/Auth/GithubAuthView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee1f6e0c835c55aee1a399177711034cd598061eeef046c1d67a49d17d9049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:440-449 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:661-670 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060newProject\u0060 to \u0060CodeFlowStoredProject\u0060 in one and \u0060CodebaseMemoryStoredProject\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"937bd033965bc0f03c2e87e31e3ff910b7335735ea9c9711e8166880369e7704"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Home/AppStatusToolbarButton.swift:493-502 | Starcat/Features/Home/LocalAIStatusSection.swift:96-105 \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 \u0060Starcat/Features/Home/AppStatusToolbarButton.swift:493\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":"Starcat/Features/Home/AppStatusToolbarButton.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"05779946c66214a7bebb3f15646c9d34a9eeddbee889fa72c466336a213e8e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Home/ReadmeSkeletonView.swift:62-71 | Starcat/Features/Home/ReadmeSkeletonView.swift:77-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Home/ReadmeSkeletonView.swift:62\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":"Starcat/Features/Home/ReadmeSkeletonView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"962b488fa33638cc5d9394768005ea725f936d75f2fc504be856e183976d19fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:2305-2314 | Starcat/Features/Insights/RepositoryInsightsView.swift:3392-3401 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:2305\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":2305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc8ecc3fe76e9c1aaed4a669d4da4aaf77fb92506a1aaf8f280edf933daa554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Starcat/Features/MCP/MCPSettingsView.swift:412-421 | Starcat/Features/Settings/SettingsView.swift:792-800 \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 \u0060Starcat/Features/MCP/MCPSettingsView.swift:412\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":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7d7c7d57332bc00d7eac07bcd60fab4cce3163635e88108a0bfac6441831a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:349-358 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:380-389 \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 \u0060Starcat/Features/MCP/StarcatMCPWriteFacade.swift:349\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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"110b25622114bfd102b2c372206cbbafbe7fb4c3e865e4aafb277de6726b3a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:437-446 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:503-512 \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 \u0060Starcat/Features/MCP/StarcatMCPWriteFacade.swift:437\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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb15da3ff2a81cb54014db7f5f58a66921c87485c5c43b912e97be7b3b4bb6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPWriteFacade.swift:442-451 | Starcat/Features/MCP/StarcatMCPWriteFacade.swift:475-484 \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 \u0060Starcat/Features/MCP/StarcatMCPWriteFacade.swift:442\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":"Starcat/Features/MCP/StarcatMCPWriteFacade.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"359e4c53a43b1a1df9d611fb7d275307cb3866106a24b8965253372b640e6212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:525-534 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:551-560 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9f2bb0a32c9d5afb6dc8cf9138c74aabfd056a6ea5ca8a12130570d7530c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:191-200 | Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:644-653 \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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadf93e94454b6840911eb384f265f38e4d5d537cbe89bde71358e139d7090e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:361-370 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:545-551 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:361\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":"Starcat/Features/Profile/ShareCard/ShareCardSheet.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8230ef62b1b472f9e3b344a05ef0ebc1088ba194b1551215cde740c4e321a3f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Starcat/Features/Profile/SnakeAnimator/HilbertSnakeAnimator.swift:100-107 | Starcat/Features/Profile/SnakeAnimator/HilbertSnakeAnimator.swift:113-122 \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 \u0060Starcat/Features/Profile/SnakeAnimator/HilbertSnakeAnimator.swift:100\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":"Starcat/Features/Profile/SnakeAnimator/HilbertSnakeAnimator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeea26232b5aba7fb1cce3a52f691f06c2c3e0dd4a0406b82832c7bf52490f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:305-314 | Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift:592-601 \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":"Starcat/Features/RAG/Core/RAGExternalSearchProviders.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b859c3b175d243d76c004b1057a71b078610e23fb43e32bd2a327e1143a8c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2844-2850 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2918-2927 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2844\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72e7bd241337cdfc5639f68566a456fdc64ae060103706c8fc2951270593396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3227-3236 | Starcat/Features/RAG/UI/RepositoryInsightsXMLViewer.swift:73-81 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3227\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9764443d92ba2ac50067e13b3ac7fa27797fff0cd700dc5dbac04995f708283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:251-260 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRow.swift:118-128 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:251\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":"Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c064f6ed15b21aa6e2854231ec36926753a42834d06942a0f711ec9d90d2da8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2203-2212 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2248-2256 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2203\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.leading\u0060 in one and \u0060.firstTextBaseline\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9108da97a9738d5e86afa438a046542937f6b9626719cbcbdda5cfc6b2bd138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:582-591 | Starcat/Shared/Components/CountedSegmentedControl.swift:57-66 \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 \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:582\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, \u0060Starcat/Shared/Components/CountedSegmentedControl.swift:67\u0060 calls \u0060help\u0060, \u0060Text\u0060, \u0060title\u0060 and \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:592\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed892a6c25725ff1784f028cddc70d8ead59fa26e69574ab6540126d75d0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:1138-1147 | Starcat/Features/Search/SearchCenterView.swift:1172-1181 \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 \u0060Starcat/Features/Search/SearchCenterView.swift:1138\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27689c3d8077f40a8da3abd634c84d7ffa311714ed41d07253aa4232dd1fc18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Settings/IntegrationSettingsView.swift:247-256 | Starcat/Features/Settings/IntegrationSettingsView.swift:384-393 \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 \u0060Starcat/Features/Settings/IntegrationSettingsView.swift:247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u006012\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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"78396eae621329df1ecc8a79875df469ab51d0646cd88a35af48d4ae491fcb4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Starcat/Shared/Services/DiskIssueTimelineCache.swift:86-95 | Starcat/Shared/Services/DiskWikiCache.swift:198-205 \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 \u0060Starcat/Shared/Services/DiskIssueTimelineCache.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskIssueTimelineCache.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"915d223cb716e7f583a4c8ae61c2e633238e6fcd55c031d6aa9a56e6991fc439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 6): Starcat/Features/Activity/ActivityView.swift:656-664 | Starcat/Features/Activity/WeeklyContentView.swift:799-807 | Starcat/Features/Explore/AwesomeView.swift:502-510 | Starcat/Features/Explore/ExploreView.swift:743-751 | Starcat/Features/Home/HomeViewModel.swift:1239-1242 | Starcat/Features/Trending/TrendingView.swift:299-307 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Home/HomeViewModel.swift:1239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e80fd7d09784f96841319c0c8e99464204d737a3cafc5477cbd5b33181a815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): Starcat/Features/Activity/WeeklyContentView.swift:219-227 | Starcat/Features/Explore/AwesomeView.swift:150-157 | Starcat/Features/Explore/ExploreView.swift:435-443 | Starcat/Features/Trending/TrendingView.swift:506-514 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/WeeklyContentView.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa39f2514da67306a58a984e369c3e5b24243990c326174e56a5f1576c4efb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:199-207 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:958-966 | Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:91-99 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2856-2864 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:199\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, \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2866\u0060 calls \u0060padding\u0060 and \u0060Starcat/Features/RAG/UI/RAGWorkspaceConversationRail.swift:100\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":"Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4580f9c9e72a92407dcae9f491eb6068bcf5781b481dc62d2b7dc7419fda0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Starcat/Core/Health/RepoHealthService.swift:195-203 | Starcat/Core/Sync/ReleaseMonitor.swift:188-196 | Starcat/Features/Releases/RepoReleaseSection.swift:275-283 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Health/RepoHealthService.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"15647b84fbcf568c4556bec1ce6a159ea5f5fff383efa8a986c1780e7f3c3db8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Starcat/Features/Activity/ActivityDetailView.swift:595-603 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:1668-1676 | Starcat/Shared/Components/TagChipFlowLayout.swift:44-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/ActivityDetailView.swift:595\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":"Starcat/Features/Activity/ActivityDetailView.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"146a8bb4aab25e1058aed98ba065458d08350df3c1a51180986eff70a2dc6e58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Starcat/Features/Activity/ActivityViewModel.swift:616-624 | Starcat/Features/Activity/ActivityViewModel.swift:805-813 | Starcat/Features/Activity/ActivityViewModel.swift:1130-1138 \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 \u0060Starcat/Features/Activity/ActivityViewModel.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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10cb31ffd17b5805f11b69c9dc304ee4ed1dac980b23161d70316707902f2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:541-552 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:494-505 | Starcat/Shared/Services/RepoContextStorage.swift:795-806 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:541\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cce690632c6c71890629a6e6d30abafce32fc29feccc0b1d5a02548c1e6da1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Starcat/Features/Explore/ExploreView.swift:226-234 | Starcat/Features/Explore/ExploreView.swift:349-356 | Starcat/Features/Explore/ExploreView.swift:543-550 \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 \u0060Starcat/Features/Explore/ExploreView.swift:226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0d024bfa606072ddb807228aa27f1eb03a3a50ac9869352b9d04812fce7209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): Starcat/Features/Profile/ContributionService.swift:180-186 | Starcat/Features/Profile/DeveloperLanguageService.swift:235-243 | Starcat/Features/Profile/UserProfileService.swift:276-282 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Profile/ContributionService.swift:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e30ceffbf7af7cfa133ec979d356e21a92b2d5933631b61b65f0bb2e55ba15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Starcat/Features/Settings/IntegrationSettingsView.swift:595-603 | Starcat/Features/Settings/IntegrationSettingsView.swift:629-637 | Starcat/Features/Settings/RepoContextSettingsSection.swift:122-130 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Settings/IntegrationSettingsView.swift:595\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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f45c410304682a35b126f4c211ecc3aaba46124db4fd520214a6da6287fc391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Distribution/AppStoreToDirectImport.swift:237-245 | Starcat/Core/Distribution/AppStoreToDirectImport.swift:254-262 \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 \u0060Starcat/Core/Distribution/AppStoreToDirectImport.swift:237\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Distribution/AppStoreToDirectImport.swift:246\u0060 calls \u0060deletingLastPathComponent\u0060 and \u0060Starcat/Core/Distribution/AppStoreToDirectImport.swift:263\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":"Starcat/Core/Distribution/AppStoreToDirectImport.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"545ccafaba5e786ef07f79d9915c80f38424eb1b1b18705afde9d12f081266db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Health/RepoHealthStore.swift:59-67 | Starcat/Core/Sync/OpenSSFScoreStore.swift:62-70 \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 \u0060Starcat/Core/Health/RepoHealthStore.swift:59\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 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. 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":"Starcat/Core/Health/RepoHealthStore.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fac1a9bf2360359b39f37308c6308c0038e98ebaf583980654b7817bc63e8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/AI/BatchAIWorkspaceView.swift:289-298 | Starcat/Features/AI/BatchAIWorkspaceView.swift:300-308 \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 \u0060Starcat/Features/AI/BatchAIWorkspaceView.swift:289\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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"40037afd42495378a24fc7a34c8d87e0465c2650cc5a4859ad1a10c000ec54c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Activity/ActivityDetailView.swift:270-278 | Starcat/Features/Activity/ActivityDetailView.swift:281-289 \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 \u0060Starcat/Features/Activity/ActivityDetailView.swift:270\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":"Starcat/Features/Activity/ActivityDetailView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f31d3067aff7c8910e1109f5698f3239fbea3ceeb013756ba68c994ef16254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationDetailView.swift:1731-1740 | Starcat/Features/Activity/GitHubNotificationDetailView.swift:1821-1829 \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 \u0060Starcat/Features/Activity/GitHubNotificationDetailView.swift:1731\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52f93395e760b54e18c7d936f53adb0f388e05ef7bca0331f3052d396811d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Agents/Core/AgentRunContextProvider.swift:30-39 | Starcat/Features/Agents/Core/AgentRunContextProvider.swift:79-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunContextProvider.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"be260d7925e035568fc586342a7acd366db7f5156c54c819b409ed290e95f4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:650-658 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:733-741 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:650\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"6500d310d5494ddadc2c190c3429a720df9145e24a814463b6b69bfd8bf32f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:547-556 | Starcat/Features/Agents/Core/LoopAgentRuntime.swift:647-656 \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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbff11853e9add768b71224e1b8ccd168fb160e08d35a0bc228ac1f4b389a02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:418-425 | Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:435-443 \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 \u0060Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:418\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4f9133f2fbe1a63fab7bfe41c03c080b2d2938331890ebfdcbf9c7fb3c3700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:167-175 | Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.swift:218-226 \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":"Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"994c6f234886126dc348a6771c9e66892e454e43342da857fc63697a38c78646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:327-335 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:379-387 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1428e690d0ad4cb8f34d3184387b670c107d36a6ae47d69194668bbf48d9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:506-514 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:719-727 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:506\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0c7f9e30f1bcd79c3ff967758287b7ddd9b76c5d240da2ef89716988db5625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Home/AppStatusPanelChrome.swift:215-223 | Starcat/Features/Home/AppStatusPanelChrome.swift:245-253 \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 \u0060Starcat/Features/Home/AppStatusPanelChrome.swift:215\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":"Starcat/Features/Home/AppStatusPanelChrome.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfbf30c4a8b3b1ed0aedc964346217e3c3298c89f39ed4d13958d9b7ff79e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Home/RepoMetadataHeaderView.swift:1062-1070 | Starcat/Features/Home/RepoMetadataHeaderView.swift:1118-1126 \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 \u0060Starcat/Features/Home/RepoMetadataHeaderView.swift:1062\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":"Starcat/Features/Home/RepoMetadataHeaderView.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dc2b5dc7b5976fcbee144271b282c5eb91c9eca312ae0ae6b3bf6cc9e2f4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): Starcat/Features/Insights/InsightsCardIllustration.swift:113-116 | Starcat/Features/Insights/InsightsCardIllustration.swift:223-231 | Starcat/Features/Insights/InsightsCardIllustration.swift:340-348 \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 \u0060Starcat/Features/Insights/InsightsCardIllustration.swift:223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f3d9ec8042713c91f6829d0885c29bc89f84f859a7a1940ea13e06e379d08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Insights/RepositoryInsightsView.swift:1241-1249 | Starcat/Shared/Components/GrowthShareCopyButton.swift:19-27 \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 \u0060Starcat/Features/Insights/RepositoryInsightsView.swift:1241\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":"Starcat/Features/Insights/RepositoryInsightsView.swift"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de19a5a945851e2ee2de045f5044175a92ba899f9cb013d48584047e66bedfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Starcat/Features/MCP/AgentToolMCPRuntime.swift:83-89 | Starcat/Features/MCP/StarcatMCPRuntime.swift:112-120 \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":"Starcat/Features/MCP/AgentToolMCPRuntime.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"290ee8ea21855aff6fb8013ca32c4d9a209d5d27084f8354158a4e2ae40ba132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): Starcat/Features/MCP/AgentToolMCPRuntime.swift:125-133 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:60-65 \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":"Starcat/Features/MCP/AgentToolMCPRuntime.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"092e7dd27e56bfe6262a1195cbe149becbe51daf504db60db0e0854b35d0b66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPToolRegistry.swift:479-487 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:489-497 \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 \u0060Starcat/Features/MCP/StarcatMCPToolRegistry.swift:479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99960ca7645688bf6879816d1938ac3633b8bc52c1024c7dee34b8e6ac71ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1060-1068 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1265-1275 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1060\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9951ef1f080bd7eea5fd992e361293140bf0fabdb62d7746fe4dfe9d8f951e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGService.swift:830-838 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:850-861 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"d584fa708b00c6c345fab3712a9bff239b1bc397b0fcb0c52da09a415f5e222a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2833-2841 | Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2907-2915 \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 \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:2833\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":2833}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6548f1f6c032821604f34a1b6dcb40dbe6e98996a6c4757653b83f6cfa50730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:178-186 | Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:203-211 \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 \u0060Starcat/Features/RAG/UI/RAGExecutionTimeline.swift:178\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":"Starcat/Features/RAG/UI/RAGExecutionTimeline.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3da4d2e400d3cc50369417726eee33108069084ccf07d7beedcc77a2aaedb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1014-1022 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1956-1964 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1014\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80a87ba6e3070c10f55b8822e46cb20d9016c2eb6e7326fcf6db6a5355645cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2932-2940 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3033-3040 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2932\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2932}}}],"partialFingerprints":{"codehealthFindingId/v1":"9867f947c72f46c7b90c90ae2805c7550b96d09ab374e7548d8d81e43173bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Settings/AISettingsView.swift:719-727 | Starcat/Features/Settings/AISettingsView.swift:836-844 \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 \u0060Starcat/Features/Settings/AISettingsView.swift:719\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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"876ff82570cbd39d1557e46b34e51c50ef32ff77bcce855234b636c72f971911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Settings/DiagnosticsSettingsTab.swift:260-268 | Starcat/Features/Settings/LabsSettingsView.swift:115-123 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Settings/LabsSettingsView.swift:110\u0060 calls \u0060toggleStyle\u0060, \u0060disabled\u0060 and \u0060Starcat/Features/Settings/DiagnosticsSettingsTab.swift:256\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/DiagnosticsSettingsTab.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dafba6225d3352a41e95145b986d47817996efc00c8cf61103bf4388380db5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Settings/ProSettingsView.swift:1130-1138 | Starcat/Features/Settings/ProSettingsView.swift:1320-1328 \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 \u0060Starcat/Features/Settings/ProSettingsView.swift:1130\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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2341fcb1e6c388bb816d390b52b1dd644eac1573f1052b035cffe59b6920fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1668-1675 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3134-3141 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3161-3168 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3196-3203 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3142\u0060 calls \u0060ensureRAGConversationGroupsSchema\u0060 and \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1676\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"6871c26646ad7c9a68c3d4cf800b03427d88cbed3d398ad11ed789b0c1bbecad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Starcat/Features/Agents/Core/AgentRunInspectorView.swift:56-62 | Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:144-151 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:55-61 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:352-358 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/Core/AgentRunInspectorView.swift:56\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":"Starcat/Features/Agents/Core/AgentRunInspectorView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"32761b067e06c72843194da97a5a9f602e707ee13a6591c12105d4342dc60e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/Activity/UndoStarContentView.swift:369-376 | Starcat/Features/Activity/WeeklyContentView.swift:634-643 | Starcat/Features/Trending/TrendingView.swift:717-726 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/UndoStarContentView.swift:369\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":"Starcat/Features/Activity/UndoStarContentView.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f820311befd3b6b94f564ea715a1baffc7c1a7aaf4cefd315d6223a0d71ee994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/Activity/WeeklyContentView.swift:476-483 | Starcat/Features/Trending/TrendingViewModel.swift:91-98 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:213-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Activity/WeeklyContentView.swift:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"131ac2842ae33ad3821a6e68899104440a48512dfb682c304aae7c4a8d6f0584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:326-331 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:378-383 | Starcat/Shared/Services/RepoContextStorage.swift:536-543 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:326\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ded108be254954bc79d8b324516d5301703b451b7769828a3234dfd915ea04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/Home/SidebarItem.swift:85-92 | Starcat/Features/Home/SidebarItem.swift:104-111 | Starcat/Features/Home/SidebarItem.swift:127-134 \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 \u0060Starcat/Features/Home/SidebarItem.swift:85\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":"Starcat/Features/Home/SidebarItem.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"90675f34ede036e6991ed29d68b5bffe435cd8a6f9bd25ee8079acc29226b1cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/Home/SidebarView.swift:784-791 | Starcat/Features/Search/SearchCenterView.swift:2039-2046 | Starcat/Features/Search/SearchCenterView.swift:2178-2185 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Home/SidebarView.swift:784\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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3e0c7571bbe11359a745f4fb08abf17d73d690cde52fea4cfa6f3006fa3998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Starcat/Core/Capabilities/RepositoryReadCapability.swift:247-254 | Starcat/Features/Home/HomeViewModel.swift:2660-2666 \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 \u0060Starcat/Core/Capabilities/RepositoryReadCapability.swift:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Capabilities/RepositoryReadCapability.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51800a109bf03a0c48cdcac76106a081d4264973abc4d59396b46f594849dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 7): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:623-630 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:921-928 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1724-1727 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1761-1764 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1775-1778 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2310-2314 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2953-2959 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:623\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:621\u0060 calls \u0060column\u0060, \u0060notNull\u0060, \u0060defaults\u0060 and \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:920\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff4b38e35ff68cf90a5889ecd1fc821af30df32414d5fb7548e4ada6e5f309e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2206-2214 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2478-2486 \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 \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2206\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2205\u0060 calls \u0060references\u0060 and \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2477\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aa085460525fbcb8ed665e4586a48fa731d66ad423c9ccceaca854f0be9bd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:219-226 | Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:231-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:219\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":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c28438d7cc00c7b20754938c2efe7493e1058fd3e62c645d168b8d9f2ed81b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift:919-926 | Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift:1029-1036 \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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a218fc825ad88473b568c8517a745aa8513acb6f52801c35600ff9d1e18e603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Sync/RepoRepository.swift:1520-1527 | Starcat/Features/RAG/Core/KnowledgeBaseMetadataSnapshot.swift:879-886 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d85db8e2110cc0524e82334f8c3a949d7aef7d16500717d0a95877452074a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Sync/SyncManager.swift:514-521 | Starcat/Core/Sync/SyncManager.swift:526-533 \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":"Starcat/Core/Sync/SyncManager.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ef127a3f1cabab3aa939d65a7220215afa02d55f390b508762c88cb77e4841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:530-537 | Starcat/Features/AI/RepoAIGenerationOptionsSection.swift:154-161 \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 \u0060Starcat/Features/AI/BatchAIOptionsSheet.swift:530\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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7e5bb74a095a71429207c08b5a8ce7512adb6ca10cc5d5cb96ea75eea6dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/BatchAITagReviewRow.swift:306-313 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:733-740 \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 \u0060Starcat/Features/AI/BatchAITagReviewRow.swift:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"442a37158ca8b19965590b63d45d94e54fa3394211b53074ee9787a4162836de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift:106-113 | Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift:254-261 \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":"Starcat/Features/AI/LocalAI/LayaMLXDecisionModel.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"83396643c11feda037f795bd9f3d671c9745893d8d20e60889f74acc960f51a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/AI/OpenAIClient.swift:453-461 | Starcat/Features/AI/OpenAIClient.swift:508-516 \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 \u0060Starcat/Features/AI/OpenAIClient.swift:453\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060exchange\u0060 to \u0060AIHTTPFailureExchange? = nil\u0060 in one and \u0060AIHTTPFailureExchange?\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":"Starcat/Features/AI/OpenAIClient.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8724d96865399b743e7f06f593ae761427c15f99e7a8f0ab1afc7ab7fd1a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Starcat/Features/AI/ReadmeTranslationService.swift:833-840 | Starcat/Features/AI/RepoAIInsightService.swift:1631-1637 \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 \u0060Starcat/Features/AI/ReadmeTranslationService.swift:833\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/ReadmeTranslationService.swift"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"680513f5e8ace1c6fe18e897db1948e0222872ccb4ff83735ba641b6728771f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/RepoAIInlineWindowController.swift:314-321 | Starcat/Features/Search/SearchCenterWindowController.swift:101-111 \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 \u0060Starcat/Features/AI/RepoAIInlineWindowController.swift:314\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":"Starcat/Features/AI/RepoAIInlineWindowController.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf4734ceaf2771a395fc84a5db9210ff540543cceeaa3a53095358cb21b6746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowContentView.swift:401-408 | Starcat/Features/AI/RepoAIWindowContentView.swift:415-422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:401\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"f865a7c8baba878bc243adf6ec11a002ec66be9d8f0c89a9cf1df8f4bd9752f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowContentView.swift:785-792 | Starcat/Features/AI/RepoAIWindowContentView.swift:1007-1014 \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 \u0060Starcat/Features/AI/RepoAIWindowContentView.swift:785\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":"Starcat/Features/AI/RepoAIWindowContentView.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe15076037459842218845f595b3d5c49b07da8770340d2925f63518528e06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/RepoAIWindowController.swift:275-282 | Starcat/Features/AI/RepoAIWindowController.swift:286-293 \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":"Starcat/Features/AI/RepoAIWindowController.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dc95fc3c7a61a52aa1d9f16cbbb36389f43526a0fa74b872b72f3ef2bc859d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/RepositoryDecisionService.swift:97-104 | Starcat/Features/AI/RepositoryDecisionService.swift:199-206 \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 \u0060Starcat/Features/AI/RepositoryDecisionService.swift:97\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":"Starcat/Features/AI/RepositoryDecisionService.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1cf9556fc63d6c017c2a8e4c5880a347211ff70459379c81a764f637a5acdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): Starcat/Core/Sync/GitHubNotificationMapper.swift:342-345 | Starcat/Features/About/ReleaseNotesView.swift:696-703 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:155-162 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. 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":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c773959af117aa1f54ce3a7c2f5eeb52e1cf7606a7c280f2b877086d82ff9ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationInboxView.swift:500-507 | Starcat/Features/Activity/GitHubNotificationInboxView.swift:553-560 \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 \u0060Starcat/Features/Activity/GitHubNotificationInboxView.swift:500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationInboxView.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"317c4bd78fc5fd98782152f7dce747f2181145ed99467841121f70cb54feeb6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Activity/WeeklyContentView.swift:596-603 | Starcat/Features/Activity/WeeklyContentView.swift:621-628 \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 \u0060Starcat/Features/Activity/WeeklyContentView.swift:596\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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb7260fb4e73892c90c066c52ad1e0355cd8256f5be016f70f4c7d5840e0f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:237-244 | Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:292-299 \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 \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift:237\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":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fd70e3b652bc33f59b6b187d0268c3279bed42e3503bd8628869220feaec53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:376-383 | Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:394-401 \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 \u0060Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:376\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:392\u0060 calls \u0060stepTraceID\u0060 and \u0060Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:374\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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4121afd5e7a4360a85b673031aca6b42b2b546ddf67cb0a3da60b1d5451a170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Auth/GithubDeviceFlowService.swift:64-71 | Starcat/Features/Auth/GithubDeviceFlowService.swift:192-199 \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 \u0060Starcat/Features/Auth/GithubDeviceFlowService.swift:64\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":"Starcat/Features/Auth/GithubDeviceFlowService.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95cc69c5186391495467a3181e4bc525d842902cc64e5dfe38316271447ec31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:415-423 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:643-651 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:415\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1e6e29b06d5cb2e6ee89556249c9ec1453de941c1763edbc73bc96ee1e5cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Home/HomeViewModel.swift:2225-2232 | Starcat/Features/Home/HomeViewModel.swift:2242-2249 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2215eb28f0a03d2f08051fa7bb326f18623289b8edbba3648ed620710a471d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Home/SidebarView.swift:2330-2337 | Starcat/Features/Home/SidebarView.swift:2412-2419 \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 \u0060Starcat/Features/Home/SidebarView.swift:2330\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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0468c5bfe59cde9e853dd338e6bebf007138cf4e7d091835c882d11812e60af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 3): Starcat/Features/Insights/InsightsMetricMotifBackground.swift:178-185 | Starcat/Features/Insights/InsightsMetricMotifBackground.swift:211-213 | Starcat/Features/Insights/InsightsMetricMotifBackground.swift:293-300 \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 \u0060Starcat/Features/Insights/InsightsMetricMotifBackground.swift:178\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":"Starcat/Features/Insights/InsightsMetricMotifBackground.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa17362e0c49aad72ac51b864c5c8bc76a3ac7199be53ea542cbd667b0f89f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:2567-2574 | Starcat/Features/Profile/ShareCard/ShareCardSheet.swift:1035-1042 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bcff0f88b56c539abace4d4025001f2e34494d153ca5eb4472e1bad20ddf1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift:179-187 | Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift:132-140 \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 \u0060Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift:179\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift:188\u0060 calls \u0060contains\u0060 and \u0060Starcat/Features/Profile/SnakeAnimator/GreedySnakeAnimator.swift:141\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Profile/SnakeAnimator/FoodChaseSnakeAnimator.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a57f4c5677126ab095311bd2b707f136cc5352a0c09208e3e1a815ba5d41c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift:134-140 | Starcat/Features/RAG/Core/KnowledgeSearchCapability.swift:260-267 \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 \u0060Starcat/Features/RAG/Core/KnowledgeSearchCapability.swift:260\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":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da63269ef8efc97739bdf2189b621cca9e7387bb6d8ce3edeefdbac0975174c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift:502-509 | Starcat/Features/RAG/Core/RAGNetworkIntentResolver.swift:142-149 \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 \u0060Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift:502\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":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3679abae6b12de463b1d5eaa30b008ef920ca0dfee882d6c8356a39015cd35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift:2512-2519 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3260-3267 \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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d7389d06d5e6ceead2d40de12b6b12ad4ca13b0227e3745f5374a5225e5d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:139-146 | Starcat/Features/RAG/UI/RAGUserMessageBlock.swift:144-151 \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 \u0060Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:139\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":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac88e1fc8b444261b504595739f929f6e12101c8daa960b205b81a460ff95911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2216-2223 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2260-2267 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2216\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2216}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ce8a39d87b593b0e582478279f9a0c93a62eb2b46ce39a1eccb10866c8c4e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3863-3870 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3903-3910 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3863\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":3863}}}],"partialFingerprints":{"codehealthFindingId/v1":"989383a506887b00101c5406d21c5d2cc23812c6a979962b8d83b7f402463aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:1307-1314 | Starcat/Features/Search/SearchCenterView.swift:1327-1334 \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 \u0060Starcat/Features/Search/SearchCenterView.swift:1307\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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"43421a6666efa6e64ae597ce11bf94ab55752ce5f372282f8cbd96def77c675a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Settings/CodebaseMemoryExecutableSettingsView.swift:164-171 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:140-147 \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 \u0060Starcat/Features/Settings/CodebaseMemoryExecutableSettingsView.swift:164\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":"Starcat/Features/Settings/CodebaseMemoryExecutableSettingsView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"355af628c83d25e38bfddeb23fb44d432193e7d936189edb2f3129df01b98893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:238-245 | Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:257-264 | Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:274-281 \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 \u0060Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:238\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:257\u0060 calls \u0060Text\u0060 and \u0060Starcat/Features/Settings/ExploreCatalogSettingsSection.swift:274\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/ExploreCatalogSettingsSection.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f43df69c080b71a9c6b3caf8e568c90e56f8a215189d7ab3322a39ff031c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Settings/JevConnectionSettingsModel.swift:181-188 | Starcat/Features/Settings/JevConnectionSettingsModel.swift:200-207 \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 \u0060Starcat/Features/Settings/JevConnectionSettingsModel.swift:181\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":"Starcat/Features/Settings/JevConnectionSettingsModel.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a98dec9e24745e92b093e2c9b64c648971a1157bb4bb0200e24b527db82836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): Starcat/Features/Home/BatchActionBar.swift:897-900 | Starcat/Features/Tags/TagManagementView.swift:190-197 | Starcat/Features/Tags/TagManagementView.swift:347-356 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Home/BatchActionBar.swift:897\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, \u0060Starcat/Features/Tags/TagManagementView.swift:357\u0060 calls \u0060foregroundStyle\u0060 and \u0060Starcat/Features/Tags/TagManagementView.swift:198\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4cda9b4ddcdf9eccc1e2105be7409adf42f988a28e9bdf3266968c95ad99d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Shared/Components/RepoHealthBadge.swift:36-43 | Starcat/Shared/Components/UnifiedRepoRow.swift:681-688 \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 \u0060Starcat/Shared/Components/RepoHealthBadge.swift:36\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":"Starcat/Shared/Components/RepoHealthBadge.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4375125e778441780f59e656c960871bdfeb46ef74327b98be0df26838b1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Shared/Diagnostics/DiagnosticEvent.swift:136-143 | Starcat/Shared/Diagnostics/DiagnosticLogStore.swift:362-369 \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":"Starcat/Shared/Diagnostics/DiagnosticEvent.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd52f8b17fd2bb0d8eb16e607a99868dfaca69650d6945baa2cb8a229ab317ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:503-510 | Starcat/Shared/Services/DiskChatHistoryStore.swift:530-537 \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 \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:503\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:538\u0060 calls \u0060max\u0060 and \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:511\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad11bae02e87ece7d1b968d5ff24f8c85e09be56eba10df1aba40fe63c833c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:521-527 | Starcat/Shared/Services/DiskChatHistoryStore.swift:552-559 \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 \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:521\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, \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:520\u0060 calls \u0060makeSession\u0060 and \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:552\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8f9b088bd52ba18d8c6ab93e1f0f5d9c3aa08c6a75b1abdfba94a74ff36ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.swift:59-66 | Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.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. 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":"Starcat/Shared/Services/WikiAvailabilitySnapshotLoader.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5d7d83546c0f39317fac97cc6ebd0e74dc66c21461438ea70ceb4140eac5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Starcat/Core/Settings/AppSettings.swift:323-329 | Starcat/Core/Settings/AppSettings.swift:359-365 | Starcat/Core/Settings/AppSettings.swift:428-434 | Starcat/Core/Settings/AppSettings.swift:460-466 | Starcat/Core/Settings/AppSettings.swift:493-507 | Starcat/Features/AI/AIConfiguration.swift:1663-1669 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Settings/AppSettings.swift:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1ef0e4960a3e98833af3f4d13462b504977d254cfe30c85844790f3870b0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Starcat/Core/Settings/AppSettings.swift:2693-2699 | Starcat/Core/Settings/AppSettings.swift:2720-2727 | Starcat/Core/Settings/AppSettings.swift:2842-2848 | Starcat/Core/Sync/StarringSubsystem.swift:307-313 | Starcat/Core/Sync/StarringSubsystem.swift:457-463 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Settings/AppSettings.swift:2693\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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"f510ae3b0538a68f7e4cdcb9167272d4fdcdfa3768125c0235c52086f4552dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Starcat/Features/Auth/GithubWebFlowService.swift:275-281 | Starcat/Features/Auth/GithubWebFlowService.swift:285-291 | Starcat/Features/Auth/MockGithubOAuthService.swift:124-130 | Starcat/Features/Auth/MockGithubOAuthService.swift:133-139 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"Starcat/Features/Auth/GithubWebFlowService.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8c1c01a4c28da5f7f2e964a022161c0372bb0c7f43fd73c55d23d7edc00a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Starcat/Features/Settings/RepoContextSettingsSection.swift:72-78 | Starcat/Features/Settings/RepositorySourceDownloadSettingsSection.swift:17-24 | Starcat/Features/Settings/SettingsView.swift:1979-1986 | Starcat/Features/Settings/UndoStarRetentionSettings.swift:27-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Settings/RepositorySourceDownloadSettingsSection.swift:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.leading\u0060 in one and \u0060.center\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":"Starcat/Features/Settings/RepoContextSettingsSection.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"55858722c17b8dfa01cc4bc29a13ff905a0b55df8a15200da5ecea8beb216ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:165-171 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:396-402 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:683-689 \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 \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:165\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"914c34d241578f7eff1fae9dd7bc9428833cd2f3fd5635c2de88c624184ee085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Core/Network/ServiceHealthChecker.swift:280-286 | Starcat/Core/Network/StarHistoryAPI.swift:186-192 | Starcat/Core/Network/WikiAPI.swift:59-65 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/ServiceHealthChecker.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9891ad1c30c6784e512c9c1fec8266117f067c61b2b2e81bc3d6f947a455d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Core/Network/ShareAPI.swift:106-112 | Starcat/Core/Network/TrendingAPI.swift:222-229 | Starcat/Core/Network/WeeklyAPI.swift:310-317 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Network/ShareAPI.swift:105\u0060 calls \u0060setValue\u0060 and \u0060Starcat/Core/Network/TrendingAPI.swift:221\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/ShareAPI.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed59832c2f1bc42ef2dec8d1f72de806cb50922751c744dae4e0e3b2bfc6b258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/AI/BatchAITagFlowLayout.swift:31-38 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:766-773 | Starcat/Features/Settings/SettingsView.swift:1549-1556 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. 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":"Starcat/Features/AI/BatchAITagFlowLayout.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef83b5875675f4f361ffac466526d929bbe74a1d3bdbdd4deabb75a50933d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:111-117 | Starcat/Features/Agents/ExternalRuntime/CodexModelCatalog.swift:195-201 | Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:303-309 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:111\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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eeb87655abd1d30f00a413ec845f339eeaefc627bb6c6f9c1e9c09cbe48756e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/Insights/InsightsCardIllustration.swift:192-198 | Starcat/Features/Insights/InsightsCardIllustration.swift:241-247 | Starcat/Features/Insights/InsightsCardIllustration.swift:268-274 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Insights/InsightsCardIllustration.swift:238\u0060 calls \u0060Path\u0060, \u0060move\u0060, \u0060CGPoint\u0060 and \u0060Starcat/Features/Insights/InsightsCardIllustration.swift:191\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Insights/InsightsCardIllustration.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c83d9e5f92df376b82e16c52be473e7f42a0e1397c84f62be569a867a8752bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3422-3428 | Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift:224-230 | Starcat/Features/RAG/UI/RAGMarkdownText.swift:376-382 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift:3422\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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c1b799fac9bf67e57752261fddad06daadc01824f9f702b1a5caa2d2a5c85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/Settings/CodebaseMemoryExecutableSettingsView.swift:166-172 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:142-148 | Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.swift:156-162 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/CodebaseMemoryExecutableSettingsView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc505c80eaeec2df7beb78de37af56a5c101aa8b67769c6e80ecd16d0abe97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Shared/Services/DiskIssueSummaryCache.swift:206-213 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:204-210 | Starcat/Shared/Services/DiskWikiCache.swift:376-382 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Shared/Services/DiskIssueSummaryCache.swift:206\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":"Starcat/Shared/Services/DiskIssueSummaryCache.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea0cae0668ba27d01eece71730f27275afbac4f96344911d02f270dc890973c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Database/Models/Readme.swift:72-78 | Starcat/Core/Database/Models/TrendingReadme.swift:79-85 \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 \u0060Starcat/Core/Database/Models/Readme.swift:72\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/Readme.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a362d1aa06d999660e98ae35de79843cc19936449565c8d188cb389551482d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Health/RepoHealthStore.swift:82-88 | Starcat/Core/Health/RepoHealthStore.swift:97-103 \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 \u0060Starcat/Core/Health/RepoHealthStore.swift:82\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":"Starcat/Core/Health/RepoHealthStore.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6486527360089c139a0f2ddb16dd79cc2b793fb5998e8f3848797e3b33896c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Starcat/Core/Navigation/RepositoryDeepLink.swift:84-93 | Starcat/Core/Navigation/RepositoryDeepLink.swift:101-108 \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 \u0060Starcat/Core/Navigation/RepositoryDeepLink.swift:84\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Navigation/RepositoryDeepLink.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"594ec803c7316abdbbcdaa57df8ac9fa8184f3ca5aad1d2a98d17a4bf82270c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:151-157 | Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift:242-248 \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 \u0060Starcat/Features/AI/BatchAIOptionsSheet.swift:151\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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe39c120d986a5f425740e7ca36126bf5ccd23135e2ca7ae08dbe639a26ddad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/AI/RepoAIInsightService.swift:724-730 | Starcat/Features/AI/RepositoryDecisionService.swift:175-181 \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 \u0060Starcat/Features/AI/RepoAIInsightService.swift:724\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2909164cf195d3d388399a57138c05e82c1cf4b3d6d30e95802cc0ae7381daef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Agents/Core/AgentHarnessProcessView.swift:188-194 | Starcat/Features/Agents/Core/AgentHarnessProcessView.swift:227-233 \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 \u0060Starcat/Features/Agents/Core/AgentHarnessProcessView.swift:188\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":"Starcat/Features/Agents/Core/AgentHarnessProcessView.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdeb736d9f7398bb035f72fd2a972fa5c50fff31b9b316227a332bdc763d0e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:820-826 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:916-923 \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 \u0060Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:820\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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"863604ea1f9749fcda185785aa363542e4f4e6f583341047c0de89bf7d60b210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Auth/GithubDeviceFlowService.swift:78-84 | Starcat/Features/Auth/GithubWebFlowService.swift:175-181 \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":"Starcat/Features/Auth/GithubDeviceFlowService.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f59fcbd3ea4f4278331b0cc3ea84bfcb1bce47d01fdf01d29978d298d860e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowRunner.swift:304-310 | Starcat/Shared/Services/SharedSnapshotService.swift:247-253 \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 \u0060Starcat/Features/CodeGraph/CodeFlowRunner.swift:304\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Shared/Services/SharedSnapshotService.swift:256\u0060 calls \u0060requestFailed\u0060 and \u0060Starcat/Features/CodeGraph/CodeFlowRunner.swift:311\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowRunner.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff755c0ab14d539ba2ca8b5c5b59d1c7b27cc349500288ae7ecff6859cf0aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:430-436 | Starcat/Shared/Services/RepoContextStorage.swift:661-667 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060newProject\u0060 to \u0060CodeFlowStoredProject\u0060 in one and \u0060RepoContextStoredProject\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef346335071b2272bbe302d311a6703fd484512f6ca4ef137baaf35d122cc9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift:307-318 | Starcat/Features/Settings/RuntimeDownloadInstaller.swift:378-384 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcde099c39a8728d78dc58fa4962744b58edb96dbf08935465b7265ab2048ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Explore/ExploreView.swift:624-630 | Starcat/Features/Explore/ExploreView.swift:635-641 \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 \u0060Starcat/Features/Explore/ExploreView.swift:624\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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7355da8bc95bac155a284ef2332ae7c6dd34f3aea3560ac7ce619dc381748c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Home/LocalAIStatusSection.swift:179-185 | Starcat/Features/Home/LocalAIStatusSection.swift:275-281 \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 \u0060Starcat/Features/Home/LocalAIStatusSection.swift:179\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":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7b1720ca9e36e16977f016ba6c827efd79186438459f07465565f3d70cd833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Home/RepoFileBrowserSheet.swift:387-393 | Starcat/Features/Home/RepoFileBrowserSheet.swift:395-401 \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":"Starcat/Features/Home/RepoFileBrowserSheet.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa2303422b6b016e401bc8991b0e0d48333aa93552a3975308033580b446900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPToolRegistry.swift:539-546 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:570-577 \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 \u0060Starcat/Features/MCP/StarcatMCPToolRegistry.swift:539\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"146339d9bcd09728129a26553a123e5991de689d5c2110bb7fe69c8367c88d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:367-373 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1082-1088 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:367\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b3c4a5d6d9578c24baa275770b4b9119dc5df3e3d0e8b7454cb4abe9cb522e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:508-514 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:542-548 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:508\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, \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:549\u0060 calls \u0060lineLimit\u0060, \u0060minimumScaleFactor\u0060 and \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:515\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b9cefc9ebbd198b642ea068de5c0fee9ad75b82313edeace23f26d7fb14ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1071-1077 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1278-1284 \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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"592209bce122423c0e8c7913fdb5f11fa59310f804506b728e627ceb5646e4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeRAGModels.swift:934-940 | Starcat/Features/RAG/Core/KnowledgeRAGService.swift:234-240 \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":"Starcat/Features/RAG/Core/KnowledgeRAGModels.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dc1a10c589ab84ff60cd9ca679e8fb8ad8284ebfa778f3e2bd0ac6d89bb116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/RAG/Core/RAGBackendConfiguration.swift:27-33 | Starcat/Features/RAG/Core/RAGBackendConfiguration.swift:50-56 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/Core/RAGBackendConfiguration.swift:27\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":"Starcat/Features/RAG/Core/RAGBackendConfiguration.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b07c7436a3be2f8db8ca7d396398a1ee6ae973d5b55a66d50c576a636bec2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/Core/RAGSearchProviders.swift:397-404 | Starcat/Features/RAG/Core/RAGSearchProviders.swift:444-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/RAG/Core/RAGSearchProviders.swift:397\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":"Starcat/Features/RAG/Core/RAGSearchProviders.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f86401758eb170fc9246fdc903e1988f9878f4444f5d89a9b52a8066289ec2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/RAG/UI/RAGAddToLibrarySheet.swift:182-188 | Starcat/Features/RAG/UI/RAGUserMessageBlock.swift:89-95 \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 \u0060Starcat/Features/RAG/UI/RAGAddToLibrarySheet.swift:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGAddToLibrarySheet.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df87db5251164b2e08e8dbb8d4cd790a6e924ff82bb88f824861cc4d5df0565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1031-1038 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2039-2045 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:1031\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adf0a046563c0506df006efb0382e0a104a3d19f9db1f5717a915ae6c77ba17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Settings/ProSettingsView.swift:1558-1564 | Starcat/Features/Settings/ProSettingsView.swift:1585-1591 \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 \u0060Starcat/Features/Settings/ProSettingsView.swift:1558\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":"Starcat/Features/Settings/ProSettingsView.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62b81e077659eba9e4ab3ae479b767d19ea971ec7d21ca17a4a4dead8052a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Starcat/Shared/Components/ReadmeWebView.swift:2194-2200 | Starcat/Shared/Components/ReadmeWebView.swift:2204-2211 \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 \u0060Starcat/Shared/Components/ReadmeWebView.swift:2194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0581f4d2684a68f66a88a4453419180b724f3ad7e38a03a703acc76222d90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:108-114 | Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:126-132 \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 \u0060Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:108\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":"Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d4cd9204c5475425f6b840119720d2a30606f6bf61c6186edbf6ff0866448d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Starcat/Shared/Models/RepoDetailViewData.swift:136-141 | Starcat/Shared/Models/RepoDetailViewData.swift:162-168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Models/RepoDetailViewData.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"81da5aaa25581a3499d658f178d7b543e6c9bf6d559e7184173a7014b1429c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:885-892 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:392-399 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5703d6686876d0afe64ebb0c442ec11622bcb68ca45ff34c0e962b1912fb89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1279-1289 | Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift:1031-1036 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:967-976 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1279\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c59e44cb87dad024c845868259df4007051cae6eaeb743d83a9fe488cdf90ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1073-1078 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1143-1148 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1280-1285 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1073\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e793da16bae502990feb75e0e693d48a0ce20e25e420a47a3b9a9b31c016d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 13): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:391-393 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:642-645 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:671-674 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1741-1743 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1794-1797 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2425-2430 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2519-2522 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2570-2572 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2590-2593 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2690-2695 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2718-2721 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2993-2997 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3213-3215 \u2014 all 13 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:394\u0060 calls \u0060column\u0060, \u0060notNull\u0060, \u0060defaults\u0060 and \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1744\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3ce1f129b0457dac83b29894d6e0203991c18cbc732869271ec953a138b52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2653-2660 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2758-2765 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"a041535de328cac2094ba790092b81287674c08e5bbfd6319c3f64b9b1cca66f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Download/RepoFileDownloader.swift:353-358 | Starcat/Core/Download/RepoFileDownloader.swift:363-368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Download/RepoFileDownloader.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"2850705ba0573d258cc77a0716ff4fec922770a5166cf54975cb7d13193a9cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift:1257-1262 | Starcat/Features/AI/SemanticSearchService.swift:381-386 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"6743a05470de37ce2f79cae839596aaaf400ff27e2d61c1bf18f61e2b2fca1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Sync/TrendingRepository.swift:110-115 | Starcat/Core/Sync/TrendingRepository.swift:213-218 \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 \u0060Starcat/Core/Sync/TrendingRepository.swift:110\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":"Starcat/Core/Sync/TrendingRepository.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3da183e15576f7e2d3e8a80a47facf09080da149be47f986f0f1981875bd5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/AI/AIOrganizationDraftRepository.swift:244-249 | Starcat/Features/Agents/Core/AgentRunRepository.swift:514-519 \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 \u0060Starcat/Features/AI/AIOrganizationDraftRepository.swift:244\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":"Starcat/Features/AI/AIOrganizationDraftRepository.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c6e583ba472af36e48034801ff13a874010dab1cca4707738304b59e785c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:94-99 | Starcat/Features/AI/BatchAIOptionsSheet.swift:173-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74bd63beab8e7d0370e51af76b3e90d261905657b426ee4e20f32cc4f724c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:104-109 | Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift:245-250 \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 \u0060Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift:104\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":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ae7e9539c5c9b6e5a5a4c8b75ff211c9edf82e4f17ead41df6402a0d1c780b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/About/AboutView.swift:169-174 | Starcat/Shared/Components/LaunchSplashView.swift:496-501 \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 \u0060Starcat/Features/About/AboutView.swift:169\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":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec18482e0241ae456591695ac8787291e17343b1141da00c18be495c1529437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:392-396 | Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:451-456 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2286693de429ec32dff9c95eb434ec8dab0134adc2d1ee400654c268f1e680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:427-434 | Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:466-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift:427\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 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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1f20cf64b76f03e4ccc1541f7516f57d13686fc6fb5967ce405cf0545e6ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:421-426 | Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:583-588 \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 \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift:421\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":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8d264676a88d84e6dba7daf84381ee2661ab61f75f2c88b50e0003ed0e7273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:290-296 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:359-364 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:297\u0060 calls \u0060appendingPathComponent\u0060, \u0060write\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:365\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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e20afc1d178de78edb54e22aa3608a5940222de7122b15a99e50bef26f060a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:695-702 | Starcat/Shared/Services/RepoContextStorage.swift:952-959 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"1629e11dff82b55335f9cce7f77a1c0e6838732691ebc36d075179051a6fff33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowViewModel.swift:294-299 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:643-647 \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 \u0060Starcat/Features/CodeGraph/CodeFlowViewModel.swift:294\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowViewModel.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49b4fe3f307498a6761fa679bad09bc9d4e6a18c5f1f9781d60ad53a88b1354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Explore/ExploreModeHelpPopover.swift:182-187 | Starcat/Features/RAG/UI/RAGPlanSectionHelp.swift:217-222 \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 \u0060Starcat/Features/Explore/ExploreModeHelpPopover.swift:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/ExploreModeHelpPopover.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19aa5579a2618c8e0e6f8e09c5518638213971bd3d47b060e40cce83bbbb8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift:20-25 | Starcat/Shared/Components/ReadmeAttachmentImageSchemeHandler.swift:25-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift:20\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":"Starcat/Features/FollowGraph/FollowGraphAvatarSchemeHandler.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"490d586ed82a088ed7c3281d8e5bddf152d79475502ee8413c940388ec31b6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Home/BatchActionBar.swift:722-727 | Starcat/Features/Tags/RepoTagsSection.swift:317-325 \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 \u0060Starcat/Features/Tags/RepoTagsSection.swift:317\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"111169ce2648d945bb8116d04abf07242b71d34756b84dde3294ae9ce4487a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/MCP/StarcatMCPFacade.swift:405-410 | Starcat/Features/MCP/StarcatMCPToolRegistry.swift:876-881 \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":"Starcat/Features/MCP/StarcatMCPFacade.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73c93c952ad1f7af345501715824b0ffee2358e0899414693a21fbe28274e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1473-1478 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1485-1490 \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 \u0060Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00607\u0060 in one and \u00608\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":"Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e9672ee92b955b567566a7fca0a8241326508d85f6726964fdfbcdb8f434fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Starcat/Features/RAG/UI/RAGLiveAssistantPresentationView.swift:69-84 | Starcat/Features/RAG/UI/RAGWorkspaceAnswerSurface.swift:1326-1341 \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":"Starcat/Features/RAG/UI/RAGLiveAssistantPresentationView.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a119150f97334bc9e23db476b3d7b2eef8a208be7ecaf6eb830a3a570cb392de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2697-2702 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2722-2727 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:2697\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5d9d8427fa4a6f72beced01d74f6f69ffd59057f4c6807eb95d31d25acc77b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3572-3577 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3586-3591 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3578\u0060 calls \u0060fixedSize\u0060, \u0060frame\u0060 and \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3592\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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":3572}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeea6fcc71b91f3f3e9359f35c35422ca518976d9abf0485c49ed792f3f6fe09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:549-556 | Starcat/Shared/Components/CountedSegmentedControl.swift:34-39 \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 \u0060Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift:549\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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dd367681f83a22eff264fbd15f2d9b89d70a6586f82ede30103feee588d596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Settings/ProHeroBackground.swift:73-78 | Starcat/Features/Settings/ProHeroBackground.swift:86-91 \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 \u0060Starcat/Features/Settings/ProHeroBackground.swift:73\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":"Starcat/Features/Settings/ProHeroBackground.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb98b32a4aaf9a40a4c4eb2eb00fa1db0ead3dd41a285111e5ef952cb2d23000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Shared/Components/GitHubMarkdownFitWidthImage.swift:218-224 | Starcat/Shared/Components/GitHubMarkdownFitWidthImage.swift:267-273 \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":"Starcat/Shared/Components/GitHubMarkdownFitWidthImage.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"845f2cb11588b24dde35cd3a87d7af5c01c0cdab4c968d1d0df45d041969828c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:495-500 | Starcat/Shared/Services/DiskChatHistoryStore.swift:818-823 \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 \u0060Starcat/Shared/Services/DiskChatHistoryStore.swift:495\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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fee89e38858c3d8eaed917134ebf6a9c8cb9bd6b0d896a275a0f6d6d45887ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Starcat/Features/Companion/CompanionLocalServer.swift:291-296 | Starcat/Features/Companion/CompanionLocalServer.swift:321-326 | Starcat/Features/Companion/CompanionLocalServer.swift:377-382 | Starcat/Features/Companion/CompanionLocalServer.swift:408-413 | Starcat/Features/Companion/CompanionLocalServer.swift:446-451 | Starcat/Features/Companion/CompanionLocalServer.swift:475-480 \u2014 all 6 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 \u0060Starcat/Features/Companion/CompanionLocalServer.swift:291\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":"Starcat/Features/Companion/CompanionLocalServer.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dfb29756e4871f8f6567e91bac44b2fe5be5d4b008da9acf7779db87810509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:716-720 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:941-945 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:955-959 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3104-3108 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3149-3153 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:716\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37240d4510dd4808be214664b7a1c556339323b62d3d5d504f11385cdd7c6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Starcat/Core/Settings/AppSettings.swift:180-184 | Starcat/Features/Activity/WeeklyContentView.swift:491-495 | Starcat/Features/Trending/TrendingViewModel.swift:107-116 | Starcat/Shared/Components/Toolbar/UnifiedSortMenu.swift:227-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Settings/AppSettings.swift:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a815a416bdd74bca5841cfcc3f52f519a6204042b0e013b2b70828158fbc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Starcat/Features/Auth/GithubDeviceFlowService.swift:64-68 | Starcat/Features/Auth/GithubDeviceFlowService.swift:192-196 | Starcat/Features/Auth/GithubWebFlowService.swift:152-156 | Starcat/Features/Auth/ProjectAccessOAuthService.swift:271-276 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/Auth/ProjectAccessOAuthService.swift:271\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":"Starcat/Features/Auth/GithubDeviceFlowService.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acd344b1e957629304b265a4abba3cd406f3600471d52e68c969c1bd4015d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): Starcat/Core/Network/GitHubAPI/DeveloperLanguageAPI.swift:27-29 | Starcat/Core/Network/GitHubAPI/OrganizationIssuesAPI.swift:69-73 | Starcat/Core/Network/GitHubAPI/RepoIssuesAPI.swift:78-82 | Starcat/Core/Network/GitHubAPI/RepoIssuesAPI.swift:116-120 | Starcat/Core/Network/GitHubAPI/UserProjectsAPI.swift:135-137 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Network/GitHubAPI/OrganizationIssuesAPI.swift:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Core/Network/GitHubAPI/UserProjectsAPI.swift:137\u0060 calls \u0060URLQueryItem\u0060 and \u0060Starcat/Core/Network/GitHubAPI/DeveloperLanguageAPI.swift:29\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/DeveloperLanguageAPI.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff3159fe6e3d64181d6f2c8b0a6496131722b610896ee4b2c282b56511534ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3558-3562 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3572-3576 | Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3586-3590 \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 \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3558\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3578\u0060 calls \u0060fixedSize\u0060, \u0060frame\u0060 and \u0060Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift:3564\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"470f37c56ed8c892106f505aa72b52710475516f0cbf94b7a2a2a0bd17dbef2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:1662-1667 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3119-3123 \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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc2ae28595b9344063c9339235a7936a38108b6f43fc67ade42f9962a908ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Network/AnySearch/AnySearchClient.swift:96-101 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:364-369 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/AnySearch/AnySearchClient.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4ed3b113e90d6d1a781140cbd5c4fb5614c8a7e37b616a9334f873b995ebdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:958-963 | Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift:1046-1051 \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":"Starcat/Core/Network/GitHubAPI/GitHubRepositoryMetricsClient.swift"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"b228542c236111802712e106ce57ae1d7d29b4b610ca8b886e357e8ce07acbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Sync/DiscoveryRepository.swift:210-214 | Starcat/Core/Sync/DiscoveryRepository.swift:300-304 \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 \u0060Starcat/Core/Sync/DiscoveryRepository.swift:210\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":"Starcat/Core/Sync/DiscoveryRepository.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"671399fbc010a5707d73f96dbe54e514d5732db94e5ab466c894e11749a63686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Sync/GitHubStarListSyncService.swift:443-448 | Starcat/Core/Sync/GitHubStarListSyncService.swift:467-472 \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 \u0060Starcat/Core/Sync/GitHubStarListSyncService.swift:443\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":"Starcat/Core/Sync/GitHubStarListSyncService.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"85115de90eaf963cc0c64d45bbf4a00f37f1df7a479bf294714fffe81b317875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:316-320 | Starcat/Features/AI/LocalAI/LocalAIModelManager.swift:624-628 \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 \u0060Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift:316\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":"Starcat/Features/AI/LocalAI/LayaDecisionModelManager.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"115757a64a0ed22350131c378f1d7f24c065bc34d5184ed86d94acaf6eb65e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/AI/RepoAIInsightService.swift:1855-1859 | Starcat/Features/AI/RepoAIInsightService.swift:1868-1872 \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 \u0060Starcat/Features/AI/RepoAIInsightService.swift:1855\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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"754ff54310a9ddd8e5f7a602f6cae61d599731e7ec797a33e6dd584014cceb10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Starcat/Features/About/AboutView.swift:170-174 | Starcat/Features/About/ReleaseNotesView.swift:91-94 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:712-716 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Features/About/ReleaseNotesView.swift:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2adf636e2fedadb829c563ae0de70733f1b777b9e0899d4f35d20474eafbfcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/About/AboutView.swift:501-505 | Starcat/Features/About/AboutView.swift:767-771 \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 \u0060Starcat/Features/About/AboutView.swift:501\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, \u0060Starcat/Features/About/AboutView.swift:772\u0060 calls \u0060onPreferenceChange\u0060 and \u0060Starcat/Features/About/AboutView.swift:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/About/AboutView.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8ab6b0795bb14cb47a4c8cda4ddf69eaae0e8aaf293b47be958cd79684e881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:294-298 | Starcat/Shared/Services/RepoContextStorage.swift:447-453 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:293\u0060 calls \u0060loadProject\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift:446\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e65514f8ff9ca295d6d6adc74d0e659c26f0b11a54508c10b4d2472eeff593e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Home/ReadmeViewModel.swift:336-340 | Starcat/Features/Home/ReadmeViewModel.swift:520-524 \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 \u0060Starcat/Features/Home/ReadmeViewModel.swift:336\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":"Starcat/Features/Home/ReadmeViewModel.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6eb1dc4a0d18f81ea6eb08a43b1e4c50ec77bb50f8393d5ad39bc3b47e0e049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Profile/ContributionService.swift:196-201 | Starcat/Features/Profile/DeveloperLanguageService.swift:252-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 \u0060Starcat/Features/Profile/ContributionService.swift:196\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":"Starcat/Features/Profile/ContributionService.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d107fec17cf60b851531cc47bb08510ba6fc972942025cb106e4bc1febf66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:898-903 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1609-1614 \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 \u0060Starcat/Features/Profile/ShareCard/ShareCardContent.swift:898\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00604\u0060 in one and \u00603.5\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"1227b8df101b3b20974890d2cd453692cf0e5ccdb93c74e2a5a27e69fb68ab32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/RAG/UI/RAGContextUsagePopover.swift:127-131 | Starcat/Features/RAG/UI/RAGContextUsagePopover.swift:141-145 \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 \u0060Starcat/Features/RAG/UI/RAGContextUsagePopover.swift:127\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":"Starcat/Features/RAG/UI/RAGContextUsagePopover.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1185f54d293101ca2f77295ee4280d8660984989cd8e7d750776ae5b91f62f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Recommendations/RecommendationContextService.swift:174-180 | Starcat/Features/Recommendations/RecommendationContextService.swift:236-242 \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 \u0060Starcat/Features/Recommendations/RecommendationContextService.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Recommendations/RecommendationContextService.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fd078e48c236dc500e4f1b01b850207876361f1539c422f28da823ae4d8831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Download/ReleaseAssetDownloader.swift:70-76 | Starcat/Core/Download/RepoFileDownloader.swift:115-121 \u2014 before extracting anything, compare \u0060Starcat/Core/Download/ReleaseAssetDownloader.swift\u0060 and \u0060Starcat/Core/Download/RepoFileDownloader.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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":"Starcat/Core/Download/ReleaseAssetDownloader.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae5613fc740dd1b78bb8ab341376d324175266114d713bcb1090306696f982a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubUserAttachment.swift:151-157 | Starcat/Features/Settings/ProSettingsView.swift:1977-1983 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/GitHubUserAttachment.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf9d3b42d54f81384aede91dccab9afa32d54d2acd2fc1824bee94181f87446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Network/OpenSSFScoreAPI.swift:84-88 | Starcat/Core/Network/WikiAPI.swift:95-99 \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":"Starcat/Core/Network/OpenSSFScoreAPI.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f945523813e011cb3a203c31c078211764080cdf4ac6f0eab9da1c94c642317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Network/TypeSafeClient.swift:138-146 | Starcat/Features/AI/DecisionEngine.swift:54-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/TypeSafeClient.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0139f163823240b1bc2587bfae47e612c406558a468b82b5f5d6e45092bc4b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/RAG/RAGChunkRepository.swift:1018-1022 | Starcat/Features/RAG/Core/RAGSearchProviders.swift:256-260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ce073b5c86078c03e27fe7e3ce7db5c17b18a5803094002ef3662e85246647"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Scheduling/OpenSSFScorePoller.swift:76-83 | Starcat/Core/Scheduling/RepoHealthPoller.swift:86-93 \u2014 before extracting anything, compare \u0060Starcat/Core/Scheduling/OpenSSFScorePoller.swift\u0060 and \u0060Starcat/Core/Scheduling/RepoHealthPoller.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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":"Starcat/Core/Scheduling/OpenSSFScorePoller.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a3d8f4c2a8235cbf30c866c2c1246f7f57795aa81fb0c403720785f742445d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift:133-138 | Starcat/Core/Widget/Shared/WidgetSnapshotStore.swift:105-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Screensaver/ScreensaverSnapshotStore.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3080e71e716e39740dc02a9a32f23cb3ac17f713037012bf92d1c606b579b107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:59-66 | Starcat/Core/Sync/ActivityEventRepository.swift:46-53 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:40-47 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a2a68654209507b9d789ec867dbddaa2e1d7397289b202d5c0e95dc90618e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:101-108 | Starcat/Core/Sync/ActivityEventRepository.swift:87-94 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6947606d412e4b75b176a4b692462061b339780eb0fd5aa9506b1b0d1289295d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:110-114 | Starcat/Core/Sync/ActivityEventRepository.swift:96-100 | Starcat/Core/Sync/ReleaseRepository.swift:202-206 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bbc212d33f5aaf0ad78301d33faea43e02bc80545e830f24365787b13567ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:116-125 | Starcat/Core/Sync/ActivityEventRepository.swift:102-114 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"244f67d27f37ead12fdc478d45de0ecf7b18d18884fc477dab4efcc0b025c221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:127-131 | Starcat/Core/Sync/ActivityEventRepository.swift:116-120 | Starcat/Core/Sync/SearchHistoryRepository.swift:103-107 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5841d2a7d524f57375a1ef00f68c02606ae17192cd96f7ff93309efd5ba92b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Sync/ReadmeRepository.swift:190-194 | Starcat/Core/Sync/TrendingReadmeRepository.swift:124-128 \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":"Starcat/Core/Sync/ReadmeRepository.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6257ec3fc64343a3a7485278927a1efc37243f7358353f8a4c3d871c405ef0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Sync/ReadmeRepository.swift:198-202 | Starcat/Core/Sync/TrendingReadmeRepository.swift:131-135 \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":"Starcat/Core/Sync/ReadmeRepository.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a4a5a920d5ed8238650ff323df4536dbe0df89228996f564a7d811f2d8ea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:290-297 | Starcat/Features/AI/TagTaxonomyBootstrapView.swift:347-354 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b5b5accfcb83430e736beabf1661b85156977d250d8804f030a6af8ccdf70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:544-551 | Starcat/Features/AI/RepoAIGenerationOptionsSection.swift:168-175 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d95ec966518b4989970a1c6f2c11baac669753fe1d7da77e7d440e2b555018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/AI/BatchAIOptionsSheet.swift:553-559 | Starcat/Features/AI/RepoAIGenerationOptionsSection.swift:177-183 \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":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a564ca431454101d74a4a0b166bd00e41975bdf2e4377b3fc0bf51117b3871e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/AI/BatchAIQueueService.swift:2337-2342 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1606-1611 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb46e3f84d97eb8897cf947ec70a303c64586256c62331b3e3e12a17e6ef609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/AI/BatchAIQueueService.swift:2461-2467 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:2003-2009 \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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"7349bbf0a324a8384a869bc96969795927b0049ef56965d612f447279afa2076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/AI/BatchAIWorkspaceWindowController.swift:163-173 | Starcat/Features/Explore/AwesomeSourceManagerWindowController.swift:101-110 | Starcat/Features/Home/GitHubStarListAIGroupingWindowController.swift:138-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/Home/GitHubStarListAIGroupingWindowController.swift:134\u0060 calls \u0060activate\u0060 and \u0060Starcat/Features/Explore/AwesomeSourceManagerWindowController.swift:97\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":"Starcat/Features/AI/BatchAIWorkspaceWindowController.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbf3f8edc6cb6cc6f53860adcc6b6798425fa0ef52f40efa7104cafe647576c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/AI/BatchAIWorkspaceWindowController.swift:175-183 | Starcat/Features/Home/GitHubStarListAIGroupingWindowController.swift:151-159 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIWorkspaceWindowController.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ecf582da5332783fab1e2f34d11bd197859828bcaa39b687b51803889c2310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Starcat/Features/Activity/ActivityDetailScaffoldShell.swift:143-155 | Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift:94-106 | Starcat/Features/Trending/TrendingScaffoldShell.swift:133-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dac02ac1fb1f88b15274c60b6fb3c2f466cfb000e5c514ca2b674e0986d4986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift:153-159 | Starcat/Features/Activity/ActivityView.swift:749-755 \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":"Starcat/Features/Activity/ActivityReleaseDetailScaffoldShell.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce70800324d28f5755909d0c7da651340713ff4a3440c11ee4502dddfead0334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Features/Activity/ActivityView.swift:395-399 | Starcat/Features/Activity/WeeklyContentView.swift:768-772 | Starcat/Features/Explore/ExploreView.swift:708-712 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc19b6dfbffff1813154376c2d95de4a4a490d18159c6679c915637d16113b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Starcat/Features/Activity/ActivityView.swift:401-407 | Starcat/Features/Activity/WeeklyContentView.swift:774-780 | Starcat/Features/Explore/ExploreView.swift:714-720 | Starcat/Features/Explore/LinuxDoView.swift:217-223 | Starcat/Features/Home/HomeViewModel.swift:3910-3919 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Starcat/Features/Explore/ExploreView.swift:722\u0060 calls \u0060isInLibrary\u0060 and \u0060Starcat/Features/Activity/WeeklyContentView.swift:782\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6b02600718c11cacde8a5743caf06be69fb2fec53ed7867ff6090e9f272d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Activity/ActivityView.swift:600-609 | Starcat/Features/Home/RepoListView.swift:2587-2596 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0325e74d39185cb7ab9686f50596283597e22f4aea321af7197de829c714952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Activity/ActivityView.swift:624-633 | Starcat/Features/Home/RepoListView.swift:2598-2607 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af7c219e6b67ff2335c89559c61287e5be0ffffb9164bf6e016e5bcae16ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift:268-272 | Starcat/Features/Onboarding/FirstRunWelcomeSheet.swift:1543-1547 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/GitHubNotificationNoSelectionPlaceholder.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e50634ff05c6667a3014a0f8ef49f714a152319c05a8adf566c7d6347c1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/Activity/WeeklyContentView.swift:1870-1876 | Starcat/Features/Explore/ExploreDiscoveryViewModel.swift:719-725 | Starcat/Features/Trending/TrendingViewModel.swift:787-793 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c58b1f97b87795b53cce0fc28531b0f347da96363c63344a51ca1bc87490f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift:331-349 | Starcat/Features/Explore/DiscoveryDetailView.swift:135-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc859b7c0b668ad2c679e7d4874e9b22378704f408e1596e2e5a9cdd25af9b22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:476-481 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:81-86 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2713e2464d5a4da9d24de465f58922aac24ac74818e8e4ca3129e95edb8630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1486-1496 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:403-413 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1486}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e7a139c35523aef5ea6ffa01540e453bea3cd0f10f75d8ddf9ef02e5d7dd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift:1499-1505 | Starcat/Features/Agents/Core/AgentWorkspaceView.swift:416-422 \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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8efb58c148f2f49f068ec4745ddc24aa78220e895e8814cfffa95ac5080ffac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:371-376 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:260-265 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7e036e085da4c1230b82538364138bb6efb7aefcdc44a69e7557853f272ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/Agents/Core/LoopAgentRuntime.swift:1060-1070 | Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift:248-258 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce5503de4f7bd50473e188a1214621c231f9128cf2f93f7da472c74fe7adc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:179-187 | Starcat/Shared/Services/RepoContextStorage.swift:181-189 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6b0db209e35b4fd54085afc56449ebb3b7997c2e1b2d89af64f659e1752e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:246-253 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:305-312 | Starcat/Shared/Services/RepoContextStorage.swift:257-264 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b5e633d3d3415dc6ef4fa5bb6794898e880cdef5de0bdaf19a315a0508069f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:258-268 | Starcat/Shared/Services/RepoContextStorage.swift:275-285 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4e379d5066ea7d5ad6c665a3a9f2b2bdaa04e9e209793ddec5598db4998966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowStorage.swift:271-281 | Starcat/Shared/Services/RepoContextStorage.swift:289-299 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Shared/Services/RepoContextStorage.swift\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 259 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af9ddef93cf69bae88322718dca61f455c6ffa2db7c558529d6888a207a92f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:376-381 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:417-422 | Starcat/Shared/Services/RepoContextStorage.swift:592-597 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"d098f601e1f5757b298ee0db1ba249f7c2fefd53bd8ad64e1c01a50cafc7c4b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Starcat/Features/Collections/SmartCollectionRuleEditorView.swift:574-580 | Starcat/Features/Home/RepoListView.swift:2609-2615 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:383-389 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/SmartCollectionRuleEditorView.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"541b8129186b17974d72f9dff1fc2c6b50ede71f769d6acf4458559de999c83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/Explore/AwesomeView.swift:621-630 | Starcat/Features/Trending/TrendingListPipeline.swift:138-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb38b9f8a0c18e971e811791782dd201d4d6e338959b26a1e9cb1fc777b0314f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Home/HomeViewModel.swift:723-728 | Starcat/Features/Home/SidebarView.swift:1440-1444 \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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"191cc0ab2ca54a4f5735120f5e4e07f9ecf0199f648f473dc54d7e160ee603bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/MCP/MCPSettingsView.swift:484-489 | Starcat/Features/Settings/IntegrationSettingsView.swift:672-677 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/MCPSettingsView.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cab30c914b1d68260bcf55565a5ed28dc3032890c3e2df733faa6755848d84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift:180-188 | Starcat/Features/RAG/UI/RAGUserMessageBlock.swift:170-178 \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":"Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d01e8bd6b48ceaa5df7f39bccab6ad99719a3dab335777052cc480ddada293d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift:23-32 | Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift:18-27 \u2014 before extracting anything, compare \u0060Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift\u0060 and \u0060Starcat/Features/RAG/UI/RAGRepositoryInsightsXMLPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 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":"Starcat/Features/RAG/UI/RAGRepoContextXMLPopover.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12e03d43cb236bdbd4a61e8d51fd84aaee1a8961b8340418c8aa6507e70ca94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:894-900 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:401-407 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"478bef07c359fef12c93d2218c6312d436851b24cc4fb91c6e3c2cc0bd65b33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Shared/Services/DiskExternalSearchCache.swift:71-75 | Starcat/Shared/Services/DiskIssueTimelineCache.swift:74-78 | Starcat/Shared/Services/DiskWikiCache.swift:180-184 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskExternalSearchCache.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b47f8771c96f84463bf9d2a809e89604b39e8dc5f1b6db1b15fee412243096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:84-93 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:80-89 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4f663375c24ce6d20424d8209ee8ccb646956fbc3fbd5c9df2fe51272349ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:180-187 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:184-191 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9999b89b763d674d3fc3f45d83d14ed9b755d2e76832374af1bc822c2a39d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:281-287 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:285-291 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a01fef3ad7acdb990590bdb9376ef6f0d7b5bc453c7d4079fec215ff5bd8230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): StarcatWidgets/Contributions/StarcatContributionProvider.swift:16-21 | StarcatWidgets/Rediscovery/StarcatRediscoveryWidget.swift:32-37 | StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift:32-37 \u2014 before extracting anything, compare \u0060StarcatWidgets/Contributions/StarcatContributionProvider.swift\u0060 and \u0060StarcatWidgets/ReleaseWatch/StarcatReleaseWatchWidget.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatWidgets/Contributions/StarcatContributionProvider.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1a11381d019483a395099d52e2a50c3713d6abac8d18e4f1b8197e02e229fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Capabilities/RepositoryMetadataCapability.swift:131-136 | Starcat/Core/Capabilities/RepositoryTagCapability.swift:445-450 \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":"Starcat/Core/Capabilities/RepositoryMetadataCapability.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d3dd22ac53ec599b02c2cb2610d58087d496487e7fdc36dc84bd2ab1480297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Capabilities/RepositoryTagCapability.swift:509-513 | Starcat/Core/Spotlight/RepositorySpotlightEntity.swift:90-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Capabilities/RepositoryTagCapability.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7505b3aef6396098c4898338903e52c281e76e8a6cb76f2a378204e40028a1da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Health/RepoHealthRepository.swift:56-61 | Starcat/Core/Sync/OpenSSFScoreRepository.swift:55-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Health/RepoHealthRepository.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef7d65a603b448c641b71690a9cd28b09f6075f26fb7ff3f02353c4abe1d6fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Starcat/Core/Sync/ActivityAnnouncementRepository.swift:30-42 | Starcat/Core/Sync/ActivityEventRepository.swift:32-44 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:20-32 \u2014 before extracting anything, compare \u0060Starcat/Core/Sync/ActivityAnnouncementRepository.swift\u0060 and \u0060Starcat/Core/Sync/ActivityEventRepository.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 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":"Starcat/Core/Sync/ActivityAnnouncementRepository.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58c7366f9bab094f6f53399116ca56e478c60f3aed311f6e56c3ca23555f871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Sync/ActivitySyncStateRepository.swift:29-33 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:573-580 \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":"Starcat/Core/Sync/ActivitySyncStateRepository.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"413834108c5fcd97fbe1e34b5eb920e5577771df1c9ba6b0f636d3a1eddb7333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Sync/AwesomeCustomSourceService.swift:63-71 | Starcat/Core/Sync/UserProjectSyncCoordinator.swift:63-71 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060repository\u0060 to \u0060any AwesomeRepositoryProtocol\u0060 in one and \u0060any UserProjectRepositoryProtocol\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":"Starcat/Core/Sync/AwesomeCustomSourceService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38dd102a62eb3bbe25331ca428041cfc169d94be3d7cf448009e6f05eb918f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:411-421 | Starcat/Core/Sync/GitHubNotificationThreadRepository.swift:423-433 | Starcat/Core/Sync/GitHubStarListRepository.swift:191-198 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Sync/GitHubStarListRepository.swift:191\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":"Starcat/Core/Sync/GitHubNotificationThreadRepository.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1222ee4f608b09f0bc96adb4b9c10c60e944e1684b12c5fd14ccc8e89904ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Starcat/Core/Sync/GitHubStarListRepository.swift:118-122 | Starcat/Core/Sync/GitHubStarListRepository.swift:369-373 | Starcat/Core/Sync/TagRepository.swift:46-50 | Starcat/Core/Sync/TrendingReadmeRepository.swift:108-112 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListRepository.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc1b5b839f68496e3c8eb57dda5faa3dade1a299f02fe5e0cde70fc79822f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Starcat/Core/Sync/GitHubStarListRepository.swift:206-214 | Starcat/Core/Sync/GitHubStarListRepository.swift:216-224 | Starcat/Core/Sync/RepoTagRepository.swift:109-117 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListRepository.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa033bc585d5d3f60eddcb9e52c42efb268d392f66b9a9aecc42b9c2fb60db27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Core/Sync/GitHubStarListRepository.swift:336-343 | Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:37-44 | Starcat/Core/Sync/RepoRepository.swift:185-189 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListRepository.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"831a029b28a11d224fe84da3f215b10dbc54f2537f33abf4486e988a63e7217c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Sync/ReadmePrefetchRepository.swift:173-178 | Starcat/Core/Sync/ReadmeRepository.swift:59-64 \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":"Starcat/Core/Sync/ReadmePrefetchRepository.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d918d04ce6e964186f22ca2ba3cb1ad6e7d81b1867f392d9a006af02e47a99c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Core/Sync/ReadmeRepository.swift:67-75 | Starcat/Core/Sync/TrendingReadmeRepository.swift:97-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Sync/TrendingReadmeRepository.swift:92\u0060 calls \u0060enforceLRULimits\u0060 and \u0060Starcat/Core/Sync/ReadmeRepository.swift:62\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/ReadmeRepository.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fdc694a95322701cb489a69e16922bb97569e9535821d7a9e7ef97dc63b3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Sync/ReleaseSubscriptionRepository.swift:140-146 | Starcat/Core/Sync/RepoTagRepository.swift:236-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":"Starcat/Core/Sync/ReleaseSubscriptionRepository.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a053dd0cc9a1c6b03c91d1424dbc79d9abcc3030e3f1bece3a19f99d6f8c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Core/Sync/SmartCollectionRepository.swift:30-36 | Starcat/Core/Sync/TagRepository.swift:108-114 \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":"Starcat/Core/Sync/SmartCollectionRepository.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4d2966cf6e07a00a39d583d966c780a1925636c52cd208c0c908811c5b870c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Sync/SmartCollectionRepository.swift:57-61 | Starcat/Core/Sync/TagRepository.swift:40-44 \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":"Starcat/Core/Sync/SmartCollectionRepository.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2689df05afa1a6bba14b126743c398fb8cd490bbb1deccabbcf30799405eabb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/AI/Anthropic/AnthropicClient.swift:118-127 | Starcat/Features/AI/LocalAI/LocalMLXClient.swift:82-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6e1f15b083b95cb75ecc883991d112fe132bc4eb555b6114b8864f73b0d72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/AI/BatchAIQueueService.swift:929-936 | Starcat/Features/AI/GitHubStarListAIGroupingSession.swift:1175-1182 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060filter\u0060 to \u0060BatchAIResultFilter\u0060 in one and \u0060GitHubStarListAIResultFilter\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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfcf3f556a7cb18aaca7b0b582f916f57c2b7fc0c206a9e7850a46be9a76187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Starcat/Features/AI/BatchAITagReviewRow.swift:111-124 | Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift:255-268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bcdb584ac2168d275e1b43e03cc84409b34ab40483ce2902e96f09a07fe835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Features/AI/JevDecisionEngine.swift:163-167 | Starcat/Features/Ambient/Core/AmbientCardFactory.swift:90-94 | Starcat/Shared/Components/Toolbar/ToolbarRepoSelection.swift:145-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/JevDecisionEngine.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a5c1148cd05ad797caf6770e06039e1136ce0cd80dba734afeeb88f0db7498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/AI/LocalAI/LocalMLXClient.swift:146-152 | Starcat/Features/AI/OpenAIClient.swift:602-606 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/LocalAI/LocalMLXClient.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"31eac6ba837772a5ffdf3fa451096475e42d1203d3110a65a4544e032498d6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Features/CodeGraph/CodeFlowPanel.swift:18-23 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift:27-32 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowPanel.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryPanel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowPanel.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"033d13ed66ec269c4d4ef8ba3e2d056056971553a63b7f8bae8c4ab67215546e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:129-138 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:44-53 | Starcat/Shared/Services/RepoContextStorage.swift:123-132 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0955a89d09050cf53abc1f7b3f2d47226812c309cdc956088aac509035e0c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Starcat/Features/CodeGraph/CodeFlowStorage.swift:283-287 | Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:346-350 | Starcat/Shared/Services/RepoContextStorage.swift:307-311 \u2014 before extracting anything, compare \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift\u0060 and \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 243 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:340\u0060 calls \u0060isDirectoryAuthorizationError\u0060 and \u0060Starcat/Features/CodeGraph/CodeFlowStorage.swift:279\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee078fe79e84d090220986f2cadf6e0553c4c7f66b7eff4a2f540006933176b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Companion/CompanionContextProvider.swift:383-390 | Starcat/Shared/Utilities/StarcatResourcesProvider.swift:93-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"051e3aabf2a3eb9bbcbe4ecccb4fbc91529f757a6ffe42b959231afaebb79bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Home/RepoListView.swift:2888-2894 | Starcat/Features/RAG/UI/RAGContextPickerFilterControls.swift:399-405 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"67165944644cd37d624abe5b195d3a20efdc92e315a55b795ba9c4eee05d9226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:256-264 | Starcat/Features/Profile/ShareCard/StarredHTMLRenderer.swift:328-336 \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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebef1a8d10d0cea820de4e86726cf42227e27e33040770ca1fd12dd197d68fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Features/Search/SearchCenterView.swift:2069-2080 | Starcat/Features/Settings/CCSwitchImport/CCSwitchImportPreviewSheet.swift:225-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"925cae1974f3920a5cf61028eb6685c53351b4b187395a25f572f6a45ce208d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Shared/Services/DiskChatHistoryStore.swift:974-978 | Starcat/Shared/Services/DiskReadmeTranslationCache.swift:451-455 \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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af451f2780db5cc83de18a7d732724c6d468b199717b2d2702fd98110489196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Shared/Services/DiskIssueDraftCache.swift:243-248 | Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift:247-252 \u2014 before extracting anything, compare \u0060Starcat/Shared/Services/DiskIssueDraftCache.swift\u0060 and \u0060Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 85 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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19923a62d4ed634590ca56a9d3646c80ca15b626fa997703741c602dd40ceb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/App/StarcatApp.swift:308-312 | Starcat/App/StarcatApp.swift:336-340 \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 \u0060Starcat/App/StarcatApp.swift:308\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":"Starcat/App/StarcatApp.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe02ec17a693b542a983db9df69d2f1ace47732ac9574ef594853727912c398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/App/StatusBarController.swift:317-321 | Starcat/App/StatusBarController.swift:331-335 \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":"Starcat/App/StatusBarController.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"67325a0ec3c14eb2d7367627d43abbc52e56a2e67f290659b303d0b54b1c7217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3342-3346 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3397-3401 \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 \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:3342\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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":3342}}}],"partialFingerprints":{"codehealthFindingId/v1":"30278ae14186959fa277dd5ae0d1fdc049db69c1e191ec761d43b6675d1cf0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2533-2544 | Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift:2604-2615 \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":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7bd126dd56a5327540a80032eb6e24b4f64fffe8884d59ce377e6273a5c7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Network/AwesomeModels.swift:217-221 | Starcat/Core/Network/DiscoveryModels.swift:181-185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Starcat/Core/Network/DiscoveryModels.swift:178\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Starcat/Core/Network/AwesomeModels.swift:216\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/AwesomeModels.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c8435079f703c936c39c8bed34272cb318312d2351faa935d09f277481b313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift:494-498 | Starcat/Core/Network/StarcatEnvelope.swift:244-248 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/GitHubAPIClient.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3a10e862d5407bc8a083b7f849b47b30209be1f900fa246e193a49e440039c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Core/Network/TrendingAPI.swift:105-109 | Starcat/Core/Network/WeeklyAPI.swift:118-122 \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":"Starcat/Core/Network/TrendingAPI.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb2558d26516d0746b3de93ee57dacf1aa571bbe95b02e52c492fe5cc08f5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Starcat/Core/Sync/AwesomeRepository.swift:156-161 | Starcat/Core/Sync/AwesomeRepository.swift:304-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Starcat/Core/Sync/AwesomeRepository.swift:156\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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2bf6b85f0f3b9085a0ad997c4d0a39c277dfe05cc35a15dd4d78bac423fe1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Activity/ActivityViewModel.swift:546-550 | Starcat/Features/Activity/ActivityViewModel.swift:700-704 \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 \u0060Starcat/Features/Activity/ActivityViewModel.swift:546\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":"Starcat/Features/Activity/ActivityViewModel.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"293378f7bc33f69aa463823132958720b96a922c47404b5ae4d6b5eaf6573130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift:224-231 | Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift:151-158 \u2014 before extracting anything, compare \u0060Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"Starcat/Features/Agents/WeeklyReport/RepoAlternativesArtifactBuilder.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d6ffef0474d2f7893350c15cb6c4dcdfceaf6b7790f7aa3e0d24743a9f021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:213-219 | Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:249-255 \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 \u0060Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift:213\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":"Starcat/Features/ExternalSearch/ExternalSearchProviderClients.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a800c253a786ef35682635dd6eef08d3a1e79ceeb620347f55c1a267b0a648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Home/BatchActionBar.swift:870-874 | Starcat/Features/Tags/RepoTagsSection.swift:471-475 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e42fc55a93abdef222fafe1cf6a8c215aa636383ce83d1076ecdf459ca77c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Home/OpenSSFScoreSheet.swift:525-529 | Starcat/Features/Home/OpenSSFScoreSheet.swift:601-605 \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 \u0060Starcat/Features/Home/OpenSSFScoreSheet.swift:525\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":"Starcat/Features/Home/OpenSSFScoreSheet.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c57c983f782eb1afebff8c99fa4a3a61ef2b9809100d7f8223b95738772207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:190-196 | Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:480-486 \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 \u0060Starcat/Features/Insights/MyInsightsSnapshotProvider.swift:190\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":"Starcat/Features/Insights/MyInsightsSnapshotProvider.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a096b5e97a90857d79184c055df7834abac335c74092725e4ff35fd8611bab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Profile/ContributionGraphView.swift:353-357 | Starcat/Features/Tags/TagColorPalette.swift:52-56 \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 \u0060Starcat/Features/Tags/TagColorPalette.swift:52\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":"Starcat/Features/Profile/ContributionGraphView.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e606e9dc28233a100c6a217e5930322786499ea3ce0b300d35eafd143d83225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:185-189 | Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift:638-642 \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":"Starcat/Features/Profile/ShareCard/LibraryExportRenderer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a428dd76cd6aabe430dc3ceefd6018a499d6da77186b2924f28f5752ef863a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1114-1120 | Starcat/Features/Profile/ShareCard/ShareCardContent.swift:1330-1336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006018\u0060 in one and \u006014\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":"Starcat/Features/Profile/ShareCard/ShareCardContent.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bfcc5be670f3991e980b007730f0d503a155beac2ebc25b98de8c7cb3388f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift:274-281 | Starcat/Features/RAG/Core/RAGRepoCandidateRepository.swift:566-573 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060arguments\u0060 to \u0060inout [any DatabaseValueConvertible]\u0060 in one and \u0060[any DatabaseValueConvertible]\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":"Starcat/Features/RAG/Core/KnowledgeBaseAnalytics.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc747a1617cf2b881c849066aab5c82ff6138b283a25477aca7aec2a4c92201b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): supports/scripts/starcat-localization.py:190-200 | supports/scripts/starcat-localization.py:560-570 \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":"supports/scripts/starcat-localization.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b388724e6d207c5f406ca94a12409832ffddf56ce50200e8854a4d2253f6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): supports/scripts/starcat-localization.py:699-706 | supports/scripts/starcat-localization.py:717-725 \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":"supports/scripts/starcat-localization.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9a90a1b2a1d434b930a96930f4452b468fb9bc3b8a09990778e6aad9285bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): scripts/publish-direct-github-release.py:178-198 | scripts/verify-direct-release-artifacts.py:92-104 \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":"scripts/publish-direct-github-release.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a0417452bcd71a1d9f6bdbdc011cef63cc2db9150d6c9cf17c93f15b11d14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): scripts/generate-dmg-background.py:125-132 | scripts/generate-dmg-background.py:174-181 \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":"scripts/generate-dmg-background.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b9e7d5a3d714dae5a0e191bf8fab1da641fe341280671486d66484f31893ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/generate-dmg-background.py:125-131 | scripts/generate-dmg-background.py:174-180 \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":"scripts/generate-dmg-background.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3519855bf07434408797b1f81544f54197b02c9aea5a9d8a0cb8f1e39e4071dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/publish-direct-github-release.py:178-183 | scripts/verify-direct-release-artifacts.py:92-97 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/publish-direct-github-release.py:185\u0060 calls \u0060add_argument\u0060 and \u0060scripts/verify-direct-release-artifacts.py:99\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/publish-direct-github-release.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdb64427240168ee1fd217d58f8b90c92843212f23b96243000afdf3a204dfc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusBarController (LCOM4 10): StatusBarController\u0027s methods fall into 10 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 10 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":"Starcat/App/StatusBarController.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"969af845ca78d8832160d0264f3dba2a194afb7dc027ff40a26b3b1ddc41e888"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StarcatCommandRouter (LCOM4 6): StarcatCommandRouter\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":"Starcat/App/StarcatCommandRouter.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4502902c5e1a4b5ba1f7fa5728cc971646bb3228b6fb5d6b428f839ab733202b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SQLiteChatHistoryStorageBackend (LCOM4 6): SQLiteChatHistoryStorageBackend\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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"4060a0f54cf2c06210ed490d4a3c2dd8b4bd5088063255160564fd60976b17cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 5): Coordinator\u0027s methods fall into 5 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 5 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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d976868407f499f37304f29b5b636b3c62b7746ca73e8d6c3218fb47bab56b6e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockGithubOAuthService (LCOM4 4): MockGithubOAuthService\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":"Starcat/Features/Auth/MockGithubOAuthService.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c885fd4187679b50bd2f9b809c35984cc5a87b53eb0c1d7503157dcf137ce0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DefaultCursorShieldView (LCOM4 4): DefaultCursorShieldView\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":"Starcat/Shared/Components/DefaultCursorShield.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb655d982807a5aeaa71250a3ef53384d1f0d22e81e038066c43524ae2a36113"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodexAppServerDriver (LCOM4 4): CodexAppServerDriver\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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fdb5b905d397eaa034062db1920e998a123983902b20ae7ea0b366894b23d4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateSamples: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/StarredExportSampleGenerator.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d76d69957d6d89371d0d3f0939cb96a9ac379a44704e7319810a29e97e7a31a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: adjacentSlotsAvoidDuplicateArtwork: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AmbientGridEngineTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb69d29099b0e0421398e01ea2a1779ec683e88421aab8337602ea4ae71ada4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cancellation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnthropicClientTests.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d22e350f9edeed9d2670ac13f27f13f31c0a2df0d9007f42ac1ddc5f45820e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingLimitHeaderYieldsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"926951354f3987b56ef13b405ddbf4e4c1c77a3e6454f286e20d3ac3fdc3bf39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingRemainingHeaderYieldsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bf823061228071557552653574d1d23ef06286d8a259ec2db2a37257c96361"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingResetHeaderYieldsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa478184b0f431ee2f49108c27d11420b99610c23657a8ae392dea646e327aec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonNumericLimitYieldsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"940923fc587cd8ab71d5c875e234d9953bc919d6146e511719fe451580539e14"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: nonNumericResetYieldsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a5420e5b89f54353a79d29984e7cc1b97597f33b8ca563ccc0a90d1fdd84a0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: noHeadersYieldsNilRateLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AnySearchClientTests.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ffda5dc0976b16a923fd7b9b4a583cb124d33dfabc6b96332982d9a0715b95"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handleWebFlowCallback_wrongPath: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AuthSessionWebFlowTests.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c3afc1cd9fcbf41953a1a22c8a76cb9a26311ae2cc8972ed0d223519d80a09"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handleWebFlowCallback_wrongScheme: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/AuthSessionWebFlowTests.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"982470b16e59c8ee9619cb169fa72dad6a007f7adc5710cc6fe1fd52b59d91c6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsArchiveAboveConfiguredLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/CodeFlowRunnerTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8fb5741a2604b1f569f423bf88fea363562165fa32e4de57892879c5c53fdb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pageGenerationRespectsConfiguredLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/CodeFlowRunnerTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d021cde3e7f5507fe6ccdae949bffaa811d487018e7f19199e7c35009bd64962"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: proCanUseAITags: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/EntitlementGateTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"36419c813d6837144f9a9eefed9451e5cb4fea485bd9a4e1277296aa97569e8b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: codexRuntimeDirectoryRejectsMissingCodeModeHost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ExternalAgentProtocolAdapterTests.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0176c9ad7a813b6f87ae14666a9429dd4f5287088480533ff67986604cac872e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: ignoresStdoutDiagnosticsAndStreamsJSONUntilTerminalEvent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ExternalAgentRuntimeHostTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"798078e91a0c6cfe1c0cf098559e13b7e767cf201068b906282065fac26aa3d4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: executesDynamicToolAndReturnsResult: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ExternalAgentRuntimeHostTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f92aecb19ef496f76fc77847ddb194cdd3c43224c4b30eb278e936faa4898d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: protocolActivityExtendsFirstOutputWatchdog: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ExternalAgentRuntimeHostTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3be0a3b95ea3ad158286356612ae1a35d020f7cc599242533b684ff61d739dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: get401Unauthorized: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddb7c138a65e47e65fa2174a9306327b353d33e1102b4c47093734bdae8aeea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: get403UnauthorizedWithoutRateLimitMessage: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"f525bb5e05a4d60a40927b157213426e505b038c4e9c8a36d6ba05fa1914716d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: get404NotFound: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8461d0365d2bfd5a986f6ac727173c69045c5e258c5a0e0cad501e481c11867"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: get200DecodingError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a249f45f96fce20f0eb105ae418b6a4bd38e7193d8aa00439a10df9f312fb71f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: getTransportError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5643e2e9c92f98f929b04f55dadef17281fb660f89ad870b3821a24fcabe19f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unstar404NotFound: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dea8a7c622cd74aa894ef937fa0ae752fda98288bb2fbe86c83327a07ca78b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: readmeHTML404: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubAPIClientTests.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef63fe4c1dc88f29df3618225ff4e2eca85dfe98e619e7c87c24910e0ac77b5d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedXML: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubBlogRSSAPITests.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfedd1576a42326351ebe32e7f68b9c1098e6b27c8bdfbc622d794abfe3317e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedJSON: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubEventsAPITests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcd7e487e8dfc210eeec9190b20d8ac730e7730e5e016970f2366552aa4ecca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingKeyField: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubEventsAPITests.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2bd6efa66bdeab3e36b7d21068c34a183a89f258d35d21f11a9af4239ae931"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: topLevelNotArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/GitHubEventsAPITests.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"720e4a1400fee96ec7b65bfabce8a8525181a14aa5820019ba46964f27d26287"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: multiLicenseExpressions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/LicenseKnowledgeTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa36a7f4396d5784c7687b8802bc9abeb066d516a1f9ab4e876d19d0b124689"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: valueDomainCoverage: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/LicenseKnowledgeTests.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f453cf8a3ed8b03439e8f66236f4bab12ee439b8b44ab54a028258f3b2f3b02a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: localOnlyBypassesPro: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/LocalAIGatingTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4008b40858186b466feb1c7a7be36a719298164c39d53ae20881fd8ab44464"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: proUnchanged: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/LocalAIGatingTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0777f6cd5de1a148c41c8de3be989328e3c2e872c21c819bb0615f980bf71d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: fetchNotIndexed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/OpenSSFScoreAPITests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"280f9f51ec470c85f0415c453b5cb78208177a10f04046f0dd77a6c8fecf8446"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: invalidJSONMapsToDecodingError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/OpenSSFScoreAPITests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7992be4c7a687f98d67873203d4ff2363bf60e7535fb7c59550ab8256e5289"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: refresh404NoCache: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ReadmeAPINetworkTests.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf591f1d8479be1f987f36297fbc0acdd2c29344438f460d047b3407a9be7d0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: completedImageSkipsPlaceholder: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ReadmeImageLoadingWebKitTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1948e84dafdab7e1219a1fe9d6eada8686ed6d1cff1fb9a3d3cc3b24c41079"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: skipWhileResolvingCancelsOnlyContextTask: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/RepoAICodeContextRequestTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47e7375961c08dad4fab6aa8b3f5fbf18b23d5c22c4fe7843ceae3310320466"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: normalResolutionPreservesOutcome: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/RepoAICodeContextRequestTests.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"214fabe398f2fbf8c70ed669b6acaf746780b0161f9585a5a65a2d462fd8b133"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: removeMissingNoop: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/RepoTagRepositoryTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"717710c8d9b405a886bc9f28ffe2536a12ee63f19b49815173bcc581b31af75e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: deletionFailureIsPropagated: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/RepositoryInsightsContextCoordinatorTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de61a6b4f85365e93bb0e5afbef1c55b91f539c29072398421f1d780a986d7b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsArchiveAboveCustomLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/SharedSnapshotServiceTests.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5086c954ce139261f61918c974e8c7b6ab4267d2ff252ffcfd3c532616e33c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cachedArchiveRespectsCustomLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/SharedSnapshotServiceTests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ef1f3772ae97a6a8f50adaec3b67ba8debe235be1dfc18d09bcf705a740b93"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: decodeInvalidURLStringAsNil: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/StarcatRepoCardDTOTests.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13fc0d093c8cb09322f6fea73f3740168ea4b293ce1ed6a7428d7fba30779cb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: createDuplicateName: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/TagRepositoryTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"51acb90b1d570bdd74b7e5c9e753719002614f5cd981f1b47258f03fad93220e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: telemetryBackendFailureDoesNotBubbleToProductFlow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/TelemetryTests.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c98e1a9eea118098ee7a11e27291afcf991ddd908a07a938ca7f3efbac3390"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateRejectsBadScheme: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ThirdPartyServiceTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69383736f4f611dcdc035be3a3bda12167858e53900223dd76ba4ff752bd0e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: validateRejectsMissingHost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/ThirdPartyServiceTests.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a788da64d597b7f98244b7c1be07f1ab9f232a505efe4e49775f9fddb92b4a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelListRejectsMalformedResponse: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/TypeSafeDecisionServiceTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdd63f69cac026529476ef6aea6712574e5035a2605f51329f46842c5f0198b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: raisedLimitReachesExtraction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/RepoContextPacker/SourceZipExtractorLimitTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5b65f0b5dfdc7891e4492c7efaeaf1cace8e0263cd3f1a58885f9565ceacd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Settings/SettingsView.swift: Starcat/Features/Settings/SettingsView.swift changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in StorageSettingsTab.perform at line 2324. 2 of those changes were fix/bug commits, and the other 45 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Settings/SettingsView.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":"Starcat/Features/Settings/SettingsView.swift"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e07b3e8b5be44e0872096e78a46c63ef0035d6e28940c6661b63a90c162356"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/App/AppDependencies.swift: Starcat/App/AppDependencies.swift changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in AppDependencies.init at line 880. 6 of those changes were fix/bug commits, and the other 42 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/App/AppDependencies.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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf45cd79c1fd682ecf304b45c4780aa2276bb7aa76132a52e198f944c2b358a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/SidebarView.swift: Starcat/Features/Home/SidebarView.swift changed 56 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SidebarView.isExploreSelectionCurrent at line 927. 12 of those changes were fix/bug commits, and the other 44 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/SidebarView.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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d3ea604dfad64d03748f6746b0fc49e3d084bb3b2f4d0bf36132ee0bf9132f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/HomeViewModel.swift: Starcat/Features/Home/HomeViewModel.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in HomeViewModel.reloadItems at line 2757. 8 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/HomeViewModel.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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d0e932fad05d75716fb68bc4c9a8378952914db642ac942b856df48ea846b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/RepoListView.swift: Starcat/Features/Home/RepoListView.swift changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RepoListView.unifiedListContent at line 1936. 13 of those changes were fix/bug commits, and the other 49 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/RepoListView.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":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7141cccaa3e29bc8cb4ca0e3e9945926d9e6064c228d52ae2682e3b2012bb0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: resources/follow-graph/entry.js: resources/follow-graph/entry.js changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in entry.update at line 704. 7 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- resources/follow-graph/entry.js\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":"resources/follow-graph/entry.js"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84e28d309b49673519ef895b005bc7f25761fa7c12ca36f22271233f863ecc6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/HomeView.swift: Starcat/Features/Home/HomeView.swift changed 66 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in HomeView.syncViewModelSettingsFromAppSettings at line 2139. 18 of those changes were fix/bug commits, and the other 48 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/HomeView.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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fba533e70ca27e2b6b18a62aa46a91d7a32d173bbdc2b14524b870920fa9b4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Settings/AppSettings.swift: Starcat/Core/Settings/AppSettings.swift changed 46 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AppSettings.init at line 1917. 6 of those changes were fix/bug commits, and the other 40 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Settings/AppSettings.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":"Starcat/Core/Settings/AppSettings.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc9cf305593eebd278086b94f62b70360e84a9d23af6ae6a184355d012a2a8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/BatchAIQueueService.swift: Starcat/Features/AI/BatchAIQueueService.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in BatchAIQueueService.applyResult at line 1681. 11 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/BatchAIQueueService.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":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"41051ddbbae52a2eb6c5766581006e90f3e5b952b95c8617124422404baa3282"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Sync/RepoRepository.swift: Starcat/Core/Sync/RepoRepository.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in GRDBRepoRepository.makeListQuery at line 793. 4 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Sync/RepoRepository.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":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"40add1d7dbf2442a18ef4cc4cc79225cc94d92a08a887f5c91f972ba913ea629"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift: Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in CodexAppServerDriver.receiveNotificationOrRequest at line 293. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.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":"Starcat/Features/Agents/ExternalRuntime/CodexAppServerAdapter.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fa9a2d616987dac4a1df427a9215c9efe68af7153081d5af86a73daa9e2a66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift: Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in DeepSeekHarnessDriver.mapEvent at line 360. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.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":"Starcat/Features/Agents/ExternalRuntime/DeepSeekHarnessAdapter.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f85230426da0bdbeb873b785e0bbbbb1df45be47430d8cec056bb060ede84c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Activity/GitHubNotificationDetailView.swift: Starcat/Features/Activity/GitHubNotificationDetailView.swift changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in GitHubNotificationCommentCard.body at line 1143. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Activity/GitHubNotificationDetailView.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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1859ab03d9e6bb6d78a15ec99629d2e5cd734cf6df9071ff30de4fbc9af050"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift: Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in ExternalAgentEventProjector.consume at line 535. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b13e1fec228fd095824d0c861a5921992bf166d29bf79487300974647961523"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Settings/AISettingsView.swift: Starcat/Features/Settings/AISettingsView.swift changed 33 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AISettingsTab.aiConfigurationForm at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Settings/AISettingsView.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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e15ef272876987bf5e5b06f05f7ebc7c56a6570a659c5faea8486b3da034dd0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift: Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in KnowledgeRAGChunkEditor.body at line 3145. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32be24a91b6db2c3e78a374fb1695d0a7f9781edfd8c73036d81c9511f63815"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift: Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in ExternalAgentProcessSession.run at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd0be4798c9f71b80b74fb75025de0d2c40fd0e86577b8a4f48dafd786d3c21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/FollowGraph/FollowGraphViewModel.swift: Starcat/Features/FollowGraph/FollowGraphViewModel.swift changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in FollowGraphViewModel.explore at line 477. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/FollowGraph/FollowGraphViewModel.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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b79b30f67046d7e1040c48fb88ca36816788bf8da91c7af8b0b0c1be6d9967"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift: Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in GitHubStarListAIGroupingPresentationSnapshot.init at line 321. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/GitHubStarListAIGroupingPresentation.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":"Starcat/Features/Home/GitHubStarListAIGroupingPresentation.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6186931c8b41c08a87769e533e9692ebad4e651ffdd05245e85dfbc146049f8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift: Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in DailyRadarPreviewWorkspace.home at line 176. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.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":"Starcat/Features/DailyRadar/DailyRadarPreviewWorkspace.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0c422e59e7227a538c0ea52d2ffcb0382f66600210cb8528bfcf5ff10ff322"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift: Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in DailyRadarWorkspaceViewModel.reload at line 238. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.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":"Starcat/Features/DailyRadar/DailyRadarWorkspaceViewModel.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfda8721b6f40db814bb26898342f8f54e1235ff0768981b4caa9b159ed12ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Shared/Components/ReadmeWebView.swift: Starcat/Shared/Components/ReadmeWebView.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in Coordinator.userContentController at line 1667. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Components/ReadmeWebView.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":"Starcat/Shared/Components/ReadmeWebView.swift"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"68575dd6032146120ca6f29dc668c244cab56d0f47ffbf2c80e065668f898167"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Sync/GitHubNotificationInboxService.swift: Starcat/Core/Sync/GitHubNotificationInboxService.swift changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GitHubNotificationInboxService.hydrate at line 236. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Sync/GitHubNotificationInboxService.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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d058621d609062b34317e58da9be84ab1394e605195279fd4f4c936866c2a87"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/RepoAIInsightService.swift: Starcat/Features/AI/RepoAIInsightService.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in RepoAIInsightService.generateInsight at line 409. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/RepoAIInsightService.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":"Starcat/Features/AI/RepoAIInsightService.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c43a9b3fb217b1d725fda1a5b97d8c4d8d3151610ae922dec5c4bc3e722b0b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/GitHubStarListAIGroupingSession.swift: Starcat/Features/AI/GitHubStarListAIGroupingSession.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in GitHubStarListAIGroupingSession.integrate at line 1613. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/GitHubStarListAIGroupingSession.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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e331ab90c7df96016ba442731eadab9673f522a73c69ba4512230905f0b831c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/FollowGraph/FollowGraphOverlayView.swift: Starcat/Features/FollowGraph/FollowGraphOverlayView.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in FollowGraphOverlayView.body at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/FollowGraph/FollowGraphOverlayView.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":"Starcat/Features/FollowGraph/FollowGraphOverlayView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b2948585d6c3b825b5d6e73e6c605584791d834ffdc73664327a9691e86fc9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Shared/Components/RepoDetailScaffold.swift: Starcat/Shared/Components/RepoDetailScaffold.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in RepoDetailScaffold.trailingActionsView at line 862. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Components/RepoDetailScaffold.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":"Starcat/Shared/Components/RepoDetailScaffold.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c3c28261d290ed8724599747e2d459450345cf54a120f47930b7dba2c51cf6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Activity/WeeklyContentView.swift: Starcat/Features/Activity/WeeklyContentView.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in WeeklyContentViewModel.deriveLocalItems at line 1760. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Activity/WeeklyContentView.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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1760}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa0d4aac85e84a1097ca5b07bd6781fc4d02f284a0be1385586db559d18024e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/BatchAIWorkspaceView.swift: Starcat/Features/AI/BatchAIWorkspaceView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in BatchAIWorkspaceView.footer at line 283. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/BatchAIWorkspaceView.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":"Starcat/Features/AI/BatchAIWorkspaceView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a36996c5606c39d8f41bf6aa355471e2aa584fbda447b4c0148c3f393cb16c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/BatchAIQueueModels.swift: Starcat/Features/AI/BatchAIQueueModels.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in BatchAIJob.== at line 258. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/BatchAIQueueModels.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":"Starcat/Features/AI/BatchAIQueueModels.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3361bf5c3a2d411d5c8f64447f0dd5e27e039b537ec3704b56f5328ddaa0982a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift: Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ExternalAgentRuntimeError.errorDescription at line 282. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentProtocol.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e60b6f047f7b29c16c98da1e5cee47aaef5597d23f49b7448aa12dc425f6a3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Explore/AwesomeView.swift: Starcat/Features/Explore/AwesomeView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AwesomeGlobalFilterPolicy.matches at line 588. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Explore/AwesomeView.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":"Starcat/Features/Explore/AwesomeView.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"293f5ccad9f390255628ad7edcfb3f8c77519d301c815a9d185a571570fc028f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Activity/ActivityView.swift: Starcat/Features/Activity/ActivityView.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ActivityView.body at line 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Activity/ActivityView.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":"Starcat/Features/Activity/ActivityView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30d284cfcfc6c7d0b67dbeccf28c06cdac2d27c68725f77515c89b45b4f74d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/AIConfiguration.swift: Starcat/Features/AI/AIConfiguration.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AIProviderProfile.mergedDiscoveredModels at line 306. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/AIConfiguration.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":"Starcat/Features/AI/AIConfiguration.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"59873eb2b64d40538db4e9061f093f6ec7dd2e554cbced3470b685caa6d15ec9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Search/SearchCenterView.swift: Starcat/Features/Search/SearchCenterView.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SearchCenterView.resultContent at line 526. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Search/SearchCenterView.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":"Starcat/Features/Search/SearchCenterView.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54e0150b46c125aae5c39c94606cb0828138b9430a050631d463348d1a02aa7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/FollowGraph/FollowGraphWebView.swift: Starcat/Features/FollowGraph/FollowGraphWebView.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Coordinator.userContentController at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/FollowGraph/FollowGraphWebView.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":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c648beefcb435ef4acb26e0d8e09c0b184999d72b9963dda020f2a3cc83d13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/AppBackgroundTaskSnapshot.swift: Starcat/Features/Home/AppBackgroundTaskSnapshot.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in AppBackgroundTaskSnapshot.current at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/AppBackgroundTaskSnapshot.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":"Starcat/Features/Home/AppBackgroundTaskSnapshot.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6610213db945444677df77c5ca55f290e3eedfc132a4d146d8e85a6a0cd8c50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Explore/ExploreView.swift: Starcat/Features/Explore/ExploreView.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ExploreDiscoveryListView.body at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Explore/ExploreView.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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc7434764b14111d74c2bcb50fb5eb8efb1a158b0dfa390ae22360940c56af2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/LocalAI/LocalAIModelManager.swift: Starcat/Features/AI/LocalAI/LocalAIModelManager.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in LocalAIModelManager.runInstall at line 367. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/LocalAI/LocalAIModelManager.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":"Starcat/Features/AI/LocalAI/LocalAIModelManager.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"20454cab633f9adc51fcc92af4fdd84b84638bf268f6484781f84030a62817c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Explore/ExploreDiscoveryViewModel.swift: Starcat/Features/Explore/ExploreDiscoveryViewModel.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ExploreDiscoveryViewModel.reload at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Explore/ExploreDiscoveryViewModel.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":"Starcat/Features/Explore/ExploreDiscoveryViewModel.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2ee5a60c611454cc7e97424ce311568b5ebe7b4f6d215d17655d50f2c38e19"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift: Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AgentWorkspaceViewModel.apply at line 935. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/Core/AgentWorkspaceViewModel.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":"Starcat/Features/Agents/Core/AgentWorkspaceViewModel.swift"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec6fc2a149ebf63cfcafade3dedc096502a6d9029437c7676408eacbf23d123"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift: Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DailyRadarPreviewReader.body at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/DailyRadar/DailyRadarPreviewReader.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":"Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"84687a28da8f1dc0ba801e4a90aba4fd3077162e8f99598af46e3417ee670a40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/Core/LoopAgentRuntime.swift: Starcat/Features/Agents/Core/LoopAgentRuntime.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in LoopAgentRuntime.execute at line 378. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/Core/LoopAgentRuntime.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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab6483c5b2762929ca2f847622674f15262cd87934364041d524213b9b6d882"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Home/ReadmeTranslationViewModel.swift: Starcat/Features/Home/ReadmeTranslationViewModel.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ReadmeTranslationViewModel.performTranslation at line 438. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Home/ReadmeTranslationViewModel.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":"Starcat/Features/Home/ReadmeTranslationViewModel.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"0848224f2247f330c811baa7d2788d4343754c8353a18560e3b79a3975f137af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift: Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in KnowledgeRAGIndexBuilder.embedPendingChunks at line 885. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/RAG/KnowledgeRAGIndexBuilder.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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"247551c40ae6dbe498ada7f19c1917753e45c5c233d56ca54568f4c0b5e0aa63"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift: Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LocalMLXRuntime.generate at line 499. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/LocalAI/LocalMLXRuntime.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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c590f76f1ecbce39695b86aa8fe28caa6984950eb9e899595edd49e3a14b70d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Settings/IntegrationSettingsView.swift: Starcat/Features/Settings/IntegrationSettingsView.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in IntegrationSettingsTab.body at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Settings/IntegrationSettingsView.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":"Starcat/Features/Settings/IntegrationSettingsView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f9e5c8ca9a8b0c4424b679b0d8b9862ca3ac8d7070eeeccb10bc8831a04a3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Sync/SyncManager.swift: Starcat/Core/Sync/SyncManager.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SyncManager.runSyncBody at line 262. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Sync/SyncManager.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":"Starcat/Core/Sync/SyncManager.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ab6b9f0bfb196b66b9d7edfb44c9cd80a8b5108edf3a59884501f619f7d581"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift: Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in AgentWorkspaceRunSurface.agentComposerInputBox at line 536. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.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":"Starcat/Features/Agents/Core/AgentWorkspaceRunSurface.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0580b581907fcf096619e55d69a2594cbb0e79d2156b48a52cb4f28a75cb5ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Insights/RepoStarHistoryRepository.swift: Starcat/Core/Insights/RepoStarHistoryRepository.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in GRDBRepoStarHistoryRepository.performRefresh at line 326. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Insights/RepoStarHistoryRepository.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":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef7404a03f367bec5d25e467a429aec6fd2b7a4b8f1e2ed73e7767ed08d5195"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supports/scripts/sync-starcat-readme-promo.py: supports/scripts/sync-starcat-readme-promo.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in sync-starcat-readme-promo.promo at line 252. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- supports/scripts/sync-starcat-readme-promo.py\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":"supports/scripts/sync-starcat-readme-promo.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7237e7d2678de18a2071ec020593c63980715371c37a9b62eab5e2d8a2185b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Explore/LinuxDoView.swift: Starcat/Features/Explore/LinuxDoView.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in LinuxDoView.filteredRepositories at line 190. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Explore/LinuxDoView.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":"Starcat/Features/Explore/LinuxDoView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c705a43b95e8945ac0c0e8ad61f3d0d6d01f3b1f288b718f04b413eb35169e41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/FollowGraph/FollowGraphStore.swift: Starcat/Features/FollowGraph/FollowGraphStore.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in FollowGraphStore.load at line 53. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/FollowGraph/FollowGraphStore.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":"Starcat/Features/FollowGraph/FollowGraphStore.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d02f2b43eb80e36e7181e78fccd7766050c7b58107f58e630740dcbfac0770"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift: Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ReadmeStarHistoryHTMLRenderer.render at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.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":"Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e8272b80fc70cd6bb543cbc28e277414fec8c36ade02b55ee2ca655395c3d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Insights/ReadmeStarHistoryPreview.swift: Starcat/Features/Insights/ReadmeStarHistoryPreview.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ReadmeStarHistoryViewModel.loadIfNeeded at line 121. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Insights/ReadmeStarHistoryPreview.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":"Starcat/Features/Insights/ReadmeStarHistoryPreview.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d7789cbb6d67e5a740d13542fe01b94c60168ede9ec90e69d4688bfa8a4bd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Shared/Diagnostics/DiagnosticLogStore.swift: Starcat/Shared/Diagnostics/DiagnosticLogStore.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DiagnosticLogStore.append at line 238. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Diagnostics/DiagnosticLogStore.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":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51cfcd48d1518eede4a7bd1dea7dfa9d9e83cd331125a09044313d7f75696b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/publish-direct-github-release.py: scripts/publish-direct-github-release.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in publish-direct-github-release.publish at line 97. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- scripts/publish-direct-github-release.py\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":"scripts/publish-direct-github-release.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a658f2d9a339f8b77d04cd0132a115ef79f602eeedf0360f928e906de208ba9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/AutoTidyScheduler.swift: Starcat/Features/AI/AutoTidyScheduler.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AutoTidyScheduler.executeRound at line 335. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/AutoTidyScheduler.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":"Starcat/Features/AI/AutoTidyScheduler.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"c868cbc3d688b42954bd13747d3cd5613bca225330967e961cc6dcde445a9c89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/MCP/StarcatMCPToolRegistry.swift: Starcat/Features/MCP/StarcatMCPToolRegistry.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in StarcatMCPToolRegistry.callTool at line 379. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/MCP/StarcatMCPToolRegistry.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":"Starcat/Features/MCP/StarcatMCPToolRegistry.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd327f4499cd3eaeaaf01bdb176061d74534aaa29f976f0bdd699796880f694b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Shared/Diagnostics/UserFacingError.swift: Starcat/Shared/Diagnostics/UserFacingError.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in UserFacingError.map at line 33. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Diagnostics/UserFacingError.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":"Starcat/Shared/Diagnostics/UserFacingError.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ef80c213cf7441a2c87d87d02b4d1ca15076c4dce3a3dfa2aea62c3739bb71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/DailyRadar/DailyRadarMarkdownView.swift: Starcat/Features/DailyRadar/DailyRadarMarkdownView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in DailyRadarMarkdownRenderer.renderNode at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/DailyRadar/DailyRadarMarkdownView.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":"Starcat/Features/DailyRadar/DailyRadarMarkdownView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"256d21920303ac614aac32b1f51f6e70aa365eafd2b518de29fc37bf5ba43815"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift: Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ReadmeAssetURLRewriter.rewriteSourceSet at line 345. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"430efb252dfe3b6620137d9c554112b71dbb0880f30e8380ac8c2aef0f4bffb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/LocalAI/LocalAIModelDownloader.swift: Starcat/Features/AI/LocalAI/LocalAIModelDownloader.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LocalAIModelDownloader.streamDownload at line 193. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/LocalAI/LocalAIModelDownloader.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":"Starcat/Features/AI/LocalAI/LocalAIModelDownloader.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7483cbc2ec262b361dee62a1141d220d6c0b0317629f56defd8e81769827eb5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: skills/starcat-diagnostics/scripts/analyze.py: skills/starcat-diagnostics/scripts/analyze.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in analyze.analyze at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- skills/starcat-diagnostics/scripts/analyze.py\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":"skills/starcat-diagnostics/scripts/analyze.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a109d6b7a7c59fa139831baffdfe5a7bafd39f3ca99cba41d74524eac015ce3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift: Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in CodebaseMemoryViewModel.generate at line 217. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f134e11c70c10df3590d76c1c61965255c5cc412687e195b914b76191804eff7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Network/StarHistoryAPI.swift: Starcat/Core/Network/StarHistoryAPI.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in StarHistoryAPI.fetch at line 154. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Network/StarHistoryAPI.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":"Starcat/Core/Network/StarHistoryAPI.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df6b44bf72880652f6a246e6532efcc60a15b18aad7e0322930bba7d1617b57"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift: Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in RAGWorkspaceInspector.evidenceInspector at line 265. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RAG/UI/RAGWorkspaceInspector.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":"Starcat/Features/RAG/UI/RAGWorkspaceInspector.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4565584907f0e1f5eff6091c683c603326409cbde05d11d435624ad99c8be5a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Trending/TrendingListPipeline.swift: Starcat/Features/Trending/TrendingListPipeline.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in TrendingListFilter.matches at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Trending/TrendingListPipeline.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":"Starcat/Features/Trending/TrendingListPipeline.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4994087461e33c78f071c23a60bed2c8b8506ff83995ba2c5a44717072977"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift: Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in KnowledgeRAGRetriever.retrieve at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RAG/Core/KnowledgeRAGRetriever.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":"Starcat/Features/RAG/Core/KnowledgeRAGRetriever.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bda4cae9347fe259c5cfdaac4e6c352efa5eb8eee0647bf83e8e61ea4f58a2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Agents/Core/AgentTimelineProjection.swift: Starcat/Features/Agents/Core/AgentTimelineProjection.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AgentTimelineProjection.makeItems at line 184. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/Core/AgentTimelineProjection.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":"Starcat/Features/Agents/Core/AgentTimelineProjection.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eb2cd1f68dff873a8531b5dce4905d31674e130a05d52d8bc58c42ece1c8cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift: Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in KnowledgeRAGPromptBuilder.build at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.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":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8449a9708468b21fd1a4dfd588ce98681ca2ea619aad7830c2d989ec3edd73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: resources/follow-graph/progressive-reveal.mjs: resources/follow-graph/progressive-reveal.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ProgressiveReveal.sync at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- resources/follow-graph/progressive-reveal.mjs\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":"resources/follow-graph/progressive-reveal.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ec890e7beb6fb3b812711beafc0a1e9c7c79ede1a5737787aff0ce1da77db5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift: Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in ReadmeStarJourney.growthEvent at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Insights/ReadmeStarHistoryChartModel.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":"Starcat/Features/Insights/ReadmeStarHistoryChartModel.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a61932bc1e24ea7980be6136b86a136f0442b54c1d9ad0706005d313585ab3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/Recommendations/RepoRecommendationViewModel.swift: Starcat/Features/Recommendations/RepoRecommendationViewModel.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in RepoRecommendationViewModel.loadInitial at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Recommendations/RepoRecommendationViewModel.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":"Starcat/Features/Recommendations/RepoRecommendationViewModel.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"572949a61b4bbbd90f87ecc40917b124301e35d3a8e25c9b2fb460975d64966c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/RepoAIChatViewModel.swift: Starcat/Features/AI/RepoAIChatViewModel.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in RepoAIChatViewModel.performSendMessage at line 504. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/RepoAIChatViewModel.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":"Starcat/Features/AI/RepoAIChatViewModel.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1954d437a032eb0fa13f250bf3b36c338f9117eaaac5d382a0caa1bd3552d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Core/Sync/WeeklyBulkRepository.swift: Starcat/Core/Sync/WeeklyBulkRepository.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in WeeklyBulkRepository.makeSQLFilter at line 410. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Sync/WeeklyBulkRepository.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":"Starcat/Core/Sync/WeeklyBulkRepository.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e39dd949e6926945fad2fc9d6feb0994c6a80f1a2efd23a05536175d2623c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift: Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AnthropicMessagesCodec.decodeMessageObject at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.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":"Starcat/Features/AI/Anthropic/AnthropicMessagesCodec.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3309317927e045e510ddaa716ec9b0cc46dd1aa7ccd7d19249a48c19316812"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/Agents/Core/AgentWorkspaceWindowController.swift: Starcat/Features/Agents/Core/AgentWorkspaceWindowController.swift changed 10 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is AgentWorkspaceWindowController.show at line 31), 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(agent): \u4FEE\u590D\u5DE5\u4F5C\u53F0\u9762\u677F\u663E\u9690\u65F6\u5E03\u5C40\u8DF3\u52A8\u4E0E\u7A97\u53E3\u589E\u5BBD\u201D; \u201Cfix(agent): \u5207\u6362\u539F\u751F\u53F3\u4FA7\u5DE5\u5177\u680F\u201D; \u201Cfix(workspace): \u5BF9\u9F50\u4E3B\u7A97\u53E3\u4E09\u680F\u5DE5\u5177\u680F\u201D; \u201Cfix(workspace): \u6062\u590D\u5DE5\u4F5C\u53F0\u9876\u90E8\u5DE5\u5177\u680F\u5E03\u5C40\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Agents/Core/AgentWorkspaceWindowController.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":"Starcat/Features/Agents/Core/AgentWorkspaceWindowController.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4b4da3b7af803fcf2bbd22ae9673ea6e685eede1a817a6201888bfbed9c79e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift: Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift changed 11 times in last 90 days and 6 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 KnowledgeRAGWorkspaceView.body at line 63), 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(rag): \u5206\u7C7B\u5C55\u793A\u5411\u91CF\u5316\u6545\u969C\u5E76\u76F4\u8FBE\u5BF9\u5E94\u8BBE\u7F6E\u201D; \u201Cfix(workspace): \u6062\u590D\u5DE5\u4F5C\u53F0\u9876\u90E8\u5DE5\u5177\u680F\u5E03\u5C40\u201D; \u201Cfix(workspace): \u4FEE\u590D\u5DE5\u4F5C\u53F0\u5206\u680F\u5E03\u5C40\u5FAA\u73AF\u5361\u6B7B\u201D; \u201Cfix(workspace): \u4FEE\u590D\u6700\u5C0F\u7A97\u53E3\u62D6\u52A8\u4FA7\u680F\u65F6\u5185\u5BB9\u88C1\u5207\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceView.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"311c6bd0eb380ff8421846b221c64593e2c1bbb867d06229a44ae58d48b91ad7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/FollowGraph/FollowGraphUserCard.swift: Starcat/Features/FollowGraph/FollowGraphUserCard.swift changed 9 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 15 (its worst body is FollowGraphUserCard.body at line 24), 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(follow-graph): \u4FEE\u590D\u5206\u9875\u5165\u53E3\u63D0\u524D\u6D88\u5931\u5E76\u652F\u6301\u4EBA\u6570\u5F02\u5E38\u5237\u65B0\u201D; \u201Cfix(follow-graph): \u4EC5\u5728\u624B\u52A8\u52A0\u8F7D\u65F6\u5C55\u5F00\u5173\u6CE8\u5173\u7CFB\u201D; \u201Cfix(follow-graph): \u4FEE\u590D\u52A0\u8F7D\u66F4\u591A\u5E76\u589E\u52A0\u5E95\u90E8\u7ED3\u679C\u63D0\u793A\u201D; \u201Cfix(follow-graph): \u8BA9\u9009\u4E2D\u7528\u6237\u4EBA\u6570\u8DDF\u968F\u753B\u5E03\u8282\u70B9\u9010\u6B65\u589E\u957F\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/FollowGraph/FollowGraphUserCard.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":"Starcat/Features/FollowGraph/FollowGraphUserCard.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e8877690a2bc556e25dd7c2d1dfcd41042d14c0efbad119a08d13eb0514a05"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/Settings/AIModelListView.swift: Starcat/Features/Settings/AIModelListView.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 8 (its worst body is AIModelFixedHeightView.rebuildScrollMonitor at line 328), 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(ai): \u4FEE\u590D Anthropic \u6807\u7B7E JSON 400 \u4E0E\u4E2D\u8F6C\u63A2\u6D4B\u201D; \u201Cfix(ai): \u4FEE\u590D\u672C\u5730\u6A21\u578B\u8DEF\u7531\u4E0E\u91CD\u590D\u751F\u6210\u201D; \u201Cfix(settings): \u4F18\u5316 AI \u6A21\u578B\u5217\u8868\u5206\u9875\u4E0E\u5D4C\u5957\u6EDA\u52A8\u201D; \u201Cfix(settings): \u4FEE\u590D AI \u6A21\u578B\u52FE\u9009\u5BFC\u81F4\u8BBE\u7F6E\u9875\u5361\u6B7B\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/Settings/AIModelListView.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":"Starcat/Features/Settings/AIModelListView.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd2f76a4aee5d6d0916befb0f537fe22c4836ba2ec643015fb04b996bb244d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Core/Distribution/AppStoreToDirectImport.swift: Starcat/Core/Distribution/AppStoreToDirectImport.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is AppStoreToDirectImportEvaluator.decidePrompt at line 157), 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(direct): \u4FEE\u590D macOS 15 \u6BCF\u6B21\u542F\u52A8\u91CD\u590D\u5F39\u5BB9\u5668\u6388\u6743\u6846\u201D; \u201Cfix(direct): \u907F\u514D\u91CD\u590D\u89E6\u53D1\u5546\u5E97\u6570\u636E\u8BBF\u95EE\u6388\u6743\u201D; \u201Cfix(direct): \u4FEE\u590D\u9996\u6B21\u5BFC\u5165\u5F39\u7A97\u5224\u5B9A\u4E0E\u5546\u5E97 Widget \u7EC4\u62F7\u8D1D\u5931\u8D25\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Distribution/AppStoreToDirectImport.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":"Starcat/Core/Distribution/AppStoreToDirectImport.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f503c2aa3d90bbda81481ddefe2390eb66aecfa781d1b3c36830b10f7d074c0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Core/Subscription/DirectLicenseManager.swift: Starcat/Core/Subscription/DirectLicenseManager.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is DirectLicenseManager.applyValidationFailure at line 462), 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(subscription): \u5B8C\u5584 Direct \u6FC0\u6D3B\u9650\u6D41\u51B7\u5374\u4E0E\u5931\u8D25\u63D0\u793A\u201D; \u201Cfix(diagnostics): \u5206\u79BB\u754C\u9762\u8131\u654F\u8FB9\u754C\u5E76\u7EA6\u675F\u5F85\u5199\u8F7D\u8377\u201D; \u201Cfix(subscription): \u533A\u5206 Direct \u6388\u6743\u9519\u8BEF\u5E76\u8865\u5145\u672C\u5730\u5316\u8BCA\u65AD\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Core/Subscription/DirectLicenseManager.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":"Starcat/Core/Subscription/DirectLicenseManager.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0726a6a23cbdf8edd41e8d1f7fd62094abd81c35eb0df7285932fde23d7852"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Shared/Diagnostics/DiagnosticEvent.swift: Starcat/Shared/Diagnostics/DiagnosticEvent.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is DiagnosticEvent.init at line 132), 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(diagnostics): \u5206\u79BB\u754C\u9762\u8131\u654F\u8FB9\u754C\u5E76\u7EA6\u675F\u5F85\u5199\u8F7D\u8377\u201D; \u201Cfix(diagnostics): \u5B8C\u5584\u5B89\u5168\u9519\u8BEF\u94FE\u4E0E\u9000\u51FA\u5199\u5165\u5C4F\u969C\u201D; \u201Cfix(ai): \u672A\u77E5\u670D\u52A1\u5546\u4E0D\u518D\u5BFC\u81F4\u6574\u8868\u914D\u7F6E\u89E3\u7801\u5931\u8D25\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Diagnostics/DiagnosticEvent.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":"Starcat/Shared/Diagnostics/DiagnosticEvent.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfa72eabf0772335620640bb379375769476f3802171acf94ff6db0c8df3fc6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift: Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is CodebaseMemoryBinaryResolver.runVersionProbe at line 248), 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(diagnostics): \u5B8C\u5584\u5B89\u5168\u9519\u8BEF\u94FE\u4E0E\u9000\u51FA\u5199\u5165\u5C4F\u969C\u201D; \u201Cfix(codebase): \u9002\u914D\u8D26\u6237\u7EA7\u5171\u4EAB\u56FE\u8C31\u670D\u52A1\u201D; \u201Cfix(codebase): \u62D2\u7EDD\u4E0D\u5305\u542B\u56FE\u8C31 UI \u7684\u5916\u90E8\u4E8C\u8FDB\u5236\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryBinaryResolver.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"00666686a85bc07d5e03a871b2a0bc8ed855eed5bf1780a5adf6d6157eacc0aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift: Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.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 8 (its worst body is RepoIssuesWorkspaceContent.issueList at line 251), 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(repo-issues): \u7EDF\u4E00\u8BC4\u8BBA\u533A\u80CC\u666F\u5E76\u8865\u9F50\u8BE6\u60C5\u5207\u6362\u52A8\u753B\u201D; \u201Cfix(repo-issues): \u8DF3\u8FC7\u7EAF PR \u7A7A\u9875\u4EE5\u7EE7\u7EED\u52A0\u8F7D\u540E\u7EED Issue\u201D; \u201Cfix(repo-issues): \u9632\u6B62\u8349\u7A3F\u6062\u590D\u524D\u5173\u95ED\u5DE5\u4F5C\u53F0\u4E22\u5931\u5185\u5BB9\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c81aa29f9dd28f2223742b28e6935ac936e789a462bd9ccc2a7c4f92663d73f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift: Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.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 9 (its worst body is RepoIssuesWorkspaceViewModel.reloadDetailItem at line 143), 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(repo-issues): \u6062\u590D\u8FDE\u7EED\u65B0\u5EFA Issue \u65F6\u7684\u8349\u7A3F\u4FDD\u5B58\u201D; \u201Cfix(repo-issues): \u9632\u6B62\u8349\u7A3F\u6062\u590D\u524D\u5173\u95ED\u5DE5\u4F5C\u53F0\u4E22\u5931\u5185\u5BB9\u201D; \u201Cfix(repo-issues): \u9632\u6B62\u65E7\u8BE6\u60C5\u54CD\u5E94\u8986\u76D6\u5F53\u524D\u9009\u4E2D\u7684 Issue\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.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":"Starcat/Features/RepoIssues/RepoIssuesWorkspaceViewModel.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18d6f2a3037199c797305c5a16e982b5903518c0d6e05df03e536c26cf45838"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.swift: Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.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 5 (its worst body is WorkspaceSceneWindowReader.configure at line 115), 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(ai): \u4FEE\u6B63\u6807\u7B7E\u6574\u7406\u7A97\u53E3\u5C55\u793A\u65F6\u5E8F\u201D; \u201Cfix(workspace): \u8BA9\u5DE5\u4F5C\u533A\u7A97\u53E3\u6807\u9898\u8DDF\u968F App \u8BED\u8A00\u8BBE\u7F6E\u201D; \u201Cfix(workspace): \u8BA9\u5DE5\u4F5C\u533A\u7A97\u53E3\u6807\u9898\u8DDF\u968F App \u8BED\u8A00\u8BBE\u7F6E\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 02:41:47 \u002B08:00\u0027 --until=\u00272026-11-12 02:41:47 \u002B08:00\u0027 --full-history --no-merges -- Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.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":"Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a11402af268e308f29ae82832bd7092c5763f98a8be6345811cddad0d3fde73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //  - acceptRefreshedUser \u53CD\u5411 push \u8DEF\u5F84\u5728 AuthSession \u4E0A\u5355\u6D4B\uFF08TODO\uFF0C\u672C\u6587\u4EF6\u53EA\u6D4B service \u81EA\u8EAB\uFF09\u3002 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StarcatTests/UserProfileServiceTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81b75537652fe6eeec649b90c4192ed37d70aed76fdd04d3113716683ef317d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //  TODO\uFF08\u540E\u7EED PR\uFF09\uFF1A \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Components/Toolbar/PageToolbarSpec.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b62653196725d69fa3454011e6572fea2e4f78294d91d782beeeb5c4af7559f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u8C03\u7528 AI \u670D\u52A1\u751F\u6210\u6458\u8981 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Trending/TrendingViewModel.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"721042edd2dd8409f5af92755dcb24931236b7aa4f8d3cd902454b53ba4b6dfe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// - notes \u662F\u7528\u6237\u968F\u624B\u6539\u7684\u5C0F\u672C\u5B50\uFF0C\u5E38\u89C1\u7684\u0022\u52A0\u4E00\u884C TODO\u0022 / \u0022\u6539\u4E2A\u9519\u522B\u5B57\u0022\u5982\u679C\u6309 10% \u89E6\u53D1\uFF0C \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/IndexedTextDiff.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9152a3b5dde28cac3b5f9e8112901391da461f6ae6951965929155522a05cc0c"}},{"ruleId":"D20","level":"note","message":{"text":"ADR has no Context and Decision section: docs/adr/0001-external-search-provider-view-and-context-aggregation.md has no Context and Decision section (a heading such as \u0060## Context\u0060, or the MADR equivalent). A decision record states the context that forced it, the decision and its consequences, so a reader can tell later whether it still holds."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/adr/0001-external-search-provider-view-and-context-aggregation.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf0b6c27fa88db17425a0841e466d7d517c46ad6ed34bf8c35bd1658fa07cfa"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060subjectApiUrl\u0060 spells \u0060Api\u0060 where 167 names in the project spell it \u0060API\u0060: 167 of 171 names in project repository spell the token \u0060API\u0060 (167 of 171; unit: names in project repository containing \u0060API\u0060). Peers: AppDependencies.readmeAPI (Starcat/App/AppDependencies.swift:102); AppDependencies.projectReadmeAPI (Starcat/App/AppDependencies.swift:104); AppDependencies.projectGitHubAPIClient (Starcat/App/AppDependencies.swift:175); AppDependencies.trendingAPI (Starcat/App/AppDependencies.swift:239); AppDependencies.weeklyAPI (Starcat/App/AppDependencies.swift:285). Rename to \u0060subjectAPIUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubNotificationThreadRecord.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd2c5aa862a6c2efd396863a8eb7201dce994f0d27942db32a17e6ca410c185"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060stripSPDXSuffixes\u0060 spells \u0060SPDX\u0060 where 13 names in the project spell it \u0060Spdx\u0060: 13 of 14 names in project repository spell the token \u0060Spdx\u0060 (13 of 14; unit: names in project repository containing \u0060Spdx\u0060). Peers: AwesomeEntryRecord.licenseSpdx (Starcat/Core/Database/Models/AwesomeRecords.swift:139); DiscoveryListItemRecord.licenseSpdx (Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:61); DiscoveryBulkRepoRecord.licenseSpdx (Starcat/Core/Database/Models/DiscoveryCacheRecords.swift:280); WeeklyBulkRepoRecord.licenseSpdx (Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift:56); AwesomeEntryDTO.licenseSpdx (Starcat/Core/Network/AwesomeModels.swift:87). Rename to \u0060stripSpdxSuffixes\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Models/LicenseKnowledge.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce43ae588ea0a9a39410c90ed27e601fc9c524e5537a8689c93ea49045c91034"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060fromApiURL\u0060 spells \u0060Api\u0060 where 167 names in the project spell it \u0060API\u0060: 167 of 171 names in project repository spell the token \u0060API\u0060 (167 of 171; unit: names in project repository containing \u0060API\u0060). Peers: AppDependencies.readmeAPI (Starcat/App/AppDependencies.swift:102); AppDependencies.projectReadmeAPI (Starcat/App/AppDependencies.swift:104); AppDependencies.projectGitHubAPIClient (Starcat/App/AppDependencies.swift:175); AppDependencies.trendingAPI (Starcat/App/AppDependencies.swift:239); AppDependencies.weeklyAPI (Starcat/App/AppDependencies.swift:285). Rename to \u0060fromAPIURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"026df39c0ca33e89f977b1ea32dcda9bcd606dc94c142e86a0e515712cebedc5"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060subjectApiURL\u0060 spells \u0060Api\u0060 where 167 names in the project spell it \u0060API\u0060: 167 of 171 names in project repository spell the token \u0060API\u0060 (167 of 171; unit: names in project repository containing \u0060API\u0060). Peers: AppDependencies.readmeAPI (Starcat/App/AppDependencies.swift:102); AppDependencies.projectReadmeAPI (Starcat/App/AppDependencies.swift:104); AppDependencies.projectGitHubAPIClient (Starcat/App/AppDependencies.swift:175); AppDependencies.trendingAPI (Starcat/App/AppDependencies.swift:239); AppDependencies.weeklyAPI (Starcat/App/AppDependencies.swift:285). Rename to \u0060subjectAPIURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"369203716055d307712c956845027ba03948001060972ee9b88dcbaf9df07fa5"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060subjectApiURL\u0060 spells \u0060Api\u0060 where 167 names in the project spell it \u0060API\u0060: 167 of 171 names in project repository spell the token \u0060API\u0060 (167 of 171; unit: names in project repository containing \u0060API\u0060). Peers: AppDependencies.readmeAPI (Starcat/App/AppDependencies.swift:102); AppDependencies.projectReadmeAPI (Starcat/App/AppDependencies.swift:104); AppDependencies.projectGitHubAPIClient (Starcat/App/AppDependencies.swift:175); AppDependencies.trendingAPI (Starcat/App/AppDependencies.swift:239); AppDependencies.weeklyAPI (Starcat/App/AppDependencies.swift:285). Rename to \u0060subjectAPIURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationMapper.swift"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11d5f3cce095717347bd0ee33aca966f20dfadbec117c0220e6b1644ab86612"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060verificationUri\u0060 spells \u0060Uri\u0060 where 14 names in the project spell it \u0060URI\u0060: 14 of 15 names in project repository spell the token \u0060URI\u0060 (14 of 15; unit: names in project repository containing \u0060URI\u0060). Peers: RSSParserDelegate.parser(namespaceURI) (Starcat/Core/Network/GitHubBlog/GitHubBlogRSSAPI.swift:130); RSSParserDelegate.parser(namespaceURI) (Starcat/Core/Network/GitHubBlog/GitHubBlogRSSAPI.swift:154); OAuthDeviceCodeInfo.verificationURI (Starcat/Features/Auth/GithubOAuthServiceProtocol.swift:34); ReadmeStarHistoryHTMLRenderer.render(avatarDataURI) (Starcat/Features/Insights/ReadmeStarHistoryHTMLRenderer.swift:82); RenderFingerprint.avatarDataURI (Starcat/Features/Insights/ReadmeStarHistoryPreview.swift:91). Rename to \u0060verificationURI\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Auth/GithubDeviceFlowService.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f1850910920684c6e2ec3f66223127507d32656f0fe4a1bcf463a64405eafe"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060delayInMS\u0060 spells \u0060MS\u0060 where 13 names in the project spell it \u0060Ms\u0060: 13 of 14 names in project repository spell the token \u0060Ms\u0060 (13 of 14; unit: names in project repository containing \u0060Ms\u0060). Peers: AIUsageEvent.durationMs (Starcat/Core/Database/Models/AIUsageEvent.swift:84); AnySearchMetadata.searchTimeMs (Starcat/Core/Network/AnySearch/AnySearchModels.swift:67); CodebaseMemoryIndexResult.durationMs (Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryRunner.swift:22); Execution.durationMs (Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift:116); CodebaseMemoryViewModel.setStep(durationMs) (Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryViewModel.swift:576). Rename to \u0060delayInMs\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/MCP/StarcatMCPService.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ad53a0c5a6ed47f3340590fa18f6eac5b2c11b0e669c0f04ce778f84ff6c67"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (338867 LoC, 3531 module-visible types across 105 directories) overshoots its size bounds. 1 of 6 build unit(s) (Go, SwiftPM, XcodeGen, npm) overshoot their size bounds, lowering Project Cohesion to 6.7/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"project.yml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23d198d133233fb121f89f04d444a3b612403e2a350ab393fbd837146fd92d1"}},{"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":"861dcdb2496952498188f7e154139c4d3d1cc783e120ce6c7a73d204a656b35e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"788ce748aed6db94daaa9dd16f9527c3e5da7c6d7aea84a22a4347805d81a96b"},"taxa":[{"id":"CWE-89","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":"349ff58a6e71a26bebde309dd58dd8a55ef86dc6464c7e25af2b7e285622c481"},"properties":{"dependency":{"package":"picomatch","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","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":"a4cf263b76f5bdc955774e3de453b11113d795c7efdeea0f5857a1adf5aa655b"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","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":"6ac5db73dd8a4d5389319ffbfec406d416c6434f8f9dac7fb9c10da379a31c87"},"properties":{"dependency":{"package":"vite","version":"8.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.2.4","relation":"direct","declaredRange":"^8.2.0","reachability":{"kind":"test-or-tooling","file":"starcat-promo-video/presentation/vite.config.ts","line":1}}}},{"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":"474326818fee3d0149c32083ecbcd69e27a3553fd6746bc70cd3a9597a19c0f6"},"properties":{"dependency":{"package":"stdlib","version":"1.26.10","advisory":"GO-2026-6859","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"1.26.11","relation":"direct","declaredRange":"1.26.10","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c95f2a7ae0a75b0f91d8a9f0cad01262c4ec9bd6a43f04d2c128d0cedf7da9d6"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8f3e2cf127c6c742994820eee3278fd561b03b7269e79de15154a6004b5d429"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a33006ebefc833a09a7e4df42adc302a6dc8c4182676456462f536833058518b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"de565adb84011fb400df7c9580c6ee0d041915b640555321c99d2d1e5349e10c"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 4 of 969 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 969 of the 1205 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Starcat/Core/Cache/ReadmeMetrics.swift, Starcat/Core/Cache/ReadmeHTMLCodec.swift, Starcat/Core/Cache/ReadmeAvailability.swift, Starcat/Core/Database/Models/ReadmeContent.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Cache/ReadmeMetrics.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bce547c7cf97ab9460cf55d3fbdf90202c35ad3ea3e38a6ef7ba7fb04c597c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Cache/ReadmeHTMLCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5186ccd8bceb9f53f3642c2837630a1446bb86273169a4d5678134ba5f2e50f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Cache/ReadmeAvailability.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8792be0d89f566b18969968346f9dcbb448f3133d161c9534b0fb68e32852251"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ReadmeContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb90b09704e39a0f22b46ac6b185348f891bba57133e333a3bfb17152e4bc4bb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: ActivityRepoDetailContent.swift, WeeklyDetailContent.swift, ManageDetailContent.swift, TrendingDetailContent.swift: 4 files \u2014 \u0060Starcat/Features/Activity/ActivityRepoDetailContent.swift\u0060, \u0060Starcat/Features/Activity/WeeklyDetailContent.swift\u0060, \u0060Starcat/Features/Home/ManageDetailContent.swift\u0060, \u0060Starcat/Features/Trending/TrendingDetailContent.swift\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityRepoDetailContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da5e2b4c9e11e7d2763df205c5f38eac96a5d95dadeb71c725b1f09f2cf9afb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ActivityDetailScaffoldShell.swift \u2192 WeeklyDetailScaffoldShell.swift, RepoDetailView.swift, TrendingScaffoldShell.swift: \u0060Starcat/Features/Activity/ActivityDetailScaffoldShell.swift\u0060 changes together with 3 other files \u2014 \u0060Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift\u0060, \u0060Starcat/Features/Home/RepoDetailView.swift\u0060, \u0060Starcat/Features/Trending/TrendingScaffoldShell.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 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 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityDetailScaffoldShell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce42c4d4030d71e418ac0423bf5f516c3b8666a60e072178df4ad77b151467c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentWorkspaceWindowController.swift \u2194 KnowledgeRAGWorkspaceWindowController.swift: \u0060Starcat/Features/Agents/Core/AgentWorkspaceWindowController.swift\u0060 and \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift\u0060 change together 81% of the time (13 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 13 shared commits counted here, the most recent 3 are \u00602f3741b2\u0060 feat(starcat): \u91CD\u6784\u5DE5\u4F5C\u53F0\u5206\u680F\u5E03\u5C40\u4EE5\u652F\u6301 Agent \u4E0E RAG \u5171\u7528; \u00604f491799\u0060 fix(workspace): \u5BF9\u9F50\u4E3B\u7A97\u53E3\u4E09\u680F\u5DE5\u5177\u680F; \u006034196250\u0060 fix(workspace): \u6062\u590D\u5DE5\u4F5C\u53F0\u9876\u90E8\u5DE5\u5177\u680F\u5E03\u5C40 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentWorkspaceWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf0308bc59ffc2c6c049932dd86198938cc1c84ec9249abdd15fca9254b3cf2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: HomeView.swift \u2192 AutoTidyScheduler.swift, BatchAIOptionsSheet.swift, RepoAIFloatingOverlay.swift: \u0060Starcat/Features/Home/HomeView.swift\u0060 changes together with 3 other files \u2014 \u0060Starcat/Features/AI/AutoTidyScheduler.swift\u0060, \u0060Starcat/Features/AI/BatchAIOptionsSheet.swift\u0060, \u0060Starcat/Features/AI/RepoAIFloatingOverlay.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 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 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d910c72922ed405205067e4ebbbc4410d777d53113493a87bbf205bacbe41bbe"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ActivityReleaseDetailContent.swift \u2194 ReleaseTimelineView.swift: \u0060Starcat/Features/Activity/ActivityReleaseDetailContent.swift\u0060 and \u0060Starcat/Features/Releases/ReleaseTimelineView.swift\u0060 change together 73% of the time (8 of the 11 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 8 shared commits counted here, the most recent 3 are \u0060094e1677\u0060 fix(releases): \u4E0B\u8F7D\u5B8C\u6210\u300C\u6253\u5F00\u300D\u6539\u4E3A\u5728 Finder \u4E2D\u5B9A\u4F4D\u5230\u6587\u4EF6; \u006041fd7493\u0060 feat(releases): \u652F\u6301 Release \u9644\u4EF6\u4E0B\u8F7D\u8FDB\u5EA6\u4E0E\u5B8C\u6210 Toast \u53CD\u9988; \u00602af5de40\u0060 feat(activity): \u8BA9 Release notes \u56FE\u7247\u6309\u7A97\u53E3\u5BBD\u5EA6\u7B49\u6BD4\u7F29\u5C0F \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/ActivityReleaseDetailContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac93c08de9bb062b428ba85f2e8a893e1768651624419eb3c6950b6698fe3b9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AIModelListView.swift \u2194 AISettingsView.swift: \u0060Starcat/Features/Settings/AIModelListView.swift\u0060 and \u0060Starcat/Features/Settings/AISettingsView.swift\u0060 change together 69% of the time (9 of the 13 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006005c1f5e1\u0060 fix(ai): \u4FEE\u590D Anthropic \u6807\u7B7E JSON 400 \u4E0E\u4E2D\u8F6C\u63A2\u6D4B; \u00602b6eb40b\u0060 fix(settings): \u4FEE\u590D AI \u6A21\u578B\u52FE\u9009\u5BFC\u81F4\u8BBE\u7F6E\u9875\u5361\u6B7B; \u0060b7a638b1\u0060 feat(starcat): \u4F18\u5316 AI \u5931\u8D25\u8BCA\u65AD\u5C55\u793A\u4E0E\u590D\u5236\u903B\u8F91\u5E76\u4FEE\u590D macOS \u7B7E\u540D\u6D41\u7A0B \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Settings/AIModelListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"027a565661209cfecda4d841b2063204aa3449672e2374c6a8661c18c0fb479f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: KnowledgeRAGWorkspaceViewModel.swift \u2194 RAGAssistantMessageBlock.swift: \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift\u0060 and \u0060Starcat/Features/RAG/UI/RAGAssistantMessageBlock.swift\u0060 change together 67% of the time (10 of the 15 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00607e2db3c9\u0060 perf(rag): \u5C06\u8FD0\u884C\u4E2D\u601D\u8003\u6539\u4E3A NSTextView \u589E\u91CF\u8FFD\u52A0\u907F\u514D\u6574\u6BB5\u91CD\u6392; \u00604dee8cae\u0060 fix(rag): \u89E3\u8026\u8FD0\u884C\u4E2D\u8BFB\u79D2\u4E0E\u6D41\u5F0F\u5237\u65B0; \u006099cf8e55\u0060 feat(starcat): \u4F18\u5316 RAG \u4E0E\u6D41\u5F0F Markdown \u5C55\u793A\u7EC4\u4EF6 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffdac8c2cb8de0c9ad118099c272a316180fe2ed287122dae37bd800e8ce8f6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: RepoListView.swift \u2192 UndoStarContentView.swift, GettingStartedOnboarding.swift, DebugFlags.swift: \u0060Starcat/Features/Home/RepoListView.swift\u0060 changes together with 3 other files \u2014 \u0060Starcat/Features/Activity/UndoStarContentView.swift\u0060, \u0060Starcat/Features/Onboarding/GettingStartedOnboarding.swift\u0060, \u0060Starcat/Shared/Utilities/DebugFlags.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 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 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/RepoListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1accc2a6391b038c078cddee0ae86ee581b5ef4d6f8b63e3eb369548f75cfc04"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RepoDetailWindowController.swift \u2194 RepoDetailView.swift: \u0060Starcat/Features/Detail/RepoDetailWindowController.swift\u0060 and \u0060Starcat/Features/Home/RepoDetailView.swift\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 8 shared commits counted here, the most recent 3 are \u006087a08d36\u0060 feat(issues): \u8BE6\u60C5\u9875\u65B0\u589E Issues \u5165\u53E3\u3001\u5217\u8868\u6D6E\u5C42\u4E0E\u65B0\u5EFA Issue; \u0060276b9aa1\u0060 feat(stars): \u652F\u6301\u53D6\u6D88 Star \u540E\u6E05\u7406\u672C\u5730\u53CA\u77E5\u8BC6\u5E93\u6570\u636E; \u0060543a9c05\u0060 feat(ai): \u63A5\u5165 Google \u7FFB\u8BD1\u5E76\u5B8C\u5584 README \u7FFB\u8BD1\u94FE\u8DEF \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Detail/RepoDetailWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b782af145f9387bbcfb18398ec003cad3033a30e8e5741fe4b120f327736109b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GitHubWeeklyReportAgentDefinition.swift \u2194 GitHubWeeklyReportTools.swift: \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportAgentDefinition.swift\u0060 and \u0060Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportTools.swift\u0060 change together 62% of the time (8 of the 13 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00601ae0f9d9\u0060 fix(agent): \u4FEE\u590D\u66FF\u4EE3\u54C1\u62A5\u544A\u51BB\u7ED3\u8EAB\u4EFD\u4F20\u9012; \u00601f1dbd92\u0060 feat(agent): \u5B9E\u73B0\u672A\u6807\u7B7E\u4ED3\u5E93\u786E\u8BA4\u5199\u5165\u6D41\u7A0B; \u00604752997f\u0060 feat(agent): \u5B9E\u73B0\u4ED3\u5E93\u66FF\u4EE3\u65B9\u6848\u53EA\u8BFB Agent \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/WeeklyReport/GitHubWeeklyReportAgentDefinition.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f19195c67e7e481927be981b62f2df7b3baad7a962bdfe91649606ab269727"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StarcatApp.swift \u2194 GettingStartedOnboarding.swift: \u0060Starcat/App/StarcatApp.swift\u0060 and \u0060Starcat/Features/Onboarding/GettingStartedOnboarding.swift\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 7 shared commits counted here, the most recent 3 are \u00604945f243\u0060 fix(agent): \u5C06\u672A\u5F00\u653E\u5DE5\u4F5C\u53F0\u6536\u56DE Debug \u83DC\u5355; \u0060f9addf8a\u0060 feat(agent): \u5F00\u653E\u6B63\u5F0F\u5165\u53E3\u5E76\u5B8C\u5584\u4EA7\u54C1\u95E8\u7981; \u00600668a999\u0060 refactor(starcat): \u91CD\u6784\u65B0\u624B\u5F15\u5BFC\u4F53\u7CFB\u79FB\u9664 TipKit \u5E76\u884C\u5F15\u5BFC\u5E76\u7EDF\u4E00\u80F6\u56CA\u63D0\u793A \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/App/StarcatApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6debe5dd4c681a67a2f8932a5027017b177779551657b2a3b6bedd699a58a337"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GitHubStarListAIGroupingSession.swift \u2194 GitHubStarListAIGroupingResultList.swift: \u0060Starcat/Features/AI/GitHubStarListAIGroupingSession.swift\u0060 and \u0060Starcat/Features/Home/GitHubStarListAIGroupingResultList.swift\u0060 change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 9 shared commits counted here, the most recent 3 are \u00602d18f5fa\u0060 improve(github-lists): \u5C55\u793A\u672C\u5730\u5206\u7EC4\u5E76\u652F\u6301\u91CD\u8BD5\u540C\u6B65; \u0060b36f119a\u0060 feat(ai): \u4ED3\u5E93\u5206\u7EC4\u6574\u7406\u652F\u6301\u6682\u505C\u6001\u91CD\u8BD5\u4E0E\u5404 Tab \u6279\u91CF\u9009\u4E2D\u64CD\u4F5C; \u006070b06779\u0060 improve(ai-grouping): \u589E\u52A0\u4ED3\u5E93\u5217\u8868\u6279\u91CF\u9009\u62E9 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91273daa3e1421d3ee21933a31813e5ac9d2d3398f597622bb0b18b4233329c3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DatabaseMigrationsV1.swift \u2194 AwesomeRepository.swift: \u0060Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift\u0060 and \u0060Starcat/Core/Sync/AwesomeRepository.swift\u0060 change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 9 shared commits counted here, the most recent 3 are \u006022cc006a\u0060 feat(awesome): \u5C55\u793A\u5916\u90E8\u8D44\u6E90\u4E0E\u4ED3\u5E93\u6587\u4EF6\u6761\u76EE; \u0060dafeba3d\u0060 feat(explore): \u6301\u4E45\u5316\u81EA\u5B9A\u4E49 Awesome \u89E3\u6790\u72B6\u6001; \u0060b5ba6802\u0060 feat(explore): \u7F13\u5B58 Awesome \u6765\u6E90\u4ED3\u5E93\u5143\u6570\u636E \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Migrations/DatabaseMigrationsV1.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41a47ac592054f2833a75b2ae4ac3795ed9f1e9aaeb87db3c58824ce2d4b6ef"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: WeeklyContentView.swift \u2194 ExploreDiscoveryViewModel.swift: \u0060Starcat/Features/Activity/WeeklyContentView.swift\u0060 and \u0060Starcat/Features/Explore/ExploreDiscoveryViewModel.swift\u0060 change together 56% of the time (10 of the 18 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 10 shared commits counted here, the most recent 3 are \u006054f27217\u0060 feat(search): \u6269\u5C55\u4E2D\u680F\u5FEB\u901F\u641C\u7D22\u5230\u63A2\u7D22\u4E0E\u6D3B\u52A8; \u0060b19d798e\u0060 perf(app): \u4F18\u5316\u5217\u8868\u52A0\u8F7D\u4E0E\u9AD8\u9891\u6E32\u67D3; \u00600aa51364\u0060 feat(home): \u63A2\u7D22\u680F\u76EE\u8BED\u8A00\u5206\u7C7B\u6539\u4E3A\u611F\u5174\u8DA3\u8BED\u8A00\u9A71\u52A8\u5E76\u65B0\u589E\u5176\u4ED6/\u672A\u5206\u7C7B\u5206\u7EC4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc9d0872281b69172d965df2441bfa1c6967f9b5d808d5bdfb7c553ca9848b7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RepoAIContextProvider.swift \u2194 RepoAIWindowContentView.swift: \u0060Starcat/Features/AI/RepoAIContextProvider.swift\u0060 and \u0060Starcat/Features/AI/RepoAIWindowContentView.swift\u0060 change together 54% of the time (7 of the 13 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006070a801d4\u0060 feat(ai): \u652F\u6301\u6458\u8981\u751F\u6210\u672C\u6B21\u8986\u76D6\u4EE3\u7801\u4E0A\u4E0B\u6587\u4E0E\u5916\u90E8\u641C\u7D22; \u00608c623a9a\u0060 feat(starcat): \u589E\u5F3A RepoAI \u529F\u80FD\u5E76\u4F18\u5316\u4FA7\u8FB9\u680F\u5E03\u5C40; \u00604c72de9e\u0060 feat(starcat): \u4F18\u5316 AI \u6D1E\u5BDF\u751F\u6210\u7684\u4E0A\u4E0B\u6587\u51C6\u5907\u65F6\u673A\u4E0E\u8FDB\u5EA6\u53CD\u9988\u673A\u5236 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIContextProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f9ae52ae61c83236d6b1e509512824f0c90b93fb9391b7708c0351b7ef3e92"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AppEndpoints.swift \u2194 GitHubAPIClientProtocol.swift: \u0060Starcat/Core/Network/AppEndpoints.swift\u0060 and \u0060Starcat/Core/Network/GitHubAPI/GitHubAPIClientProtocol.swift\u0060 change together 54% of the time (15 of the 28 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 15 shared commits counted here, the most recent 3 are \u006087a08d36\u0060 feat(issues): \u8BE6\u60C5\u9875\u65B0\u589E Issues \u5165\u53E3\u3001\u5217\u8868\u6D6E\u5C42\u4E0E\u65B0\u5EFA Issue; \u0060dae09f6b\u0060 feat(home): \u5B8C\u5584\u8BE6\u60C5\u9875\u6587\u4EF6\u6811\u9884\u89C8\u3001LFS \u4E0B\u8F7D\u4E0E\u7F13\u5B58; \u0060fd2b8ed8\u0060 feat(home): \u8BE6\u60C5\u9875\u652F\u6301\u6309\u6587\u4EF6\u52FE\u9009\u4E0B\u8F7D \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/AppEndpoints.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"388b4792d544271e61a1c70a3d2898781c16fcf903cfa199a1a0db710a2acf93"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BatchAIOptionsSheet.swift \u2194 BatchAIQueueService.swift: \u0060Starcat/Features/AI/BatchAIOptionsSheet.swift\u0060 and \u0060Starcat/Features/AI/BatchAIQueueService.swift\u0060 change together 50% of the time (10 of the 20 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00602436ed4d\u0060 improve(ai): \u63A7\u5236\u6279\u91CF\u6807\u7B7E\u589E\u91CF\u6269\u8BCD; \u00600b0792cd\u0060 feat(ai): \u65B0\u589E\u9996\u6B21\u6807\u7B7E\u4F53\u7CFB\u5F15\u5BFC; \u0060887b8889\u0060 fix(ai): \u7EDF\u4E00 JEV \u6807\u7B7E\u751F\u6210\u4E0E\u65B0\u589E\u515C\u5E95 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIOptionsSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d921c092e3b447e83ff9bf39022b9993deca66789bae31aef9cab8e69aae92"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GitHubStarListAIGroupingPreflightView.swift \u2194 SidebarView.swift: \u0060Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift\u0060 and \u0060Starcat/Features/Home/SidebarView.swift\u0060 change together 50% of the time (9 of the 18 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00605e196f7f\u0060 feat(ai): \u65B0\u589E AI \u5206\u7EC4\u7684\u5220\u9664\u4E0E\u91CD\u65B0\u5206\u7EC4\u529F\u80FD; \u006009681940\u0060 perf(home): \u907F\u514D\u4ED3\u5E93\u5206\u7EC4\u7A97\u53E3\u91CD\u590D\u5C3A\u5BF8\u8BA1\u7B97; \u0060c8788fbd\u0060 revert(home): \u64A4\u9500\u4ED3\u5E93\u5206\u7EC4\u7A97\u53E3\u6027\u80FD\u6539\u52A8 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f35955b918822ce7377d181f34de138d3f6f84758aa654a00008c5b6b2d8c2a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: KnowledgeRAGQueryPlanner.swift \u2194 KnowledgeRAGWorkspaceViewModel.swift: \u0060Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift\u0060 and \u0060Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 8 shared commits counted here, the most recent 3 are \u00600d6901d5\u0060 feat(rag): \u652F\u6301 Codex \u4E0E Claude Code CLI \u63A8\u7406; \u0060db7775fd\u0060 feat(starcat): \u65B0\u589E RAG \u5185\u5BB9\u65B0\u9C9C\u5EA6\u4E0E\u7D22\u5F15\u53EF\u7528\u6027\u5143\u6570\u636E\u53CA\u8BBE\u7F6E\u9879; \u0060355ab16e\u0060 feat(rag): \u65B0\u589E RAG \u8C03\u8BD5\u8FFD\u8E2A\u4E0E\u4E0A\u4E0B\u6587\u4E8B\u4EF6\u4E0A\u62A5\u673A\u5236 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/KnowledgeRAGQueryPlanner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d6c4bb7e6d2d70496a42d0afa3dacf1583b002d78e2448401f47c450f85ba8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BatchAITagReviewRow.swift \u2194 BatchAIWorkspaceView.swift: \u0060Starcat/Features/AI/BatchAITagReviewRow.swift\u0060 and \u0060Starcat/Features/AI/BatchAIWorkspaceView.swift\u0060 change together 50% of the time (7 of the 14 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060899dbb7a\u0060 improve(ai): \u5B8C\u5584\u9996\u6B21\u6807\u7B7E\u4F53\u7CFB\u53CD\u9988\u4E0E\u6279\u91CF\u5E94\u7528; \u00600b0792cd\u0060 feat(ai): \u65B0\u589E\u9996\u6B21\u6807\u7B7E\u4F53\u7CFB\u5F15\u5BFC; \u00609374039d\u0060 improve(ai): AI \u6574\u7406\u7A97\u53E3\u8FD0\u884C\u6001\u63A5\u5165\u601D\u8003\u7403\u52A8\u753B \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAITagReviewRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ca3d91064d81650d2f76596bc0041f2ae8b92706fa48dd44c6bab27ea19f90"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentMessageTimelineView.swift \u2194 AgentRunInspectorView.swift: \u0060Starcat/Features/Agents/Core/AgentMessageTimelineView.swift\u0060 and \u0060Starcat/Features/Agents/Core/AgentRunInspectorView.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00601c34e89b\u0060 fix(agent): \u4FEE\u590D\u5DE5\u4F5C\u53F0\u4E2D\u680F\u504F\u79FB\u4E0E\u68C0\u67E5\u5668\u5185\u5BB9\u6EA2\u51FA; \u0060215d0cd2\u0060 feat(agent): \u589E\u52A0 Runtime \u4E8B\u4EF6\u5BA1\u8BA1\u89C6\u56FE; \u00600727ad02\u0060 improve(agent): \u91CD\u6784\u4EFB\u52A1\u68C0\u67E5\u5668\u5E76\u6253\u901A\u6B65\u9AA4\u8054\u52A8 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentMessageTimelineView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff815bc469f06001c5af53383c9e499d87125a5559af24679b3107dc86b0d24"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: WeeklyDetailScaffoldShell.swift \u2194 TrendingScaffoldShell.swift: \u0060Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift\u0060 and \u0060Starcat/Features/Trending/TrendingScaffoldShell.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). 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 6 shared commits counted here, the most recent 3 are \u0060276b9aa1\u0060 feat(stars): \u652F\u6301\u53D6\u6D88 Star \u540E\u6E05\u7406\u672C\u5730\u53CA\u77E5\u8BC6\u5E93\u6570\u636E; \u0060c283d55b\u0060 fix(stars): \u7EDF\u4E00\u8DE8\u573A\u666F\u661F\u6807\u6570\u5C55\u793A; \u00609e42aec4\u0060 feat(starcat): \u65B0\u589E\u5916\u90E8\u573A\u666F Star \u64CD\u4F5C\u540E\u7684\u7EDF\u4E00\u5237\u65B0\u673A\u5236\u5E76\u91CD\u6784\u641C\u7D22\u4EA4\u4E92\u903B\u8F91 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Activity/WeeklyDetailScaffoldShell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c628df11909d686659df2771005892b2a9022b8e2b85a1f10ddc40bcaaadddf2"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"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":"\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":"resources/follow-graph/entry.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6123ad54064eb155fc8c326337df8951cf1577c601b60f84b0787f35c25ab5"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022root\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a1cd841efd549e259f070e7b7fa992b226d1409b7133ae0b3415a8a57aa2dd"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/FollowGraph/follow-graph.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb176ca2f65a31cb2fc749c8ff5ba80b169e66da25a5af9cd04eea87be61ba7b"}},{"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. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/FollowGraph/follow-graph.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6706995d18dc31620756dae061b3787361a33c2842cf63afcf5e8ed314ddbfd1"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022graph\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/FollowGraph/follow-graph.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e789b48db4bf42ad83dbc46cec1b6ebe53a5a00291547e9a8286470bb3727a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022root\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"856495b2fc0fbcc047ea123d0cdd918c8fff1b8a3e43f4609c3cccfc63fc1e74"}},{"ruleId":"AC4","level":"error","message":{"text":"Focusable \u003Cdiv\u003E isn\u0027t keyboard-operable: This \u003Cdiv\u003E carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it \u2014 but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native \u003Cbutton\u003E or \u003Ca href\u003E and nowhere else, so this can be focused and never activated. Use a \u003Cbutton\u003E, or handle Enter/Space in a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/AutoStartGate.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91f168a3db0ac3da53a497699e47ec1ec8a2d44fb9a2f4442b73615910fe4f6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\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":"starcat-promo-video/presentation/src/components/Stage.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cb65ee24ed27752a652c8b2af9f49eb81c5790d121f4c55a5e9576cdf79a56"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tree-toggle\u0060 moves (\u0060transition: transform 0.15s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f517861f11aa01359697073e2bb3c2f2f8de9eb91914d5cb22277ea8ab249f58"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.legend-toggle\u0060 moves (\u0060transition: transform 0.2s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3fb1e8fca40ff3f2ca92d6193f8c918f86bfe889ab41a046326749da1c2987"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.card-toggle\u0060 moves (\u0060transition: transform 0.15s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"933bee7f92d575a47183239b471271cda0355a92f2c3691e44ec8d4cc927eba2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pattern-item\u0060 moves (\u0060transition: transform 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"64157bf4dba6d1b2758ce88975df21f70263d0c5d674ceed85c72322c4fa6406"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.security-item\u0060 moves (\u0060transition: transform 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be37ea8061469a4639d6cd3a74215b940ff25416f38473cb7c45661bce06b90"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner\u0060 moves (\u0060animation: spin 0.8s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2774592e37e3afdb4ba8339a57b2af25e4ed7fbdbae1f828a293b171f5c4bef"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toast\u0060 moves (\u0060animation: slideUp 0.3s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ea935c76294e1be9202d87b82dce960d7cb6b4a81cfaeb15b8298f65f2871c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.loading-owner::before\u0060 moves (\u0060animation: spin 0.6s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc4f3b301ff74065762201566a9ddf0986f2faf81555906db117b18f7299090"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.lang-bar-segment\u0060 moves (\u0060transition: width 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eda30a0fed2d24d40871762242729f54c243152cceabf4ea32baac5f76b9e8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sidebar\u0060 moves (\u0060transition: transform 0.24s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee077f13896f80a6cec1f22afeadad9ee0e97eddef8469aab5a104e376c7ea9d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sidebar\u0060 moves (\u0060transition: transform 0.24s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7cab580cacb7f787820d39e66a2163316a5dab40f62d6ed99393646f1d5772"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.2:1): \u0060.top-btn:hover\u0060 sets color: #00a86b on background-color: #dadce0 \u2014 2.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"99219b007fbc86aa373f1f1d47b33b11d5ad08db1c5d046cedf48c5c1b5c7fd4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.top-btn.primary\u0060 sets color: #fff on background-color: #00a86b \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbebb155d111582128da3d9b646b602a1623c6f7c070be33fc8642e88c5ba6f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.0:1): \u0060.view-mode-badge\u0060 sets color: white on background-color: #ff5f5f \u2014 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"798203533368dab49527d77100e77f79cc8e789b43104cfd15f558776932fb4d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.3:1): \u0060.tree-count\u0060 sets color: #9c9c9c on background-color: #e8eaed \u2014 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1973bdc3c43b3f0027ee2b75994050e427d807051116b24e71b86a74d8cb2c5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.4:1): \u0060.badge-default\u0060 sets color: #6c6c6c on background-color: #e8eaed \u2014 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a4ed6032e6215f37ceb4208682d51dd01795d27985b4a080ab12164af03b27"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.7:1): \u0060.security-code\u0060 sets color: #ff9f43 on background-color: #e8eaed \u2014 1.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e1e818f375a7a7a32dbd15e9893d99e9bf7c46e619725a729dc485bd0f7277"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.3:1): \u0060.toast.success\u0060 sets color: white on background-color: #22c55e \u2014 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47d11a86b5205cdff7fe37d193326728d90d326d076d86a8519b3e697e94004"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.0:1): \u0060.toast.error\u0060 sets color: white on background-color: #ff5f5f \u2014 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"93beee18081ddc9105f3296abed3ca6227bf2d17f121b02cda67770db51c78ad"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.toast.warning\u0060 sets color: #fff on background-color: #ff9f43 \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1faf52348cd4f83396d279d6d54f1a6333e3de67ecbdbe2a18ce1e8d4593f8be"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.4:1): \u0060.fn-caller:hover\u0060 sets color: #00a86b on background-color: #e2e4e8 \u2014 2.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"290175dbfe76876c7a9798a903fbab6d81a6d93c90b72ad78d045b31b57f431d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.4:1): \u0060.unused-fn-file\u0060 sets color: #4d9fff on background-color: #f1f3f4 \u2014 2.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"006d4e651f9bd20ac86e7033e275e080530bec9d5d68ae11250f528485678d81"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.viz-tab.active\u0060 sets color: #fff on background-color: #00a86b \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df7b7526eae89ee55e22b1ed32500b574a02e389ab86d8739dd3e91707f753"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.conn-goto:hover\u0060 sets color: #fff on background-color: #00a86b \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd2c22e59041fc4dd2bc596a4e4d49b62c16413ae304bb698a0059da0e9a3d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.0:1): \u0060.file-preview-close:hover\u0060 sets color: white on background-color: #ff5f5f \u2014 3.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f059cfa78271831a2a97f0bfee81dbed2f3b7202e09c3acba32bf716a37e61"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.2:1): \u0060.private-key-btn:hover\u0060 sets color: #00a86b on background-color: #dadce0 \u2014 2.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc4a37c4a7df8deaf514fe1261ee10c598c0e22415c49ac0a5054f0c019d92"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.6:1): \u0060.key-info code\u0060 sets color: #00a86b on background-color: #e8eaed \u2014 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45912d0fc4beebbdebe810781d5154b3cb114a86f54d7743776766c6ecbe2c6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.exclude-note code\u0060 sets color: #00a86b on background-color: #fff \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"2773211074857a4e02828349954970dba2dccb92facacc2110c32873bc9e0039"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.letter-stagger \u003E .letter\u0060 moves (\u0060animation: letter-rise var(--dur-slow) var(--ease-expo) forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/styles/animations.css"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b77e3178ca190f9ab123d86923b3f8e7cd1d412a6b913fa180419d89f0c8b3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.click-cue .arrow\u0060 moves (\u0060animation: nudge 2.4s var(--ease-soft) infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/styles/base.css"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22b94f3c63e1894b09e5d0dfbf7072a8e418b013448ed30775c62b058ff0413"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.at-btn\u0060 moves (\u0060transition: opacity 280ms ease, transform 280ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/AutoToggle.css"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c4e69146a61eaa13fd5627624f8cf2758e3124c0cc3c903fe1e9f92962de82"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-os-row\u0060 moves (\u0060animation: ct-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"27779d16efd16ae21fda30a6fe6b4c35b3f7759156a4feb4169a83ccb9e7b72b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-pack\u0060 moves (\u0060animation: ct-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9728e0042715f940d3cfae4b13a3f489e988e3f13aaa7e44bb3838becb7171a2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-out\u0060 moves (\u0060animation: ct-rise 600ms ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae619867210610815eff62038eae49b75aded176bc8ac7503ea23fce09583050"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-out:nth-child(1) .ct-strike\u0060 moves (\u0060animation: ct-strike 450ms ease 3300ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"162fd401d9b98ad701a421bca55e84344dba0e502cf99667a710594321d66e43"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-out:nth-child(2) .ct-strike\u0060 moves (\u0060animation: ct-strike 450ms ease 3750ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"de38a985fbb0998d65e2fc1381112d85be35c2c12c53064f6f396a222e6c41b4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-out:nth-child(3) .ct-strike\u0060 moves (\u0060animation: ct-strike 450ms ease 4200ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9204eb85c158566e268a9c04367041e35e3c0417d8ffb7e0a723ab9d8aa0c594"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-oss\u0060 moves (\u0060animation: ct-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98df559a834eb668f4fe1c4dc7b381a8b4048cc1761a9214f27f362e3989f0b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-oss-free\u0060 moves (\u0060animation: ct-rise 700ms ease 900ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0a7bdb013bf2db81595352cc8988a17971bf9e98c47b536711651493f255d9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-path\u0060 moves (\u0060animation: ct-path-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"92100ed62c6357ef22cf9df2fff35213e583747e2eda335286920a5a08e494e6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-logo\u0060 moves (\u0060animation: ct-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"91332fa0a85adbaf6c5c09ba2ec8061a5520bb1a76f23c4ebade89059c3a1cf2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-url\u0060 moves (\u0060animation: ct-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74a712d8467a9963780a6d297301b1fccfe33f6b70e59b5877f34be82dc1465"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-url-rule\u0060 moves (\u0060animation: ct-rule 900ms cubic-bezier(0.16, 1, 0.3, 1) 900ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a731d0c21f30b84bf69e73e910fb107897d7c80dc84be887158b70da0a97f4ad"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-slogan\u0060 moves (\u0060animation: ct-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) 1400ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2437b88532104dc26c426a57e62d35a8cfc866ebc4f095bbddcb93cca6abe103"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ct-gh\u0060 moves (\u0060animation: ct-rise 700ms ease 1200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.css"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3b88355889620af230401d1cfaf75cfe78699359482989d7e61ec3f70232bf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-dots .ln-dot\u0060 moves (\u0060animation: ln-dot-drop 900ms ease forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e634cfccac6b541f172c0d70b0d1e90d41420ca77b0f439708c84105063d3e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-hero\u0060 moves (\u0060animation: ln-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"88726f7b444eb60ebd3bc12fb6db2ffb6005018754e7cfb509395cd183e5e371"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-offline\u0060 moves (\u0060animation: ln-rise 700ms ease 2200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c930c9652f71e9df8d1136e6cde89ef4f6e5a7dc069398d40468120a0328f7d0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-split\u0060 moves (\u0060animation: ln-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3155644624e6e94c4673286277bf3142db4b61dc05c45f3f3bcb45f2bcb3ac1a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-lock-body\u0060 moves (\u0060animation: ln-rise 400ms ease 3800ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b148c8110262bcda5f1ad31040ad27b4cb88b7d0c4e7e61247eba3cdea6171a5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-lock-hole\u0060 moves (\u0060animation: ln-rise 400ms ease 3950ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeef0555e54ac6997049ad57e0dcbf9e1b70df2002263ad823018c8c95fbac78"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-sync-key .ln-sync-dst\u0060 moves (\u0060animation: ln-rise 600ms ease 4100ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"05607afccf44c2a11e9f7b42c31b20ecfa1b524456f94b2a3cf4b6f4fea6f24a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-byok-title\u0060 moves (\u0060animation: ln-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e230a579b56f20146a48e6ba3d93ca8d3ea6844365ad29a46018af9ff38f15b1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-byok-sub\u0060 moves (\u0060animation: ln-rise 700ms ease 600ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9642671d86f142d4f0f00dddfe6bb738af2d7e7ca203a13202adc082fe35950"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ln-provider\u0060 moves (\u0060animation: ln-rise 550ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.css"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4095061e79926cc425b43b5a4595426cb358904af0639187d84567615829ae12"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-kicker\u0060 moves (\u0060animation: as-rise 600ms ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9915ad62881710dfdb676110262de8ed1e8b8c51fc1ae172149100d76021532"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-scan\u0060 moves (\u0060animation: as-scan-sweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4a15189356fb19e684e9c853507277d1ae88dcc757fb1fcd0624647cff12fe"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-axis\u0060 moves (\u0060animation: as-rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d67c7b51b277f7c512c20044c90ee5ec4a26b6471df013051503a8050e48399"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-cap\u0060 moves (\u0060animation: as-rise 700ms ease 3200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc6935ceccae8193b92ab24b7340708f21c23aec73ec53f4d53907cf4463b75"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-title\u0060 moves (\u0060animation: as-rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bca74efc7860e155208e7a7ecae20ebd6f8913368ac5cb5849a8eaf2614043e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-img-settle\u0060 moves (\u0060animation: as-settle 2.2s cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf71e37d298e8d833ec00e863c6432d95df71f45c5467c73f7206a423094983"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.as-entry\u0060 moves (\u0060animation: as-entry-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.css"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b06ed1cb3652ffc4b6b6d0f40e685cc902508367bd05548e15b82b72146a9a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-release-left\u0060 moves (\u0060animation: og-from-left 1s cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1ba178b8da467a96517026c40a76948efe8c529e2f34ddc9771cc542ea15a2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-release-right\u0060 moves (\u0060animation: og-from-right 1s cubic-bezier(0.16, 1, 0.3, 1) 250ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e652533c347c89cf69ad84893bba93b033f0e1f60fc9528693adfbf65f35ab12"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-copy-url::after\u0060 moves (\u0060animation: og-copied-pop 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 2600ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb077ebd3116b50252f43780473dda9620a322c13daf6cb37a9147f864281a1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-hot-item:first-child\u0060 moves (\u0060animation: og-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 1200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcbf4643503197858bbddc1a1ccb73f9ab967fff7cbfc0e17094232f0665a47"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-hot-rule\u0060 moves (\u0060animation: og-rise 700ms ease 1500ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"730209c0b9bf5717866c85244c26eec88c2e4989e096e58a0a9c712f0c0f76af"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-hot-item:last-child\u0060 moves (\u0060animation: og-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 3600ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2df8bb849613602ac364af04b2b899ecf6d83e8f0fecf10d1a06d7f5d5f750"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-more-item\u0060 moves (\u0060animation: og-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83bce926e0b45c52fbb005e4d26092d4973831c5010dfd5d98b6daa450e958d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.og-alone\u0060 moves (\u0060animation: og-rise 700ms ease 2300ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.css"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8723a33945f1aac876045d56ecd2f257d6df8e21b83b9a3fc2ef4358d8170d75"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-cand\u0060 moves (\u0060animation: tg-press 600ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12520587e60de171e29b97cced057128029d7d01358728a2f1d123732882e9c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-fill\u0060 moves (\u0060animation: tg-grow 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"259db84620643919c1cfe53c51f2a0f177dab6e08edf6fa3f0625765bdce3cb0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-syn-pair\u0060 moves (\u0060animation: tg-press 700ms ease 2100ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78051338709dd86eb40ef73f6c89fc61b9212be91984cd551fe045ab055f4c7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-verdict\u0060 moves (\u0060animation: tg-verdict-stamp 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d007702ccdade960c24df633a3aee17637653efef42821729a80eb918752b24"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-verdict-sub\u0060 moves (\u0060animation: tg-press 700ms ease 500ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a71d5f776a9b30ec16c8629788e4db367fa396bdfa8187ee4ea50f490ce626"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-repo\u0060 moves (\u0060animation: tg-press 800ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2277c4389e4e77cf614fb4d86820290bd845ceeb16e05f78f97aacd905ab061c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-on\u0060 moves (\u0060animation: tg-stick 500ms cubic-bezier(0.34, 1.56, 0.64, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c38dd85a13c040ba3eb111b5b7f6dfd6bb7728624e31cc0e60bc836d10348b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-seal\u0060 moves (\u0060animation: tg-seal-in 450ms cubic-bezier(0.34, 1.56, 0.64, 1) 2300ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d99d133430932ef343a2842923db9254a8b5699fb8499c125ef34b1958c5961"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tg-sqlite\u0060 moves (\u0060animation: tg-press 700ms ease 2900ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.css"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb1a609752eb701ed655d26d21c966bba8e13d416d5e5b4d8ba4295e52c117b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-read-tag\u0060 moves (\u0060animation: un-rise 600ms ease 900ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ca877e14be8447fde64325a6ee067da1cceedad11a0d09f37fd112ff7136d7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-field\u0060 moves (\u0060animation: un-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46d587f5acf768c01935f746ef2ba447d209e41d5949499f1dd54c32acf2f07"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-note-col\u0060 moves (\u0060animation: un-note-in 1s cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc926fa7b4687254f7707db91bf86d897d51714d1505688dd2c4012a39a01931"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-cache-col\u0060 moves (\u0060animation: un-cache-in 1s cubic-bezier(0.16, 1, 0.3, 1) 500ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d233f3ab0fd4c83f8622ee6a2a4c7fc029c5cdbedc8ae6798071b0e5ad3361"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-lamp-core\u0060 moves (\u0060animation: un-lamp-on 600ms ease 1300ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"978fdd373ea6a90aff93fb22ae8c00ba993362a9b8ef6d6bb60fa2b9648dc0af"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-change\u0060 moves (\u0060animation: un-change-slide 800ms cubic-bezier(0.16, 1, 0.3, 1) 2200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afdc92659c1ffab2b551eb3a6871cd40be217da7570a93545763796f4d10b9f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.un-quota-tag\u0060 moves (\u0060animation: un-rise 700ms ease 1500ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.css"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"446ab15201a6460877573648b4eb14819421f37c2a079bbc623a1d3e9c3b159d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-index-note\u0060 moves (\u0060animation: fd-rise 700ms ease 1.6s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa8b4edcfefefa3079171c1b3360667f90b04ccc15f6cfb72e13e85195677ec"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-img-top\u0060 moves (\u0060animation: fd-settle-top 2s cubic-bezier(0.22, 1, 0.36, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b1d5cf2d0b5d5c4d0fdcdcfaf6a8d4a64c40926f96e036e7b29d5d3ce89830"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-callout-search\u0060 moves (\u0060animation: fd-callout-in 800ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"597176c5f0f0a438d875987c3966816b9b902a0dcb4efddba5619bbc32558b07"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-callout-label\u0060 moves (\u0060animation: fd-rise 700ms ease 1400ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c7168f6304c9b34a9bf4957a0565c62d990ff9ee8ca26e0951dc02f4786e5c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-corner-tag\u0060 moves (\u0060animation: fd-rise 700ms ease 2200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e720b3b82d34f864e596718bcc0d02c2dad90705fe6812cf238efef323242662"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-img-result\u0060 moves (\u0060animation: fd-settle-result 1.6s cubic-bezier(0.22, 1, 0.36, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb226106959f549fe678fd68a33340d8ac4938af8523d4031eb77cd50d3ae098"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-first-hit\u0060 moves (\u0060animation: fd-hit-in 700ms cubic-bezier(0.16, 1, 0.3, 1) 1100ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"971c4af8a62e6dc0172ccf6bf7401e10a6eef32169321432e80b9cd32b72bc31"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-sem-mark\u0060 moves (\u0060animation: fd-rise 600ms ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ace228450ab3de2a87203ac1a22782578b7dda9a72338dad75e8b79bdcdb07b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-semantic-sub\u0060 moves (\u0060animation: fd-rise 700ms ease 800ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48bf22eeb09097e63cd78dbd052351bd1dce4a8a4dba607d4b3f2710a3263ce"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fd-fusion\u0060 moves (\u0060animation: fd-rise 700ms ease 1500ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.css"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"283af13638b857a4da53e16e875722ceaaba9e95908b5551c8f1e8853c0585ef"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-logo\u0060 moves (\u0060animation: pd-stamp 1.1s cubic-bezier(0.16, 1, 0.3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaf76db07b33643c247c59c2b93b48726dffd60aa24768b962589ac72fc7136"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-name\u0060 moves (\u0060animation: pd-rise 700ms ease 200ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"122347e9c0fc97d484097e623e7db3e12ed6c2c63e45413cbd1d14637217a1b8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-shot-img\u0060 moves (\u0060animation: pd-shot-settle 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1744e38d37df15dc8aef17b8b75f9290282dac955aab4010d72afc2010e04857"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-native-row\u0060 moves (\u0060animation: pd-rise 800ms ease 900ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"758dd1f11dcc533e92e5b43f5480e4066a70eb3b3be1285869beace3a75491c6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-shell-mini\u0060 moves (\u0060animation: pd-rise 600ms ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8800be66edb755f14a6a1d3c491de3b2f906fbf3f7eedc3a524f82bfec3c299c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-shell-mini.shell-0 .pd-strike\u0060 moves (\u0060animation: pd-strike 450ms ease 4900ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"56897c5d1408e60ec8c7352f47d4693dcb812ee4396e82344fb1f9620f2e7f4c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-shell-mini.shell-1 .pd-strike\u0060 moves (\u0060animation: pd-strike 450ms ease 5400ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b1ac9b705cc32b28bda103f9f0dcdafdf4765bd3f8c46f0e2e5c7ca8aaa194"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-shell-mini.shell-2 .pd-strike\u0060 moves (\u0060animation: pd-strike 450ms ease 5900ms forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce64fae46691c9f884b20bdab931231bd8108939ae11586b299e077dcb612007"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-zoom-img\u0060 moves (\u0060animation: pd-zoom-settle 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e92aef7e905362ade5f1c2ee15ded701e196893c955368df7ff183e8e9728e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-zoom-tag\u0060 moves (\u0060animation: pd-rise 700ms ease 700ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"77539cca29348f9ef85faad0268dfefcd119826f2450925a79b7a9d2a42fd640"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pd-zoom-cap\u0060 moves (\u0060animation: pd-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 850ms both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.css"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb232915531e03b4a876db950e74d07fceb8207da208760eb7b6492ec2091b3c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-search-query\u0060 moves (\u0060animation: cd-type 1.6s steps(3, end) forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf130a48b5d1e0cae8585ff0a59d1254a0ded8b95566c58d103546e76a98569"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-timer\u0060 moves (\u0060animation: cd-rise 700ms ease-out both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8dbb40d98a02e2ba882347e2a7025a413f8ba46d70814f4751133f176e10ce"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-split-pane:first-child\u0060 moves (\u0060animation: cd-from-left 1.1s ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bed5e5a9dfdc98509ea7be6360acb511e34726a14579aa658bcd76cc58d6024"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-split-pane:last-child\u0060 moves (\u0060animation: cd-from-right 1.1s ease both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa66b549ef565b4760586f459b1f9964271f61788565a6d040b24f32aab1a71"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-river-a\u0060 moves (\u0060animation: cd-scroll 22s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eb6d8472b59db9e3e069a391ccd151ea43c844aaba5b585f4eb5660d0e5c30"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cd-river-b\u0060 moves (\u0060animation: cd-scroll 26s linear infinite reverse\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.css"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48b4d7d5722c098fecc70b6ab8ba3b146bf5b590541aa503fd0ba52c89633e8"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: RAGChunkRepositoryProtocol (32 requirements): \u0060RAGChunkRepositoryProtocol\u0060 declares 32 requirements: \u0060replaceSource\u0060, \u0060fetchChunks\u0060, \u0060fetchChunkIdentities\u0060, \u0060fetchActiveMetadata\u0060, \u0060countChunksNeedingEmbedding\u0060, \u0060fetchVectorizationProgress\u0060, \u0060fetchChunksNeedingEmbedding\u0060, \u0060claimChunksForEmbedding\u0060, \u0060releaseEmbeddingClaim\u0060, \u0060clearOrphanEmbeddingClaims\u0060, \u0060hasReadyVectorChunks\u0060, \u0060fetchReadyEmbeddings\u0060, \u0060fetchReadyChunks\u0060, \u0060fetchKeywordSearchableChunks\u0060, \u0060keywordSearch\u0060, \u0060markReady\u0060, \u0060markFailed\u0060, \u0060markStaleForOtherModels\u0060, \u0060coverage\u0060, \u0060fetchLastIndexRefreshSummary\u0060, \u0060saveLastIndexRefreshSummary\u0060, \u0060knowledgeRepositoryIndexes\u0060, \u0060fetchIndexIssueChunks\u0060, \u0060fetchKnowledgeChunks\u0060, \u0060fetchManagedKnowledgeChunks\u0060, \u0060fetchManagedKnowledgeChunkOffset\u0060, \u0060saveKnowledgeChunkOverride\u0060, \u0060setKnowledgeChunkExcluded\u0060, \u0060permanentlyDeleteKnowledgeChunk\u0060, \u0060restoreKnowledgeChunk\u0060, \u0060totalBytes\u0060, \u0060deleteAll\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/RAG/RAGChunkRepository.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c913d77f596f5caa890e61602897814f3f149b956694e4605a19ea5c2aaf09fd"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AwesomeRepositoryProtocol (16 requirements): \u0060AwesomeRepositoryProtocol\u0060 declares 16 requirements: \u0060sources\u0060, \u0060enabledSources\u0060, \u0060repositories\u0060, \u0060hasCompletedSourceSetup\u0060, \u0060refreshCatalog\u0060, \u0060refreshEnabledEntries\u0060, \u0060completeSourceSetup\u0060, \u0060updateSubscriptions\u0060, \u0060saveCustomSource\u0060, \u0060customSourceParseStates\u0060, \u0060updateCustomSourceParseState\u0060, \u0060customSourceEntryFullNames\u0060, \u0060customSourceEntryCount\u0060, \u0060saveCustomSourceEntries\u0060, \u0060completeCustomSourceParsing\u0060, \u0060removeCustomSource\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa75126a6542346b5184b2b7c2be6e08d6e25d089f8bfa402ade4af618aadcf"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitHubNotificationThreadRepositoryProtocol (19 requirements): \u0060GitHubNotificationThreadRepositoryProtocol\u0060 declares 19 requirements: \u0060fetchAll\u0060, \u0060fetch\u0060, \u0060unreadCount\u0060, \u0060totalCount\u0060, \u0060upsertMany\u0060, \u0060upsertOrganizationIssues\u0060, \u0060updateLocalUnread\u0060, \u0060updateHydration\u0060, \u0060updatePersistedIssueState\u0060, \u0060fetchIDsMissingIssueState\u0060, \u0060markNotified\u0060, \u0060fetchFailedMarkRead\u0060, \u0060fetchUnnotified\u0060, \u0060maxUpdatedAt\u0060, \u0060organizationIssueSyncState\u0060, \u0060updateOrganizationIssueSyncState\u0060, \u0060deleteIDs\u0060, \u0060delete\u0060, \u0060removeNotificationThread\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubNotificationThreadRepositoryProtocol.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c324ab6e54cd61e1e099a9dfd8f7ab7fd34601a202387de731e0b6a7beb1e1"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitHubStarListRepositoryProtocol (20 requirements): \u0060GitHubStarListRepositoryProtocol\u0060 declares 20 requirements: \u0060replaceRemoteSnapshot\u0060, \u0060upsertList\u0060, \u0060deleteList\u0060, \u0060setListIds\u0060, \u0060setLocalListIds\u0060, \u0060fetchAllLists\u0060, \u0060findList\u0060, \u0060listIds\u0060, \u0060remoteListIds\u0060, \u0060hasLocalListOverrides\u0060, \u0060fetchPendingLocalMembershipSyncs\u0060, \u0060repoCountsByList\u0060, \u0060ungroupedRepoCount\u0060, \u0060fetchAllListAssignments\u0060, \u0060upsertAIRule\u0060, \u0060findAIRule\u0060, \u0060fetchAllAIRules\u0060, \u0060fetchAIAutoIgnoredRepos\u0060, \u0060upsertAIAutoIgnoredRepo\u0060, \u0060deleteAIAutoIgnoredRepo\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/GitHubStarListRepositoryProtocol.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5929eb33104d592bfe321b7e086f3b7ea75eb3cb7fdca3763273026e80762ad9"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: RepoNoteRepositoryProtocol (16 requirements): \u0060RepoNoteRepositoryProtocol\u0060 declares 16 requirements: \u0060find\u0060, \u0060fetchStatusMap\u0060, \u0060fetchLibraryState\u0060, \u0060fetchLibraryStateMap\u0060, \u0060fetchAllLibraryStateMap\u0060, \u0060fetchAllStatusMap\u0060, \u0060fetchRepos\u0060, \u0060fetchRepoIdsWithNonEmptyContent\u0060, \u0060statusCounts\u0060, \u0060libraryStateCounts\u0060, \u0060upsert\u0060, \u0060updateContent\u0060, \u0060updateStatus\u0060, \u0060updateLibraryState\u0060, \u0060ensureRepoRowExists\u0060, \u0060markAsReadIfNeeded\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoNoteRepositoryProtocol.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7ca2c83a807e13856c1d01973cd0fc018cd6747707a5c9cda8d77c3fe3fe16"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: RepoRepositoryProtocol (34 requirements): \u0060RepoRepositoryProtocol\u0060 declares 34 requirements: \u0060upsertStarred\u0060, \u0060markUnstarredExcept\u0060, \u0060markUnstarred\u0060, \u0060upsertExternalRepoForLibrary\u0060, \u0060upsertRepoMetadataForLibrary\u0060, \u0060updateAccessState\u0060, \u0060starredCount\u0060, \u0060knowledgeCount\u0060, \u0060fetchAllStarred\u0060, \u0060fetchKnowledgeRepos\u0060, \u0060fetchRecentStarred\u0060, \u0060findById\u0060, \u0060findByOwnerName\u0060, \u0060fetchUntagged\u0060, \u0060fetchByLanguage\u0060, \u0060languageStats\u0060, \u0060knowledgeLanguageStats\u0060, \u0060searchFTS\u0060, \u0060searchAllLocalFTS\u0060, \u0060searchKnowledgeFTS\u0060, \u0060fetchListPage\u0060, \u0060fetchListCount\u0060, \u0060fetchListFacetCounts\u0060, \u0060fetchListIDs\u0060, \u0060fetchListSelectionSnapshots\u0060, \u0060fetchPinnedRepoTimestamps\u0060, \u0060setPinned\u0060, \u0060updateSyncState\u0060, \u0060fetchStarsETag\u0060, \u0060updateStarsETag\u0060, \u0060fetchLastSyncAt\u0060, \u0060fetchStarredRepoIDs\u0060, \u0060fetchKnowledgeRepoIDs\u0060, \u0060upsertSingleStarred\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoRepositoryProtocol.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e76d9baf4b7a9ac59abffcc9639d08b49c542051a7bbb4ff847030381a4c8b"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitHubAPIClientProtocol (18 requirements): \u0060GitHubAPIClientProtocol\u0060 declares 18 requirements: \u0060starredRepos\u0060, \u0060unstar\u0060, \u0060star\u0060, \u0060getCurrentUser\u0060, \u0060getUser\u0060, \u0060isFollowing\u0060, \u0060follow\u0060, \u0060unfollow\u0060, \u0060contributionCalendar\u0060, \u0060repo\u0060, \u0060readmeHTML\u0060, \u0060readmeMarkdown\u0060, \u0060getSubscription\u0060, \u0060putSubscription\u0060, \u0060deleteSubscription\u0060, \u0060releases\u0060, \u0060receivedEvents\u0060, \u0060securityAdvisories\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/GitHubAPIClientProtocol.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a875584cfb9c31bfb714bc6d33336e502ce5792c8841d4ed2d9c72b2162fedf3"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: RAGConversationStoring (18 requirements): \u0060RAGConversationStoring\u0060 declares 18 requirements: \u0060createConversation\u0060, \u0060listConversations\u0060, \u0060findEmptyConversation\u0060, \u0060loadConversation\u0060, \u0060saveContextSummary\u0060, \u0060appendTurn\u0060, \u0060appendUserMessage\u0060, \u0060deleteMessage\u0060, \u0060renameConversation\u0060, \u0060setConversationPinned\u0060, \u0060setConversationGroup\u0060, \u0060deleteConversation\u0060, \u0060deleteAll\u0060, \u0060statistics\u0060, \u0060createGroup\u0060, \u0060listGroups\u0060, \u0060renameGroup\u0060, \u0060deleteGroup\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Storage/RAGConversationStore.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"64da7cfe38beeff750b172aab5292365e162f0c330c2786a6467e85489ad569c"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: GRDBRepositoryInsightsCache.load: \u0060GRDBRepositoryInsightsCache.load\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Insights/RepositoryInsightsCache.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"313e79d7b5006f92c32268271a522a1774a2e2dc6d746f602098e2d03a0700ec"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: InitialRepoWarmupCoordinator.loadOrCreateJob: \u0060InitialRepoWarmupCoordinator.loadOrCreateJob\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e792ce705b07a4cca8e016669180caf88604b616ffca30597c23697ce565d07"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: BatchAIQueueService.resolveBulkTagApplications: \u0060BatchAIQueueService.resolveBulkTagApplications\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/BatchAIQueueService.swift"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0af7cc700aed51e7c513da60fd38a5eadbc56bef8ccca0991e545a0675df141"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: RepoAIInsightViewModel.findOrCreateTag: \u0060RepoAIInsightViewModel.findOrCreateTag\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/AI/RepoAIInsightViewModel.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aca53bd94014e26380634f1e7c3031f1fea1cf83c27f163e8da38ba27968251"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: GitHubRAGRemoteContextProvider.fetchBlock: \u0060GitHubRAGRemoteContextProvider.fetchBlock\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/RAG/Core/GitHubRAGRemoteContextProvider.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8980c08499f3dc8a89eb653e06e409b3bcd639d8f7f9ca84578cb5c696eda4e4"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: PublicRepoStarHistoryRecord: \u0060PublicRepoStarHistoryRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Insights/RepoStarHistoryRepository.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"14133d2205ea89f5276a96b673cd77a23ecb56571d92c851d80b7dcaf2d0ded3"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubStarListAIAutoIgnoredRepo: \u0060GitHubStarListAIAutoIgnoredRepo\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Models/GitHubStarListAIAutoIgnoredRepo.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c1a14c5a9ed8651aaed84ad86acbf1483b36a418047fa4da96c0a703fef7bd"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepositorySpotlightSnapshot: \u0060RepositorySpotlightSnapshot\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Spotlight/RepositorySpotlightSnapshot.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c41bb242cab114dbe3a5afc0b39379147cea8815e58151f8a0c2f98e9890b2"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: LanguageStat: \u0060LanguageStat\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Sync/RepoRepository.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfabbd6541316371890a852b411107c01d46380f3c187a0bcc5a8acda9f041bb"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: UserSmartCollection: \u0060UserSmartCollection\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Collections/UserSmartCollection.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2076c0e47fa401ea1d90cd506bb6316edd41fd6ad65af46fafeda22fc31e9ffb"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ChatSessionSQLRow: \u0060ChatSessionSQLRow\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcde16d8855b009c25858efe4be63baf53db51c5afc6c1e773b2ba71449919a"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ChatMessageSQLRow: \u0060ChatMessageSQLRow\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"899996fd0301e07d6b27054081792cd7f25804b55fa3e1e6c171bd9449a81040"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AISummaryRecord: \u0060AISummaryRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/AISummaryRecord.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b66fbab41ab245e0b75658f0c9584fb6110da5929afecfc8f931a3b836bb99"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AIUsageEvent: \u0060AIUsageEvent\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/AIUsageEvent.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4184d4460fd9824c01b76b27d1e401180297caf111de28945e210b3f8d12040d"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ActivityAnnouncementRecord: \u0060ActivityAnnouncementRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ActivityAnnouncementRecord.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5457b75a28740080742bbba695f3f41ee8654fdf3fc617bd94370b1555c097a7"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ActivityEventRecord: \u0060ActivityEventRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ActivityEventRecord.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5299ca06073b45ec20419718ca330d76ccdf5cf76c932315f51aa259d84b676"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ActivitySyncStateRecord: \u0060ActivitySyncStateRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ActivitySyncStateRecord.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfc03867164e0f034726bb5ea0c3e7bede9a93a2d4996b19ff00df7e6135e75"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AwesomeCustomSourceParseRecord: \u0060AwesomeCustomSourceParseRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/AwesomeCustomSourceParseRecord.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc74163e00c3d4cb2ad79cc6e721f2b31b636144e1cfa0ce394323c729edbf05"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AwesomeSubscriptionRecord: \u0060AwesomeSubscriptionRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/AwesomeRecords.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ef31d3bd33d68b2b828bd883e47407c83113816ea84c5a4a31fe60e7b04437"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AwesomeStateRecord: \u0060AwesomeStateRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/AwesomeRecords.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faf6df2698dcfb0de3f023a9242ffdd8c133e9f82c9161d7622645b49224af0"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: DiscoveryListPageRecord: \u0060DiscoveryListPageRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b5d61567e6232a2c5b21cdca98e1bbeb18b8dfe690283eec89a4a2b3b3dc24"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: DiscoverySummaryModeRecord: \u0060DiscoverySummaryModeRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c5568d51416ef421204abeecc7944a3cb4cacb374349f2dafcbe97c2e28770"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: DiscoverySummaryFacetRecord: \u0060DiscoverySummaryFacetRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf1ad1e08978dedf0b0d799cadcbba42486b72c265058be87f7195e6e60c353"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: DiscoveryBulkCategoryMembershipRecord: \u0060DiscoveryBulkCategoryMembershipRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec25ebcd17bb0f3323e8eed21a907175d45d64619d465e3ec66101858ef6b158"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: DiscoveryBulkMetaRecord: \u0060DiscoveryBulkMetaRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/DiscoveryCacheRecords.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c55f902160871e3695f94cc129b1480d2e60f0939ccdab7596102dcfe0edee"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubNotificationSyncStateRecord: \u0060GitHubNotificationSyncStateRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubNotificationSyncStateRecord.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb051827e55bead051367cd7d7fad813ed950760ee30749341e4a4c387017d"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubNotificationThreadRecord: \u0060GitHubNotificationThreadRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubNotificationThreadRecord.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8747deba5468ee79579c5bb2d920d63e030ac75b43fb86bc2993a0af7c86c085"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubStarList: \u0060GitHubStarList\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubStarList.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dd531966625df380ea64411a7cba82ecf7ea9434af9e3dd54c24d6f0bcfdc7"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubStarListMembership: \u0060GitHubStarListMembership\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubStarList.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfb153b2c442b262fa76094324593c9fe397fbb5c7365152a30d199f9460d47"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubStarListLocalOverride: \u0060GitHubStarListLocalOverride\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubStarList.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50854559eb3500ec507670ff60d09ce8a8ad58747ca0a28cb7da1547cff3df6"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: GitHubStarListAIRule: \u0060GitHubStarListAIRule\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/GitHubStarListAIRule.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6eee3637672bf0d4862d05a86b40049dfe757a7599d6d051ead5533440bdf8"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: InitialWarmupJobRecord: \u0060InitialWarmupJobRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/InitialWarmupJobRecord.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"35792c4791b43e3853484cd73d3b8e63239fd5aa38f9d45cd7edf65c1874d017"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: OpenSSFScoreRecord: \u0060OpenSSFScoreRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/OpenSSFScoreRecord.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b55c5c36fae4f6b18f36dca96904e0787fabe850960de9248a358e6666fd8e"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RAGChunk: \u0060RAGChunk\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RAGChunk.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc062fd6ef83a998962a9149539142d6577caa0b864ae940d957aff13e31b347"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Readme: \u0060Readme\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/Readme.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"22905afbeb076bac1d1c0003af6b5988e85b650b2d64f768c5296ca033170de3"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ReadmeContent: \u0060ReadmeContent\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ReadmeContent.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8823293fde2b22ae45cea731aa5d0a3a2e45a2baf900bdf660c60700e1377a"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ReadmePrefetchStateRecord: \u0060ReadmePrefetchStateRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ReadmePrefetchStateRecord.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4534c7143bed1e9f1556621afc8f2dcb2b31597b5de5fb60996ea0efd1852c69"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ReleaseRecord: \u0060ReleaseRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ReleaseRecord.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d1a9d1048f3fea645346719d3c9bc3d5f1a8093da24d29bd29ec9c065d05a8"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ReleaseSubscription: \u0060ReleaseSubscription\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/ReleaseSubscription.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9530ca4a387ec0e94c0cd4f78293ed91cf92ed272fc8da5085b3a98d738950"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepoEmbedding: \u0060RepoEmbedding\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepoEmbedding.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f33bd6337f6b64bb8ec8d56cd55012589f6ffc34cb25138a49b3a320fb91179"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepoHealthSnapshot: \u0060RepoHealthSnapshot\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepoHealthSnapshot.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e7af92c07242556de36ceefe65a46684c633b1eafd73a9d467dd9ad76f479f"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepoNote: \u0060RepoNote\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepoNote.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59fff4f82bf769c7a4fa4844d76daa58f0632544fddacc7ffd12836d0d027cb"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepoStarHistoryPointRecord: \u0060RepoStarHistoryPointRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepoStarHistoryPointRecord.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b26e79fc767c903f67f1886954e5148ee114ab31a5c2dd29d69e3b6f687059"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepoTag: \u0060RepoTag\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepoTag.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d2f1906310fe8e585c040330f2b7fb82ea4dcadf5671a5c9a240a2bf993e13"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: RepositoryInsightsSnapshotRecord: \u0060RepositoryInsightsSnapshotRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/RepositoryInsightsSnapshotRecord.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd94fcb08281c9efbdea4e9976fb61103970a5e1495711cfae9d217f4f0f689"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SavedSearch: \u0060SavedSearch\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/SavedSearch.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c7d8af50f3c9033049c6150576182e1296e90c78ce87dc4090801e30778188"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SearchHistory: \u0060SearchHistory\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/SearchHistory.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6b08c2e26a8374549145807167d3bbd7f0f1779c042a4aecd884b4782ad92"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: StarredRepo: \u0060StarredRepo\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/StarredRepo.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eeca6da5b206bd3eda5cb625f62d3b609fa51545f6f4c0dcd44ca62fc28a60"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SyncStateRecord: \u0060SyncStateRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/SyncStateRecord.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e1edd5e858f80a7dad71d7dc37711e3be23f323f4a11effb126c5b1d239b80"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Tag: \u0060Tag\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/Tag.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"52851d5f2b8d13b90b31a5fc933d33b108d2b1011cfe355707d22ff3993a8bfa"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: TagStatsCache: \u0060TagStatsCache\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/TagStatsCache.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d830b3525ea2cb36611b6ab806dc78806e8dcde64c17311e0eca2a17dc42a49c"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: TrendingReadme: \u0060TrendingReadme\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/TrendingReadme.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab6362d0619a7c3717a60e5ab4b1174d456777355294b7fe63b8976efdf372c"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: UserProject: \u0060UserProject\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/UserProject.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"97645a24fb52e461bd3233c842534ea5b9df0d76010d3c7722d2ee52b3675ea6"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ProjectSyncState: \u0060ProjectSyncState\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/UserProject.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b6d5ca615cc648485ca3172d56a0db950891ceddd36d8091948664940c847c"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: UserProjectListItem: \u0060UserProjectListItem\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/UserProject.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"055992315d3d2effa663b2f90d67587324dbe4c2c26da53e338f92f52553533e"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: UserRepoActivityRecord: \u0060UserRepoActivityRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/UserRepoActivityRecord.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0750b888fe49cc3d9bd381e2ed82a5e10062c698efc946766f8ed681282acaa2"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: WeeklyBulkSourceRecord: \u0060WeeklyBulkSourceRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6080816f9c3b517fe1079900ca87fa7c1ec123b681152630b9b8fcd078192577"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: WeeklyBulkLanguageRecord: \u0060WeeklyBulkLanguageRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"af852e9bd9c2143f25f88fec7c7d8e5f6f13f75c0e3a42dcff321bcb99ea2c98"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: WeeklyBulkMetaRecord: \u0060WeeklyBulkMetaRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Database/Models/WeeklyBulkRepoRecord.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9e46ebace2f650be517cf5bb4eca2f09b022b6758ca77c96776ad7675f1596"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AgentRunRecord: \u0060AgentRunRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"83471ed21253107df86433ba3955ea8de3ee953511be3a11065cb8e11755e696"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AgentMessageRecord: \u0060AgentMessageRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"071e6ad1c2066105169650b7c71daf872796002f90f4cfd4ad3c348e7bb15476"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AgentApprovalRecord: \u0060AgentApprovalRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1772b0c7a5ebdbaf4fe81590201cec8decf033195d459264f7830476af6b66"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AgentArtifactRecord: \u0060AgentArtifactRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc4f4aa5cbf3f210672443424922777d412d81e004776078251102eca8a9d7d"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: AgentTraceEventRecord: \u0060AgentTraceEventRecord\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the GRDB \u0060PersistableRecord\u0060/\u0060FetchableRecord\u0060 conformance), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Features/Agents/Core/AgentRunRepository.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"718dbccf958f1001a1fcd5262cc263f3a30ba349652bdace31a5d4d0d59721f4"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): ReadmeAPI.cachedReadme: \u0060ReadmeAPI.cachedReadme\u0060 performs two independent DURABLE writes \u2014 \u0060repository\u0060 (a persistence store) via \u0060upsert\u0060 and \u0060trendingRepository\u0060 (a persistence store) via \u0060delete\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Core/Network/GitHubAPI/ReadmeAPI.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc60b30b105e168aa6953164db670472197e4c2c35e7064b054730813807fc85"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00601-\u7ACB\u9879/\u0060, but \u0060docs/0-\u603B\u89C8/1-\u7ACB\u9879\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b99d8e941534ce6c42efbf65a8a346e1ff2ab631118737ce80ed88e81be5232"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00602-\u4EA7\u54C1/\u9700\u6C42\u8BA8\u8BBA/\u6B63\u5F0F\u65B9\u6848/\u0060, but \u0060docs/0-\u603B\u89C8/2-\u4EA7\u54C1/\u9700\u6C42\u8BA8\u8BBA/\u6B63\u5F0F\u65B9\u6848\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcba0c672dca7bd4943bc77a98f2ec7dbf350403a2d95b075832f6bfe8d56753"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00603-\u8BBE\u8BA1/\u8BE6\u7EC6\u8BBE\u8BA1/\u0060, but \u0060docs/0-\u603B\u89C8/3-\u8BBE\u8BA1/\u8BE6\u7EC6\u8BBE\u8BA1\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"054a4988f6a6bd04fc9953b524c4d848e7c01b6723c38fbdef80d1eafd3d76de"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00602-\u4EA7\u54C1/\u91CC\u7A0B\u7891/\u0060, but \u0060docs/0-\u603B\u89C8/2-\u4EA7\u54C1/\u91CC\u7A0B\u7891\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee9cf537680a995d8b4da03dd9b6aebd88e0e4407fdd41c1dfad5f63698ef31"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00604-\u5DE5\u7A0B\u8FDB\u5EA6/\u0060, but \u0060docs/0-\u603B\u89C8/4-\u5DE5\u7A0B\u8FDB\u5EA6\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e702a7a6fce42c8d758074cfa30d0518e0df26ddd49a391f886ceb73067a202a"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00605-\u89C4\u8303/\u0060, but \u0060docs/0-\u603B\u89C8/5-\u89C4\u8303\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a166e2b0650c7425585a71497f6dcb7b1416ef205d877bc0d5fbe75fe3deb173"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00606-\u53D1\u7248\u4E0E\u4E0A\u67B6/\u0060, but \u0060docs/0-\u603B\u89C8/6-\u53D1\u7248\u4E0E\u4E0A\u67B6\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5946effe8bc7b6e6318bcd0f1cfd10155142487f1513d866580efe0dc668bc1"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00607-\u5DE5\u5177\u4E0E\u811A\u672C/\u0060, but \u0060docs/0-\u603B\u89C8/7-\u5DE5\u5177\u4E0E\u811A\u672C\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a7af452d692d26f119ad33b9d8db82839d8f928f02790687ba9403eee544cd"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/0-\u603B\u89C8/README.md links to \u00608-\u539F\u578B\u8BBE\u8BA1/\u0060, but \u0060docs/0-\u603B\u89C8/8-\u539F\u578B\u8BBE\u8BA1\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/0-\u603B\u89C8/README.md"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df77a869943593c941851981223a86e3fe5428fd8b6f32f8f18c94e9d0df302"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060resources/follow-graph/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":"resources/follow-graph/package.json"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93a6fa4f12a306867d88b9a16b46c3e5aaba3bf7e335d709c624ab137dc4555"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 0 versioned entries, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 9 sibling directories (20 clone groups): 20 duplicated blocks under starcat-promo-video/presentation/src/chapters/ have copies in at least two of the sibling directories 01-coldopen, 02-product, 03-find, 04-understand, 05-tags, 06-organize (\u002B3 more sibling(s) not listed) \u2014 2 of them are reported below, and 18 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 20 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 20 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 20 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":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dad99dd9a6fe72f495a950f5b46fbabd556d3dd3c8eb4a63af7917085293b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (51 matched lines \u00D7 2 locations): starcat-promo-video/presentation/src/chapters/07-assess/Assess.tsx:19 \u00B7 starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.tsx:83 \u2014 the two spans are one implementation copied and then locally edited \u2014 262 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":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fc19603200624f7a37eda622bb6d61a14322fa0ceab4e781e787c902c55e79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): starcat-promo-video/presentation/src/chapters/06-organize/Organize.tsx:30 \u00B7 starcat-promo-video/presentation/src/chapters/09-cta/Cta.tsx:26 \u2014 the two spans are one implementation copied and then locally edited \u2014 263 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":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b52eb277be0468480ca4b9f71f0b84d0aad23e1e055788afc339d4bc145771"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 44, cognitive 65): update has cyclomatic complexity 44 and cognitive complexity 65; 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":"resources/follow-graph/entry.js"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a341ef932d1277d2bb85809e7575779c2172f350c21832d6828a08fd17ceb9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawNode (cyclomatic 25, cognitive 31): drawNode has cyclomatic complexity 25 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/entry.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61ee85f41874a9cf67102e6274432c20f070be9f77b391f23e68fd822751e14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sync (cyclomatic 21, cognitive 29): sync has cyclomatic complexity 21 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/progressive-reveal.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba139a023de7dafd8990f14f6375a1ea5993ba43f14341c8f208f210dbd800e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncAnimation (cyclomatic 20, cognitive 17): syncAnimation has cyclomatic complexity 20 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":"resources/follow-graph/entry.js"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fe8d971f4305257536a562ecd6082783e016e8553e7c3de9a89c85b1a77f76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyVisibleGraph (cyclomatic 19, cognitive 31): applyVisibleGraph has cyclomatic complexity 19 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/entry.js"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"118dda4ece15a1e5960adb8fd2e1f04a8ca60aa3a8735035abbdb84dd457f005"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawFlow (cyclomatic 16, cognitive 30): drawFlow has cyclomatic complexity 16 and cognitive complexity 30; 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":"resources/follow-graph/entry.js"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b34c4a1397f86b16d37ff19a4ebb9bb1f1eccea84905eeead8ead00825816c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawDirections (cyclomatic 13, cognitive 11): drawDirections has cyclomatic complexity 13 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":"resources/follow-graph/entry.js"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb326e3c49222cabd67a39cdfadf11530186afcf68d2698968e461daee461bba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/renderer.test.mjs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e802cbf4a18579483b05c2135031505cd3f471fa5316973062be895198b875ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onKey (cyclomatic 11, cognitive 11): onKey has cyclomatic complexity 11 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 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":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfb7151c59306c930e630cc2582da522650ffffc5c3b8cd2eb9a00f5f313430"}},{"ruleId":"R3","level":"warning","message":{"text":"resources/follow-graph/entry.js: 842 lines of code: resources/follow-graph/entry.js has 842 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":"resources/follow-graph/entry.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4cf39dff0e2b9f05e05feac1311943404988f1fe4d67c53748d3e9a014570d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/screenshots/1.2.0-app-store/manifest/render-app-store.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de15221e17ba5cb98543efbb1177324d9f5d5d998befa7c2f71d442602cc5d10"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/screenshots/2026-06-23-app-store/manifest/render-landing.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20269f9c8e315556266d981ec8d47cecd7e719cc66cd446bf107f4bec95d0c1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"661f2b962ba740d0f768f2192b4f16482acfdc93be66fbeec933c7d8c161470b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/08-local-native/LocalNative.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82de5663807f4e6a466c2bfd118b1420d91f3edcca76b15af2207f080e489602"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/01-coldopen/Coldopen.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1611007a4806b65f3f7a038a559df514e036225e0763323ce4e307aab466b4f2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/hooks/useAudioPlayer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2490169a466a60f8eddd35369a1b8f282bdc942e56eb56af2530aac9e8624c59"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/scripts/extract-narrations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6e2ff78ddb499a47db2604ca802f54a28921bad5878a492e744c65b5a2b2eb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/06-organize/Organize.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0b503d87ee2c1f981288e8d70b676d2044bd0ba056e02be7906bdf212ee226"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/ProgressBar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab34db34032ed66cf25353ac2aa05848614e62529cf27c71e9bebd4125c4fd4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/07-assess/Assess.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf54aece00ce988fa454eddec94aa6325213df64f6e123e742f35e31063d557e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/09-cta/Cta.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328fe694dd3c7521458faa1568b4f36e3016071c5556c2ee0e371be184874ed"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/04-understand/Understand.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc105e8d2cd2096c5c8c87bbd2559ad842905c4893f308408bfb1bfe4709fd7"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/03-find/Find.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a414c86c4eb87abbe96fac1187aef829ec308660d4afcc2455202463d1149c16"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdab6ad29eac4ccd9673f56b955186c0c6ecaba0c15a32aa716f202fdcd25913"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/05-tags/Tags.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7c6dbe2f17a62fe1b7375c5651dd28a5830b8229bf9b220cf52c8aeb4e7456"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/chapters/02-product/Product.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a4da703c6c41273798516ebdd3c628a0b41cad927051cfb676868d5db71fcc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/hooks/useAutoMode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d18bb54f0a04f98e8c9b9b7685e052203a50be5939080de700b0e82968bec2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/Stage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"016c845002de005bf00e9c4c87f08a69adcac50e7ad22b00012d7a158d71b284"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/hooks/useAudioPreload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd901f69963b2a679df708d7a6c2f88847a75c246ad679cd924e09c724e05e80"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/follow-graph/build.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e8a91dfecd473b21ca54bd1e7224798170c88e2094ceb7564ec64604bdee21"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/AutoStartGate.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9babf2c24cf2df94eb81e67395c2beb8ee190eb51f3a3826983261259b5a7b8e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/AutoToggle.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7220b047ebe779d173680362bad83f2be2535ffee5c822720ebe4c88882f6d5f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/components/MaskReveal.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"202b671455231f67184389f7749640b03e6091fc08773d45ceb7b27de9c8d2b2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/hooks/useStageScale.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee21f0dff21e0e459420f7f1b36e2f3fe4a458e7c48854bc1c7cff414d1652f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/src/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efe3dece5f0a04c22d26bf57003cf1eb0af5fdaa2d4702b6afd9cd3836cc032"}},{"ruleId":"R6","level":"warning","message":{"text":"This package\u0027s lint script runs in no CI job: The package in \u0060starcat-promo-video/presentation\u0060 declares the lint script \u0060lint\u0060 (\u0060oxlint\u0060), but no step of this repository\u0027s CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs \u0060npm run lint\u0060 in \u0060starcat-promo-video/presentation\u0060 (or the workspace\u0027s task runner)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"starcat-promo-video/presentation/package.json"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acba58daa7587fba0d03226ae7ad38830529581a5462c2d0ff97c60f93b541e"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cdn.jsdelivr.net/npm/mermaid@11.16.0/dist/mermaid.min.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. 2 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Starcat/Resources/CodeFlow/codeflow.html"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce5259babb20a2a7488d4d38e2d55764a0d5f76800a689a0c673eed4262055a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image.complete \u0026\u0026 image.naturalWidth \u003E 0\u0060 appears character-identically in 2 files \u2014 resources/screenshots/1.2.0-app-store/manifest/render-app-store.mjs, resources/screenshots/2026-06-23-app-store/manifest/render-landing.mjs. 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":"resources/screenshots/1.2.0-app-store/manifest/render-app-store.mjs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4385ecbefb93f289143f0f7b69aa205d21a0eb5a66038361e09bb11a981d0677"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dmg.name != f\u0022Starcat-{marketing_version}-arm64.dmg\u0022 or checksum.name != dmg.name \u002B \u0022.sha256\u0022\u0060 appears character-identically in 2 files \u2014 scripts/publish-direct-github-release.py, scripts/verify-direct-release-artifacts.py. 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":"scripts/publish-direct-github-release.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d9498e64a1f06312541f11789bea47b72bbaeac5801af57dbec1debbf32f73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Task.isCancelled \u0026\u0026 activeRequestID == requestID\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Home/RepositoryContributorHeroViewModel.swift, Starcat/Features/Home/RepositoryLanguageDistributionViewModel.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":"Starcat/Features/Home/RepositoryContributorHeroViewModel.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baec46b24f93a8605794de59b7b67c86fc0f53cd57932cae43371476da2b5c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!apiKey.isEmpty || profile.provider.allowsEmptyAPIKey\u0060 appears character-identically in 5 files \u2014 Starcat/App/AppDependencies.swift, Starcat/Features/AI/ReadmeTranslationEngineAvailability.swift, Starcat/Features/AI/ReadmeTranslationService.swift, Starcat/Features/AI/RepoAIInsightService.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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9581e0ac7af76e19f751e50cfa8eec8475505603b6b219d457ebf2982fee72b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!apiKey.isEmpty || selection.profile.provider.allowsEmptyAPIKey\u0060 appears character-identically in 2 files \u2014 Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift, Starcat/Features/AI/SemanticSearchService.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":"Starcat/Core/RAG/KnowledgeRAGIndexBuilder.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4bf2216189c60d09cdc7306b0a5c173ebdd1b3b3d8c050978d2b514251a2ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!trimmed.hasPrefix(\u0022\u003Cexternal_context\u0022) \u0026\u0026 trimmed != \u0022\u003C/external_context\u003E\u0022\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift, Starcat/Features/Agents/WeeklyReport/WeeklyReportArtifactBuilder.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":"Starcat/Features/Agents/WeeklyReport/RepoInsightArtifactBuilder.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7907e83de200840456f9e2d1fa5348e1e79f7a362054891709ea751febc73c19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!viewModel.isRefreshing \u0026\u0026 !viewModel.isLoading\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Explore/ExploreView.swift, Starcat/Features/Trending/TrendingView.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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6a5f9e358bc3cf4062df809be6c4505f2ed0a56f3d0ea90b15c8a92d9dce41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.id == task.providerID \u0026\u0026 $0.isEnabled\u0060 appears character-identically in 2 files \u2014 Starcat/App/AppDependencies.swift, Starcat/Features/Agents/Core/AgentLoopModelClient.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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"7151cbb088ad7a249c8cb90808be839a0f430eacc367800de1818ba8062f0ac5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isEnabled \u0026\u0026 ($0.capability == .chat || $0.capability == .unknown)\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift, Starcat/Features/Settings/TranslationSettingsView.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":"Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"525da666b1976e0bd9ed904f28ed6a27cc21f9303884007d368158ed19eb3163"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.outcome == .success \u0026\u0026 $0.resultCount \u003E 0 \u0026\u0026 !$0.content.isEmpty\u0060 appears character-identically in 2 files \u2014 Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift, Starcat/Features/RAG/Core/KnowledgeRAGService.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":"Starcat/Features/RAG/Core/KnowledgeRAGPromptBuilder.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41a6223809c050eb4813f22807e7a3826815d0687d3f5d069f632e5867eb5b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.owner.caseInsensitiveCompare(owner) == .orderedSame \u0026\u0026 $0.name.caseInsensitiveCompare(name) == .orderedSame\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Agents/Core/AgentRepositoryReadCapabilitySource.swift, Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.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":"Starcat/Features/Agents/Core/AgentRepositoryReadCapabilitySource.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a208694ba9832e5875675b287076dfc7c430f47cb149914010621e315425bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentFrame.width \u003C minimumFrameSize.width || currentFrame.height \u003C minimumFrameSize.height\u0060 appears character-identically in 2 files \u2014 Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift, Starcat/Shared/Utilities/AIWorkspaceSceneCoordinator.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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8abe4e6db01b2a45d96102eec53de74d73c791eb550ecce27866f4c94b05673"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dependencies.entitlementGate.isProUser || LocalAIHardwareSupport.isLocalAIAvailable\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Settings/AISettingsView.swift, Starcat/Features/Settings/SearchIndexSettingsView.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":"Starcat/Features/Settings/AISettingsView.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c73c54889cf5e53f846185c192b57a1b334e45de4467125e175a97b741db68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 3 files \u2014 Starcat/Core/Sync/AwesomeRepository.swift, Starcat/Core/Sync/DiscoveryRepository.swift, Starcat/Features/AI/RepoAIInsightService.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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8845fe82eb587f9a8c16163d1e579c777286081b269de044c4f50816f769768"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.keyCode == 36 || event.keyCode == 76\u0060 appears character-identically in 2 files \u2014 Starcat/Features/AI/AIChatInputView.swift, Starcat/Shared/Components/AICommandComposer/AICommandTextEditor.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":"Starcat/Features/AI/AIChatInputView.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"18706ae60e2f544525bd187ebde895887deea5e0cc4fdadad32ab74bf440118c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.status == .failed || event.status == .waiting\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Agents/Core/AgentHarnessProcessPresentation.swift, Starcat/Features/Agents/Core/AgentHarnessProcessView.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":"Starcat/Features/Agents/Core/AgentHarnessProcessPresentation.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bd072fea5ad7135b88e649e8811469cc035d518e9267b70984f21749ed33f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fixedRootURL == nil \u0026\u0026 defaults.data(forKey: Self.bookmarkKey) != nil\u0060 appears character-identically in 2 files \u2014 Starcat/Features/CodeGraph/CodeFlowStorage.swift, Starcat/Shared/Services/RepoContextStorage.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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26a4c931bfc8ce645d62d25234aca061e859f39741664251c93e934ac341e78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022github.com\u0022 || host == \u0022www.github.com\u0022\u0060 appears character-identically in 3 files \u2014 Starcat/Core/Network/GitHubAPI/RepositoryMarkdownLink.swift, Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift, Starcat/Features/RAG/UI/RAGMarkdownText.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":"Starcat/Core/Network/GitHubAPI/RepositoryMarkdownLink.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b18cf74b8e14778933a08d3a1cf44540e0dfd9f6b7057ed59464b3007252e19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.status == .queued || job.status == .processing\u0060 appears character-identically in 2 files \u2014 Starcat/Features/AI/AIOrganizationBannerState.swift, Starcat/Features/AI/BatchAIQueuePresentationStore.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":"Starcat/Features/AI/AIOrganizationBannerState.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a6f76d92e7f4d9cf0b7a71e844f4da48dc7c187bea9a72f435fd82a48cf94b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060job.status == .queued || job.status == .stopped || job.status == .failed\u0060 appears character-identically in 2 files \u2014 Starcat/Features/AI/GitHubStarListAIGroupingSession.swift, Starcat/Features/Home/GitHubStarListAIGroupingPresentation.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":"Starcat/Features/AI/GitHubStarListAIGroupingSession.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"e211b2717bb0a39f43420c2166d4b4cd92e6c8c7318028880f2a87d6562c5199"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lowered.isEmpty || lowered == \u0022noassertion\u0022\u0060 appears character-identically in 2 files \u2014 Starcat/Core/Models/LicenseKnowledge.swift, Starcat/Core/Models/RepoLicenseFilter.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":"Starcat/Core/Models/LicenseKnowledge.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ef45f0de49633c2a543c7fb82b841a07eee5952603c0bd1d8d85288e609d57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nsError.domain == NSURLErrorDomain \u0026\u0026 nsError.code == NSURLErrorCancelled\u0060 appears character-identically in 3 files \u2014 Starcat/Features/AI/Anthropic/AnthropicClient.swift, Starcat/Features/AI/OpenAIClient.swift, Starcat/Features/Explore/AwesomeSourceCard.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":"Starcat/Features/AI/Anthropic/AnthropicClient.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23f2e07d211a9c99dc007fdff85447137aa229dea843e0cd747b55900baf721"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repo.isStarred || dependencies.starredRegistry.contains(ghRepoId: repo.id)\u0060 appears character-identically in 3 files \u2014 Starcat/Features/Home/HomeView.swift, Starcat/Features/Home/RepoListView.swift, Starcat/Shared/Components/RepoDetailScaffold.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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"646ee64a23fc3aa0d8680021f3933a3373d6b3968e54bae2c889ac6162e5a95e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repo.isStarred || libraryState == .inLibrary\u0060 appears character-identically in 6 files \u2014 Starcat/Core/Sync/ReleaseMonitor.swift, Starcat/Features/Companion/CompanionActionHandler.swift, Starcat/Features/Companion/CompanionContextProvider.swift, Starcat/Features/Companion/CompanionNoteWriter.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":"Starcat/Core/Sync/ReleaseMonitor.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ff5082d775e68180f13851110b3a4e6862ddc043e6c93be4f23c27ee25a11e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060repo.isStarred || registry.contains(ghRepoId: repo.id)\u0060 appears character-identically in 2 files \u2014 Starcat/Core/Sync/StarringSubsystem.swift, Starcat/Features/Home/RepoListView.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":"Starcat/Core/Sync/StarringSubsystem.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb6a72ca589d1c1658849e401a713d219fd3c029779d5b227c6aa990a718d3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.scope == .all || request.scope == .local\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Search/LocalKeywordSearchProvider.swift, Starcat/Features/Search/LocalSemanticSearchProvider.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":"Starcat/Features/Search/LocalKeywordSearchProvider.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"91625f99fc68f287f80f9a6beb4802a8f3dc41b2712eceb6c39992bb22880109"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved.securityScopeURL != nil \u0026\u0026 !didStart\u0060 appears character-identically in 3 files \u2014 Starcat/Features/CodeGraph/CodeFlowStorage.swift, Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift, Starcat/Shared/Services/RepoContextStorage.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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9d28f28bb7abacacc326f76e3d2c3f7bf6534f39b857c1f727ad34bb6714f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.status != .failed || attempt == policy.maxRetries\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Agents/Core/LoopAgentRuntime.swift, Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntime.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":"Starcat/Features/Agents/Core/LoopAgentRuntime.swift"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee100ea38f6893e2e191062c0732677fe50636000585e186adc73ac66aea428b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectedExploreMode == .discover \u0026\u0026 dependencies.linuxDoStore.selectedSource == .linuxDo\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Home/HomeView.swift, Starcat/Features/Home/SidebarView.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":"Starcat/Features/Home/HomeView.swift"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdbe5f8114e74f0d0114dcbbb500edbd071ed8b01f03d3e7d842c407def26cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060settings.aggregateExternalContextSearchEnabled \u0026\u0026 settings.isProUser\u0060 appears character-identically in 4 files \u2014 Starcat/App/AppDependencies.swift, Starcat/Features/AI/RepoAIInsightService.swift, Starcat/Features/AI/RepoAIWindowContentView.swift, Starcat/Features/Agents/Core/AgentPromptBuilder.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":"Starcat/App/AppDependencies.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14011350b9a5ba6e600db3457a6c603233cabe02310b8d2156a515473c8d661"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.isChecking || isInstalling || isCheckingVersion\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Settings/CodexRuntimeSettingsCard.swift, Starcat/Features/Settings/DeepSeekRuntimeSettingsCard.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":"Starcat/Features/Settings/CodexRuntimeSettingsCard.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc2cf10fc907b33a4a28fd50319e1c19632589a1ab017a90c9d9aea7cb1c254"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.scheme == \u0022http\u0022 || url.scheme == \u0022https\u0022\u0060 appears character-identically in 3 files \u2014 Starcat/Features/Activity/GitHubNotificationDetailView.swift, Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceWindowController.swift, Starcat/Features/RAG/UI/RAGCitationChunkPopover.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":"Starcat/Features/Activity/GitHubNotificationDetailView.swift"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaf81f1851178cd4401913b691b9a140acfc8493fbdf40a929d278c4ecd5e14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.isEmpty || value.contains(\u0022/\u0022) || value == \u0022.\u0022 || value == \u0022..\u0022\u0060 appears character-identically in 2 files \u2014 Starcat/Shared/Services/DiskChatHistoryStore.swift, Starcat/Shared/Services/DiskReadmeTranslationCache.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":"Starcat/Shared/Services/DiskChatHistoryStore.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cabf821e727e579cfc141cb95201f2748893bc9c96a0b39f1b3914a55192cfa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060viewModel.isLoading \u0026\u0026 viewModel.items.isEmpty\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Activity/WeeklyContentView.swift, Starcat/Features/Home/RepoListView.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":"Starcat/Features/Activity/WeeklyContentView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9e3f9822d562d80ac1b4a63247e82ad9a0e739ee997c43677360e3947a5aa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060viewModel.isRefreshing || viewModel.isLoading\u0060 appears character-identically in 2 files \u2014 Starcat/Features/Explore/ExploreView.swift, Starcat/Features/Trending/TrendingView.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":"Starcat/Features/Explore/ExploreView.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc28820a78a37c26117430ee1ee803eea122ac11b5d8ce04a05a84f2d0a4a73"}},{"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":"starcat-promo-video/presentation/src/hooks/useAudioPreload.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c75daf84382e4230a4adbade5bfc1520989622a419deb9df8130de4e183b31"}},{"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":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"226cca95e99e6d5bd8955e315bd6a35ac5a3d9b68bfa7fc150e96cdbd17a88a3"}},{"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":"starcat-promo-video/presentation/src/hooks/useStepper.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"540c5a2254df898a762c817daca275aba9f05501f688389cf3d12bc28151ff8f"}},{"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":"StarcatScreensaver/ScreensaverViewModel.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d944efcaf0e632aed15a83bb3948fc8cb90f374df0ea2d50f0ec3094cf8f067"}},{"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":"StarcatScreensaver/ScreensaverViewModel.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ad978dbb642484c939b5caf2f233b662e6096a3837713e0d8fc5ae502bab84"}},{"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":"StarcatScreensaver/ScreensaverViewModel.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"231ffccad5d4ee6e40c98fab3510c3e53d2bc8a81d9709ef9f4cb3d0e912a188"}},{"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":"Starcat/Shared/Services/DiskIssueDraftCache.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e51fd6e47fb215cd6a91d3b99c4c057e8ba1133fd02a7e27a802700191e6ca"}},{"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":"Starcat/Shared/Services/DiskNotificationCommentDraftCache.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef75b23f274cc22dd9bc03de49db789d4bb87596ca12b60f44c0cf7f887747c"}},{"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":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ec5b58cba581832917ae5b2cefe5ec8bc894036f7f4f9a1487034392b30830"}},{"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":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ded32d7b598902243c75ea2723a5115201e9cb7cbca51cd71f57f9511da6ad1"}},{"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":"Starcat/Shared/Diagnostics/DiagnosticLogStore.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4bd3f002ac65af26694724990cd83cafb2a2b101372caf8dbb8d3cfbfb21ea"}},{"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":"Starcat/Shared/Components/WorkspaceColumnWidthPersistence.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fc35808840a23a5cffb3543c9ce7d1f77ecfbdca4579e66ce244fc810d37ef"}},{"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":"Starcat/Shared/Components/WorkspaceColumnWidthPersistence.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"381dc12a337fec52a7c2fd741d0948415a018f97021ccf9b573659600e6b364d"}},{"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":"Starcat/Features/Tags/RepoTagsSection.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"710f30435526e4dd4f280f7fe2931c87cee8f25fce5edb807ab24d4691838fbb"}},{"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":"Starcat/Features/Settings/JevConnectionSettingsView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7022279792ce6df2f18b8f6fae8def815ade4b014d784a294307435969d6d9"}},{"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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fd15db280c5eec87891c28453dcdb0110c99af086abf628845f0161ae6a245"}},{"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":"Starcat/Features/RAG/UI/KnowledgeRAGWorkspaceViewModel.swift"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c9917a5a6688b074a398da5967410e701a792c7c8822741ac6a09401402320"}},{"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":"Starcat/Features/RAG/UI/RAGCitationChunkPopover.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe067c9623187a9252c8ad2bd8ef8b18790ecadff65afae758e907e3ce92600d"}},{"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":"Starcat/Features/Notes/RepoNotesSection.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccf09edab38dbc94cf785820e95bcc561344c1b8bd6321dc72a47d43455c189"}},{"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":"Starcat/Features/Notes/RepoNotesSection.swift"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72696c3be5d4f0fa9a341fc96de99d6f4dbde371c1317ea9bc5c644e5ff388e"}},{"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":"Starcat/Features/Notes/RepoNotesSection.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"6624de0026ad360753a0c077acf414a69787ea614e1a93ff6eab6c813141bc1f"}},{"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":"Starcat/Features/Notes/RepoNotesSection.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c1369cc91cab221b6c01a53125e57452dd5c6b4595e5ebd75660e30ba820cb"}},{"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":"Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f079807b34bf992a61ca69ff85eab4d30dd7ab08b73800a127a747ea129e2f9d"}},{"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":"Starcat/Features/Insights/RepositoryInsightsAIContextProvider.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e02c6c0e9dfdddc8fbcec041941a51eff60df1ab71f0ab64d6cfa74d4c10e88"}},{"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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"490892ca4307e120c49cb474a7f3cf560ce1eb2a3d5a80d643928446e148fdb6"}},{"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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe99654cf3822f70568829b0f5e01199bfd1b0590bcb4fd95181fea2bf224001"}},{"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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"758b2d5f5182633ba344067f3bfdd26074b96817fdca9fa3d9ca3426a113a700"}},{"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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6397e3e7837ae70d7cd8b8b3e053df175256e3fc8610d2b5330b6c8b280b961"}},{"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":"Starcat/Features/Insights/RepositoryInsightsViewModel.swift"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"404e7d75e8e663738ebb6210004803a75e074da78be3089a40f7cfab93f88d8a"}},{"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":"Starcat/Features/Insights/StarHistoryViewModel.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0980e5efc06260a5c19c75a2524ac8ebb823ac273fe00e2cb0a3e6991c936643"}},{"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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"80628a92da9b2c32f6a71ab0f315f7ad3719039cbff26cce0cd80a6199a548cb"}},{"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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"57350fdfffd59a25301b55c934ba348c648613e9b642452b316634d77ba980e0"}},{"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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc33767f97262d609b53c0048749e57f359db0d09b5b2a6d09a0e87ea7a37751"}},{"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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee645d3598aad5d6c0188d1d5b49772e596215d880a8ea1ae0180cb64514846"}},{"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":"Starcat/Features/Home/BatchActionBar.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50290e93d0a072bbe44824872cc1af76b19f565b64971e5e25493c73327ae8b"}},{"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":"Starcat/Features/Home/ForksMenu.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cf263353151e9804df27d587658099740a0040751276d4b61538bd45186254"}},{"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":"Starcat/Features/Home/GitHubStarListAIGroupingPreflightView.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e031ca515b10a01b8831c2ca948b521e9c6b7c18373db918fbd106ea4d309828"}},{"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":"Starcat/Features/Home/GitHubStarListAIGroupingPresentationStore.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb577962d8a573c96f2efc839d5ce7be37bd2a085e1a822848c4ba969fdb998"}},{"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":"Starcat/Features/Home/GitHubStarListAIGroupingPresentationStore.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"606441929b87f7012654c2ff096a8dd43d55a5c2215949406a756d9451e4bfb9"}},{"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":"Starcat/Features/Home/LocalAIStatusSection.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"146b34bf95bafe83381b6c41c15563e035d09a1ca52469e79df7d67903eeb364"}},{"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":"Starcat/Features/Home/ProjectAccessSheet.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"675d00fd80e27da300db00ac4aa3de79ed4a0613c0fca94798fc4f3651248624"}},{"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":"Starcat/Features/Home/RepoDetailView.swift"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5d79b5b7a4759ce571fe632f418313615bbf259390964aef58a23a0f74db06"}},{"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":"Starcat/Features/Home/RepoFileBrowserViewModel.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"66554bb892b8cfbb147e87d5d3f82ecc2920d2c1bd303d938af576972e2f23df"}},{"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":"Starcat/Features/Home/RepoFileBrowserViewModel.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"12763321b382a5cfbc25ab80b8680add89def9dbf3b73cf0ed09266bd41b66c6"}},{"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":"Starcat/Features/Home/RepoFileBrowserViewModel.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b61d5a762ab462704affc4547ea6af8a71cbe37698d3543ed2fcd79d065b09f"}},{"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":"Starcat/Features/Home/RepositoryContributorHeroViewModel.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb372db6287f323d36dcd547e0e112e6cad2b1723e5956faa8d62c84f26ff99d"}},{"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":"Starcat/Features/Home/SidebarView.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0ea345e3e1a8d41fd96a68a46b33d99510cc758676c1e57c6670a8307bb21b"}},{"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":"Starcat/Features/FollowGraph/FollowGraphOverlayView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"569abcf70dc393c3158c5b99466aaa8f2c94a3f32f689f4f36c74295463aba6e"}},{"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":"Starcat/Features/FollowGraph/FollowGraphViewModel.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab1bb7639c1c0aed166e09b2f98b58851f021add260450e788923f64f147e29"}},{"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":"Starcat/Features/FollowGraph/FollowGraphWebView.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce91e9f879531441cfd276ea985101544884ed7c35f0a3905812c403d0baaa2"}},{"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":"Starcat/Features/DailyRadar/DailyRadarPreviewReader.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a2fa2bf6897d1db53859ec70d87fc1198675a6452434e92c0a3ad16baf9b0"}},{"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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca5f4694f2df9b01312459c7737fd2264ee5e9613d65e8adfd6da52a5c3a156"}},{"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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34564659b1848f7a65c131ca6c05fd2a3e239919c3bba2b223c60674ac6c149"}},{"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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"64113c07926142c0ac1dca5e22bc7bdf4a23cdcb765f55b3cd3130972c88db99"}},{"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":"Starcat/Features/Companion/CompanionLocalServer.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc6963a04fc2584f35ab5c0a1f922ec434fa626766ba38e6bdf22d1b2075aa3"}},{"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":"Starcat/Features/CodeGraph/CodeFlowStorage.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c1866a0f6c3f44ebf7b801714388913bc14e055d39f2424fd5471d0fc09209"}},{"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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4e36dbff1cf07c092e3c297bfbe1d8e88d537327352e4747cf1904528418c8"}},{"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":"Starcat/Features/Agents/ExternalRuntime/AgentRuntimeProviderCatalog.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6d946c4cde87fc900570ce7a4190e175958bf59c871da7ba9fd46a3600379a"}},{"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":"Starcat/Features/Agents/ExternalRuntime/ExternalAgentRuntimeHost.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"09afc0f6b40c5c1f56b57749a50a3d511814f8f1e5bcf02fc8785ebcd0204363"}},{"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":"Starcat/Features/Activity/ActivityCategoryCountService.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"15730e5a171221038ccd3a1fa0c78c5d989672f4d7c5282a1b568fa98f04f7c2"}},{"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":"Starcat/Features/Activity/ActivityCategoryCountService.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d024a44855ee51ed94c4bdbec61d5f7d257ff353e84d4cea2744a0eb8aaac5af"}},{"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":"Starcat/Features/About/ReleaseNotesView.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f0d1619f1a517db1ebb1a568b6250452cec65e3c845dbd03adda74a787037b"}},{"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":"Starcat/Features/AI/BatchAIQueuePresentationStore.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"360877692ef4afcd5c8cdd365a2a36d03e13ea5ea04d2626f9b181411ce0a8b9"}},{"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":"Starcat/Features/AI/BatchAIQueuePresentationStore.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4d960214c655965a397abda8c1592d7be14d13b26f52a2f2b9714985ea7688"}},{"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":"Starcat/Features/AI/LayaDecisionEngine.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d6e844bdcef3d5d6075d3be59d0c6f3d60a443c80abdba9332d48f6ea5a522"}},{"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":"Starcat/Features/AI/SemanticSearchService.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab49e8237db6c1865ec70d56d08d28a676f0eba2fd48ebc5aac23fe97f27aa3e"}},{"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":"Starcat/Features/AI/LocalAI/LocalAILogViewModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"12870750656f95596bf8b8a2dd3c0ab19448b9ec7913e88df2207478704fc27d"}},{"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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0f0feb63c47a8d171c62f6c29097de61209b6d58b842ea4e68e50c03f9b8b8"}},{"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":"Starcat/Features/AI/LocalAI/LocalMLXRuntime.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"291d4070a618b0ebcb43c2bc5c5830df5a8d1431bcf227d175df1b834233aad4"}},{"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":"Starcat/Core/Widget/WidgetRefreshCoordinator.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"233a349985ac2c92cdd39d10666e6fe5e9324681f807dddf2d39b764ea1a78ca"}},{"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":"Starcat/Core/Warmup/InitialRepoWarmupCoordinator.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"11afa88a358e9a2231d1348913a1d3fe5ab932c9ca5be04f7816d5cff486bc8a"}},{"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":"Starcat/Core/Spotlight/RepositorySpotlightService.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f864dda6ec3d4eef1bd08e38c37fabad81e8b1e26ff26eda0d24b63f98e092"}},{"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":"Starcat/Core/Screensaver/ScreensaverAvatarCache.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9e83958ad7cd2af80a48a9b044c2348a6396bf6d3aa3472022537d52b85789"}},{"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":"Starcat/Core/Screensaver/ScreensaverRefreshCoordinator.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b234e1a1c06b820b3f81efa0e917ad111c38c3dae51c8b28814185713613ab"}},{"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":"Starcat/Core/Screensaver/ScreensaverSnapshotPublisher.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"06259bd9fd59619384c7a751603f6878cc99d593725c43c8a449b7802d2f3840"}},{"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":"Starcat/Core/Network/GitHubStatusMonitor.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e03c328f47e68692502b5f5e0faf512f8418ed9826e254e70eb7e2560f688"}},{"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":"Starcat/Core/Network/GitHubStatusMonitor.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe38c7aae5a7f2d70a10fc4838125a75c880a23a8b1572db358dad70884c5edf"}},{"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":"Starcat/Core/Network/ServiceAvailabilityMonitor.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7412e1530e4be2ae09b950a732092e46ea184006d665c3fdf15b241f81d8ff"}},{"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":"Starcat/Core/DataContribution/DataContributionCoordinator.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"450d69b2089fdfd1cb1c22fbfa49e637885e5dc5501c7409dfd7c9e810a308d0"}},{"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":"Starcat/Core/DataContribution/DataContributionSettingsModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"868e3372ec0581e81bcfeae9613353041e8eadbc40bda124f2251dab81c1854e"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 0/2 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~5.5 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 12 assertion(s) across the 2171 source line(s) of the 33 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: starcat-promo-video/presentation/src/hooks/useStepper.ts (7), starcat-promo-video/presentation/scripts/extract-narrations.ts (2), starcat-promo-video/presentation/src/App.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: \u0060diskSize\u0060 turns every thrown error into \u00600\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":"Starcat/Core/Cache/ReadmeAttachmentImageCache.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef24ef2342846a0c123098f6394901c2e6ba86043aa1a07a567cac7319938156"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchCached\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":"Starcat/Core/Sync/GitHubNotificationInboxService.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6ca079cee400dca2683f3f0c971fde14806779f498326ea9de37ac538d843b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060indexedCount\u0060 turns every thrown error into \u00600\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":"Starcat/Features/AI/SemanticSearchService.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5dc7ab0ea7848c810984ae22ae8dcaf3702d4552a0b8d8c963ced956163683"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060tagDTOs\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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b609ad009f1c2ed38246b6dd56dfda46350d9731abe9c3a60ffbf7cd190af626"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060allTagDTOs\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":"Starcat/Features/Companion/CompanionContextProvider.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"35087fcba1aa1d3a8e7770d34d68436296d4096ad0f800d97f728af4aea082c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060selectionSnapshotsForCurrentQuery\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":"Starcat/Features/Home/HomeViewModel.swift"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe457e6c99c0357b47c6b6fddc5b27de66f8a4bca8ce7d0e5fd524589d56a06"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadDiskCache\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":"Starcat/Features/Trending/TrendingLanguageStore.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db0f6c4cb97d86451158bbae81164103ae9e3b8f9160aa4c83f1d9daf76636e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060freshRepositoryIDs\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":"Starcat/Shared/Services/DiskWikiCache.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c641da4c9f1ab8aa2464f7a3c45bc3346eb1dbb951128b50e198af4fa210e691"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cachedRepositoryKeys\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":"Starcat/Shared/Services/DiskWikiCache.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e623a3197b3cd1a6587977c91d80587737b3c525985639b94af814c319867b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060encodeLanguageBytes\u0060 turns every thrown error into \u0060\u0022{}\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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb45d1a0013986f63348d1ea5392b0a6d468d95685db331452b1a0c3db5b15b0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decodeLanguageBytes\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":"Starcat/Core/Sync/AwesomeRepository.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82def53f3ee3be8c198ed507bb7dda0caa027565348ec079bb94d8905b0c02b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseIssueComments\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":"Starcat/Core/Network/GitHubAPI/NotificationsAPI.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10aaf55e457af47939372bf9533716cfcf253b639582d095b6f73e67512bd99"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readmeDocumentDirectory\u0060 turns every thrown error into \u0060\u0022\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":"Starcat/Core/Network/GitHubAPI/ReadmeAssetURLRewriter.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e8ffb9d57c5f9724ad7740b0a1500e9318a270b4b30661f179bf24d6ddeb05"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060availableEntities\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":"Starcat/Core/Widget/Shared/FocusWidgetConfigurationIntent.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"464d58f0d544535e519a0fd862d070541e7fe3f8b5534110ac342dfbe76153ac"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060totalDiskUsage\u0060 turns every thrown error into \u00600\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":"Starcat/Features/AI/LocalAI/LayaDecisionModelStorage.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b74995b3cbd22eb3f38c5ec14470ea9200091d9382d144bdaa293b1e670ae5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060totalDiskUsage\u0060 turns every thrown error into \u00600\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":"Starcat/Features/AI/LocalAI/LocalAIModelStorage.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f19d6286c13aa0cffd1d845c840a2475da0bec1aabfb8f7a501e635fe87614"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060outputDirectoryDisplayPath\u0060 turns every thrown error into \u0060\u0022\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":"Starcat/Features/CodeGraph/CodebaseMemory/CodebaseMemoryStorage.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce2a8f5d32148163c9006270d3f366c9abfc7dc84745462f0226c3d5293b27e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060storedPayloadUTF8ByteCount\u0060 turns every thrown error into \u00600\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":"Starcat/Features/RAG/Core/KnowledgeRAGService.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a92c89b3805773d90aefe99c5c05a0409fc4f1c9578c2454024b5646775050"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060identityTerms\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":"Starcat/Features/RAG/Core/RAGSearchProviders.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb00e4c292bd74276f4dd80a0189e3681a6a2e3571b9a8788d788c7e1e24a67"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060tomlValue\u0060 turns every thrown error into \u0060\u0022\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":"Starcat/Features/Settings/CCSwitchImport/CCSwitchCredentialExtractor.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a510f264f10efed6ca4a538b947b576a1bc6fe31af2857e22febb98615e939"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060links\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":"Starcat/Shared/Components/AICommandComposer/AIComposerModels.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f0fdeff08e8807011672f21f8e4c5294a184ab6404af6512085d4fcc1ec887"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}