{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"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":"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"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":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"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":"LiveSessionController.finalizeCurrentSession (cyclomatic 46): LiveSessionController.finalizeCurrentSession has cyclomatic complexity 46 (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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e072039d2f825cdbbd3542cfa5a616c54acbbd1e85960d8a4cb84af0ac74d3f9"}},{"ruleId":"D1","level":"warning","message":{"text":"SidecastPreset.apply (cyclomatic 38): SidecastPreset.apply has cyclomatic complexity 38 (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":"OpenOats/Sources/OpenOats/Models/SidecastPreset.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a6d8b2d26df71944cbc2e9484b48c20ee016bcf8eb72e0e28502da3f8a2216"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingTranscriber.run (cyclomatic 32): StreamingTranscriber.run 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":"OpenOats/Sources/OpenOats/Transcription/StreamingTranscriber.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccac2aad69ed377f7e2152b8a0fd850f8f763f021333a4354dbf471825739cd"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsStore.init (cyclomatic 31): SettingsStore.init has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7090e3c9ab1b6f8d0b024df9c0b2deeac1287da355813ec6c2e3db777b2789"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptionEngine.start (cyclomatic 31): TranscriptionEngine.start has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"8035690ecc57a94632822bbd85517f1347f7e4dec701ba9bc2e03959fc64caa8"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlBar.body (cyclomatic 31): ControlBar.body has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/ControlBar.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b19e4de9a3f08543dbeaedee1b0865d472acf0baffca60db0ed75ff2423ffcf"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSessionController.synchronizeDerivedState (cyclomatic 29): LiveSessionController.synchronizeDerivedState 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae93e7c871796cf22f8fa049794e35e15fe3c078b136a6b5155c292d8dfa33b"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesEngine.generate (cyclomatic 28): NotesEngine.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":"OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf86edec3a909f5e9e47cac26767c4a587ab4a82a9255a2cad9fcf91e1754a0"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioRecorder.mergeAndEncode (cyclomatic 25): AudioRecorder.mergeAndEncode 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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d392df1d6f50407ba7a6dedfa4f2f1e1f6d8ed1b5416d660c5753f4fc47338"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTextCleaner.cleanup (cyclomatic 25): BatchTextCleaner.cleanup 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":"OpenOats/Sources/OpenOats/Intelligence/BatchTextCleaner.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"470cc7641ace7e991e47c60d655ffef085d64f3e666825a763878137a42b8d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptionSettingsTab.body (cyclomatic 25): TranscriptionSettingsTab.body 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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6242da1c919329437058b56e2da7531250ffcd23c63efae0b278df3f9ed886"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioRecorder.writeMicBuffer (cyclomatic 24): AudioRecorder.writeMicBuffer has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fc634d9d6f543f55251f7ea7daf294918e47c5a3a791ef8ed5cdf0b605bd71"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveTranscriptCleaner.performCleanup (cyclomatic 24): LiveTranscriptCleaner.performCleanup 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":"OpenOats/Sources/OpenOats/Intelligence/LiveTranscriptCleaner.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"375ae7e6892c955604fe126ba46f98fed4f7f1f210cc7cecf64778afbfdf6ea4"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemAudioCapture.bufferStream (cyclomatic 23): SystemAudioCapture.bufferStream 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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c14333971a810acb4331c1c04b322e0220ad41cf418df5eccd0fa46c714a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"IntelligenceSettingsTab.body (cyclomatic 22): IntelligenceSettingsTab.body has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d7575bb9eb01ef315e62590ebaaa7c0e6f2e758f4d19ebf90bfe955d737fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"AppCoordinator.startDetectionEventLoop (cyclomatic 21): AppCoordinator.startDetectionEventLoop 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":"OpenOats/Sources/OpenOats/App/AppCoordinator.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29d5adb5c9525d5e05af2e59ba8e65c0a54336f1f9d64db424814d392c89518"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeBase.chunkMarkdownStatic (cyclomatic 21): KnowledgeBase.chunkMarkdownStatic 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3ab0bd57ee0b534bc8d3fa2d58c918a12d26b78667f31cffe21ae821dd8281"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptView.transcriptScrollView (cyclomatic 21): TranscriptView.transcriptScrollView 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":"OpenOats/Sources/OpenOats/Views/TranscriptView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e726c941b2cea9e7e2458a8edce794865b6f71cbf6098dc7d18fb9247fc4232a"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSessionController.runPollingLoop (cyclomatic 20): LiveSessionController.runPollingLoop 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc759eb61a3b27281275eb8119721cb2dcb99c24e2dd8c7943329be89b494a97"}},{"ruleId":"D1","level":"warning","message":{"text":"MicCapture.bufferStream (cyclomatic 20): MicCapture.bufferStream 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":"OpenOats/Sources/OpenOats/Audio/MicCapture.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a907855f1f786ead579ca8f6d3b3370542720579bc5aa000037e66c33003dbe"}},{"ruleId":"D1","level":"warning","message":{"text":"SidecastEngine.apply (cyclomatic 20): SidecastEngine.apply 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":"OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff601e233a70777845c44c78f428d98ae61642ad05fc3369494a717a899c1a4"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingAudioConverter.extractSamples (cyclomatic 20): StreamingAudioConverter.extractSamples 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":"OpenOats/Sources/OpenOats/Transcription/StreamingAudioConverter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e59b7b9e708468fe89ddf7f37f7c0f6de4ab2e904b9e03a6f1272add28615ef"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.contentWithLifecycle (cyclomatic 20): ContentView.contentWithLifecycle 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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaaf16881ef4288f9cc1b48e1c72d844d1bbaa44dc378a7e01888f6e7a83e33"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenRouterClient.streamCompletion (cyclomatic 19): OpenRouterClient.streamCompletion 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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"df64a4c19a63d3406308b55abc18d94294a88a47aa1cb155654215228561beea"}},{"ruleId":"D1","level":"warning","message":{"text":"WizardViewModel.canAdvance (cyclomatic 19): WizardViewModel.canAdvance has cyclomatic complexity 19 (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":"OpenOats/Sources/OpenOats/Wizard/WizardViewModel.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e307da3061ecb269435c30dc90ba38dff98617a1ecbc534c06485f7ac11e79f8"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSessionController.recordingHealthNotice (cyclomatic 18): LiveSessionController.recordingHealthNotice 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9267109f84c7bb07ea16e507d7c3b0eefab67dd4bfb57e69c4d6e5685315a857"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioRecorder.readAllMono (cyclomatic 18): AudioRecorder.readAllMono 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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"425eaee9e465572e6b7156954667842d8c17a02aa088db6e746a0472a75a1d88"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeBase.index (cyclomatic 18): KnowledgeBase.index 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"437d9530f179f15f9bf09b71c0d9a4f8d63be9cc95fc8e2be0b9ccae6c19fcdf"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.rootContent (cyclomatic 18): ContentView.rootContent 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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"029c3b57282b88d48e9066d1b8a80aec00efd4cfe61e106a425cd85aa12d2bf4"}},{"ruleId":"D1","level":"warning","message":{"text":"sidecast.callLLM (cyclomatic 18): sidecast.callLLM 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":"tools/sidecast-debug/src/sidecast.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3677cf7a2eb12c57a1b6c0184151935fc36845f5cd1d5821624eb3e98d9c139a"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsStore.migrateFilesFromOpenGranola (cyclomatic 17): SettingsStore.migrateFilesFromOpenGranola 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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4db4dc903bc858596b659f53f9fa023c2acd0defb0d94122ed3a53b2397edc"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSessionController.refreshState (cyclomatic 16): LiveSessionController.refreshState 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"1882c62adf20c0b1454e4cf3361eb5185a244d86a18e60ca07ab4fc36387a184"}},{"ruleId":"D1","level":"warning","message":{"text":"MeetingDetectionController.handleMeetingDetected (cyclomatic 16): MeetingDetectionController.handleMeetingDetected 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":"OpenOats/Sources/OpenOats/App/MeetingDetectionController.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0cb3f16b6bbe5710a14862a530e316e2fae772bd6bebe95365b37a5a7d59df"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesController.isLikelyMeetingHistoryNameLine (cyclomatic 16): NotesController.isLikelyMeetingHistoryNameLine has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba429e98768977976fc816ee22fd05aadbecaff7da7fa6dc0369d6ff9fe6e73"}},{"ruleId":"D1","level":"warning","message":{"text":"SuggestionEngine.onUtterance (cyclomatic 16): SuggestionEngine.onUtterance 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":"OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6251274b375d0e300e9410eedb3a2f2041a3b46c9ac5a539134f884b36948611"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleNotesService.markdownToHTML (cyclomatic 16): AppleNotesService.markdownToHTML 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":"OpenOats/Sources/OpenOats/Meeting/AppleNotesService.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ba631435c2b9b1029dc5ca64d2a728b4e41261a8331a9e38b9c6333eecfb1e"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionRepository.normalizedMirrorAssetPath (cyclomatic 16): SessionRepository.normalizedMirrorAssetPath has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e153dc0f497e411da6ca4a509840631b1eb8bfe73a2299d30cd590165ee8c26"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchAudioSampleReader.resample (cyclomatic 16): BatchAudioSampleReader.resample 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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16d91b4fcda8b665ca5d295c23e7dda7a293b38c06b60f2b69a61ff43f0e889"}},{"ruleId":"D1","level":"warning","message":{"text":"WizardViewModel.applySettings (cyclomatic 16): WizardViewModel.applySettings 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":"OpenOats/Sources/OpenOats/Wizard/WizardViewModel.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05fc508b92c4754384ec1c7dd6699c9339f1069ba2e6c2f4d2959ff21577cfd"}},{"ruleId":"D1","level":"warning","message":{"text":"ui.renderDebugLog (cyclomatic 16): ui.renderDebugLog has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal 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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a75466a98216719c4344af4b29f6b88ce9670935e716da9782b05a5db238f36"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingTranscriber.run (cognitive 88): StreamingTranscriber.run has cognitive complexity 88 (threshold 15). Drivers by points: if/else 21 (64 pts), error handling 2 (9 pts), boolean chains 7, match/switch 1 (5 pts), loops 2 (3 pts) (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":"OpenOats/Sources/OpenOats/Transcription/StreamingTranscriber.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"af610fdb29a1c2a97c793a4583104e06190809dc12ad7372d6f11644aefe7342"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSessionController.synchronizeDerivedState (cognitive 63): LiveSessionController.synchronizeDerivedState has cognitive complexity 63 (threshold 15). Drivers by points: if/else 35 (60 pts), boolean chains 3 (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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00cec4a88e9e56243ec5fea15536c9903b3f937ceaed994da83a77f964c0b00"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSessionController.finalizeCurrentSession (cognitive 62): LiveSessionController.finalizeCurrentSession has cognitive complexity 62 (threshold 15). Drivers by points: if/else 34 (42 pts), boolean chains 18, ternaries 2 (nesting depth added 8). 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c1853693e897ebf68bbf3c7c528984d5110103edaed72011f7c17357281fae"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSessionController.runPollingLoop (cognitive 54): LiveSessionController.runPollingLoop has cognitive complexity 54 (threshold 15). Drivers by points: if/else 9 (34 pts), ternaries 2 (8 pts), boolean chains 6, match/switch 1 (5 pts), loops 1 (nesting depth added 35). 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8db44c8fe615799e00b339afcafdd91e3a011ff62e65169ec351ba367809ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlBar.body (cognitive 52): ControlBar.body has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 17 (34 pts), if/else 10 (14 pts), boolean chains 4 (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":"OpenOats/Sources/OpenOats/Views/ControlBar.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bb069732e09e3d307665b0cc79076130d61255a0ed7734600b4fb3df65321b"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemAudioCapture.bufferStream (cognitive 51): SystemAudioCapture.bufferStream has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (47 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2312e7008228de32b5470354aa09dcc0a34e63bc738929576f9a0e195a15f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.chunkMarkdownStatic (cognitive 47): KnowledgeBase.chunkMarkdownStatic has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 4 (8 pts), boolean chains 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2dd3dc4bb008b7e2e22f9c2ba841144956c0e33172f9e5c9e1949f6fb79462"}},{"ruleId":"D2","level":"warning","message":{"text":"AppCoordinator.startDetectionEventLoop (cognitive 46): AppCoordinator.startDetectionEventLoop has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (42 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 30). 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":"OpenOats/Sources/OpenOats/App/AppCoordinator.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31e50ee49fead804371a3ca2757ad0c6eb4596f477c5f8a04a9c82e44efd08a"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsStore.init (cognitive 44): SettingsStore.init has cognitive complexity 44 (threshold 15). Drivers by points: if/else 30 (34 pts), ternaries 6, 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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4581e912e2be70a24116e7546d1cab26ea39407cfd46f9ca63cc38c1bfaad5"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRecorder.writeMicBuffer (cognitive 42): AudioRecorder.writeMicBuffer has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (20 pts), loops 5 (15 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b88dd099a2caba998e13df0b36d57db0cbc7abbcd8ad5d0be2e212c7142e417"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptionEngine.start (cognitive 39): TranscriptionEngine.start has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 6, loops 1 (2 pts), error handling 1, match/switch 1, ternaries 1 (nesting depth added 8). 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":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14b1a1c38569ff744aacc53b823ca13b892d03a6e10e7f73830154589cd2867"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.index (cognitive 37): KnowledgeBase.index has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 2 (5 pts), boolean chains 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf2523d186e02011b01c0842eef2061a41f8990779ab1edbff0e53da01056b0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterClient.streamCompletion (cognitive 37): OpenRouterClient.streamCompletion has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (28 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts), error handling 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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"13affcab35be80b5ff4cf7178d6eb290e6524fe3db7777d8ec471213af2618ee"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRecorder.mergeAndEncode (cognitive 33): AudioRecorder.mergeAndEncode has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, ternaries 2 (6 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe395b431c113a36a89a10493c4c2f4c5c3efbff325057f85aed110957271fb6"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesEngine.generate (cognitive 33): NotesEngine.generate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 2 (3 pts), loops 1 (2 pts), match/switch 2, ternaries 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad5d321537cd81384e8ba41c1fb5ac797819f833bc3b7c36329120a6dcd1a1e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.rootContent (cognitive 31): ContentView.rootContent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff0575ab45e74abbae3fafc64f622e42384c20d70ae796222d40b69a0e88999"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTextCleaner.cleanup (cognitive 30): BatchTextCleaner.cleanup has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 3, match/switch 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":"OpenOats/Sources/OpenOats/Intelligence/BatchTextCleaner.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b15b4f75c95c5563e606b96510c88ce8706f82adcea388248bc49476e3c8ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTranscriptCleaner.performCleanup (cognitive 30): LiveTranscriptCleaner.performCleanup has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 6 (12 pts), error handling 1, match/switch 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":"OpenOats/Sources/OpenOats/Intelligence/LiveTranscriptCleaner.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8e8122175d6e2d19f28f7bf4322ebdb6bbb62eeb4160f8f3312d0f4baed127"}},{"ruleId":"D2","level":"warning","message":{"text":"ui.renderDebugLog (cognitive 29): ui.renderDebugLog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), ternaries 4 (9 pts), boolean chains 1, loops 1 (nesting depth added 16). Of this number, 24 points are the body\u0027s own statements and 5 belong to one function literal 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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c8db98b9b9be7f93a1ae63058e801b35e9ad2f00d914c094060348fa6d859c"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsStore.migrateFilesFromOpenGranola (cognitive 28): SettingsStore.migrateFilesFromOpenGranola has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"911e1b86497d60c3e8c5ab8444059b97ff2c010031efbb9ace4ffd185e53dc56"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingAudioConverter.extractSamples (cognitive 28): StreamingAudioConverter.extractSamples has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 2 (7 pts), boolean chains 4 (nesting depth added 8). 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":"OpenOats/Sources/OpenOats/Transcription/StreamingAudioConverter.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"281f68408399279044f41e715e81c84bc511a7ca5024e55ed5d9f9d9f55c102f"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaSetupClient.pullModel (cognitive 28): OllamaSetupClient.pullModel has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, error handling 3, loops 1 (2 pts) (nesting depth added 14). 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":"OpenOats/Sources/OpenOats/Wizard/OllamaSetupClient.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"208b1146294aaea772240cb38ff58c4db386a843e5eddd07247e73c61395e99e"}},{"ruleId":"D2","level":"warning","message":{"text":"SidecastEngine.apply (cognitive 27): SidecastEngine.apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, 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":"OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71785e0a54d88170ea81c895c5822bbe5772e85c3f0339b6e158590d7f08d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"SuggestionEngine.streamSynthesis (cognitive 27): SuggestionEngine.streamSynthesis has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 2, loops 1 (2 pts), boolean chains 1 (nesting depth added 14). 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":"OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b819d189ec6433bcdd09c19b82149ee860dabc59b0685e49d2cb365e1936118"}},{"ruleId":"D2","level":"warning","message":{"text":"SidecastPreset.apply (cognitive 27): SidecastPreset.apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 3 (9 pts), boolean chains 5 (nesting depth added 9). 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":"OpenOats/Sources/OpenOats/Models/SidecastPreset.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cde19a190318b6d434de89b6ba3c72e66228cfa533043dc0764406130d04e9"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptView.transcriptScrollView (cognitive 27): TranscriptView.transcriptScrollView has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 9 (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":"OpenOats/Sources/OpenOats/Views/TranscriptView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eab3878f229ba4bee823173cf417593dc22c1954b3087ee08049c127fe67287"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleNotesService.markdownToHTML (cognitive 26): AppleNotesService.markdownToHTML has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2, 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":"OpenOats/Sources/OpenOats/Meeting/AppleNotesService.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cc563bd388d5064c5cfb775600fa27e24f12e0ab3f032bb7495f3302fbac62"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAudioTranscriber.transcribeFile (cognitive 26): BatchAudioTranscriber.transcribeFile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c756baea4ec30a52448e7b11a0eedb346a00ec5373624d3f5d1202f177d0a37"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesView.sidebar (cognitive 26): NotesView.sidebar has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (26 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/NotesView.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e962087fae82bfffc5b6a3a8c1c69c3227559f4a7112c405765de2545e9caf3c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.contentWithLifecycle (cognitive 25): ContentView.contentWithLifecycle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"934c5a113f719b65c537555a83fa771255f33ac97efb42192ada2b1a4c8a2054"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterClient.streamAnthropicCompletion (cognitive 24): OpenRouterClient.streamAnthropicCompletion has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 5, loops 1 (2 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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79de200099560681bca60de3d570777ace5f1a76b7e91a6df4e315a5b8d2785"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptionSettingsTab.body (cognitive 24): TranscriptionSettingsTab.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, boolean chains 10, match/switch 1 (2 pts) (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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3e92af01e69522c2dc4a4d03f4fff07ab530bb36b89ccff595060012ea473a"}},{"ruleId":"D2","level":"warning","message":{"text":"sidecast.callLLM (cognitive 24): sidecast.callLLM has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 1 (2 pts), error handling 1, match/switch 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":"tools/sidecast-debug/src/sidecast.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"339dc649aedab80028399cc97e9bb41f04ed378d93741c41fa85610da18289e7"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRecorder.readAllMono (cognitive 23): AudioRecorder.readAllMono has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5, loops 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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"982ed8a056613974473d83ecc2f3d0305de1631174f925d717559724bb1cc5c7"}},{"ruleId":"D2","level":"warning","message":{"text":"MicCapture.bufferStream (cognitive 23): MicCapture.bufferStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 7, error handling 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/MicCapture.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"86794cfc3ecc457af415bf5af10eb419e0d77cd04ad6ceda14f7615f871b66b5"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAudioTranscriber.detectSpeech (cognitive 23): BatchAudioTranscriber.detectSpeech has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfb2deb7ccc652fd6fc5a09fdc3d42107378603649c7e6c5b0bef5b162acd82"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptionEngine.startSystemAudioStream (cognitive 23): TranscriptionEngine.startSystemAudioStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b55e09e218440f5134730ec9f8d83d1121fb8a2368047c7a465aea4461d2b76"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSessionController.recordingHealthNotice (cognitive 22): LiveSessionController.recordingHealthNotice has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8 (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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7b277c05dfe2f5264c91f0a5274245dd76a123eb5843c4881867217a777a54"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetectionController.handleMeetingDetected (cognitive 22): MeetingDetectionController.handleMeetingDetected has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/App/MeetingDetectionController.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e722bb33dd2490066413e53dbc0fda453caf6f545b1591ce36910a98e6a3f44a"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesController.loadMeetingHistorySuggestions (cognitive 21): NotesController.loadMeetingHistorySuggestions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1, ternaries 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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba3bb6f78d621001f1838943c76967065aa3aa3f4146b24ba25b9c6b3b6c693"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRepository.rewriteJSONLWithCleanedText (cognitive 20): SessionRepository.rewriteJSONLWithCleanedText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, 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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0f1177027576992deb7457b6e2e73c76e2e81db718a75aab40fa34ed01036d"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAudioSampleReader.resample (cognitive 20): BatchAudioSampleReader.resample has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, loops 1 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e59ac3126c2a7aeaf0880c8d186267070ca561824e1f3f3dc9f1f5d8239a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetailPane.parseMarkdownSections (cognitive 20): MeetingDetailPane.parseMarkdownSections has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3773}}}],"partialFingerprints":{"codehealthFindingId/v1":"282d2cd66fe127ebf9be84fcdbd7c55716eb464bc65c23ae4df741f10d7e633c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownTextFlow.inlineMarkdown (cognitive 20): MarkdownTextFlow.inlineMarkdown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (19 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":"OpenOats/Sources/OpenOats/Views/SelectableTextFlow.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae22c43e6be3cbfdae76a79357aea30c7c6a1408eaa5e48309f781a53b23f290"}},{"ruleId":"D2","level":"warning","message":{"text":"sidecast.filterAndRank (cognitive 20): sidecast.filterAndRank has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 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":"tools/sidecast-debug/src/sidecast.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b462f7b9baacf69a1376cb0131ad1d23cfb594884cc9df21b6bf8f65bd43072e"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesController.meetingHistoryHighlights (cognitive 19): NotesController.meetingHistoryHighlights has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (6 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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa00715ada93e552c3a34a07162eeca7f18ca76bccc5deffb47b5b5668d517e"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTranscriptionSegmentLayout.slices (cognitive 19): BatchTranscriptionSegmentLayout.slices has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2 (3 pts), boolean chains 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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"041eb8ff5d6b0898fc3ead043e1c7d83b70137813adb1d5278fca2ec597bd4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetailPane.notesEmptyState (cognitive 19): MeetingDetailPane.notesEmptyState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 4 (5 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3121}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ee486acbc5a86504dbfb8167517c3a37be40b913440f94f98979a7a349880e"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetailPane.notesExportAttributedText (cognitive 19): MeetingDetailPane.notesExportAttributedText has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 3 (5 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3863}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf2abeb59395af4e578f9bdc053a25b1ca5d211e0b3a6479bfbf9f446757df7"}},{"ruleId":"D2","level":"warning","message":{"text":"WizardViewModel.canAdvance (cognitive 19): WizardViewModel.canAdvance has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (8 pts), match/switch 1 (nesting depth added 4). 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":"OpenOats/Sources/OpenOats/Wizard/WizardViewModel.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca280494db3692ae80060c7cb72921114fd4e8ad530cb913793861fb6e77d03"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSessionController.startTranscription (cognitive 18): LiveSessionController.startTranscription has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c65b9925185094d63b909b845ed85678ad51145672dcc27ce75bcc87d23233"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetector.handleMicSignal (cognitive 18): MeetingDetector.handleMicSignal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Meeting/MeetingDetector.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"18015cea9d29d1fbeb08d02c85f7952b4f5845c4e72bdcac1ddabb11bd442187"}},{"ruleId":"D2","level":"warning","message":{"text":"ElevenLabsScribeBackend.buildDiarizedSegments (cognitive 18): ElevenLabsScribeBackend.buildDiarizedSegments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 8, 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":"OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8def39ca4908dcdd779ad563dd1b712bafc49dc4c1d740f53c672636f754d40"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguagePrivacyStepView.body (cognitive 18): LanguagePrivacyStepView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (7 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20584169176e2870da34ce00f9808b239b3aa6136795a35aa17787bb3ad6587"}},{"ruleId":"D2","level":"warning","message":{"text":"RecommendationEngine.nextStepAfterIntent (cognitive 18): RecommendationEngine.nextStepAfterIntent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Wizard/RecommendationEngine.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ffbc10fba8f37250b5a232be67e798d74f37b3af0573f583cb08b5b5519f34"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesController.insertAssets (cognitive 17): NotesController.insertAssets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1, ternaries 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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"514b3eac907610826860e43a5b0b4581635d475a5eec9394680cd6c98429a1a3"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.searchRaw (cognitive 17): KnowledgeBase.searchRaw has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"4973272b2d7d14005ec609f75470806ece8ebf875d922ff46aa03f1aa5ba0d05"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.embedBatchesConcurrently (cognitive 17): KnowledgeBase.embedBatchesConcurrently has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (5 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"2912af5a13626734fe39bc7a387c8ee223b78d234d8543ae871fc44ab0b9b58c"}},{"ruleId":"D2","level":"warning","message":{"text":"SuggestionEngine.onUtterance (cognitive 17): SuggestionEngine.onUtterance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 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":"OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"363368df8746612a6922aa67445062fad4d1fcb0ac76c06ff2d8a0f7e5229a92"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetectionController.startSilenceMonitoring (cognitive 16): MeetingDetectionController.startSilenceMonitoring has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 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":"OpenOats/Sources/OpenOats/App/MeetingDetectionController.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b894d3a90b4bebadac6e277bf22ff6f4fee497d8818045fbe69d6f33d39419"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesController.isLikelyMeetingHistoryNameLine (cognitive 16): NotesController.isLikelyMeetingHistoryNameLine has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (4 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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc80ca9d53f48e7a1da8016370af67e1763609f3807c38d898049e8e9611f1ad"}},{"ruleId":"D2","level":"warning","message":{"text":"MicCapture.normalizedRMS (cognitive 16): MicCapture.normalizedRMS has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), loops 2 (5 pts), ternaries 1 (3 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":"OpenOats/Sources/OpenOats/Audio/MicCapture.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1596f5f67f3757eeadf09eb9d150db4811abb97b4b1084e436ced0c1a07a8e77"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchAudioTranscriber.runTranscription (cognitive 16): BatchAudioTranscriber.runTranscription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a94b27f90e5cc7014b10334817fc0f01371e803d0b78dd1acf06beea4d4342"}},{"ruleId":"D2","level":"warning","message":{"text":"ElevenLabsScribeBackend.parseKeyterms (cognitive 16): ElevenLabsScribeBackend.parseKeyterms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), 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":"OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb631f00ff846f18a39d903e184786f9ec623a1aa488596c25b9dd9e069a9db"}},{"ruleId":"D2","level":"warning","message":{"text":"MeetingDetailPane.notesToolbarActions (cognitive 16): MeetingDetailPane.notesToolbarActions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (2 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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9cda427370b26c872d52fb7778b87d595909689c5870d2d4b1948be69e154d"}},{"ruleId":"D2","level":"warning","message":{"text":"WizardViewModel.applySettings (cognitive 16): WizardViewModel.applySettings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 1 (2 pts), boolean chains 1, 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":"OpenOats/Sources/OpenOats/Wizard/WizardViewModel.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb26b4818d34647f912787291e5256d709a6c9dea169560e9b3be313cb90ff9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MeetingDetailPane: ClassTooLong \u2014 2959 significant lines (blank, comment-only and punctuation-only lines excluded), 129 methods. The bar is 400 significant lines; this is 2559 over it, 7.40\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4e8c0d5cc098685582eea1fd3f0f893ab5191ff12121223523878910e69efe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MeetingDetailPane.swift: FileTooLong \u2014 3009 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MeetingDetailPane (39-4078). The bar is 500 significant lines; this is 2509 over it, 6.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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"600aaea8d2b1193313d2099f8defc693559d0fe583a40565775550def56aead8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MeetingDetailPane: TooManyMethods \u2014 129 methods. The bar is 30 methods; this is 99 over it, 4.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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"337a2bd4559c82308b54c1e558f8890bb3506c37bea4c3de2f02edc2e914d519"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionRepository: TooManyMethods \u2014 103 methods. The bar is 30 methods; this is 73 over it, 3.43\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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08803d45f6be5b5dc610719487add944f7da97cfe913d438c801686bc98732f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsStore: ClassTooLong \u2014 1281 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 881 over it, 3.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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8f61ff7dc8865b5bdde1b4447360f9da05082a2180212903ec6bcc0e87de79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Storage/SessionRepository.swift: FileTooLong \u2014 1562 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1062 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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8926854783276afc1469475fed97780cf1ae682fa188d36dcd492b5866aed7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveSessionController: ClassTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 845 over it, 3.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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21014b22aa9863dcbee4455a280ea66416196394f6e09f75dabb039d85b731f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotesController: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d417cedf77575991e20f5b5147c40002c135180f393be39880c76c9623c577"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsStore.swift: FileTooLong \u2014 1390 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SettingsStore (9-1958). The bar is 500 significant lines; this is 890 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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1314607412d8ad743856307d4f3f7c69a35ae61df0ddb361175516661c074459"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesController: ClassTooLong \u2014 1063 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 400 significant lines; this is 663 over it, 2.66\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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d03f2069e1bbbdb2be52f0901c8629c2f76de8f9f0f911fea5d12fb05ecf4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/LiveSessionController.swift: FileTooLong \u2014 1290 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LiveSessionController (60-1913). The bar is 500 significant lines; this is 790 over it, 2.58\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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc997ff4d652810177f7032d67e1ae49047df5b7cf4e9b1ce3054f6e694795c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/NotesController.swift: FileTooLong \u2014 1211 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: NotesController (158-1729). The bar is 500 significant lines; this is 711 over it, 2.42\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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"967e71bbb6888b2a4e8944e28cbf59bac216478816c45d89180f73728a3c02e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveSessionController.finalizeCurrentSession: MethodTooLong \u2014 finalizeCurrentSession runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f22e6c610ee01912804c7ce7715fcedc7503fe8d5b383ffbd2031c96af6a25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/SettingsView.swift: FileTooLong \u2014 1178 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 678 over it, 2.36\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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9497a2a2ecff141ade1867c7b5109b052f3b5b39942cf725c12be02a329c2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TranscriptionEngine: ClassTooLong \u2014 915 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 515 over it, 2.29\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":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4355f76df8c2bdc87b1d802fa35694e397488a853eec6f90b0da0bbdf86144"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscriptionSettingsTab.body: MethodTooLong \u2014 body runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"4836db96a22a91a96a3aa0ee6d349a30a4eedf8d7e96a72568bc815d05e42cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsTab.body: MethodTooLong \u2014 body runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1215b571b4116f0c587e035b92462c22b87cf06103fca075464b39cdc028036"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemAudioCapture.bufferStream: MethodTooLong \u2014 bufferStream runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66e0dbbf5e8d622c57beb27a3d701a21ef938a83cce0391dbb1ee092e8fdb80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Transcription/TranscriptionEngine.swift: FileTooLong \u2014 955 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TranscriptionEngine (68-1412). The bar is 500 significant lines; this is 455 over it, 1.91\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":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffd4cbffa0f5cfdb17ff8614cc2c9d522c76efc6567a0ec76b22b68433f570e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsStore.init: MethodTooLong \u2014 init runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1496d33836e1f01d95c1366d69581ba9fe97d6a18af2d6d16ad2e6b3b8c4ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveSessionController: 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5270ceea9d7debd801647a109f30207b1c6cf6fc02935d4226b9fafc05cf1e72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscriptionEngine.start: MethodTooLong \u2014 start runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaeb97f1fc326f243dcb61799c68ad6d6907f526eef8b6ef59bd78a8eccb65d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeetingDetailPane.notesEmptyState: MethodTooLong \u2014 notesEmptyState 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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced8c25ece391a50fd10bc3c4f0ffb6bd67500fb2c5d1671ba5bf62cfac40fd1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotesView: ClassTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 248 over it, 1.62\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":"OpenOats/Sources/OpenOats/Views/NotesView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ee2aaf970ffa8c68e891b1cdcc3c39cd31cf1c770a087350e50437d9492db5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/IdleHomeDashboardView.swift: FileTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 287 over it, 1.57\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":"OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d55622dee92dfa92635f4aa7eb7967c5e55d90ed959636978fa3b85e43057b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContentView.rootContent: MethodTooLong \u2014 rootContent runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e170b9a607a17964d6bddd38a5a0bf080515456ccd9defdf2a95862a90df2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IntelligenceSettingsTab.body: MethodTooLong \u2014 body runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"3852438548f85d20e2cbe891bfc3d153540c0521139d26dacac3ef0ba5067dcf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemAudioCapture: ClassTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 192 over it, 1.48\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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb57ddfd02d38cc09aae8974060f439b76e2d383a15b806ee138daa2057c978e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Transcription/BatchAudioTranscriber.swift: FileTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 240 over it, 1.48\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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b57bf60c5e700401e6913de750cc5460f722034d2c0fd8e9444834e57a0a13"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsStore: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2b18c06dcdc24efb4f079fc23a28fb79602150b5f00b7890468454f59f376e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TranscriptionEngine: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.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":"OpenOats/Sources/OpenOats/Transcription/TranscriptionEngine.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4791b3db40bd92700b500c87167103ee29b08bb78903a08ccbbacb777f8eaac0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/NotesView.swift: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: NotesView (4-909). The bar is 500 significant lines; this is 179 over it, 1.36\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":"OpenOats/Sources/OpenOats/Views/NotesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c377d1901d0eddad54d270e2871cead4ff4bbbebd2a91703f374bab94db93001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/HomeTimelineWorkspaceView.swift: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: HomeTimelineWorkspaceView (4-688). 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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de04de5d9fc4e896b1b331e0ae502d956341fad9a927b98ad117e0482e9a1d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TemplatesSettingsTab.body: MethodTooLong \u2014 body 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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8246061e5ec4063d444e65b053d8298b66ed716476e5cfcdc89a909d0a9236"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ui.renderSettingsPanel: FunctionTooLong \u2014 renderSettingsPanel 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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57a337f7a301dd8a2c36ec498804a541b21fa0907c83a835c047e30fb22d9ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchTextCleaner.cleanup: MethodTooLong \u2014 cleanup 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":"OpenOats/Sources/OpenOats/Intelligence/BatchTextCleaner.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"374aa722f9b013319e23b5910c5f3cab6ac49dfa5e010356f74ee98dff17a70b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ui.renderPersonaCard: FunctionTooLong \u2014 renderPersonaCard 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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"494e604e42aafd1fccbce238fce2a8740177506adea4255c8eebd8a7f0441234"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SuggestionEngine: ClassTooLong \u2014 495 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 95 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":"OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e03d9ceaa76b4d429ecf3d69ed0e3d3f8a9ce72e700544dec2477257be4d692"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ControlBar.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/ControlBar.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"943d8977fb7465ab6f87081a2685311a345daebb948c366fede33cea9c0dd3a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeBase: ClassTooLong \u2014 485 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 85 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":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c580685965b60a529d50f8542dc9aa54a77d1c7a9f3549c42da7a3e3adf15493"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeTimelineWorkspaceView: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 84 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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e50d8d52321926d8f927e8021ffc4e9267379a7a6945cbe1353665b318385"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NotesView: 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":"OpenOats/Sources/OpenOats/Views/NotesView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0a78bcd59237e1593f510234004bd8f0748fb8434ed3371e7b35ab9e6c1375"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeetingDetailPane.notesNoTranscriptState: MethodTooLong \u2014 notesNoTranscriptState runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":2740}}}],"partialFingerprints":{"codehealthFindingId/v1":"867eceb9671caf5926e0d95202232b8cd212c85334bfe7c1b46c84c31042f164"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Audio/SystemAudioCapture.swift: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SystemAudioCapture (10-821). The bar is 500 significant lines; this is 99 over it, 1.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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abf470b804f9a5089461f8f3ff07dd008aa83e722a3ff79e00b4067b4ab6f8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ContentView.swift: FileTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: ContentView (5-654). The bar is 500 significant lines; this is 93 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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7411b2e713eab171bce7ff0bf9eab817ec6a89de0c92b6f970f1082e0a2955c7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WizardViewModel: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 73 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":"OpenOats/Sources/OpenOats/Wizard/WizardViewModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7214512d8ff7d1d2bf27177a40a1ab09ade2e39a4efbe8e13d2a5795d522fbcb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Intelligence/KnowledgeBase.swift: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: KnowledgeBase (150-909). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2983ee7a086f0661c338ac7f14470d48373250a227101fdb85c56344adf6e82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveSessionController.synchronizeDerivedState: MethodTooLong \u2014 synchronizeDerivedState runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec426b9631b5585c6851539d1d289ac0cef81b1a43593db344c0e3222d924e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StreamingTranscriber.run: MethodTooLong \u2014 run runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Transcription/StreamingTranscriber.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"08db6c748c3cbdf4e1ccc00df7d9ca849cc7b872d04ddc41edc09f44b8bf6722"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/ui.ts: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bb5b791b03e9ed9de4bb031e691c3fe8d2d931f182a588f3c64eb15ca60c58"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveTranscriptCleaner.performCleanup: MethodTooLong \u2014 performCleanup 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":"OpenOats/Sources/OpenOats/Intelligence/LiveTranscriptCleaner.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ceac59aa41bed4f453aa1fe4d1f36b38611567ebd7b7f7b9c7cbd0c91e40224"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContentView: ClassTooLong \u2014 430 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 30 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df92c4e2ee52e76ecc0ec5211d8cccbf186000e9416dbaaff1ae7febff54703"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchAudioTranscriber.runTranscription: MethodTooLong \u2014 runTranscription 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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac8ce9fc65369a5dad6faa019e989e5fb4761df334d12b3a3a914a2c8aef471"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SidecastSettingsTab.body: MethodTooLong \u2014 body 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":"OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6564cd4ac6acb85380791e686de7b13eb41b7bf529067866bce0632ff31f96e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeetingDetailPane.meetingFamilyOverviewSection: MethodTooLong \u2014 meetingFamilyOverviewSection 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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35b27c9a970c2a19c9b656af44d86af1001a8ff77b3cc77afc6ba795612fd20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:437-495 | OpenOats/Sources/OpenOats/App/NotesController.swift:676-754 \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fa4afedd780844a1f37f44bf9446a541bf84a6cee275dce3eaaf4980bb25e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:38-90 | OpenOats/Sources/OpenOats/Domain/MeetingTypes.swift:60-86 | OpenOats/Sources/OpenOats/Models/Models.swift:279-305 | OpenOats/Sources/OpenOats/Models/SidecastModels.swift:17-43 | OpenOats/Sources/OpenOats/Transcription/StreamingTranscriber.swift:61-87 \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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d198ac09e4966a5aa164a595634430c22683049cbc862c702fc1b6ee7e2bf30"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:916-969 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:984-1029 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1085-1118 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1120-1149 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1157-1187 \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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3b9e29897bd56efed38de022ad0869efe70048e31ec57eea53e8cfa78f4fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:668-687 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:518-537 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:885-904 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:419-438 | OpenOats/Sources/OpenOats/Views/NotesView.swift:714-733 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b59f6aae61d0dec78c9398126189f38ee4fc8cbeba9e2c9ff82607e7367a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:16-40 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:43-67 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:70-94 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:97-121 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:124-155 \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":"OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"569ef9d23c8156d1501aee01a26320dc21cb8917b358d9f43ff0b77d7bf19b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:182-285 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:288-352 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:391-464 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:466-510 \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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1e70e4ede26e2e972bd975760c66f13bed923560791234636279fd7dabff4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:500-552 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:734-819 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:958-1026 | OpenOats/Sources/OpenOats/Views/NotesView.swift:515-567 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f40ade2e0e9c2318edf3f862a52891abbf94ef1b147f907d5fe0e309f0c429"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:637-648 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:408-420 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:379-399 | OpenOats/Sources/OpenOats/Views/NotesView.swift:575-586 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"22755fc1d95250dc97854e820c9d818fb7024b855a82d89665fe2ed6355fe390"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:11-104 | OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:7-88 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:11-133 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:14-75 \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":"OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f202fde791c93512669225e56408cee47860bb76e4c7920e06c4b6b3e27a46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1799-1875 | OpenOats/Sources/OpenOats/Views/NotesView.swift:739-815 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1799\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 \u006014\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0496ec1732b3a9124c2e5d5365fc272d547361d62fbb5ad974fa0e2c46f7c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:502-552 | OpenOats/Sources/OpenOats/Views/NotesView.swift:517-567 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6c8f4ca0fc301adbdbe24fe4831dcfc820d83a1d1a6387bfcb4d16a77a66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:315-363 | OpenOats/Sources/OpenOats/Views/NotesView.swift:465-513 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:315\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a12ae90f1ae1685111d1fd156278a3bcaf956f39974cd3c50eed659e537d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:442-489 | OpenOats/Sources/OpenOats/App/NotesController.swift:685-732 \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a624d1cccd10e60c90560d1a9dd9ffb3deef4954d0494a834109b9a3e35891e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2816-2849 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2857-2890 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2816\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, \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2850\u0060 calls \u0060frame\u0060 and \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2891\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":2816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91a7e7c647f57fc1bf9fad9bb2b1a1678cc7ef9263cb63042fb21b7197a189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:606-635 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:377-406 \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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:606\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c662c0a1541b58f770f31d877e88d8ea3b83611fa88e28f747cd7e71c11dd286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:286-314 | OpenOats/Sources/OpenOats/Views/NotesView.swift:436-464 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:286\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"7383bbca0aa70a8315ceb7bb77cf2beee7c97bca914db20f008eaf4bec4d3783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1767-1795 | OpenOats/Sources/OpenOats/Views/NotesView.swift:377-404 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1767\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"d690bc70819b5078120162a10606040dbb5ce7f2e485c0f2703ef79e586cca42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:97-121 | OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:67-93 \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 \u0060OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:97\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":"OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4297406215d886dedbc056142a6eb9334f4108127e33e7435aad27a845395acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:97-119 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:41-63 \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 \u0060OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:97\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":"OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bbc82483ad036c110d5fdb38d8e206198b4698b7e74db18fc3d818a226c624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/ContentView.swift:603-623 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2392-2412 \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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"293ca5805213b5896bfe3b049e36e828d0e656ae9ad6db4db25394cdbc686f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:668-687 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:518-537 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:885-904 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:419-438 | OpenOats/Sources/OpenOats/Views/NotesView.swift:714-733 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac665022169b240ea73d36c1980f334015f63dc5004525a0851b5b5a7474a82f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1326-1345 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1364-1382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1326\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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"602327781d4ba1a0ce64a23f9ea3a28d1d0f6be6e580c54e8061dbf1d5f2ffbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3246-3265 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3288-3307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3246\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, \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3244\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3286\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450e2ffd350312521722e7fbc9fecb7d4adecb6cbc92e1d33e37aa1faac668f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/SettingsView.swift:752-770 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:380-399 \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 \u0060OpenOats/Sources/OpenOats/Views/SettingsView.swift:752\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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"2320ca9d6eb6a069f94729373da1aa127c43e1cfde7541265d74ab7eb450bfcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:19-38 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:46-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:19\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":"OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbde4b7bd9ff3f5717b5af9d6c6dae724b230c19deb1eec81a66a0dc5affb47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:11-30 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:14-33 \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 \u0060OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:11\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":"OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cd8d073912ceacbddba2a8565c824558a61e9f46121003c63d3c13903d84af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:1974-1992 | OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:2009-2027 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:1974\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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50cf079c2c418ea355a1030de02878faf18e004911c325afeca0ffccf7ea5ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:936-954 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1056-1074 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:936\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10530dc9b4666bc1f32a3c0c811bde93f74469cc24da66b4cace9c60ea85193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:95-113 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:171-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 both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Wizard/IntentStepView.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":"OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"62946c9fe283a6ad307f3e76d2b23e3ad88b2db147d4ee626415da6bda625576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:768-785 | OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:802-819 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:768\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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0460e88e7be2c7b23c605e9365d33f8719381acd6e78582e3d61f860edfbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift:399-415 | OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift:517-533 \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":"OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4fefcd159ec7898cbc003ff3dad3c6fa9453a757dcaaa59e82d5a6d0c4b686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/ControlBar.swift:313-329 | OpenOats/Sources/OpenOats/Views/ControlBar.swift:364-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 \u0060OpenOats/Sources/OpenOats/Views/ControlBar.swift:313\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":"OpenOats/Sources/OpenOats/Views/ControlBar.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ad673bfac498a7bf92db2c7313738c48e49af63d5fd53b599a2bc400516560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:741-756 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:972-988 \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 \u0060OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:741\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":"OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaad329806c944cd4caa9279da71c6730afaff7e4faf1615c3c460a23a34158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:14-29 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:13-28 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:16-31 \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":"OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"980935dc3cf274631e97b97d56902a2e194d7bfd95627e17881c3d7fe4703bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:1362-1377 | OpenOats/Sources/OpenOats/App/LiveSessionController.swift:1428-1443 \u2014 both copies are in the same file, so extract the block 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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ad73098b102e71798707cfcfddf246a1b944ef05658195ab1a7cadd620ab0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MiniBarPanel.swift:18-32 | OpenOats/Sources/OpenOats/Views/OverlayPanel.swift:16-31 \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 \u0060OpenOats/Sources/OpenOats/Views/MiniBarPanel.swift:18\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":"OpenOats/Sources/OpenOats/Views/MiniBarPanel.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"94815e7fdbc6d7e7998cff2b08dab52b11241210045baa01bf31413d3113d8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:77-92 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:104-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:77\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":"OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"76000c627d2d4813ab161669deca885397db485dcf69edb6c8843d7d2cb05853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1094-1108 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1126-1139 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1162-1175 \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 \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1094\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, \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1161\u0060 calls \u0060scheduleMirror\u0060 and \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1125\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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"9524bdbb703347297135a6421e4e18d29c95925e819e85f1a85c57df18030901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2829-2843 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2870-2884 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3361-3375 \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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2829\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, \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2827\u0060 calls \u0060font\u0060, \u0060system\u0060, \u0060foregroundStyle\u0060 and \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3360\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":2829}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f22403b48c0dcee8dbdbe3f243cec4f9745d14a80b3d57ed8f59fabd8de5870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:389-403 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:223-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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:389\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"659166f0a27ae47ef49b72e9d8ca45e099ae24ca67cfb02eae3524d97c74c959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:562-576 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:332-346 \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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:562\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b566f4e86c8e0b620f8aeb776d1b84cbae6d44020d21333c1716605ccdc738ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:94-105 | OpenOats/Sources/OpenOats/Transcription/CohereTranscribeArabicBackend.swift:45-56 | OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:64-77 \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 \u0060OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:94\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":"OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47cfe88e316560a39b49fcbd816b6f9f1f780d8e739d2a3a1bd380907382055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:127-140 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:150-163 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:207-220 \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 \u0060OpenOats/Sources/OpenOats/Wizard/IntentStepView.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:125\u0060 calls \u0060contentShape\u0060, \u0060Rectangle\u0060 and \u0060OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:205\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":"OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"032e9c3413c7f0e71be826ba75ab9974d3feafeab230f4a600e7ebee49723414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:941-953 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:996-1009 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:996\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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c71a2e63641987c6335d96799532ddfe50acbc565b0704d21e5622905b569b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:521-532 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:758-769 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:994-1006 | OpenOats/Sources/OpenOats/Views/NotesView.swift:536-547 \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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac344765b08f77cc956c2f71db492453e9e666edf58f0da951d1e1debbcc8c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:18-30 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:52-64 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"239c0b7da8b9723e78525822af516d00a4942cacf6cf66b3c01ec815fb37300c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:225-237 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:330-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:225\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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d433d7ae056c892a26e40f9db1ed3b15d1724e4942954e5678b7b89404e60703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:236-248 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:425-437 \u2014 both copies are in the same file, so extract the block 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:250\u0060 calls \u0060StreamOutcome\u0060 and \u0060OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:439\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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0620bb8229fd7a58eb10d3a9d8f4b00b05d292c257a09501abd3fdb111e9160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2612-2624 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3284-3296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:2612\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":2612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c81152c0da393ef1819af5e89af37909daadfef674e73d3402b3c075d47ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/SettingsView.swift:785-797 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:410-422 \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 \u0060OpenOats/Sources/OpenOats/Views/SettingsView.swift:785\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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dd85e9b175297e789eec6171970a6cad6b51d56800569f5af66436912cdfec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:64-75 | OpenOats/Sources/OpenOats/Domain/MeetingTypes.swift:73-84 | OpenOats/Sources/OpenOats/Models/Models.swift:292-303 | OpenOats/Sources/OpenOats/Models/SidecastModels.swift:30-41 | OpenOats/Sources/OpenOats/Transcription/StreamingTranscriber.swift:74-85 \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 \u0060OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift:64\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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"98eca1f42c4c068ce6d308f02a13d00edc2e848bc55f0623a9588d890a549ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:29-40 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:56-67 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:83-94 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:110-121 \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 \u0060OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:29\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":"OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9529920b225b0507fd9934a6fc5040e0ceba797ccd5f757d2f0373bc06f1e50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:444-456 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:1008-1019 \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 \u0060OpenOats/Sources/OpenOats/Audio/AudioRecorder.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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"593f8a9f111f9c036eeb10948ee29ca787d825b734eb48ac0ca55f324eb8596a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:491-502 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:1048-1059 \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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da52cc95edd6e7d0d792c597560530b205695dd4247c90afdfe1bc12b76ed15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:17-27 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:44-54 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:71-81 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:98-108 | OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift:125-135 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Wizard/APIKeyValidator.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca631a46f75f08c2564a73162438a5deca7857a8b9851dc90fee682a07ba415a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:940-950 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1060-1070 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1086-1096 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1105-1115 \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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:940\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, \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:952\u0060 calls \u0060menuStyle\u0060, \u0060buttonStyle\u0060 and \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1097\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dc8b2f694e21b21a6ab7a6ff613ad46803b520e04bca667e5caf1306dcc303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:939-949 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:994-1004 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1169-1179 \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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"53983d898ad2575f68a934a5fc03c82fd797d1bbe23d04455f3fb2a7604e7cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/App/NotesController.swift:319-329 | OpenOats/Sources/OpenOats/App/NotesController.swift:472-482 \u2014 both copies are in the same file, so extract the block 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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7870f3a86aa7ecf3ea9209b95a0b6477a53cf9bd3408607f3c762db5fe7fd78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:331-341 | OpenOats/Sources/OpenOats/Views/NotesView.swift:880-890 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd936fe9f8138e3f31d4734526cea9fdb989ddf78a62ec5b47161d1a907cd1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:638-648 | OpenOats/Sources/OpenOats/Views/NotesView.swift:576-586 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9748e3848fc1ddc8c4a95bc15663f78f84aa84587beeef335d937407dbdaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:774-784 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:718-728 \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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:774\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4e624fd86cf8588d6c231a06ef03ac19eefcf22aa52c1671880a3f9cdd0b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1926-1936 | OpenOats/Sources/OpenOats/Views/NotesView.swift:822-832 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69b1bdd1e21ddd33a49692f5963e4530b7f62b472760b1a458f86d88c3326fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:194-204 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:349-359 \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 \u0060OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:194\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 \u00608\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":"OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce90b8aeba91e2fdc8fa7abd47b504767c11f9c1cf3b5f9f42273b623c3a094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:938-947 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:993-1002 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1132-1141 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1168-1177 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d2262133229c69bafcb4fac8f86a039497bacae77c4a91c5ece1375fbf161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:937-946 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1100-1109 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1131-1140 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1167-1176 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfd5fffbab804c9256eb3498cfb22fe426f3214620cebab5cdf59f51c4a3195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:84-93 | OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:74-83 | OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:107-116 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:51-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift:84\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, \u0060OpenOats/Sources/OpenOats/Wizard/IntentStepView.swift:84\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060OpenOats/Sources/OpenOats/Wizard/LanguagePrivacyStepView.swift:117\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":"OpenOats/Sources/OpenOats/Wizard/ConfirmationStepView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3250e4e1b9e64990de2b1985561e9dbf8fb2cd742c0f220bf60bd1b223e088c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:606-615 | OpenOats/Sources/OpenOats/App/NotesController.swift:1277-1285 \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16b6f61c46289075daa72c5b4febe3953b96f354636f0bdb7e93f577ef9f406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): OpenOats/Sources/OpenOats/App/NotesController.swift:963-971 | OpenOats/Sources/OpenOats/App/NotesController.swift:1015-1024 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/App/NotesController.swift:963\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":"OpenOats/Sources/OpenOats/App/NotesController.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"24eca9f3e2c71eee155ce6edf3205ca32fc8d3c0c26d58de988e4785852efac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): OpenOats/Sources/OpenOats/Settings/SettingsStorage.swift:85-94 | OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:2113-2121 \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 \u0060OpenOats/Sources/OpenOats/Settings/SettingsStorage.swift:85\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":"OpenOats/Sources/OpenOats/Settings/SettingsStorage.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9d0851b3ec7655c4bd866d64f41ddc017601eb09f8a74c414595b3c18eaabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3609-3618 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3872-3881 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3609\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce68c77356b1c6af3c65cb939e5ff145cd1ad2512d5d2bbc8ce710e52ab0719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:79-88 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:250-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:79\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 \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":"OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d9c036ba0e0b0d91c048e2fba68e7a8ed7c3d38e9534c4ead93ceeadee035b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:118-126 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:154-162 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:184-192 | OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:214-222 \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 \u0060OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Wizard/ProviderSetupStepView.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b87f6cdbd3a2a247dc9cffe98d4cb985ace50fc0b5d36f32c86c806828c418f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:126-134 | OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:137-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4cbd6a77eedbe0eb90892e43781767156cc19ba0095b62817da08ecf35d9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:341-349 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:498-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b9e0e5e5bb4d3de40019528a2697737859051da243e6422d5a898dc7ca1611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/CalendarSettingsView.swift:112-119 | OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:127-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":"OpenOats/Sources/OpenOats/Views/CalendarSettingsView.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17932e6f86c1a9b14c5840bfc68b5265662498da4cb0355681ecd59319ed54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/SidecastPanelContent.swift:207-215 | OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:416-424 \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 \u0060OpenOats/Sources/OpenOats/Views/SidecastPanelContent.swift:207\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":"OpenOats/Sources/OpenOats/Views/SidecastPanelContent.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e82b83b2013ef8cc616e9452e790e112cbdee51a8a00e72a92ed8b444543d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 3): OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:96-104 | OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:106-114 | OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:115-119 \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 \u0060OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:96\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, \u0060OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:96\u0060 calls \u0060textFieldStyle\u0060 and \u0060OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift:115\u0060 does not \u2014 after which the two agree again for 5 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":"OpenOats/Sources/OpenOats/Views/SidecastSettingsTab.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb8203e29e49ffe9d807449b690671ac6e27cf85eec5f98ec5f46bdf7db751a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): OpenOats/Sources/OpenOats/Storage/LegacySessionReader.swift:216-223 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:1915-1922 \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":"OpenOats/Sources/OpenOats/Storage/LegacySessionReader.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"847d939b83f1d9a590c6098bae784b995174a72d85bb12e96008c16d48e105fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:337-344 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:395-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:337\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, \u0060OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:394\u0060 calls \u0060setIsImporting\u0060 and \u0060OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:336\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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d7f48179bc4de0d7d6b6aa3dd5990835a76a2f17f322e6694f20179d31742e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): OpenOats/Sources/OpenOats/Transcription/CohereTranscribeArabicBackend.swift:172-179 | OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:301-308 \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 \u0060OpenOats/Sources/OpenOats/Transcription/CohereTranscribeArabicBackend.swift:172\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":"OpenOats/Sources/OpenOats/Transcription/CohereTranscribeArabicBackend.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6eb36571bec22a30e31cedd4f869e629b70b168a4fdb84fbc134580b9072809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:846-853 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:501-508 \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":"OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"27adbc93402f946746c2c95d9bf2b7fe707972e66495c7323430113952f0f674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:639-645 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:411-417 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:385-391 | OpenOats/Sources/OpenOats/Views/NotesView.swift:577-583 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9a40e068315a37f9762a459df25ebcb0656f5bcecfe67c4225670a902abc13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:420-426 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:493-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 \u0060OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:420\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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a60626f86d217f8b1ca2220282d8ac687d600694f95604a7150ed0ccb49dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:677-683 | OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:703-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:677\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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"0300c85a95f60f83417ebb30dace3248e8d46d8878da119d48abe3aa72f543cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3783-3789 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3790-3796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3783\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3783}}}],"partialFingerprints":{"codehealthFindingId/v1":"267591252e81909171ec9b37802463138cd61849d97cdf99280381c20dadfae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:435-440 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:998-1004 \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 \u0060OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:435\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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"316d2797ff76bbfc008c4763d809ac4a02894c88bb4d4182d7553a3e1d657918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:2048-2053 | OpenOats/Sources/OpenOats/Settings/SettingsStore.swift:2054-2059 \u2014 both copies are in the same file, so extract the block 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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fc79fea1172ae969d7a3be43d78a8598d3081d044470536fd5e4f2fcd66c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:532-537 | OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:566-571 \u2014 both copies are in the same file, so extract the block 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 \u0060config\u0060 to \u0060ImportedSessionConfig\u0060 in one and \u0060ManualTranscriptSessionConfig\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, \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:540\u0060 calls \u0060appendingPathComponent\u0060, \u0060createDirectory\u0060 and \u0060OpenOats/Sources/OpenOats/Storage/SessionRepository.swift:573\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":"OpenOats/Sources/OpenOats/Storage/SessionRepository.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"436fc5f03a7d917c9706e9a2261232354457bbcbaecc99093845ae85850e0885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:232-237 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:337-342 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:422-426 | OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:495-499 \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 \u0060OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift:232\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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"572335035cb522b04e799199db698749a96f6bb2ea33df6feca39633ee723b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:110-114 | OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:82-86 | OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:148-152 \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 \u0060OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060OpenOats/Sources/OpenOats/Transcription/ElevenLabsScribeBackend.swift:153\u0060 calls \u0060String\u0060, \u0060Data\u0060, \u0060prefix\u0060 and \u0060OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift:115\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":"OpenOats/Sources/OpenOats/Transcription/AssemblyAIBackend.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fd940781e34c2710bd809d05bc2d9d9382f1c57c57b535ec30d2ea6c30e4de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3783-3787 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3790-3794 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3797-3801 \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 \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:3783\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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":3783}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d0735b4505c74fe6be979e3d970807ce93c31b844400d0c0ff271ebee7ac5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift:484-488 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:1041-1045 \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":"OpenOats/Sources/OpenOats/Audio/AudioRecorder.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3c136a635c7fb87d6493e92bde0f1cc66979d2fddf3b1f71bb3f03516ce3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:601-605 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:372-376 \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 \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:601\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef57906abbab2ea58a298b4ef508d5ded7b83a1a998e5740b40fb7c1d770d6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:631-637 | OpenOats/Sources/OpenOats/App/NotesController.swift:1297-1303 \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c88942185b2122c0396c300826aba29cf2faec80f0bc46009f3cc31c9e74e89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): OpenOats/Sources/OpenOats/Views/CalendarSettingsView.swift:443-452 | OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:456-465 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:291-300 \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":"OpenOats/Sources/OpenOats/Views/CalendarSettingsView.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fec807993f283fb150a4561614ced1ac89d1a3bf27698b46af4ef20bc9aabf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:425-436 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:267-278 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"800b9bf331f263a499e86c09efc34ac446228befa114e6ebef7e808e7b26113e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:438-449 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:280-289 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cdb12a1ed646069805cef62982dd55843525d8af739c05a90d28d0ec45ced8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:554-558 | OpenOats/Sources/OpenOats/Views/NotesView.swift:569-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d34a47b07153de2e97aee10ec64429a7d2315f237b1899c0c5aa8970a8661c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:657-662 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:503-508 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:855-860 | OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:408-413 | OpenOats/Sources/OpenOats/Views/NotesView.swift:703-708 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:510\u0060 calls \u0060folderDisplayName\u0060, \u0060folderDefinition\u0060 and \u0060OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:664\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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"babf05567b3de545c5c0135bfa5b8f7e6cf1d6c44929973f55dee8e8edb63652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift:863-869 | OpenOats/Sources/OpenOats/Views/IdleHomeDashboardView.swift:831-837 \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":"OpenOats/Sources/OpenOats/Views/HomeTimelineWorkspaceView.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e89bfe4fcc9a562042e90de7256f1420d22f3f0d63b57f8ad39171e92abd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift:1896-1900 | OpenOats/Sources/OpenOats/Views/NotesView.swift:411-415 \u2014 before extracting anything, compare \u0060OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift\u0060 and \u0060OpenOats/Sources/OpenOats/Views/NotesView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 246 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":"OpenOats/Sources/OpenOats/Views/MeetingDetailPane.swift"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"be55691fac4640f116f0f5b2480c3a38e0d2c35dfdcb64f583872632d4027a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): OpenOats/Sources/OpenOats/App/LiveSessionController.swift:599-604 | OpenOats/Sources/OpenOats/App/NotesController.swift:1264-1269 \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6634c481d9b3489ca0887a812fcaed3d5fb8a0b08785476a87b27a158ad028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift:376-382 | OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift:711-717 \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":"OpenOats/Sources/OpenOats/Intelligence/SidecastEngine.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d995d3da01bcd2fe00fafd1688fb48ca6a04b1baa936e0118b9b9dc76229856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:332-336 | OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:389-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 \u0060OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift:332\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":"OpenOats/Sources/OpenOats/Transcription/BatchAudioTranscriber.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8eb3a99523e1a8f675fcdfdd81a2f4ed7ef99904a5d6864bee422cb4ac4c54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Views/ContentView.swift:562-566 | OpenOats/Sources/OpenOats/Views/TranscriptWindowView.swift:43-47 \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 \u0060OpenOats/Sources/OpenOats/Views/ContentView.swift:562\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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d820ee0bc62c62ee341df83557634eae5461d2b7ada6dc5fcc68ac8425c5637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): OpenOats/Sources/OpenOats/Wizard/OllamaSetupClient.swift:29-33 | OpenOats/Sources/OpenOats/Wizard/SetupSnapshot.swift:98-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. 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":"OpenOats/Sources/OpenOats/Wizard/OllamaSetupClient.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"164850e18edc2385c937903e441b0c1ff10bc1ef8cce5076ef382bf9cf958a73"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: OpenOatsKit: OpenOatsKit: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dab3c5337d9cd37ca227743fd25afc06b357bed58d3ba0202bc10f63a1985ecc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppCoordinator (LCOM4 6): AppCoordinator\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":"OpenOats/Sources/OpenOats/App/AppCoordinator.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11fe420d7aa94b860700c4909fdf17875be6dbc55bc1255fe1cf22bd99eb2d4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsStore (LCOM4 5): SettingsStore\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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"97332f7e14944249ed655cb248ff7ddb9ff6af36a4af68ce89c6a2547aa377cb"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 Swift suite: Coverage NOT MEASURED: the Swift half could not be measured \u2014 the Swift suite in OpenOats produced no coverage export. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan. Alternatively, commit the lcov/Cobertura report your CI produces and it is read without a re-run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testQwen3DisplayName: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Tests/OpenOatsTests/TranscriptionBackendTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f76abb0b481a851d3a574d6375714e314efe68e50c52de5ddada1e8624fd59"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testQwen3CheckStatusReturnsNeedsDownloadOrReady: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Tests/OpenOatsTests/TranscriptionBackendTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2416dedc79dd1ad9ef80e9bcfcbdae1b0938af5a59253664ec0b6829240248"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testQwen3TranscribeWithoutPrepareThrows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Tests/OpenOatsTests/TranscriptionBackendTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0541e60d0aa83a19199464a5d3d10e4e69bab327c15b4799d9f1439567f6a0e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStreamUsesUnboundedBuffering: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"OpenOats/Tests/OpenOatsTests/MeetingDetectionControllerTests.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8673bc9faabab95e2758d0a3eebc493c2928422b1e67f73a91fdc78212bb026"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTypealiasCompiles: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"OpenOats/Tests/OpenOatsTests/SettingsStoreTests.swift"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"7954de800767277db647848e9e471e41d12bc1b5dd22301544d87c3ae75fda64"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStorageTypealiasCompiles: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"OpenOats/Tests/OpenOatsTests/SettingsStoreTests.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3823929fbac0423877e1fc56457053507b480f051e66af09bf092334999da623"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Settings/SettingsStore.swift: OpenOats/Sources/OpenOats/Settings/SettingsStore.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in SettingsStore.init at line 1444. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Settings/SettingsStore.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":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad362fb25c9e0c0aa8db2adfe9985567b503374effd6a1a79dc9b428a65df52e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Views/SettingsView.swift: OpenOats/Sources/OpenOats/Views/SettingsView.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in TranscriptionSettingsTab.body at line 459. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Views/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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7a5553f946abc8a72fcbd0efdee442959b3bedf2b41d75d232277de0eb465f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Views/ContentView.swift: OpenOats/Sources/OpenOats/Views/ContentView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ContentView.contentWithLifecycle at line 283. 2 of those changes were fix/bug commits, and the other 3 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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Views/ContentView.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":"OpenOats/Sources/OpenOats/Views/ContentView.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e286d6181feae36bfde0d0f0062b15f0303b195abee2015a90f0288c65ce5776"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift: OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in NotesEngine.generate at line 76. 1 of those changes was a fix/bug commit, and the other 2 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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Intelligence/NotesEngine.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":"OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc455fee2549775fbd3900802d286c0505fbfd499abc74f3f31a81c88717363"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift: OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in OpenRouterClient.streamCompletion at line 182. 2 of those changes were fix/bug commits, and the other 2 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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.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":"OpenOats/Sources/OpenOats/Intelligence/OpenRouterClient.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a43d97b449180ac7660761d95642773a671b4ce3841274481a9dff304ae3ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift: OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in SystemAudioCapture.bufferStream at line 194. 1 of those changes was a fix/bug commit, and the other 2 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-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.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":"OpenOats/Sources/OpenOats/Audio/SystemAudioCapture.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f453c5d8b5f6e0e39d61cf21d51a2ac82b707194fcf5d3b92c3a2a693ae1fc8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: OpenOats/Sources/OpenOats/Audio/MicCapture.swift: OpenOats/Sources/OpenOats/Audio/MicCapture.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in MicCapture.bufferStream at line 54. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-26..2026-09-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-26 10:44:44 \u002B03:00\u0027 --until=\u00272026-09-24 10:44:44 \u002B03:00\u0027 --full-history --no-merges -- OpenOats/Sources/OpenOats/Audio/MicCapture.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":"OpenOats/Sources/OpenOats/Audio/MicCapture.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab540fc035913f514d8ae2bc00617b5da0b96697052bb0ac8ad38ce4ebb0474"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: tools/sidecast-debug/src/ui.ts, OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift, OpenOats/Sources/Benchmark/main.swift, OpenOats/Sources/OpenOats/Meeting/CameraActivityMonitor.swift, tools/sidecast-debug/src/main.ts, OpenOats/Sources/OpenOats/App/WhatsNewController.swift, OpenOats/Sources/OpenOats/Views/MiniBarContent.swift, OpenOats/Sources/OpenOats/Intelligence/RealtimeGate.swift (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ac20403cdf063456a4e8428bfb736148040ba6e0b0c333bf2354b9d18473a5bf"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 5 significant file(s) lose their only recent owner: OpenOats/Sources/OpenOats/Transcription/OpenOatsLocalModelStore.swift, OpenOats/Sources/OpenOats/Views/NoteAssetMarkdownParser.swift, OpenOats/Sources/OpenOats/Transcription/CloudTranscriptCopy.swift, OpenOats/Sources/OpenOats/Views/OpenOatsProminentButtonStyle.swift, OpenOats/Sources/OpenOats/Views/CalendarEventViews.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"337156d05e425edb386ef2a23f06c4305202cb8b9e791ae20ba2931d477f791e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (17 single-owned of 105 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 105 of the 132 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Coalesce repeated startup/settings-triggered reindex requests into a \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":"OpenOats/Sources/OpenOats/App/LiveSessionController.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"677ef654c80f1b4a917cc9c2d5d07ac671c6bcb4efeed3201d64d99981d3a089"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"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":"9117b7c60572d30cba74f7eb99adb0fc3f8ad6aff562c2280899be01a8166c4d"},"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"}}]},{"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":"b45a216615e6434ee59ad91cf770f317d18823628db1094662ba7b2d0e89aaff"},"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"}}]},{"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":"7a289d99ce291a6490cdc276eaa8a9be5cb7a47fc707b09cb6bbc97966059c56"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5faeff568f047a00c562ab0a92f6920c293c1a28bea43da4a4bf353b2029bb85"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6b79bbf1f4b7d79ef0952a7c8aaf984b1bb6b305723585ce9c6c638b43ec082f"},"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"}}]},{"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":"73cf34b8c639fc307fe0abe8e08b76b71901ba8b06cd8faea04967b603d4cd0c"},"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"}}]},{"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":"3135b8be878b99df5513df0f5d3ca0ea6611e7a18eb335f172ad011bf146afc1"},"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"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e1f59f01f446c4dcb17d4e178f566ff05cd31aab1b576d571b2195f62da6cd1b"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"56926f301bfdac6a2eeaa4d4727128d1dbba6ee799ab5d637897da99b38bb3cf"},"properties":{"dependency":{"package":"shell-quote","version":"1.8.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2434fa24fa790fcc488821fead54ecefad8db3f983a3f8eff3053ab8c20bfe95"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1bcd171ae5fac142151ea723ed9bc05a6757c461442677a3bdbe2a70dc17b8c"},"properties":{"dependency":{"package":"postcss","version":"8.5.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5660bc41fa45579c1fcc734365a765dcbb7f39621306ca8dde6cb2c8d4c7b182"},"properties":{"dependency":{"package":"vite","version":"6.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"tools/sidecast-debug/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":"291557b40a5aea4ee5fefddd6199ff412fe130bada631d2987afe16be77e27bb"},"properties":{"dependency":{"package":"qs","version":"6.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b586d1cc6d5c82144905fd712ece75d62094ca65791ca1a9cb97ff614358f8e"},"properties":{"dependency":{"package":"body-parser","version":"1.20.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b10276baea557a442827c9c5caf26efd064044e967c934746658642f15feec0e"},"properties":{"dependency":{"package":"esbuild","version":"0.27.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 8 of 105 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 and example/demo trees and test files identified by path convention, largest first; 105 of the 132 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: OpenOats/Sources/OpenOats/Views/CalendarSettingsView.swift, OpenOats/Sources/OpenOats/Meeting/AppleNotesService.swift, OpenOats/Sources/OpenOats/Utils/DiagnosticsSupport.swift, OpenOats/Sources/OpenOats/Wizard/OllamaSetupClient.swift, OpenOats/Sources/OpenOats/Views/RecordingConsentView.swift, OpenOats/Sources/OpenOats/Wizard/SetupWizardView.swift, OpenOats/Sources/OpenOats/Wizard/WizardTypes.swift, OpenOats/Sources/OpenOats/Transcription/WAVEncoder.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":"D35","level":"warning","message":{"text":"Change-coupling hub: SettingsStore.swift \u2192 MeetingDetectionController.swift, KnowledgeBase.swift, NotesEngine.swift, SuggestionEngine.swift, NotificationService.swift, SettingsView.swift: \u0060OpenOats/Sources/OpenOats/Settings/SettingsStore.swift\u0060 changes together with 6 other files \u2014 \u0060OpenOats/Sources/OpenOats/App/MeetingDetectionController.swift\u0060, \u0060OpenOats/Sources/OpenOats/Intelligence/KnowledgeBase.swift\u0060, \u0060OpenOats/Sources/OpenOats/Intelligence/NotesEngine.swift\u0060, \u0060OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift\u0060, \u0060OpenOats/Sources/OpenOats/Meeting/NotificationService.swift\u0060, \u0060OpenOats/Sources/OpenOats/Views/SettingsView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 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 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OpenOats/Sources/OpenOats/Settings/SettingsStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4935d27e728e92a54a5e837c985d78a22a2b3595b92af5aebfa80f9749c73cd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: SettingsView.swift \u2192 MeetingDetectionController.swift, SuggestionEngine.swift, NotificationService.swift: \u0060OpenOats/Sources/OpenOats/Views/SettingsView.swift\u0060 changes together with 3 other files \u2014 \u0060OpenOats/Sources/OpenOats/App/MeetingDetectionController.swift\u0060, \u0060OpenOats/Sources/OpenOats/Intelligence/SuggestionEngine.swift\u0060, \u0060OpenOats/Sources/OpenOats/Meeting/NotificationService.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":"OpenOats/Sources/OpenOats/Views/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbce46d23d64d8c40946219a2e8421c1365d6d4d934ba10db920f9a1d951e099"}},{"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"}},{"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"}},{"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"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/index.html"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dafab715d8eef2ec34f179e903f21735ee22da7bac214189f5b09db2c0eeda2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcaad069f959dd3cc091f87f874344ed89bf689b0949d1e5c76be71472a38bf2"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (an a11y linter that can read your UI \u2014 no component framework was detected, so the JSX/Vue ESLint plugins would have nothing to lint; use an HTML-template a11y linter (html-eslint, htmlhint) or run axe/pa11y over the rendered pages) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 3 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 12695 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): tools/sidecast-debug/src/ui.ts:705 \u00B7 tools/sidecast-debug/src/ui.ts:721 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac90d8f524def430b1851a76a19a77e1c4447f990c08f2a79dd4be367106a58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): tools/sidecast-debug/src/ui.ts:254 \u00B7 tools/sidecast-debug/src/ui.ts:263 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4199d5cfe1d98554ab7caf567e41b4ca260c77ad15a0675d2e0bbfafe8cc48d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): tools/sidecast-debug/src/ui.ts:282 \u00B7 tools/sidecast-debug/src/ui.ts: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bb3a7d674ab787e86067fbd9e16bf6dd494b66e97a71489ee2ba55e2412ca4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): tools/sidecast-debug/src/ui.ts:486 \u00B7 tools/sidecast-debug/src/ui.ts:502 \u2014 both copies are in the same file, so extract the block 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":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b55184857e537e9ffe0ee8657016bd12fb3f51ece1ea18ae1e4a38989e150d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: tools/sidecast-debug/server/transcript-proxy.ts:3 imports youtube-transcript/dist/youtube-transcript.esm.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/server/transcript-proxy.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"289e693cdedb75c46a229053f1e20950e97d4129617940b7922cf32adecd4b01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function callLLM (cyclomatic 20, cognitive 26): callLLM has cyclomatic complexity 20 and cognitive complexity 26; 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":"tools/sidecast-debug/src/sidecast.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53e571631ba5020bed6ae1d5a3dc59be107d759ef7e4c22bf3fe71187d1e291"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function filterAndRank (cyclomatic 15, cognitive 23): filterAndRank has cyclomatic complexity 15 and cognitive complexity 23; 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":"tools/sidecast-debug/src/sidecast.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c642fdaaeb3fa485db4260af785bf5add9dbc526f05f2efb0cf67c1cc22e89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDebugLog (cyclomatic 13, cognitive 25): renderDebugLog has cyclomatic complexity 13 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/src/ui.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"4801b6c397b32bcdb907765eeab4e3f3fdfb21454f3b78850353cefddbcda582"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 1 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: tools/sidecast-debug/src/ui.ts (656)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getSummary\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/sidecast-debug/src/transcript.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9d0c8be5eee0a7862c44d65d0c2dbe20517cba231bc9ad1c78e9bae18f936"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.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-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":"CWE-353","shortDescription":{"text":"CWE-353"},"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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":20,"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."]}]}