{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"AXO1","name":"Runtime API surface","shortDescription":{"text":"Runtime API surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXO1"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.finishTextOutput (cyclomatic 99): RecognitionSession.finishTextOutput has cyclomatic complexity 99 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9086f5926d92b39f717e15c3bd520bad320518142ab3a75ec83894a97c35580e"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.startRecording (cyclomatic 68): RecognitionSession.startRecording has cyclomatic complexity 68 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f81d77ed263c5105fcbf53f8a18e6f24888e9ce9e1b56b15249b8b8d1e6a627"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.stopRecording (cyclomatic 64): RecognitionSession.stopRecording has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2f9de47780cf1747dd9cce5dc681ef5348b48e3ee93811ab407acc5fc7b17f"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.registerHotkeys (cyclomatic 61): AppDelegate.registerHotkeys has cyclomatic complexity 61 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82918be4c70215a4ebfb73eb02eae686a601281cd8ce6e09dcb145e6ab31eec"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyManager.handleEvent (cyclomatic 59): HotkeyManager.handleEvent has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab8043582b7836782c0d726839d09907df62339948aae7e236a8918c0db0eaa"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cyclomatic 57): AppDelegate.applicationDidFinishLaunching has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"80423545bb09b094cd07b5cfd2f1eb36e2f708dd40441b0ed51d67f9c66ee74c"}},{"ruleId":"D1","level":"warning","message":{"text":"CorrectionDiffAnalyzer.analyze (cyclomatic 57): CorrectionDiffAnalyzer.analyze has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5b43dd4f5ba3603180defeca7eb418d92af67782927e17200e0563f3bdf557"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyManager.evaluateModifierBindings (cyclomatic 53): HotkeyManager.evaluateModifierBindings has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8620f9ea1d3b4365c303b570a75c25ba4743f0dadd90204358a1a7376de9e4ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseOutputValidator.validate (cyclomatic 50): ReviseOutputValidator.validate has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseOutputValidator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"412bf30bc4c8063ac9bf7011f175bb3a14976e94c7d783ee4fad3c2216a7f751"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyRecorderView.singleKeyName (cyclomatic 44): HotkeyRecorderView.singleKeyName has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"251fcdb41f997926aa91bab406e7f3aa2d2a86011be5d3bac1a22602247d3678"}},{"ruleId":"D1","level":"warning","message":{"text":"TrackedTextReplacementEngine.replace (cyclomatic 40): TrackedTextReplacementEngine.replace has cyclomatic complexity 40 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TrackedTextReplacementEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad92b514dc8fa9a563f816081a622015745a0670d57e80435d522b66c47cd6b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ModeStorage.load (cyclomatic 39): ModeStorage.load has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModeStorage.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc969752676ec9760dca332e279abb48a9e3e83c85f82a8e68611203d124e354"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseInstructionAnalyzer.analyze (cyclomatic 39): ReviseInstructionAnalyzer.analyze has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseInstructionAnalyzer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5cadd2a45c20c6395d857e03881bff0c59d6672847ebe6936ef5325db76996"}},{"ruleId":"D1","level":"warning","message":{"text":"LiquidGlassCancelButton.body (cyclomatic 37): LiquidGlassCancelButton.body has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62fb8482a676fec9b208b1be850f689dfc6783e6907f065882f0acb8f2af5a1"}},{"ruleId":"D1","level":"warning","message":{"text":"DoubaoChatClient.streamChat (cyclomatic 35): DoubaoChatClient.streamChat has cyclomatic complexity 35 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/DoubaoChatClient.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95d782ac42289bedb5551ee9be2c508a405cc5157cf552321f254acc1063f8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseScopeResolver.resolve (cyclomatic 34): ReviseScopeResolver.resolve has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85df1b515cb363ce83918eef2f298676d01b68d1992cc09242bf7765d9a0a51"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardModel.stateDidChange (cyclomatic 33): KeyboardModel.stateDidChange has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a193b8a9725b855a792f26e9cf1ba4f1c378483154bbbddc5319ffba396e4b"}},{"ruleId":"D1","level":"warning","message":{"text":"CorrectionAffinityAnalyzer.evaluate (cyclomatic 32): CorrectionAffinityAnalyzer.evaluate 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":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2904d26d8b8d6340f65726ec48836291160f964a37f3a5a7006b387440849307"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.completeRevise (cyclomatic 31): RecognitionSession.completeRevise 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":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e225dabddb27f0f153b612fc1d045c6161445177285d339ef7857fca408c83"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseProtectedFactAnalyzer.validateFacts (cyclomatic 31): ReviseProtectedFactAnalyzer.validateFacts has cyclomatic complexity 31 (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":"Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a094a5b2cd78dd734f949dcbac23e6bc228293f06552daa41f8f6aeb1306c9"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyRecordingSheet.body (cyclomatic 30): HotkeyRecordingSheet.body has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee27771f69895db0f162470a5ca2980c61a1f150be08ee5da6bc7690bfae3ec"}},{"ruleId":"D1","level":"warning","message":{"text":"MicButton.body (cyclomatic 29): MicButton.body has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a379aeca01ebecafefa9b693a6c8e7a312065aac98d085071359ba2fedc663"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeChatClient.processStreaming (cyclomatic 27): ClaudeChatClient.processStreaming has cyclomatic complexity 27 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e944afc6b88fe706418caf171c863168fbe386b1c87c29478efa93c3e2a671f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ImmediateCorrectionAnalyzer.analyze (cyclomatic 27): ImmediateCorrectionAnalyzer.analyze has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c950c4a27e25428be3411b1212f9a08dce7185ffb73496ab2ef05f143618ac2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseCoordinator.prepareForRecording (cyclomatic 27): ReviseCoordinator.prepareForRecording has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ReviseCoordinator.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4409ec3cc562826b8f52ced3adddc0c639a4c4efa352a12be6927b5049143b"}},{"ruleId":"D1","level":"warning","message":{"text":"VocabularyURLCommandParser.parse (cyclomatic 27): VocabularyURLCommandParser.parse has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VocabularyCommands.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"db32b6cd18af5a8b0516b9ca69a1a38c47c6adf6cde5aa92f471f503a5a9f977"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.handleASREvent (cyclomatic 27): RecognitionSession.handleASREvent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cdda19b75ce5a8c1bb253f6953459268908a323f7431a9404335839264dc99"}},{"ruleId":"D1","level":"warning","message":{"text":"ModeBinding.isModifierPressed (cyclomatic 26): ModeBinding.isModifierPressed has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11557c5dd50ef362328394c625d3e5e6d50729ca58319d677d50add6a5253ea"}},{"ruleId":"D1","level":"warning","message":{"text":"InjectedTextLocator.locate (cyclomatic 26): InjectedTextLocator.locate has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/InjectedTextResolver.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"637217ead2ea2a0961c434fff62f24bfcd2236e89dbfd6bdc61792815c009a94"}},{"ruleId":"D1","level":"warning","message":{"text":"ModeEditorView.body (cyclomatic 26): ModeEditorView.body has cyclomatic complexity 26 (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":"iOS/App/UI/ModeSettingsView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"20dbabf88a2efce381e9e102423a87f02efcb0aae554ec5a2f2685cd887a48e0"}},{"ruleId":"D1","level":"warning","message":{"text":"IntelliSenseOutputValidator.evaluate (cyclomatic 25): IntelliSenseOutputValidator.evaluate 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":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccd82d2fbe99319786a7ba7f6aa2fe279bf9bc14808e7631eed7ebf66924ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"KeychainService.migrateStepFunBatchProvider (cyclomatic 24): KeychainService.migrateStepFunBatchProvider has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"32598647f702a7aabd4582b682249391163afe6c3e8353e870d8c2042765e809"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMProviderDetailView.credentialFieldRow (cyclomatic 24): LLMProviderDetailView.credentialFieldRow has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3b071096b073928f8b4021fecd1fb6ac3859fbe08ef2fd003237c91e66c6ed"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiASRError.errorDescription (cyclomatic 23): GeminiASRError.errorDescription has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiASRClient.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5da67493f1761cc98b43bb23be60571e11f56f46e351da338b9396cdc1995f1"}},{"ruleId":"D1","level":"warning","message":{"text":"MetaMuseASRError.errorDescription (cyclomatic 23): MetaMuseASRError.errorDescription has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MetaMuseASRProtocol.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"67699ba05ddb9bca362cd7a2ba2034d59f27023282d93f846d79a3022fd464ba"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryTab.transcriptsContentView (cyclomatic 23): HistoryTab.transcriptsContentView has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"3964b1dddb626e273bfb1eabb1b12d1067660f1a767fb6ae173ff6f2ae4b365b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseAuthorizationResolver.resolve (cyclomatic 23): ReviseAuthorizationResolver.resolve 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":"Sources/Type4MeReviseCore/ReviseAuthorizationResolver.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4a904459180fefde25d6a4a6b61c782b7c2885807a421285e46403a04f0cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"TencentRecTaskTranscriber.transcribe (cyclomatic 22): TencentRecTaskTranscriber.transcribe has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ff864b57fb6f8168515269c3ebc8f69c370a363b57299ced2c6da306363e9c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseCoordinator.commit (cyclomatic 22): ReviseCoordinator.commit 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":"Sources/Type4Me/Services/ReviseCoordinator.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"90caf339e9ccb7008e0fa54df9640320b93c60930ceccbd00f0dc61563aa2261"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcReplaySweep.runVariant (cyclomatic 22): VolcReplaySweep.runVariant has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"135bc9412a56d578f9da4b77f2fb4bf010fda9134d3afed713f8f600e079e263"}},{"ruleId":"D1","level":"warning","message":{"text":"IntelliSensePromptBuilder.sceneInstructions (cyclomatic 22): IntelliSensePromptBuilder.sceneInstructions 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":"Sources/Type4MeIntelliSenseCore/IntelliSensePrompt.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e986fb8784ea1ee39d91b7096bd0ac8bf7dec581035d5ccd695297c0acdbc2"}},{"ruleId":"D1","level":"warning","message":{"text":"TechnicalTokenBoundaryResolver.tokenRange (cyclomatic 21): TechnicalTokenBoundaryResolver.tokenRange has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/TechnicalTokenBoundaryResolver.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5beee3e651344b820ba6bea411c5674cd91eec0df7e31003991926b8d3ba3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ASRProviderDetailView.currentASRGuideLinks (cyclomatic 21): ASRProviderDetailView.currentASRGuideLinks has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d83bfd3747448c2a1d0f69c81a40cda66ee73c18b7bae0b659618b727a727a"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceSession.complete (cyclomatic 21): VoiceSession.complete 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":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17910677878098596d5a2d5aea202198634ebb0862c223f2e01813d68aeb59b"}},{"ruleId":"D1","level":"warning","message":{"text":"PostInjectionLearningCoordinator.captureCurrentValue (cyclomatic 20): PostInjectionLearningCoordinator.captureCurrentValue has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cf73294aecf854f7620afc577f480239846a39b003451f5b626928a5febb6d"}},{"ruleId":"D1","level":"warning","message":{"text":"KeychainService.migrateStoredCredentials (cyclomatic 20): KeychainService.migrateStoredCredentials has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa199d084bbad10b65d7d29c5873116f763f60b3f613e4503ba42dd96dd11bef"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.stopRecording (cyclomatic 20): AppState.stopRecording 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. This is NOT this file\u0027s highest cyclomatic complexity: AppState.showReviseError (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f9d4878093f9d4699767ed5b201c489917e8617f94614696a4dd7a2998b20"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardModel.refreshClipboard (cyclomatic 20): KeyboardModel.refreshClipboard 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":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da560ac41ec6043d0da1f2f3727604025db07412e5e733c3484cb691b7324ef"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioCaptureEngine.startSynchronously (cyclomatic 19): AudioCaptureEngine.startSynchronously has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b80c1451f28235480cc0420a51bf7a38d1a83be872e0cd2fa15bf095cf166"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyManager.updateHeldModifierKeyCodes (cyclomatic 19): HotkeyManager.updateHeldModifierKeyCodes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"913d46181c8c3c9f8861bc4bd630f7fdc8047e8b12f11b3e35763c0730e53acc"}},{"ruleId":"D1","level":"warning","message":{"text":"MetaMuseASRProtocol.parseServerEvent (cyclomatic 19): MetaMuseASRProtocol.parseServerEvent has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MetaMuseASRProtocol.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2508678609e912d23970dd6e92faf17c58811daed6731f3af1675cb4848c8904"}},{"ruleId":"D1","level":"warning","message":{"text":"ImportView.preview (cyclomatic 19): ImportView.preview has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/ImportView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9feda1a4e0459ae099ff810e85a54506f7c9eb7f454b3c8fb1997df95960476"}},{"ruleId":"D1","level":"warning","message":{"text":"SenseVoiceASRClient.sendAudio (cyclomatic 18): SenseVoiceASRClient.sendAudio has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceASRClient.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5293b364eb36853c7125223d26a92efcdf27ded630a3c1e0e66097d78ff62c4"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexAppServerSession.handleMessage (cyclomatic 18): CodexAppServerSession.handleMessage has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/CodexAppServerSession.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5a26f79fb5327fabd0c9dcaa80d17be08bc99a8c1306ca3f8584860d9b5dea"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiTranscribeProtocol.makeTranscriptUpdate (cyclomatic 18): GeminiTranscribeProtocol.makeTranscriptUpdate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/GeminiTranscribeProtocol.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c9be684f111600cacc814aeece8e42666d526f3100048183749df12700a049"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcBench.replay (cyclomatic 18): VolcBench.replay has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded2867bfa40bc07fccbe5ef391e59ef071ca32b793f571dce8fbc508ce70b33"}},{"ruleId":"D1","level":"warning","message":{"text":"VocabularyTab.body (cyclomatic 18): VocabularyTab.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1739f41f16788651434906c4152e57b0b6886d638baefbac7eb3ff60fa1498ca"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMUsageAnalyticsView.dailyTrendSection (cyclomatic 18): LLMUsageAnalyticsView.dailyTrendSection has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2347c337d861eea62b7a3fefdd1e03d0865bd57d99fb6bc76d2332de315cd7df"}},{"ruleId":"D1","level":"warning","message":{"text":"IntelliSenseHistoryTraceBuilder.effects (cyclomatic 18): IntelliSenseHistoryTraceBuilder.effects has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseHistoryTrace.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f15a716e5207c4f5400383df1d08f1d9fa8a5e2aada85f613e5e92967b7d4"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceSession.handle (cyclomatic 18): VoiceSession.handle 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":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62b1098fbd44c341940ec89f24a7d8875f721b960f1ad72408f364ec611dd0e"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryStore.updateUserEditObservation (cyclomatic 17): HistoryStore.updateUserEditObservation has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"5376715aed7dc01ae1d52bf1b0e620a24f40c4e638d2e659d424775ec95a0bc5"}},{"ruleId":"D1","level":"warning","message":{"text":"TextInjectionEngine.makeObservationContext (cyclomatic 17): TextInjectionEngine.makeObservationContext has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d354c1c40b76df422eadf4a830973d52ceb0c66ba64b94630860b11149167b"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingBarController.resizePanel (cyclomatic 17): FloatingBarController.resizePanel has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"410f2b281a27de3647e33f90de96cba5f9aa3e6d7978cac3b5dcf1208af10495"}},{"ruleId":"D1","level":"warning","message":{"text":"ASRProviderDetailView.currentProviderNote (cyclomatic 17): ASRProviderDetailView.currentProviderNote has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"145b581f90aea6eb52f7dfaa3d3a2492405d9c6007dbe9290c4e5027e86a587e"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyRecorderView.startRecording (cyclomatic 17): HotkeyRecorderView.startRecording has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"172919713f4abb89da8bcd66925a60a2a9f27cf02d80352091c2b757cb058f3f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatClient.complete (cyclomatic 17): ChatClient.complete has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/LLM/ChatClient.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ba962f6378aff4c6ba2fb83c1a33351d6a5982c8320e67331db3ee6795cfca"}},{"ruleId":"D1","level":"warning","message":{"text":"LLMSettingsView.body (cyclomatic 17): LLMSettingsView.body has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/ServiceSettingsView.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c915e45afec0a388945cdf22cfad46962db8d52ad2e85e3906efa52d542afb73"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.application (cyclomatic 16): AppDelegate.application has cyclomatic complexity 16 (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":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2634a4b4d46269c09f6a578d94b02b4ccc0ecb8b208db818312b5dc8af9226f"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioCaptureEngine.prepareIfEligibleSynchronously (cyclomatic 16): AudioCaptureEngine.prepareIfEligibleSynchronously has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cdfa586e889a5a549c5ac7a472767c647870b20b8a5a8a98ced57440c82c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"TextInjectionEngine.focusedElementSnapshot (cyclomatic 16): TextInjectionEngine.focusedElementSnapshot has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c0a2e8ed1ecc4c42547038695446e7a89f23b1130315119c9298c5b76dc40f"}},{"ruleId":"D1","level":"warning","message":{"text":"MiMoASRProtocol.parseSSELine (cyclomatic 16): MiMoASRProtocol.parseSSELine has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MiMoASRProtocol.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17022af7505d9988d073c71aa89bf34eb0aca467d15d1fa1b3ddf043b6656e5"}},{"ruleId":"D1","level":"warning","message":{"text":"CorrectionDiffAnalyzer.editHunks (cyclomatic 16): CorrectionDiffAnalyzer.editHunks has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df3bc0d62a7f0cb26816b32fd22c18c2f2436c9857b0c37548f24ead9d43ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionFeatureExtractor.extract (cyclomatic 16): ExpressionFeatureExtractor.extract has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ExpressionProfileStore.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acec094612fa030d09bce8885db40c21f93c459283c41e3c0230b62d82fa419"}},{"ruleId":"D1","level":"warning","message":{"text":"InjectedTextLocator.editHunks (cyclomatic 16): InjectedTextLocator.editHunks has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/InjectedTextResolver.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df302bf872e4f65c877a94484538c641c2f1e5ff67703ab7025371581922b37"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviseCoordinator.undo (cyclomatic 16): ReviseCoordinator.undo has cyclomatic complexity 16 (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":"Sources/Type4Me/Services/ReviseCoordinator.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17ebfd6ad5dda3a6e59ed52a4a5e5369329ce3437eadfc03f4ea6ffc404a16e"}},{"ruleId":"D1","level":"warning","message":{"text":"VolumeRestorationTransaction.lower (cyclomatic 16): VolumeRestorationTransaction.lower has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SystemVolumeManager.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfdf7c30cce5e787dc88dfce0a8606b1e527cb838ae2614f0bff760b4653c94"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.currentASREndpoint (cyclomatic 16): RecognitionSession.currentASREndpoint has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a313538936d7d71c8081570e229a58eb39f2016a81c997877988bc15a2f405"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.promptForCurrentMode (cyclomatic 16): RecognitionSession.promptForCurrentMode has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"20feba540d5cf26dfc1456b0bee114645dc6d5ce1426317bfd7b12d58c3ac33b"}},{"ruleId":"D1","level":"warning","message":{"text":"RecognitionSession.attemptBatchFallback (cyclomatic 16): RecognitionSession.attemptBatchFallback has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4016}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7f66a3e5263e4431a4ca3bb23a3fe4f3a7532c99e0f83e6db432351e294bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"SoundFeedback.playStart (cyclomatic 16): SoundFeedback.playStart has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/SoundFeedback.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7832c546f11507be3197e8bab92f4132adcd3a915f07e1b3b91d7cbd7778ea2"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcBench.run (cyclomatic 16): VolcBench.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdd4dfe158a86f047d1fb65ca622c2711d85306a8acf54b1ac5ec2ef26b93af"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcBench.loadCases (cyclomatic 16): VolcBench.loadCases has cyclomatic complexity 16 (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":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d719805d4df43a5796ce9bc86c2f10aa13ff9c4f418f09290e1bbac2b99fb9"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingBarView.capsuleWidth (cyclomatic 16): FloatingBarView.capsuleWidth has cyclomatic complexity 16 (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":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2738c3dcf0415862708315b9baf0746b341a54e9b57fd7ca8c83ff1041cca1"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatingBarView.recordingButton (cyclomatic 16): FloatingBarView.recordingButton has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"7681852aee7692b06c6d8db27e924d77ed7f47fa47eece46c9f76aae2f74b68f"}},{"ruleId":"D1","level":"warning","message":{"text":"ASRProviderDetailView.credentialFieldRow (cyclomatic 16): ASRProviderDetailView.credentialFieldRow has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e347ce4592af5ac6fe6743d7834fe568fa0f5498fc77968e8f314ba705ab09"}},{"ruleId":"D1","level":"warning","message":{"text":"ModesSettingsTab.modeRow (cyclomatic 16): ModesSettingsTab.modeRow has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc68c7657b9af661e38eb42e7f925e59b2da19996cc8a569528034db1cad67fa"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyRecordingSheet.startListening (cyclomatic 16): HotkeyRecordingSheet.startListening has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eba93c3070520436a40d7d42c3b052e4e97b442619925d6f888d1218c8266e"}},{"ruleId":"D1","level":"warning","message":{"text":"IntelliSenseHistoryTraceBuilder.build (cyclomatic 16): IntelliSenseHistoryTraceBuilder.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseHistoryTrace.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc04822a1f2f8a8252b242b38145c5ed80676b7fa3c98b38984078ba4228a457"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardRootView.micCaption (cyclomatic 16): KeyboardRootView.micCaption has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07e5493dc8e9bddb94e71e5267e35b67df771179650219c40b78d696b05c74f"}},{"ruleId":"D1","level":"warning","message":{"text":"DemoSeed.apply (cyclomatic 16): DemoSeed.apply 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":"iOS/App/Debug/DemoSeed.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b017d6c454bd7187063aba02d484ac7fc9fba88d619364f0c88661afa324a9"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceSession.startDictation (cyclomatic 16): VoiceSession.startDictation 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":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e715957cc16077cc7446b496b0fb7dc970e3c8023b6e2f9e785f3359265c36b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.finishTextOutput (cognitive 272): RecognitionSession.finishTextOutput has cognitive complexity 272 (threshold 15). Drivers by points: if/else 75 (190 pts), ternaries 14 (44 pts), boolean chains 20, error handling 3 (15 pts), match/switch 1 (3 pts) (nesting depth added 159). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4cdbbdf8031dd547239ee039e550244ffa1df14e28da2a2491488046aafa1f"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.stopRecording (cognitive 118): RecognitionSession.stopRecording has cognitive complexity 118 (threshold 15). Drivers by points: if/else 37 (76 pts), ternaries 8 (20 pts), boolean chains 19, error handling 1 (3 pts) (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cb7437b0b05259a5952ee4872dd4ec00e2eca2707589a9374ace39da62af16"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyManager.handleEvent (cognitive 103): HotkeyManager.handleEvent has cognitive complexity 103 (threshold 15). Drivers by points: if/else 35 (75 pts), boolean chains 12, match/switch 4 (9 pts), loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6270b6561670abdfcee3c3bb8efe967f5c1c36628eb961740b6416488d2426"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.startRecording (cognitive 98): RecognitionSession.startRecording has cognitive complexity 98 (threshold 15). Drivers by points: if/else 48 (73 pts), boolean chains 12, error handling 3 (5 pts), loops 3, match/switch 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 29). Of this number, 93 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf7c702e5b78bee5de23456f9e4d96fd4ad8503c7131d8e15dc8a1f89bb1237"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyManager.evaluateModifierBindings (cognitive 91): HotkeyManager.evaluateModifierBindings has cognitive complexity 91 (threshold 15). Drivers by points: if/else 31 (61 pts), boolean chains 15, ternaries 4 (12 pts), match/switch 2 (3 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9a0bfab0e6d1f06fc64b9c299f43d9c8a61d82d2a6cf030f9380ee817c8c58"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.registerHotkeys (cognitive 77): AppDelegate.registerHotkeys has cognitive complexity 77 (threshold 15). Drivers by points: if/else 46 (61 pts), boolean chains 14, match/switch 1, ternaries 1 (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":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c8637e11601d122f36f7f2dee4ceadc3034b57fa5ef3574212e6357fa804d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseInstructionAnalyzer.analyze (cognitive 77): ReviseInstructionAnalyzer.analyze has cognitive complexity 77 (threshold 15). Drivers by points: if/else 23 (56 pts), boolean chains 12, loops 4 (9 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseInstructionAnalyzer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e031897af6dd08ad656854ed27455d4950c2ea94eafcacd23cacc1c1270fda9"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubaoChatClient.streamChat (cognitive 75): DoubaoChatClient.streamChat has cognitive complexity 75 (threshold 15). Drivers by points: if/else 21 (56 pts), boolean chains 9, loops 2 (5 pts), match/switch 1 (3 pts), error handling 2 (nesting depth added 40). Of this number, 74 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/DoubaoChatClient.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd0edb0d4a4557229ed7a0f4592ad202f7233a8cbc77d6ed374b184fce6d2c5"}},{"ruleId":"D2","level":"warning","message":{"text":"LiquidGlassCancelButton.body (cognitive 70): LiquidGlassCancelButton.body has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 35 (68 pts), if/else 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9630a72079a3cb4fa4407861bb9fea2121339932e4840867785c69eff73b9f88"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionDiffAnalyzer.analyze (cognitive 65): CorrectionDiffAnalyzer.analyze has cognitive complexity 65 (threshold 15). Drivers by points: boolean chains 29, if/else 22 (29 pts), ternaries 3 (5 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61a054128fab0b64b044e21409ce8b46047fb8c56571ff1a11e84c388239544"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseOutputValidator.validate (cognitive 63): ReviseOutputValidator.validate has cognitive complexity 63 (threshold 15). Drivers by points: if/else 29 (41 pts), boolean chains 12, match/switch 2 (4 pts), loops 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseOutputValidator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"565f5c445e028eae9d66a82ac1c427e3d7171640237c2c68fe68ec5b50533fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 57): AppDelegate.applicationDidFinishLaunching has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (39 pts), match/switch 3 (7 pts), boolean chains 6, error handling 1 (3 pts), loops 1, ternaries 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e21ef45dc7c3476682242909ed9377cd9d2af98388f6bda852e9399099701e"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackedTextReplacementEngine.replace (cognitive 54): TrackedTextReplacementEngine.replace has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 12, error handling 3 (6 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 14). Of this number, 45 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TrackedTextReplacementEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf95858a8789cf01e2c5a9cf7475c24216b6bcb3e67a71e65ecfc807cb232da"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseScopeResolver.resolve (cognitive 54): ReviseScopeResolver.resolve has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (44 pts), boolean chains 9, match/switch 1 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e870ceeccf61699e60d4546276e49b9a7c398418958eac1f65474956ca5f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"ModeStorage.load (cognitive 49): ModeStorage.load has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (31 pts), boolean chains 11, ternaries 2 (5 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModeStorage.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b7e16f176cb4250a394b9fb7b762aa04b0049e1c147ce36d210e86743d9d25"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeChatClient.processStreaming (cognitive 43): ClaudeChatClient.processStreaming has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 5, match/switch 1 (3 pts), error handling 2, loops 1 (2 pts), ternaries 1 (nesting depth added 20). Of this number, 42 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"135605cb498b3cb32949ff7d1001491ec656a57522865b282db1c45a1fa55802"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProviderDetailView.credentialFieldRow (cognitive 43): LLMProviderDetailView.credentialFieldRow has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (28 pts), ternaries 5 (10 pts), boolean chains 5 (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":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ed4e1bdc30d4d57e70a3cbe1d1736968d945d1a2082e0ab3b4bae012ba7d41"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseAuthorizationResolver.resolve (cognitive 43): ReviseAuthorizationResolver.resolve has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 4 (12 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseAuthorizationResolver.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8597c59f20f6ee2f4056088e9b2966d90556a072259394d8048400479e4fc6da"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardModel.stateDidChange (cognitive 42): KeyboardModel.stateDidChange has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (26 pts), ternaries 3 (8 pts), boolean chains 7, 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":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"67769afaf604e96c45369a2ba5810458ec48d8d8b9198eff4fe34034befccad2"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionAffinityAnalyzer.evaluate (cognitive 40): CorrectionAffinityAnalyzer.evaluate has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 16, ternaries 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4dfc668e338e565f314abb52a814e6ca5b93a759ebb49c539efd7e080a5cbf8"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.handleASREvent (cognitive 39): RecognitionSession.handleASREvent has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 5, ternaries 1 (3 pts), match/switch 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"049d4fca7f530ceea010fc90987ed8f7ed7f2605be72fd13885c6d01d953e64f"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseProtectedFactAnalyzer.validateFacts (cognitive 38): ReviseProtectedFactAnalyzer.validateFacts has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 17, if/else 7 (15 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba92cfb33b64580b85cea2b8c41854fe38bb3190d1981c4a29a7ce61d14bb283"}},{"ruleId":"D2","level":"warning","message":{"text":"KeychainService.migrateStepFunBatchProvider (cognitive 36): KeychainService.migrateStepFunBatchProvider has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 2 (6 pts), boolean chains 5, match/switch 1 (2 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ca3113d3f016cd03db39c946148f1fd65d3807d91166e28737f5a46b8d3807"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcReplaySweep.runVariant (cognitive 36): VolcReplaySweep.runVariant has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 5 (6 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f02432740be330badf3efa08bdacea97b565c120c00c60aa6923bbaeb0f82a"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceSession.complete (cognitive 36): VoiceSession.complete has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 5, error handling 1 (3 pts), match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa3cacaa7ae5234a104231f489d97b36ec10deaa390bf1edce1ba4808abdf0a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModeBinding.isModifierPressed (cognitive 34): ModeBinding.isModifierPressed has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (33 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91f2cb8a32c068fec5a9dc71dbc051eb6ee5d91684245a7186e06b7448fd40"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyRecordingSheet.body (cognitive 34): HotkeyRecordingSheet.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 9, ternaries 5 (7 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afc0b30b1c751d4c7b962e0e4c1d548ee3bc60d8a183b337279efd0ccff0617"}},{"ruleId":"D2","level":"warning","message":{"text":"ImmediateCorrectionAnalyzer.analyze (cognitive 33): ImmediateCorrectionAnalyzer.analyze has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 14, ternaries 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b98f1185eedadcb8d93df2c8c3e81911aac345fde2623d5acd9d1d5d34efaa"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.completeRevise (cognitive 33): RecognitionSession.completeRevise has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 4 (10 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f592e13d99824470e2a238c51a085816c08a59f6718d5e5ab7c0f6c4f7d2d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcBench.run (cognitive 32): VolcBench.run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 7 (9 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f168c6b2f650416b3268b983b61c99413a566fcf326238350b45ff44171ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.stopRecording (cognitive 31): AppState.stopRecording has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (7 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"5623a1cbb417f2071f27e48bad0759d6d4855729ed2f8bac1a89f85b9c6ee625"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiTranscribeProtocol.makeTranscriptUpdate (cognitive 30): GeminiTranscribeProtocol.makeTranscriptUpdate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 2, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/GeminiTranscribeProtocol.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe510d73a3be22340b582ff864e7e3e436a8fba83d8066c03423ca81188ae29"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseCoordinator.prepareForRecording (cognitive 30): ReviseCoordinator.prepareForRecording has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 8, ternaries 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ReviseCoordinator.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbb4ffe4ac1522662e6e506496e7f52aa27c595e293c81215911b90fc7406e1"}},{"ruleId":"D2","level":"warning","message":{"text":"TechnicalTokenBoundaryResolver.tokenRange (cognitive 30): TechnicalTokenBoundaryResolver.tokenRange has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 7, loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/TechnicalTokenBoundaryResolver.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29a0dbe5e4f2cd65db7197c6031b72c61a3738e5d8eda8981a7ef5057160ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryTab.transcriptsContentView (cognitive 30): HistoryTab.transcriptsContentView has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 6 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27c34954e98eff590a074450565db558c7d7c2e4ae35b25215bb670a5f1b9e2"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyRecorderView.startRecording (cognitive 30): HotkeyRecorderView.startRecording has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (27 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcacce4186dd02a61d5655fc9cfae34a2e987e385a3aa369453b3014c877223"}},{"ruleId":"D2","level":"warning","message":{"text":"ModeEditorView.body (cognitive 30): ModeEditorView.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 7 (10 pts), boolean chains 8 (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":"iOS/App/UI/ModeSettingsView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8b244955cbe567d65554261792338d29c67066e9d7dd1767a4126c4b35f9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"InjectedTextLocator.locate (cognitive 29): InjectedTextLocator.locate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 9, ternaries 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/InjectedTextResolver.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"307b8e3f2bee9b10037e779bff4ba77a920abdee4f84d3761efe5f6890aff694"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyRecordingSheet.startListening (cognitive 29): HotkeyRecordingSheet.startListening has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"79177b0064191a6a1ae68016c51cada7f53c69d3579651b23a61194e9cb6be56"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportView.preview (cognitive 29): ImportView.preview has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 5 (10 pts), boolean chains 3 (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":"iOS/App/UI/ImportView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d98ee3417f5aaaa9201de7c2ead951ca7665c52ab370604524c8a6a2d3ca21f"}},{"ruleId":"D2","level":"warning","message":{"text":"server.websocket_endpoint (cognitive 29): server.websocket_endpoint has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (22 pts), error handling 3 (4 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e6fe447c4c9a16ca8593c4c1b1a460e9f54c24e93987887c148e1ccc34d708"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcBench.replay (cognitive 28): VolcBench.replay has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, error handling 2 (3 pts), loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75394a85cc69bf0f57a838bbf923da551ec43a34f3b183ed6d5fee8b1183ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"MicButton.body (cognitive 28): MicButton.body has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 17, boolean chains 7, if/else 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe44c99d773cdf2c403c4d903f95736130952e86a1d1c11e2e727657d31261d1"}},{"ruleId":"D2","level":"warning","message":{"text":"TencentRecTaskTranscriber.transcribe (cognitive 27): TencentRecTaskTranscriber.transcribe has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 7, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4598afbc9dbd617425332a52387926634ff36690f9462f165fda0bc9e97ea5b1"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMProviderDetailView.configurationSection (cognitive 27): LLMProviderDetailView.configurationSection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4495fdeebfe542e0a85d4c7eb9ab93fce9aa61add03b88eacde5ee962a46e36"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaMuseASRClient.startReceiveLoop (cognitive 26): MetaMuseASRClient.startReceiveLoop has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (22 pts), error handling 1 (2 pts), boolean chains 1, 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":"Sources/Type4Me/ASR/MetaMuseASRClient.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"038b66850ad499a730cef8f6e4dd30a32f101c9aa64e154f8349540c106303fd"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcASRClient.handleMessage (cognitive 26): VolcASRClient.handleMessage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (2 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/VolcASRClient.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"db740ca6e9427fe8f896a8a0b7764f040eaa0c5f7c84a4e2c4920bbe781398a8"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyManager.updateHeldModifierKeyCodes (cognitive 26): HotkeyManager.updateHeldModifierKeyCodes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, match/switch 1 (4 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":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8f7e4cf97d2e3fe3571a0fd1f9d1f7d55d1600972c8d85cfe03d91900b2b47"}},{"ruleId":"D2","level":"warning","message":{"text":"VocabularyURLCommandParser.parse (cognitive 26): VocabularyURLCommandParser.parse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 5 (6 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 3). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VocabularyCommands.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7482a6b26e79709f65fb411a14bc5a84e0e4f8b0f6cae211a22870c794d4648d"}},{"ruleId":"D2","level":"warning","message":{"text":"ASRProviderDetailView.credentialFieldRow (cognitive 26): ASRProviderDetailView.credentialFieldRow has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 4 (8 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1c84f01353c44f9506e749963d9b89f8e24559c81621b625b4bf30b715a55e"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelManager.downloadWithProgress (cognitive 25): ModelManager.downloadWithProgress has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModelManager.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca6022e1b8f2407b29d706702101a2f9690d2d41b0020881a08cca8ebfefc5f"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.attemptBatchFallback (cognitive 25): RecognitionSession.attemptBatchFallback has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (8 pts), match/switch 1 (3 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4016}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52e77955182addc2dbd9507db0f58bed7619f83c980ee8451b54e671f61558e"}},{"ruleId":"D2","level":"warning","message":{"text":"SoundFeedback.playStart (cognitive 25): SoundFeedback.playStart has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/SoundFeedback.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92e6c73a23cc5121e953654f728a165316a75588ae1f6e99b3b8ec7e709f5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyManager.recoverStuckHolds (cognitive 24): HotkeyManager.recoverStuckHolds has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 1, 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":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53d767a6e489cec9af51172e8b9648978799709ee701b03e9b2dc4941aef7a1"}},{"ruleId":"D2","level":"warning","message":{"text":"TencentHotwords.formatList (cognitive 24): TencentHotwords.formatList has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentASRProtocol.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850bb6838448eb2ae3930f745459645565482f009df1940f4a620db105c8329"}},{"ruleId":"D2","level":"warning","message":{"text":"PostInjectionLearningCoordinator.captureCurrentValue (cognitive 24): PostInjectionLearningCoordinator.captureCurrentValue has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9d77865dc0d4370200d753d7535d799c5ea785c64338803392c1e99759fad4"}},{"ruleId":"D2","level":"warning","message":{"text":"KeychainService.migrateStoredCredentials (cognitive 24): KeychainService.migrateStoredCredentials has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"38841ea15d8f36fecaf8b345c7c328ebe735453ed537b348bb1eb93197988d78"}},{"ruleId":"D2","level":"warning","message":{"text":"VolumeRestorationTransaction.lower (cognitive 24): VolumeRestorationTransaction.lower has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SystemVolumeManager.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bf7943e79c9efa8bc076bf544eaaa5c884477eaff73fbb05060ca21f9143a3"}},{"ruleId":"D2","level":"warning","message":{"text":"IntelliSenseOutputValidator.evaluate (cognitive 24): IntelliSenseOutputValidator.evaluate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 4, loops 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c925222ead27fece573cb6069f0b43ac3a97afb6fb18d6068d25588b752577cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SenseVoiceASRClient.sendAudio (cognitive 23): SenseVoiceASRClient.sendAudio has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceASRClient.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb91ee48477fe076b1c3e9f1bbd3657262a0699336438ff5ad1cd8a517f775f"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioCaptureEngine.startSynchronously (cognitive 23): AudioCaptureEngine.startSynchronously has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b9dfca907e3f1fdf59d6430ac72720ab5324c1fdcd10a7119306ac6ad1862b"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepgramProtocol.buildWebSocketURL (cognitive 23): DeepgramProtocol.buildWebSocketURL has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/DeepgramProtocol.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"afae0b211d9ef3f93c87433f9d204e012aa0d6ad3322548925b36fa79a00e2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionDiffAnalyzer.editHunks (cognitive 23): CorrectionDiffAnalyzer.editHunks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5, loops 1 (nesting depth added 8). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b43f4dfbf90fa858442f4a17b44c1d90b0527710ea6ff7b1d53f1f5829f20d"}},{"ruleId":"D2","level":"warning","message":{"text":"InjectedTextLocator.editHunks (cognitive 23): InjectedTextLocator.editHunks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5, loops 1 (nesting depth added 8). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/InjectedTextResolver.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e28667cc66bd2d485255d6c30bd706553a2fc60b0e3562236547df33fa4fff4"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardModel.refreshClipboard (cognitive 23): KeyboardModel.refreshClipboard has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e748b4135bc553b298a0b101e7f6f5bc22032752127d8eaa07e8f3cf7f7c1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceSession.startDictation (cognitive 23): VoiceSession.startDictation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 2 (4 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb6b643345082888c88db3f339b132e9b99c7a1cd1326621b5dfef60f5f6ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.application (cognitive 22): AppDelegate.application has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (6 pts), match/switch 1 (2 pts), boolean chains 1, 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":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f54d4be39121468999d79c164583282578c22d370fb6caceb5ccb03705382d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AssemblyAIASRClient.startReceiveLoop (cognitive 22): AssemblyAIASRClient.startReceiveLoop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, match/switch 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"10230ad695c10dbd4c0c63a0256b2bb98bec5a0a0a5b3daed36bf2ffc6cbc040"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiASRClient.startReceiveLoop (cognitive 22): GeminiASRClient.startReceiveLoop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiASRClient.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"114e7f8dc0e4c77ca90de9b16ca18238585fb3b5f987cffa5dc2359fc0c1f69e"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStore.backfillHistoricalLLMUsageIfNeeded (cognitive 22): HistoryStore.backfillHistoricalLLMUsageIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (9 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b9ae9d3532832be5d6f85e7a0c986a517f31345f3f42386ade2c932c32eefa"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaMuseASRProtocol.parseServerEvent (cognitive 22): MetaMuseASRProtocol.parseServerEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MetaMuseASRProtocol.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc91e87a2b9820dfa3414c3d1114f2e883dc954d0f23a32d13e7b6768d9fb370"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryTab.historyRecordTrailingControls (cognitive 22): HistoryTab.historyRecordTrailingControls has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dac75877bc9013fa6f4b82f70b2d32752f7857cbfe58eb333e266afca7dd5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviseDiffCalculator.computeDiff (cognitive 22): ReviseDiffCalculator.computeDiff has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseDiff.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5ea0856cae91010c0c5e0fcbcc0af1848cfb66c5ced5fa6fbfd1e74dad35e0"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceSession.handle (cognitive 22): VoiceSession.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b59ea38cb7190b776deee953531167ed8c88cbbf7ce39a43367728ef1b216f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppServerSession.handleMessage (cognitive 21): CodexAppServerSession.handleMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/CodexAppServerSession.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dea8c504f45ac3d9886940ad97477b196f912ce9bbc8e0cdc3672c555838ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAppAction.applicationURL (cognitive 21): OpenAppAction.applicationURL has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 2 (3 pts), ternaries 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":"Sources/Type4Me/Actions/Implementations/OpenAppAction.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16772f1a0e3d894e900859cd0143dcaa8c7311118692aac6553d37d615a437b"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcBench.loadCases (cognitive 21): VolcBench.loadCases has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (8 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ad1f658ee6457076ee591b334fe4e400b7249d7a46d761f9e69c96b0f7a4e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMUsageAnalyticsView.dailyTrendSection (cognitive 21): LLMUsageAnalyticsView.dailyTrendSection has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (11 pts), if/else 6 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"8beb63362453c8e2a86404e190d6ab78575e58b73ac7ca8ce775d177611e24a4"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiASRClient.handleMessage (cognitive 20): GeminiASRClient.handleMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiASRClient.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"683cf089e12f2c18889f88b3e5a85cbd1673572796f9638af5350a773f5bc0d5"}},{"ruleId":"D2","level":"warning","message":{"text":"SenseVoiceWSClient.connect (cognitive 20): SenseVoiceWSClient.connect has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceWSClient.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f0e33881f71c7e1ab9be3c4880a6a0a4dc29e1b9628aa1d51348fe2044ede1"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioCaptureEngine.prepareIfEligibleSynchronously (cognitive 20): AudioCaptureEngine.prepareIfEligibleSynchronously has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"65922d1fce7c7556f65862b17adfc55520e845b38a3206bead11983605b08978"}},{"ruleId":"D2","level":"warning","message":{"text":"TextInjectionEngine.focusedElementSnapshot (cognitive 20): TextInjectionEngine.focusedElementSnapshot has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f5e29fe0ee912a7f876257681acd4a3999bc326c2f0939dba42cff7179f370"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralBatchTranscriber.transcriptionInstruction (cognitive 20): MistralBatchTranscriber.transcriptionInstruction has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MistralASRProtocol.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a291ae349770957b1a89237b7d66f42ce6141571f1d98019f762a8a5d12c8a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SenseVoiceServerManager.readPortFromStdout (cognitive 20): SenseVoiceServerManager.readPortFromStdout has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SenseVoiceServerManager.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df948d8ab4a5f3f587de72ef8afcb8ad068fd31ec47739c3ff5cccf5ea7048e"}},{"ruleId":"D2","level":"warning","message":{"text":"BailianASRClient.handleMessage (cognitive 19): BailianASRClient.handleMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 2 (4 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BailianASRClient.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3692346d4d6c87b84fd96cb2034e28deb3e4536020ac66fb0256c43b0dd0c41d"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchASRHTTP.errorMessage (cognitive 19): BatchASRHTTP.errorMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BufferedBatchASRClient.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970177b61dc6fda4882e2df5d11b697ca0ae031f6b6715a06a440aa6daf5176"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStore.init (cognitive 19): HistoryStore.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0803380c49e5f35720818ca7d60fa0a062c05b973771dc6604f486d9768d2ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.promptForCurrentMode (cognitive 19): RecognitionSession.promptForCurrentMode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3465}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ec566db487b323e84efc5451af679ccbbb257b7062ad870b754f5ba43d2e5e"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingBarView.recordingButton (cognitive 19): FloatingBarView.recordingButton has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 6, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f069c0028fc26230b766b6fb556b3a8a887387b6509e3f6a31eaf9587f4164a"}},{"ruleId":"D2","level":"warning","message":{"text":"AskAnythingPage.conversationList (cognitive 19): AskAnythingPage.conversationList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AskAnythingPage.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b82d73b7577cc171f7d2fef68905c99181fb6f4a2e57761b037b7a3de19451b"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardModel.refreshSelection (cognitive 19): KeyboardModel.refreshSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e542041abe49850ab1615604fcb95dc64f421ec0fc4ede97d4c6ece42a1bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"StepFunBatchASRClient.transcribe (cognitive 18): StepFunBatchASRClient.transcribe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/StepFunBatchASRClient.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46dbfd9dc7efa39d83029dbf75aa1088baa832bf9f36b5d253aee3994062cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcASRClient.probeServerError (cognitive 18): VolcASRClient.probeServerError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/VolcASRClient.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"338d355f34ded455f958524e46321a7e846c39096aa5fbf574e26c6c1af4a4eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallParser.parseJSONPrefix (cognitive 18): ToolCallParser.parseJSONPrefix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Actions/ToolCallParser.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b55e679d7d50961c5d8732b8dd1d5f3866a290cd7c79eb7a8cef0978965e3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStore.updateUserEditObservation (cognitive 18): HistoryStore.updateUserEditObservation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"b152622c7e95c60d7a2a16b2a55b9bb57243c8b01c9b2052264a03442e99c558"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomHTTPBatchTranscriber.value (cognitive 18): CustomHTTPBatchTranscriber.value has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/CustomHTTPASRProtocol.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"064744a29d07f757f5afb7831e78e0ff30a682e8b3dc2dc420fb7a595d3d45b9"}},{"ruleId":"D2","level":"warning","message":{"text":"MiMoASRProtocol.parseSSELine (cognitive 18): MiMoASRProtocol.parseSSELine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MiMoASRProtocol.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a198c446eef7360f7d3674834f286347abe670e26ce5308253ba9c95cd3edebe"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionProfileStore.learningState (cognitive 18): ExpressionProfileStore.learningState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ExpressionProfileStore.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"90653ce804adbea130ebe9177916ec77a00db040d4be4f8766b17cca741645a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionProfileStore.directives (cognitive 18): ExpressionProfileStore.directives has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ExpressionProfileStore.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"db71892b2e0c134487d58523d8e93eefd43242e7676b4d3a5db94ac91f5d3234"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.asrModelLabel (cognitive 18): RecognitionSession.asrModelLabel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 4 (8 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6712906da51a2e0c538065b1da71230c41b0c695d15178273bd4fb232d5361"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingBarController.resizePanel (cognitive 18): FloatingBarController.resizePanel has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"37197809ccca9bc251cc04fd96f9477f6ee9acfaef563f0a9fd7f856b75a44a1"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsInlineSegmentedPicker.body (cognitive 18): SettingsInlineSegmentedPicker.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (10 pts), if/else 7, boolean chains 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":"Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e590a2aaa29d86efebbc410666894c3141b62dfd4465af7aafed9e00910914"}},{"ruleId":"D2","level":"warning","message":{"text":"VocabularyTab.body (cognitive 18): VocabularyTab.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 1, error handling 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d644c05ba3d330f6d02a77834ce76b784a4bce4c2793244f38feb4886d1812"}},{"ruleId":"D2","level":"warning","message":{"text":"DemoSeed.apply (cognitive 18): DemoSeed.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Debug/DemoSeed.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e694a45191ca23a618d1343401f7bb949429fd04cf6b79eb16d48aa2c3da96ab"}},{"ruleId":"D2","level":"warning","message":{"text":"BailianASRClient.startReceiveLoop (cognitive 17): BailianASRClient.startReceiveLoop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BailianASRClient.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf066e2d77cc2512ab283df2fcb745ce7ef4b6bd2ae079bb1b1fe191a1b8589"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokASRClient.handleMessage (cognitive 17): GrokASRClient.handleMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GrokASRClient.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a9bc03e0a11114b239aa00d1b88e053ff74902bd70567f38deb4bc6a102c47"}},{"ruleId":"D2","level":"warning","message":{"text":"SenseVoiceASRClient.endAudio (cognitive 17): SenseVoiceASRClient.endAudio has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceASRClient.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89147ddfd1201a5d57909ea4dbfaf463dac2694ea547005ca7b0a3c7131383d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdater.handleDownloadError (cognitive 17): AppUpdater.handleDownloadError has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"109ff0311f67e17c4b0ffcc521e8cfe86966c08f475e6f1dbe5394f70d63026b"}},{"ruleId":"D2","level":"warning","message":{"text":"KeychainService.saveLLMCredentials (cognitive 17): KeychainService.saveLLMCredentials has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"2357a66ef98912802c3b7974ab93460062270ad8600733e5dec5b6f812afc452"}},{"ruleId":"D2","level":"warning","message":{"text":"SoundFeedback.availableOutputDevices (cognitive 17): SoundFeedback.availableOutputDevices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/SoundFeedback.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c8009ee0e16f0e9d632d9a02f5e1d7ec525ae32b8c8728b63e58cd50d4fbac"}},{"ruleId":"D2","level":"warning","message":{"text":"ModeStore.applySync (cognitive 17): ModeStore.applySync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/ModeSettingsView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"08714fad008d92cc853979134f2faca8c4d9b3b0bec50ebfb8a5a6a1aaadadf9"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepgramASRClient.startReceiveLoop (cognitive 16): DeepgramASRClient.startReceiveLoop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/DeepgramASRClient.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc078d35267c0b05ed05f565731fe91d28cf783608e4d14acf05e89b6dbc218d"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaMuseASRClient.handleTranscriptUpdate (cognitive 16): MetaMuseASRClient.handleTranscriptUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/MetaMuseASRClient.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0e27e967c4cb2c191836af55c9dddc268178d6ee0964d9594dc6d19ff53562"}},{"ruleId":"D2","level":"warning","message":{"text":"MiMoASRClient.transcribe (cognitive 16): MiMoASRClient.transcribe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), match/switch 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":"Sources/Type4Me/ASR/MiMoASRClient.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e714ecadf7c568c4e9e584da6627e6f98f15c86f56b982c4f7a94ba8f52c31"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcTranscriptAccumulator.apply (cognitive 16): VolcTranscriptAccumulator.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 4 (5 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/VolcASRClient.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cc3178c5d40b37394b353c358ba7d9e636c6a9a40d54f2e9a5d81b96ac10de"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioCaptureEngine.stopSynchronously (cognitive 16): AudioCaptureEngine.stopSynchronously has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba42d9f91689f06eb82512d4530fae8bc2ea6cc63be0cd8b4c6956747f72274"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioInputDeviceDiscovery.aggregateContainsBluetooth (cognitive 16): AudioInputDeviceDiscovery.aggregateContainsBluetooth has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioInputDevicePreference.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ea41f9363421cb33cd7077a65d1660d648c71ebb606a8331fc140107642cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryStore.insertRevision (cognitive 16): HistoryStore.insertRevision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24bf195117a95a925fda17305d43854bafbcf6e33b23e6969c3e3f6bb77ef68"}},{"ruleId":"D2","level":"warning","message":{"text":"TextInjectionEngine.makeObservationContext (cognitive 16): TextInjectionEngine.makeObservationContext has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"360e419947991e83383e1c4689a0918b54e45a273a1f18762d6b0ffc12836297"}},{"ruleId":"D2","level":"warning","message":{"text":"ElevenLabsProtocol.makeTranscriptUpdate (cognitive 16): ElevenLabsProtocol.makeTranscriptUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aee0850f56c46f6e283cf39392e204d57f046bda3a686880b73934048eb2498"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaMuseASRError.errorDescription (cognitive 16): MetaMuseASRError.errorDescription has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/MetaMuseASRProtocol.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f0b9040d2912a51aad378f2a2edb7b3401e10085a892b5102be0be72e6d6e8"}},{"ruleId":"D2","level":"warning","message":{"text":"StepFunASRProtocol.parseServerEvent (cognitive 16): StepFunASRProtocol.parseServerEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/StepFunASRProtocol.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"99074ec71f5644d705fe15462e278cf9ba9288a3e1297442d56adaff6c1652d5"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchCorrectionInference.infer (cognitive 16): BatchCorrectionInference.infer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/BatchCorrectionInference.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a1dce71e0c4e76ebc5839908c28e85358eb0e7365946febf843bf536e35e42"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionAffinityAnalyzer.damerauLevenshtein (cognitive 16): CorrectionAffinityAnalyzer.damerauLevenshtein has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (5 pts), loops 4 (5 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd10ec8c8b649062a13999c413b5442422def593be57de7c0f22b85be108e16"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionDiffAnalyzer.isSensitiveChange (cognitive 16): CorrectionDiffAnalyzer.isSensitiveChange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 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":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ae13f67c867eeaf810d4919b227926f88e5e5efaab217fafdb25929affec55"}},{"ruleId":"D2","level":"warning","message":{"text":"CorrectionLearningStore.learn (cognitive 16): CorrectionLearningStore.learn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (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":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"91067ec0ee0f059ff5bf26ef557cea430c6e22258799487d0e72271f254ee163"}},{"ruleId":"D2","level":"warning","message":{"text":"JiebaChineseWordSegmenter.ensureLoaded (cognitive 16): JiebaChineseWordSegmenter.ensureLoaded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/JiebaChineseWordSegmenter.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"39079c136ae98ba556690712a230fc4c1dab1a47577978461080eedbf41b5b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"PanguSpacing.spacingText (cognitive 16): PanguSpacing.spacingText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/TextOutputFormatter.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc51a994cfe9e3232d23a56521f10a4c5931d25ae92ea4a3a0d20d475a36ca70"}},{"ruleId":"D2","level":"warning","message":{"text":"RecognitionSession.setupAudioChunkPipeline (cognitive 16): RecognitionSession.setupAudioChunkPipeline has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 1 (3 pts), boolean chains 2, error handling 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":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b257bd49ad0219fc05fecd0234e277e762660b7c95469faf7aa7430e8ea15f"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatingBarView.capsuleAndHandle (cognitive 16): FloatingBarView.capsuleAndHandle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (6 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":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"716967911d5a579a5ba949b0f2270d16df14e38cda14d1067d2a0f902a955d87"}},{"ruleId":"D2","level":"warning","message":{"text":"VocabularyTab.revealSnippetGroup (cognitive 16): VocabularyTab.revealSnippetGroup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"18060febb6eddad1f4279d21c4115b96ee6b7efe34e6e382132ab3d4841c1c49"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeTextDiff.segments (cognitive 16): HomeTextDiff.segments has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/Home/HomeTextDiff.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c536c6da80f66306b46ba3ff41ccf42d6308455512ff82754aff5aaea95d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"LLMSettingsView.body (cognitive 16): LLMSettingsView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/ServiceSettingsView.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"450f924a4269bc2b90eb0fed83131582b0c5a3f32dd7f71f69e8b32a05939508"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Session/RecognitionSession.swift: FileTooLong \u2014 3230 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2730 over it, 6.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4ea2023345a3ece1089b9c9652011c5223528bdce605244e2be39b49d276ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecognitionSession.finishTextOutput: MethodTooLong \u2014 finishTextOutput runs 477 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 377 over it, 4.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa454531a2ed47456cc607d08a4e2f6df51d5d2d87e225ada7e8665580049af5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecognitionSession: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ae7ab90e04cf3066479f20ac99fda19129a8a0074bb8866a138a54c2e28a9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecognitionSession.startRecording: MethodTooLong \u2014 startRecording runs 379 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 279 over it, 3.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7fe1b8de77b1c2d010949e1da0927e41e70a89fc65958615dbe2d869ef4c19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 1323 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 923 over it, 3.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdd9cb0c5acff3d7c15be4db06d8cd9af3bc5dbfded341a9af171bf486c59c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/AppState.swift: FileTooLong \u2014 1577 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1077 over it, 3.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"073df64b14a72a4e2e9489600044b72458a6d9c5b011cc14244c2b2252dd6751"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FloatingBar/FloatingBarView.swift: FileTooLong \u2014 1530 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: FloatingBarView (256-1835). The bar is 500 significant lines; this is 1030 over it, 3.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec7d827c9b02cf0436a21cb2fa61e378d1d34686ccbca9084309f75bf2d39ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ModesSettingsTab.swift: FileTooLong \u2014 1472 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 972 over it, 2.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bf387f5992f78584248694a83a2cd7486edb9d4c08e7405bd46540266e0e7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b600f42fc313716c9db0f3c83006b382490b0ab58c2a2bd91e2df5619a971d96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Type4Me/Type4MeApp.swift: FileTooLong \u2014 1410 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AppDelegate (127-2053). The bar is 500 significant lines; this is 910 over it, 2.82\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e28c04a06f50e53523982f7d1b52f438bf2d89ee01308a8251289ab5eb299d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FloatingBarView: ClassTooLong \u2014 1115 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 715 over it, 2.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faeda84e7730a56c179770620b228b57a60663e66d23a05f22ccad406274f56"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.registerHotkeys: MethodTooLong \u2014 registerHotkeys runs 278 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 178 over it, 2.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"6130b0ebc1d3e8af493508c41b9a5b387f26bd8fb4c7fc0610575b712ab29aa0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecognitionSession.stopRecording: MethodTooLong \u2014 stopRecording runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"287affd6370d1a3913842239189fea96544e985af66d8d2c1e1fc37e6a7b8c7d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HistoryTab: ClassTooLong \u2014 1029 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 629 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8ca96e7d8963f7e135e5e13a1863574a85ab945ae5a6e60a2817dc2f820bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bridge/SherpaOnnxBridge.swift: FileTooLong \u2014 1277 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 777 over it, 2.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Bridge/SherpaOnnxBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8694ac25c3fb65555d2608fa74673856281f9a534361f196864664cb1ed0f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/VocabularyTab.swift: FileTooLong \u2014 1214 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: VocabularyTab (140-1459). The bar is 500 significant lines; this is 714 over it, 2.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fafe2495da283e55dca73e81dd4b5a12662694bbec48945147e97d265d82973"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/HistoryTab.swift: FileTooLong \u2014 1210 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: HistoryTab (248-1686). The bar is 500 significant lines; this is 710 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":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e5908dde7b15561c2d31a5b68e2ceac3fe33115954aa4446dc04a40a12a174"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VocabularyTab: ClassTooLong \u2014 920 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 520 over it, 2.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":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a575eaac7d301ac297fdc8602e1e8fa71a954333bd09fddf81877bda28830"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Input/HotkeyManager.swift: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: HotkeyManager (343-1720). The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4ee197df70ddc82285a02789d7e8d078ecde0b87c8138da07f5f198ea53892"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HotkeyManager: ClassTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 439 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0d6720f528de7d7216115216a225f5bf577642fbef254834502c66bb383318"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReviseOutputValidator.validate: MethodTooLong \u2014 validate runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseOutputValidator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8906935e6475fdb4e36070aaa6580982fc0c7bde26f6fdaf508d1ca2bfb6511"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KeyboardModel: ClassTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 401 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e34049b9fe336d100bf28b74712ccdfb0fce86af2d39ab93b6ca036b18693a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ASRProviderDetailView: ClassTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 400 over it, 2.00\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aa078c55d0ba899a4a1d46ee1c2c5989a7bd0bb9b7c4b1f6cd82c7973f7ab6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/CorrectionLearning.swift: FileTooLong \u2014 993 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 493 over it, 1.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"116083d473e707665de39e793855fd21fddf87e8e0fd1059caa3f2119296764f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Database/HistoryStore.swift: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 457 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f867fa089e09e099259b291f946f2aa307890b3508a9e1bc894ec9ed5cbd2fca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HistoryStore: TooManyMethods \u2014 56 methods, declared across 7 files: Database/HistoryStore.swift (37), Database/HistoryStore\u002BLLMUsage.swift (8), Database/HistoryStore\u002BHomeDashboard.swift (6), Database/HistoryStore\u002BRecentLLMRecords.swift (2), \u002B3 more file(s). The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e28d8474532996f13bdd96cbbc1aeca8005fc508a44df877e26e566a371f65"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KeyboardModel: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b24544495b7fbaddd4bcb96da0b7c8a724660159565b24baa2c80c6d5adb31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"da818d05c95e0cee1233ec62fbab4d9f33131bb429ede7153173e00ab890a246"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HotkeyManager: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b4818d607170274b4d8fa47628327b4c384c1f69d3bc48720a517e13c1bba9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Keyboard/KeyboardModel.swift: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: KeyboardModel (8-1200). The bar is 500 significant lines; this is 305 over it, 1.61\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":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea4813432cb35d8581ed08c17a791105b8573df7bb4c9d39b745fbd71ac70d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/ASRProviderDetailView.swift: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ASRProviderDetailView (3-1120). The bar is 500 significant lines; this is 301 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0cc8a22d3d022e9f958b8cf857fc61a7e677256d6a6556185024cafaafed10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryStore.init: MethodTooLong \u2014 init runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"722412bf9addf5230866e3b5690b10bf7173b131b46a501ab7e01edc4b1159fe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KeychainService: ClassTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 221 over it, 1.55\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cf9a1bff74141bb13fb75257fe929fa4a795fcd2dc3614546b363a757fd850"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryTab.transcriptsContentView: MethodTooLong \u2014 transcriptsContentView runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc34ac00907d75d3206ff3613727fafb04342e164ecce4fe0244020cfe9a9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsView.body: MethodTooLong \u2014 body runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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":"iOS/App/UI/SettingsView.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb6d8f629e4eb874445e10fc22922c4479c6d9059e024744a3ae4e3960620df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsCardHelpers.swift: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 257 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcbd162cf1a873c9dc86f00de9d914673fa8a0ace3d02ad40c98bfe46a5028e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecognitionSession.completeRevise: MethodTooLong \u2014 completeRevise runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ef60f9d6decd76ddd2ab6f681db39217e77937b51b234004023d946be0dd71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModesSettingsTab: ClassTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 200 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61a3065fae88e4875ae9adeca44a77e93d32a8434768a3646f68f3f4c0ccda9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLMUsageAnalyticsView: ClassTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 198 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7055a956062ed91fe60d56d05feaee2545b555203aa609a7e79a6fdaae8619"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Keyboard/KeyboardRootView.swift: FileTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 208 over it, 1.42\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":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3edcbd79a14e312daaf35f4e44e33f2cbf4bd36d24f704049c127ef945c248"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HotkeyRecordingSheet.body: MethodTooLong \u2014 body runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd014753ec2162290320f6f82dc4efe58adea26153306419b369d4bd8c6a8d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReviseInstructionAnalyzer.analyze: MethodTooLong \u2014 analyze runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseInstructionAnalyzer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"814ae6dfcb10ee9da491c439ee0d6f3830a3bc43275138d9d9dd828f3f8ceadb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModeStorage.load: MethodTooLong \u2014 load runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModeStorage.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bf18230205504937c5315549213c9d1cefee83761c6c45b568f2830e4b681a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LLMProviderDetailView: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 137 over it, 1.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a3d07bd4e4a9be01261d98428bb35c672327f1f20a9930019cd59260853a1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PostInjectionLearningCoordinator: ClassTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 133 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc86ac7c70cb6ea5c793d004d418501fe4ef365558a3a7a3c2e8043310eff82b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLMUsageAnalyticsView.recentRequestsSectionContent: MethodTooLong \u2014 recentRequestsSectionContent 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":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"788cdb7e7dbdd614524c7f48702827f445ac69c85b4ebacd1e6a76636dbde306"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/GeneralSettingsTab.swift: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: GeneralSettingsTab (11-747). The bar is 500 significant lines; this is 135 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5669df0c6299d175ee25bb24934868427ab52beeefd3d3d8b660aa8ed8fa261"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AskAnythingCoordinator: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AskAnythingCoordinator.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b098bed2d89fff026945064e0640c563b3b7261088f257745c52b8d54181ca56"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HistoryTab: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27efc7735ba29ce46a941948b0debe22d4464f9fbd0f92c75555285581a3e45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/KeychainService.swift: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: KeychainService (4-955). The bar is 500 significant lines; this is 126 over it, 1.25\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a308ddc111fb5009cfc88e06d8f8aeafcae455622bdeeee3b8fe488cc1652577"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AskAnythingPage: ClassTooLong \u2014 497 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 97 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":"Sources/Type4Me/UI/Settings/AskAnythingPage.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e75d2b765716fe6201be411058c515e1a99ff2282d4eba11153c1eabca7022"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppState: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e39b53f20843fdb8d7142f3b20e187ccb4c00b94c087c55cab5cf6466657af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeChatClient.processStreaming: MethodTooLong \u2014 processStreaming runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b8f14463b195d144040718500932b43650b60f6f1ee628eeb2920a34632662"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: History/LLMUsageAnalyticsView.swift: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LLMUsageAnalyticsView (5-850). The bar is 500 significant lines; this is 100 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":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4dd9cb511540ba8356d8378c68ae57fc1574396443d589e236828dec9129f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HotkeyManager.evaluateModifierBindings: MethodTooLong \u2014 evaluateModifierBindings runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9696f711476582c41abe65c23b98063a99db64991568ecc0d5513420b8f4fc19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FloatingBarController: ClassTooLong \u2014 478 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 78 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":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadf208f49b8c7e13796f23992c9539d3cd09db7dc4805dd69ea3c5ce4cb8984"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppearanceSettingsTab: ClassTooLong \u2014 478 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 78 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":"Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7ddd1f612913abb0fff876b31097bdaf9f7388e31f2b4b30e9305f5b1a8cc4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GeneralSettingsTab: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5213df6a0002c98c08721cb0a8efee5637f5f895365f722c01aa1b26b48e6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HotkeyManager.handleEvent: MethodTooLong \u2014 handleEvent runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5d9c726030bf4dcbb55fca33a8fe43e99a7d7389e322da5cf06f07f5a0870b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModesSettingsTab.body: MethodTooLong \u2014 body runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5428eda354a43131f26dacdea955f82f1f87c114def33b0e95d66e1e09102c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AskAnythingStore: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/AskAnythingStore.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabb0b2e1d4c8bfe5ab7bfae302cc54124eb2ea3e7ae120d1c455afc1252d01b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TrackedTextReplacementEngine.replace: MethodTooLong \u2014 replace runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TrackedTextReplacementEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd0b361110ff6e03e62253bd24deac2f26bf2a579426be6465c6f6e318898e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PanguSpacing.spacingText: MethodTooLong \u2014 spacingText runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/TextOutputFormatter.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9868bd11f853960552765314dcff11be8fde4080e08ba9abe5b33b444a15036f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MenuBar/MenuBarControlCenter.swift: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/MenuBar/MenuBarControlCenter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8147dc46045f02ab167e3e7dcb8f73c001bc5b9294499dae4f02b115f6f4d904"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DoubaoChatClient.streamChat: MethodTooLong \u2014 streamChat runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/DoubaoChatClient.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b048a17c13d6f7078c30ef519c1f972b9d4abae6dc919743c8f6c3a95bddb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FloatingBar/FloatingBarPanel.swift: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: FloatingBarController (140-819). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9884f893137e0441ec2289d69a901373b1c18261749afb5b0487215a18f91279"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudioCaptureEngine: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 47 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e25e9b010329ce5f32f26617338c0c833aa887eb545905df98800afd95927ed"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppUpdater: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 46 over it, 1.12\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04077f9a2ac369b9f46df588e5127c22cf98a65641de52f6d7957e858c261d4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextInjectionEngine: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 45 over it, 1.11\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bae25899a5347b766ac84c9ff4c3deb76c0622c7d9fdec4f63e94e20aefcb22"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AskAnythingCoordinator: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AskAnythingCoordinator.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5000679d2484e91fa1e32478e093c26833dff043377efe0f716bfb00990d4e94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/SettingsView.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d1bac64f08cd0b46c08c9106d104762043a9ca557af00be6dbd5281adc84d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsTab.body: MethodTooLong \u2014 body runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa888dcec39ab0751227d4361107b6683479fe306ba0797953fea505168df3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/LLMProviderDetailView.swift: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: LLMProviderDetailView (3-748). The bar is 500 significant lines; this is 42 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed02f40b63e082d3c829d69f5b1622f34a4b166775c23e960f90ab434ecbf82d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CorrectionDiffAnalyzer.analyze: MethodTooLong \u2014 analyze runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5863e2331f39c99e85e342bb51191497057ec4bd913513316a7467a2224f1cdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/AskAnythingPage.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AskAnythingPage (49-711). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AskAnythingPage.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6937774d85fc5bc5822d1ed25945dad71822cf53143abc8fa757020fb73664e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VoiceSession: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 22 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafb2f0b5289bd7de954c41ebd38bf4ac235fdb42e3af85af97bf9fab8f6755e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IssueReportSheet.body: MethodTooLong \u2014 body 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":"Sources/Type4Me/UI/Settings/IssueReportSheet.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3348ffff5e634cd17201de6b9e2551463a9ed1480102a3487ca951f6613bac6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VocabularyTab.body: MethodTooLong \u2014 body 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":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b34e24af591f0bf9ac49f2cc62fa44e0ffa5041872eae435c26018869d4054"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VolcRecognitionSettingsSection.requestCard: MethodTooLong \u2014 requestCard 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":"Sources/Type4Me/UI/Settings/VolcRecognitionSettingsSection.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"768940c855e676398c6d77365a15024c145e4f7a47a6b6a5a14750c2f8fc5334"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LLMProviderDetailView.credentialFieldRow: MethodTooLong \u2014 credentialFieldRow 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":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ac466187c3a036e1b63f4993047f7e19743c83dead813e9a2d4feaf232b746"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModeEditorView.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":"iOS/App/UI/ModeSettingsView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7915c540c950b6c0bb359e9837492c17afd05addd13fe714c334486052afd00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrbPreset: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/OrbPreset.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"65182e6c5edcbded33c020d1f9948beaaa207b1b613164193d3b94ff8462518f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Database/AskAnythingStore.swift: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/AskAnythingStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b5b8b4acef3677d72612b383c444e17236b4fb827f16850d6cc9338ccc5a1d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartCorrectionSheet: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2626f8dc77476d3fd69fff2e9aef37f5af62e16f8d742d1de56bd47274b9200a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiquidGlassCancelButton.body: MethodTooLong \u2014 body runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28adba43be2f28e4ee67cd333b57a3c15ecdb3277510e0a3c523aa8273dc691"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): Sources/Type4Me/LLM/ClaudeChatClient.swift:90-241 | Sources/Type4Me/LLM/DoubaoChatClient.swift:199-348 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d2e45d95460b4a7f892e4bed3ac0b2adaf2b03a662c33bd407a15b5fc14bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:357-469 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:157-233 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2207a0979601f8ff74f36a46cd508ba2f880f0af9a6717e952c9faf29b7448e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): Sources/Type4Me/Services/Evaluation/VolcBench.swift:228-323 | Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift:178-294 \u2014 These two members are variants of one another: 33 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f84e7cbbca968fa2be010c676e8a4fedcf15994c32f91f3805903b3d0c054e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:71-163 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1381-1473 \u2014 These two members are variants of one another: 28 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2504fb25754e35527e83e325ced6ea187a77012935f01f92cd38fc9b22551ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Type4Me/ASR/BaiduASRClient.swift:117-146 | Sources/Type4Me/ASR/BailianASRClient.swift:132-165 | Sources/Type4Me/ASR/DeepgramASRClient.swift:171-202 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:123-146 | Sources/Type4Me/ASR/GeminiASRClient.swift:248-291 | Sources/Type4Me/ASR/GrokASRClient.swift:151-173 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadea19640502aa7c46222a9f5b9d25095c61cfd3c413e13420651d0bc9f1e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:333-351 | Sources/Type4Me/Protocol/AssemblyAIProtocol.swift:200-218 | Sources/Type4Me/Protocol/BaiduProtocol.swift:173-191 | Sources/Type4Me/Protocol/BailianProtocol.swift:184-202 | Sources/Type4Me/Protocol/DeepgramProtocol.swift:157-175 \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":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f2ad87002d205b684688f5661d96f7ddabe71e65e978dfcae584b25670f6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:38-88 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:283-316 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:318-365 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:367-402 | Sources/Type4Me/Database/HistoryStore.swift:363-387 \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":"Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c53ab17adca4a8c3c4412fdd3ea1499ff86e80593c6bdd564fa8df3b2e087b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1047-1079 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1369-1413 | Sources/Type4Me/UI/Settings/HomeDashboardView.swift:264-297 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:980-1000 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"09444655795c639fdff36a620efcc35db4b68f5f561ac2e8c5431cceb67034e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift:680-706 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1691-1732 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1908-1969 | Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:117-243 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fe781252c9c0efc09c567ee5f5b49bd23172537f35dec7c2815be18096ee9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:119-153 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:263-305 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1477-1511 | Sources/Type4Me/UI/Settings/Home/HomeSideCards.swift:207-227 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"992d7b29a3caa5ea12cb2d08c1cfcb9e508e8e3a8878bbd0459367aac9b2ef40"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:163-256 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:448-550 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:607-775 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1577-1601 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7da28095d36203f6efb6f2af6202b115accb6e6fe2b653c0ad493b98599820a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1604-1689 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1823-1906 \u2014 These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"7767df1f55ae179d487064ffd3440bc3f3531d32927b2d34eca6f178cfbc4ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/Type4Me/Services/VolcBoostingTableManager.swift:125-168 | Sources/Type4Me/Services/VolcBoostingTableManager.swift:170-227 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VolcBoostingTableManager.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4011de1be3f339dd004ce944b08f058a14a0581cf4129176995745aa08c87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Sources/Type4Me/CloudSubscription/AccountTab.swift:69-129 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:124-203 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7363d540e1786c4ac6ff3185b26ab4036722b88e4f84ba4cd6b7828d1793fd63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/Type4Me/Database/HistoryStore.swift:1004-1050 | Sources/Type4Me/Database/HistoryStore.swift:1052-1102 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab330dbdbcc33bc5f717c3595ab075d3323c987375477d7d403bb482772ae82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Sources/Type4Me/UI/Settings/ModelProviderListView.swift:63-140 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:162-225 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModelProviderListView.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96d95ee6da35193f76f4255689dbaf323f8111c2ce3a5fcac9197c72c18ecb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): Sources/Type4Me/UI/Settings/VocabularyTab.swift:1277-1334 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:1398-1457 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d41da0eb8f48f430f6ad65117e9f448d1137419d2f18da7dad60d9b27eeed9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift:7-74 | Sources/Type4Me/Database/HistoryStore.swift:808-872 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d76af3f202e22f9d7b3df2a79f7409bb294e297bc27e39064a05b944d174d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/Type4Me/ASR/GeminiASRClient.swift:128-174 | Sources/Type4Me/ASR/MetaMuseASRClient.swift:34-80 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiASRClient.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df0ad4111a877f0d771bd341131b44f104ef66f5a7deb3c34026c77c66adede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Sources/Type4Me/ASR/MiMoASRClient.swift:93-150 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:91-147 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/MiMoASRClient.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e3cbd2d505e1e11ee6d9b697a87169fc6f5d1f1a3a1beb09fb3e523062fcc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:194-220 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:251-276 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:425-454 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c5eadfd2c4735052827879499f253c43fbce5c41c8ef0114c5478e37e28ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:197-239 | iOS/SharedUI/LiquidGlassOrb.swift:163-202 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a8325c696c64e7f5747937c7c1b2f0ae676012361d9a0eca604f8fa62bd878"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/Type4Me/ASR/Providers/AzureASRConfig.swift:24-75 | Sources/Type4Me/ASR/Providers/DeepgramASRConfig.swift:45-54 | Sources/Type4Me/ASR/Providers/ElevenLabsASRConfig.swift:24-33 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/AzureASRConfig.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee2a45347ec66db60727885884497e544446af1ec0b84ecd8b8911b984e03d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:91-125 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:364-408 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1c1aacfeb4263d0bc02e63a61f7cc2d256b1d9db893898ce3356bf0c0c6313"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/Type4Me/Database/HistoryStore.swift:1198-1244 | Sources/Type4Me/UI/Settings/HistoryTab.swift:42-94 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e049280b25eb0b0490f804281da0bb7f9e46d66f894c44506bb3650950d82215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:73-112 | Sources/Type4Me/ASR/DeepgramASRClient.swift:94-137 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:52-85 | Sources/Type4Me/ASR/GrokASRClient.swift:70-105 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d279a37bc2a4a2e119d254d709eadc95aa46090bfca97edbf66f51bc14f7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/Type4Me/Services/AskAnythingCoordinator.swift:240-275 | Sources/Type4Me/Services/AskAnythingCoordinator.swift:277-317 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AskAnythingCoordinator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"067aafb40361a85f7d8fa9a72587d620ae71bc74a8a51cf8e284a476b2f49190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:78-122 | Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:124-167 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dbf6322f31d8f0e53eacbf1d0835afe040910422d5b653ce2b35d3127913d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): Sources/Type4Me/ASR/ElevenLabsASRClient.swift:148-180 | Sources/Type4Me/ASR/GeminiASRClient.swift:293-342 | Sources/Type4Me/ASR/GrokASRClient.swift:175-211 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ElevenLabsASRClient.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eede39203bd128551ff5e4c9d926ba790abba41fb5e0a6e6a28db323243a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:38-63 | Sources/Type4Me/Protocol/GrokProtocol.swift:53-87 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f4855596b8c5d8b5e11df11744f34b56edf201a5d07f4be6277cfe8a1d9ffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:36-63 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:56-83 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"85926fcb082b464a32ae720a853dc53803b47e8f84428ab3e4cc125497bbf351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:27-55 | iOS/SharedUI/LiquidGlassOrb.swift:57-76 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cab83f901af3e66b5f03118a7b49341433d03f1563ac731cb6d10039e4becd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/Type4Me/UI/Settings/HistoryTab.swift:180-211 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:101-129 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2f986b8f6878ed937eafd9ebbf317bc6136b88b01b79f9faf2621d6b9808fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Type4Me/ASR/SonioxAsyncClient.swift:178-208 | Sources/Type4Me/ASR/SonioxAsyncClient.swift:210-233 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxAsyncClient.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6d6e1c79d5d4b50caa585205027fc77c0679ba0ac6f55ffca0af61c0d0103"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): iOS/App/UI/SettingsView.swift:294-315 | iOS/App/UI/SettingsView.swift:317-337 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/SettingsView.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b155b06358c9e17b85f7b3885d7660994ec545d7d6dae47225fabe636b8cf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift:28-48 | Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift:52-84 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f043dc5ae0927e7e361d41629147c89c6c6cf5bbc6fa031d20bd120cfe69635"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Type4Me/CloudSubscription/CloudAuthManager.swift:52-64 | Sources/Type4Me/CloudSubscription/CloudAuthManager.swift:66-87 | Sources/Type4Me/CloudSubscription/CloudAuthManager.swift:89-111 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/CloudAuthManager.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f0ee4e4a75e50b35b29f75fe8974bdf8255b7dc00be987ae530d82d628400b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:944-967 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:970-993 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e50d2b7300c728094918030db5f1117bc03cdceba1426818e6b2aeca81823c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:160-182 | Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:186-208 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/MagpieProviderSection.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"269ae4049bac50aefce69793d469dd42947baf6d650e5fd9c213cade9df1f956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/Type4Me/Protocol/BaiduProtocol.swift:139-171 | Sources/Type4Me/Protocol/BailianProtocol.swift:133-168 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BaiduProtocol.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba58dbe9175b8fe72d9f258667a65c38a8292a670c0fba8a1192b3e9e700b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Type4Me/Input/HotkeyManager.swift:958-982 | Sources/Type4Me/Input/HotkeyManager.swift:985-1018 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfd3053fdffd75106d7bf5737ded4a33c7f7ff7d5fc0f308f45ca70fcef0272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/Type4Me/Type4MeApp.swift:1776-1797 | Sources/Type4Me/Type4MeApp.swift:1808-1830 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8f2434c029639b4019a9a8431a5268940e9628f66aba01b93d8634920f4a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift:31-44 | Sources/Type4MeUI/AudioVisualizer.swift:34-47 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b5fdf840cf0c5ae23417787db08975af0602fcdce6b19a0267ad83dc7ba2c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/Type4Me/ASR/SonioxASRClient.swift:131-164 | Sources/Type4Me/ASR/VolcASRClient.swift:465-493 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxASRClient.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf03b1c3962481a2e7cba7e81c8e9f8fd1ad7b040d8176ae49b5f39a24560861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/UI/AppState.swift:442-460 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:221-234 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4283773ba5df7b1e03f67c79bc9d693f8f0cad6174705a652f2acd7ab2d6569c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift:218-240 | Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift:242-269 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"644fba4aa1c634bfdf748e8cd0e2e6fc7bedd47ad46ae6eb2b2d52de44093b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Type4MeReviseCore/ReviseScopeResolver.swift:103-115 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:117-129 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d283f59e9d3bf62a40d4e07bfbe3515fe110c1957bbd143279e917e26baedaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Type4Me/UI/Settings/VocabularyTab.swift:682-699 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:1728-1749 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a87367200cb3aacfa06cbbc55eea44d7fb1d46d0ae5cf32e388a33737f6eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:151-177 | iOS/SharedUI/LiquidGlassOrb.swift:129-147 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"adef373266d4693519da936cb11da85b09cc9f2eaae5a1ce088da6d1fd4c4a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/Type4Me/LLM/LLMClient.swift:160-191 | Sources/Type4Me/LLM/LLMClient.swift:193-228 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/LLMClient.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86c026a373cc0c30eb7929093bcef6b69159e69784d851865235f0e3be47503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Type4Me/UI/Settings/AskAnythingPage.swift:420-444 | Sources/Type4Me/UI/Settings/HistoryTab.swift:805-819 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AskAnythingPage.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"b359d75fea393e380c544b9d49278aa6f32721b70daf029a585fdf83165c9512"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Type4Me/UI/Settings/HistoryTab.swift:416-441 | Sources/Type4Me/UI/Settings/ModelSettingsTab.swift:185-204 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7756e604b9f2bb39c5cc63339cc670c5d59cff8c163727fe69492c29f2756de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/Type4Me/ASR/MiMoASRClient.swift:54-81 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:52-79 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/MiMoASRClient.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a1e4a75e040ceb0751ee147e474cbe56fa6f06d1630d3884ca56793bc71415"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:316-329 | Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift:238-251 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d43911494b4b896c44db98b67cf0f09a3c27f4e9d33d790b0d73ab1dde441e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Type4Me/UI/Settings/ModelSettingsState.swift:127-146 | Sources/Type4Me/UI/Settings/ModelSettingsState.swift:169-188 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModelSettingsState.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"044135ca8dee8832f25435f5b1413352e43b7dc994798c00d03b6e5bb23c1a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/Services/ReviseSettings.swift:65-81 | Sources/Type4MeIntelliSenseCore/IntelliSenseDomain.swift:164-180 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ReviseSettings.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9764a3e68094f4787f1bb3bcc6d50dfe83473a71738f90a2f7380e6015ae57e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:252-266 | Sources/Type4MeReviseCore/ReviseOutputValidator.swift:432-443 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c742faaff8d7af3a4c2fdff2a7fd446d9dab0e1b76aa9dbe9cc212b17daf4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:178-196 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:200-218 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad80900ae16239641ab92ca65b034784fe229febe572c9003573b1f62ca4ca5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1734-1751 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1971-1989 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"404e147447275c3d53f6e8fde6d721b779346d210440eb3038b0865d02c223d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/UI/Settings/ModelProviderListView.swift:45-61 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:144-160 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModelProviderListView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f7e08e12c04e11780626f362b9cc6c9f076eb07700dde05fee77bd571025b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:268-276 | Sources/Type4MeReviseCore/ReviseOutputValidator.swift:445-453 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9705fcfce330b383ae4fd6e600bdc45edd45195b71a5d41b591040aa1b4196e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Type4Me/ASR/Providers/BailianASRConfig.swift:173-187 | Sources/Type4Me/ASR/Providers/StepFunASRConfig.swift:161-175 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/BailianASRConfig.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7008a534baacc6a55bec1112ad7886f805a0a64902eefe6ba45d0be23af059b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): iOS/Keyboard/KeyboardRootView.swift:584-601 | iOS/Keyboard/KeyboardRootView.swift:741-753 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"be70622d9c8aa52d5f4db46f2ed0be0d04ea6a62bd546215997a1d6d4cb9936c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/Type4Me/Type4MeApp.swift:1498-1524 | Sources/Type4Me/Type4MeApp.swift:1526-1560 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5397d58b0b638f74b1b180605ce99ee40a678ef972d900ff23ba40bd440963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift:509-525 | Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift:527-543 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76b98f31aea84c0bd4b05261eca35a2223b385736b024fd6c367eb4a3f9d62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 21\u002B corresponding lines): Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:941-961 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:963-983 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:985-1005 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1023-1047 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1049-1069 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Bridge/SherpaOnnxBridge.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"106745eb361825acdbe461f215bb7c76ad1bfed05361c8d2769267e7c4490418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:100-116 | Sources/Type4Me/UI/Settings/Mobile/MobileSyncPanel.swift:296-310 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/MagpieProviderSection.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9acbd33bc54fc39bf4f15d2dae3a24a165841935eaacb03ff7c1e510dee949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:69-77 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:89-98 | Sources/Type4Me/LLM/Providers/MagpieLLMConfig.swift:26-36 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c109b784a8ac1b6aa3f75d3f1489b80c57e939fac5721ab2dcd64c43f52d1af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:154-163 | Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:167-177 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b11554606077bb685fe68522e0e0fee8b22b5a1926b7f40f9224abe0f553cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:487-508 | Sources/Type4Me/UI/Settings/VolcRecognitionSettingsSection.swift:360-376 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"073405a6f05a9bb8f4589e170e3b0a85206c058de05c2f56dd1dad60191b4311"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Sources/Type4Me/ASR/MiMoASRClient.swift:25-48 | Sources/Type4Me/ASR/OpenAIASRClient.swift:39-60 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:25-46 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/MiMoASRClient.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa32cbadd1ea68a19d9acbfad88a8b8428acdf34ece2f956bee4a1f91597510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Protocol/DeepgramProtocol.swift:196-203 | Sources/Type4Me/UI/AppState.swift:287-295 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/DeepgramProtocol.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b900f0066bec5345110ec648861d6d6d3a5a42e4086b99735056e62b71e80f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:919-935 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:596-613 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"b232828b8af7c40420d860a14c1e431607c8d4b015d99ab101f74a091ea8d935"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:273-282 | Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:284-297 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1646-1657 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"163226aa5114f3abdc81cb71c641d780fe16c060fc285da7894df6ad2511a9eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Type4Me/CloudSubscription/DebugTab.swift:118-131 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1322-1334 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/DebugTab.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8714fa167c848df91fe90dbe90f77ce4d001ac8d8f7a956dc26a2ceca25b56fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/Database/HistoryStore.swift:556-569 | Sources/Type4Me/Database/HistoryStore.swift:1104-1120 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cddecf303d632264462e3a4f88505a89fa59da0fb8b5097310108ecbd60da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/Type4Me/UI/Settings/Mobile/MobileSyncPanel.swift:262-275 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:510-522 | iOS/App/UI/OnboardingView.swift:294-304 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/Mobile/MobileSyncPanel.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"25053e7b61d2905490366e09ebb7a8a18e307072e9b7d29f04d0970b7b310d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/HotwordStorage.swift:224-231 | Sources/Type4Me/Services/SnippetStorage.swift:505-513 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/HotwordStorage.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97949ff68175f0f1a243bd8f85769fff7258f9f6567bbf42fb9825f14f1b625"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift:929-939 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:804-820 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d47f798151d1ace984dc2c95c6d68db74cb5a4e99256fdaca5e70c704eae28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:203-211 | Sources/Type4Me/Protocol/GeminiTranscribeProtocol.swift:309-317 | Sources/Type4Me/Protocol/GrokProtocol.swift:328-336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7833389b6f007edbcd80ffbb59128d05cffabe789fe3eb121d761ffae0dda8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/UI/Settings/SettingsView.swift:456-467 | Sources/Type4Me/UI/Settings/SettingsView.swift:470-482 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsView.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f1eb56f445010f63548bf6b8aa47d9fdc0043d20fddd77b449ef83267873c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/UI/Settings/ModeHotkeyEditing.swift:95-111 | Sources/Type4Me/UI/Settings/ModeHotkeyEditing.swift:115-131 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModeHotkeyEditing.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"835c57f6ebf435f37ae57fe26ac71a79f3b1e366d1ab6c5a96e01509093bae21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): iOS/App/UI/Theme.swift:150-158 | iOS/App/UI/Theme.swift:163-171 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/Theme.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9014f21b5b8b572ed0d88234496cc6583b99ffbc3fe522ebaf3cda53a1194d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/ASR/GeminiConnectionGate.swift:125-148 | Sources/Type4Me/ASR/MetaMuseConnectionGate.swift:133-146 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiConnectionGate.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b87421e1b5ef02311afae5f27c2a95333bb23e6c4e759ef08657df234c2cdbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/Type4Me/UI/AppState.swift:1620-1642 | Sources/Type4Me/UI/AppState.swift:1644-1665 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a75054a785ccde434abfd1a8d11e492b9d8cbc751667408ee4f555563f0da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/UI/Settings/HistoryTab.swift:1251-1257 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1259-1267 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfde4be2c546b0cc1355d1b1597b28142dfbec0f5c9dd2bc455b37dbfaaf0a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:937-947 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:615-624 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e0d8c026a2bb73bcb648a9f1479ee8553cffe00dd6fc089e3ae7bc4176de85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/UI/Settings/HistoryTab.swift:1239-1249 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:510-522 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa457a08244a5d0ab9fcc551d958130088a67b1057d0d4118bd27e2897d5715d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/ASR/Providers/BailianASRConfig.swift:225-238 | Sources/Type4Me/ASR/Providers/StepFunASRConfig.swift:214-225 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/BailianASRConfig.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"910216a7b47240618d0f182b2469891f46e5f42260c6b0e70b473a1190f0257f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/Type4Me/ASR/AzureMAIASRClient.swift:90-106 | Sources/Type4Me/ASR/CartesiaASRClient.swift:69-86 | Sources/Type4Me/ASR/StepFunASRClient.swift:116-133 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AzureMAIASRClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8c8fe8eddca07332bf64cf90ab34793b0a277fca8031500777be75386e5f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/Type4Me/ASR/Providers/AWSASRConfig.swift:20-29 | Sources/Type4Me/ASR/Providers/AliyunASRConfig.swift:18-26 | Sources/Type4Me/ASR/Providers/IflytekASRConfig.swift:18-26 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/AWSASRConfig.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb061ac3ce75fe0501089c1fb1a2d0ec775a3fd25be1df6d47822311326d7f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:766-782 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:784-800 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Bridge/SherpaOnnxBridge.swift"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0806ea77f2e8e8d71ad1f34c1d39435823412e9e5f1b7496560bccadbc07bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift:86-97 | Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift:99-109 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BHomeDashboard.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b32382663ae4963e86b415d5ea188f3bb2de1882c0ac89a1a7d0b98415f3939"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Type4Me/Injection/ClipboardSnapshot.swift:43-62 | Sources/Type4Me/LLM/PromptContext.swift:236-251 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ClipboardSnapshot.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef2366f888c9d0b6ec5dec4a5c7aa2f1f090e3dbcf907f89811fad26fe8ccba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:336-350 | Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift:118-132 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e40f74dd49c47cfb499ff78ab9ba6249817fe9ea212488e1ab0acddb95aadb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:2131-2139 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:2141-2148 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0a88ad3e60b8d8a1e6fdc086a39b50dc1b8504be70a1ed99bd1733c11dcea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:255-273 | iOS/SharedUI/LiquidGlassOrb.swift:216-227 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"91687abb3f2580112b8795458c57b2ddee50d66e4d836853e3cfb9585cb9d00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:222-229 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:278-285 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:358-368 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d791f00f9e9242d174b86be16f18b39d80f8dc0e6db2d090b8e61f1049d86b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 18\u002B corresponding lines): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:126-144 | Sources/Type4Me/ASR/BaiduASRClient.swift:98-115 | Sources/Type4Me/ASR/BailianASRClient.swift:112-130 | Sources/Type4Me/ASR/DeepgramASRClient.swift:151-169 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:101-119 | Sources/Type4Me/ASR/GrokASRClient.swift:120-139 | Sources/Type4Me/ASR/MetaMuseASRClient.swift:112-132 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75628f1c72da5cc9db58293f0cb41f1654e7eaf0b34c049ed9543e309b2c260"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): Sources/Type4Me/ASR/BaiduASRClient.swift:270-286 | Sources/Type4Me/ASR/BailianASRClient.swift:274-290 | Sources/Type4Me/ASR/DeepgramASRClient.swift:274-296 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:243-249 | Sources/Type4Me/ASR/GrokASRClient.swift:278-284 | Sources/Type4Me/ASR/StepFunASRClient.swift:276-292 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5df6b453752ff32e733770ba61ceebfc04256b17d20d5951b2d54d949e5a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Sources/Type4Me/ASR/GeminiConnectionGate.swift:13-28 | Sources/Type4Me/ASR/GeminiConnectionGate.swift:30-45 | Sources/Type4Me/ASR/MetaMuseConnectionGate.swift:13-28 | Sources/Type4Me/ASR/MetaMuseConnectionGate.swift:30-45 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiConnectionGate.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"22de007c76e1200ea0f295b87633b5d7cdded392d08287658e67721ee47a0cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:190-201 | Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:203-216 | Sources/Type4Me/Injection/TextInjectionEngine.swift:238-253 | Sources/Type4Me/LLM/PromptContext.swift:208-221 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58f689dd18e19a8116e36434534efa7b618b9b5bc662692f7130fb80f2dc112"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/Session/RecognitionSession.swift:3907-3920 | Sources/Type4Me/Session/RecognitionSession.swift:3951-3964 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3907}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e5f586f33167fd1ea1668161b4aed39c164473178b30840d026f7d8630ae52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift:19-29 | Sources/Type4MeUI/AudioVisualizer.swift:22-32 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7cb2d279e89370bea60a8d47508ab3c4b48f0efaedaca852e329a4c5aa23f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Type4Me/Permissions/PermissionGuideModel.swift:89-109 | Sources/Type4Me/Permissions/PermissionGuideModel.swift:112-131 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Permissions/PermissionGuideModel.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa49ddbf1f88528864b0b8d32484d4c8c1d03520dc1d17e764016af495c5316d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Protocol/AssemblyAIProtocol.swift:74-82 | Sources/Type4Me/Protocol/AssemblyAIProtocol.swift:159-166 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/AssemblyAIProtocol.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3a957e607655a90e95dc270597043ba563b3859df470fc7f11e9662a467c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/Audio/AudioCaptureEngine.swift:221-232 | Sources/Type4Me/Audio/AudioInputDevicePreference.swift:407-418 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioCaptureEngine.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"873d6b3f421cfd6707c00ee291c146bee5456f8bd199eb17ed1fe11834b5635a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:218-233 | Sources/Type4Me/Injection/TextInjectionEngine.swift:428-441 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c55f5120d9133efd877ef8e48fb8054e59afa1200ce521cbea2ab329cc98ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:360-370 | Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:341-351 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2e4ea0043b87ba40703767fd9481ee02bef4b2f98c02e7436eb6145ef8e5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:2077-2082 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:2102-2109 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88de7cce2456b75ab8190118af02558894987d68dbbc0b715fb643d7d5f6729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Type4Me/Session/RecognitionSession.swift:4482-4497 | Sources/Type4Me/Session/RecognitionSession.swift:4499-4516 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4482}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22850c30bdfc782147ba1c3136b8ddef0f60871ac3f8979d61a51ca6339c741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/Type4MeApp.swift:713-724 | Sources/Type4Me/Type4MeApp.swift:726-737 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0ef12f3cbefe237861d91002e99b419b8776d2d801bd431be2d8b20893ae9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:734-745 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:747-758 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4ffc2103576d9dd380578eef807c39a12883fecbc3c5151bea675493b02215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:990-1000 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:1002-1010 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"5059c6d282fac6b4e70802b7372e2be71ca1f259aeefb2f463d84d60e54dc277"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/Services/BatchCorrectionInference.swift:188-197 | Sources/Type4Me/Services/ExpressionProfileStore.swift:474-483 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/BatchCorrectionInference.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0b6a3542eea34d438dcc4485725e41fc416ccec52d2219999f9c646c8deded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:802-818 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1842-1858 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Bridge/SherpaOnnxBridge.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"58efcc5f28e479aa5843152caeb9c08219ef210818d6da0ca8b8ee1dff667b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Sources/Type4Me/Permissions/PermissionDragOverlay.swift:17-33 | Sources/Type4Me/UI/FloatingBar/CorrectionLearningPanel.swift:21-38 | Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift:64-84 | Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGuideWindow.swift:71-86 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Permissions/PermissionDragOverlay.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"113c94582e189aae14d449c2f4e7e2b4c8f2b8a07bfc75e1af43ee8bc870a6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4Me/Protocol/AzureMAIProtocol.swift:79-88 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:308-316 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/AzureMAIProtocol.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc4304d06d72f289f75893a5f2bdb12e5ea6d2d5f8cf66c4234ef46ff87c8a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/ASR/Providers/GrokASRConfig.swift:43-50 | Sources/Type4Me/ASR/Providers/MiMoASRConfig.swift:49-57 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GrokASRConfig.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ee512fa7c00095a634cc97f895692dce652cd986d5d011b68fced351dd11e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Type4Me/Services/VocabularyCommands.swift:26-42 | Sources/Type4Me/UI/SelectionAsk/SelectionAskController.swift:15-29 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VocabularyCommands.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c160276b242c123f45d3649e1998d77d4bcf94296fde1287311360ef3f5f9274"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4Me/Services/ExpressionProfileStore.swift:194-204 | Sources/Type4Me/Services/ExpressionProfileStore.swift:206-214 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ExpressionProfileStore.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b05ba6e2cc0e75565a2a84e62d071eff2fab601651015fe3a9681c6d225083"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/UI/FloatingBar/CorrectionLearningPanel.swift:42-47 | Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift:86-96 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/CorrectionLearningPanel.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d02d17db36221e9e91559056247c99fba77f9c2481f9e2b36ecaa8cc6dfa30f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:260-270 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:779-789 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"df28da52bd093411f1c179a3565cd71c9ad7d362bd34428bb592b73b045e8eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): Sources/Type4Me/Actions/Implementations/CloseWindowAction.swift:8-16 | Sources/Type4Me/Actions/Implementations/FullscreenWindowAction.swift:8-20 | Sources/Type4Me/Actions/Implementations/LockScreenAction.swift:8-21 | Sources/Type4Me/Actions/Implementations/MinimizeWindowAction.swift:8-16 | Sources/Type4Me/Actions/Implementations/ScrollAction.swift:8-17 | Sources/Type4Me/Actions/Implementations/ScrollAction.swift:25-34 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Actions/Implementations/CloseWindowAction.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f94d5f889b8e2f14d615c007ec6d6764b862d94abc81560a2d14022301b7337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/Services/ModelManager.swift:689-700 | Sources/Type4Me/Services/AppUpdater.swift:671-680 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModelManager.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea6e4b37e4afc13b3a47acd77d0a0a655ea4dd34da841524a69e8f196d30b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1549-1561 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1598-1611 | Sources/Type4Me/Bridge/SherpaOnnxBridge.swift:1672-1684 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Bridge/SherpaOnnxBridge.swift"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57201b210ffdc0b160e833550b99128fd28097de66c19458410b86ac87f4a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/Database/HistoryStore.swift:249-256 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1336-1341 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9923214b7f78e3050ea2fb06e3899c942134605d9b806d365111703007c873a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4Me/Services/ModeStorage.swift:8-17 | Sources/Type4Me/Services/RecordingDisplayProfileStore.swift:14-22 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModeStorage.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c961803bc0a42b2062db658fb2eaf39d8c464ae3d6d786c3d8e69493d932384"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Type4Me/UI/Settings/SettingsView.swift:413-422 | Sources/Type4Me/UI/Settings/SettingsView.swift:485-493 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SettingsView.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed3553a27a13438be23fc70e7f6fe5498ac3d8668a1e6b62f13c79cd35d10d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:371-379 | Sources/Type4Me/Services/MobileConfigExporter.swift:109-114 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d536c35a3f9e160de0502ec7d93bcddfd3919d465e0b4ca9d5e19727256806"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/Type4Me/Services/CorrectionLearning.swift:448-452 | Sources/Type4MeIntelliSenseCore/CorrectionIntentAnalysis.swift:121-128 | Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift:63-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"256fd768bcbed18314303885c5c710d19d4f260224566bf1cfa17785a478d729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Type4Me/UI/Settings/HistoryTab.swift:1425-1438 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:1715-1726 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1b1d873f8aed4f9e5d83dbb8d8ac245203741599f1d04f5e0d49d0c28ffb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:167-174 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1680-1685 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b798d793196935b5523302e9db3f3e1de9ca56ab2479231fa8e7560b17c12e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/UI/Settings/Home/HomeTodayFeed.swift:442-448 | Sources/Type4Me/UI/Settings/Home/HomeTodayFeed.swift:450-456 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/Home/HomeTodayFeed.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"560b91fcf1ac902c6c87a6c1992d5ceea0141f58731f10a81f292afcf8ce72d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/LLM/CodexAppServerSession.swift:359-364 | Sources/Type4Me/Protocol/AzureMAIProtocol.swift:162-167 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/CodexAppServerSession.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f95cf7f177e6e0c07a3b6a4a671976f96785a4c0ce73ae6692e7d85d1df750"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/Services/MobileConfigExporter.swift:252-261 | iOS/App/Model/ProviderCatalog.swift:35-44 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/MobileConfigExporter.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36720b29c46419e92e20230094ac0054c98b19a9b0a5509b42a0fa3ff8e4e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/Services/AppDataLocation.swift:88-94 | Sources/Type4Me/Services/KeychainService.swift:38-43 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppDataLocation.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e990bd84d463a071364869357f2a9bff61ee338b87a932d356997e2cff7308e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/ASR/AzureMAIASRClient.swift:72-86 | Sources/Type4Me/ASR/TencentASRClient.swift:135-145 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AzureMAIASRClient.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bce52e8bac4aaeb3b5940b04f15791a49339d11074164458d73bcae2fa990ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Type4Me/ASR/GeminiConnectionGate.swift:61-73 | Sources/Type4Me/ASR/MetaMuseConnectionGate.swift:62-74 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GeminiConnectionGate.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf35c88d9538b696ab98799555bf4fa063fc691539b5f1b69db5f1ebd0e495d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/ASR/Providers/VolcanoASRConfig.swift:161-166 | Sources/Type4Me/Session/RecognitionSession.swift:349-357 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/VolcanoASRConfig.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd8b6a378aac6df887fc001119e3a7330692703a9364139c54e6e1e7c594cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/UI/Settings/AboutTab.swift:248-253 | Sources/Type4Me/UI/Settings/DebugSettingsTab.swift:173-178 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AboutTab.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cd8a573fdfcd1f556b0a6e15bba6621f87da30305fca2e16d5c41e8a823c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Type4Me/Protocol/BaiduProtocol.swift:193-196 | Sources/Type4Me/Protocol/BailianProtocol.swift:170-173 | Sources/Type4Me/Protocol/StepFunASRProtocol.swift:177-180 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BaiduProtocol.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"0454c614d1872a328a6900c9030f4043bc794f980b650d199f49b9a303393265"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/Services/AppUpdater.swift:658-669 | Sources/Type4Me/Services/ModelManager.swift:677-687 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaf7728131903aa38b7e85cad06f996566788f0e9ccd03e08c730065566945f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Type4Me/Services/ReviseSettings.swift:173-185 | Sources/Type4Me/Services/IntelliSenseSettings.swift:71-80 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ReviseSettings.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac826fe13aa2cdf5271ed82f4111918bd2fa92155028b481b701b0617fbef8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:225-231 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1515-1521 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f2c46c78104cbe43800f12c0edbb1f5005f4e5d70fc358efff11a2e009d201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Type4Me/ASR/ASRProviderRegistry.swift:70-77 | iOS/App/ASR/PhoneASR.swift:25-29 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ASRProviderRegistry.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f76b2e87bf8870505ba006ef1f8cb12211c96fd61cdb9500ff5cc54d3fdc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:187-190 | Sources/Type4Me/Protocol/GeminiTranscribeProtocol.swift:343-346 | Sources/Type4Me/Protocol/GrokProtocol.swift:323-326 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6383e619c0d97e04ffaf48ea22489123b50ae17ddd21e8abb6c97661eb4a4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Type4MeIntelliSenseCore/IntelliSenseHistoryTrace.swift:267-271 | Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:246-250 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseHistoryTrace.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e45b2b650d233d102e785349a2085de6dd032fa195f62689bc9b4bfac3ecba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/qwen3-asr-server/server.py:296-310 | scripts/benchmark_llm.py:127-138 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a7f597586a1d6055fcdd4278a90bac0993a191e3f4c795f386e5e30c983294"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift:101-108 | Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift:145-152 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1f1ce8b6d86912aeb225f7c47b6830e3dc90174c5a7e15694eacd8f20d544d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:158-162 | Sources/Type4Me/Injection/TextInjectionEngine.swift:475-479 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0effd52f82fc28e7d4234e4b82ea3fdf566433488bbef96acb3d100771f2fb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/LLM/LLMPricingSyncService.swift:80-87 | Sources/Type4Me/Services/UpdateChecker.swift:140-147 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/LLMPricingSyncService.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0812f4a0cb2f332ea708ead7af01deb15beea4e687c6a457b2f38a68a46d481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/Type4Me/Services/AppUpdater.swift:41-45 | Sources/Type4Me/Services/ModelManager.swift:13-21 | Sources/Type4Me/Services/SenseVoiceServerManager.swift:289-293 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c292518acb266322ef2cd62593c836c44a6a83c66a73c9015706d3aa9a2d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/Services/AppUpdater.swift:648-656 | Sources/Type4Me/Services/ModelManager.swift:669-675 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55c7cf2871e7fb26804f0b2602f5546eb5144ab577899c9124321d51150f672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:78-85 | iOS/App/UI/ServiceSettingsView.swift:46-52 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab3271ae58bc42d441f9e9dd0511f3c85d1a26d74814fb3ab9c4facf850fe06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/Type4Me/ASR/Providers/AzureASRConfig.swift:103-112 | Sources/Type4Me/ASR/Providers/ElevenLabsASRConfig.swift:54-62 | Sources/Type4Me/ASR/Providers/GeminiASRConfig.swift:123-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/AzureASRConfig.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbdc399c0c35a35d718ac745d4607d2f6d34e82fe7dcd8d388af43b898dd565"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Type4Me/Services/AppUpdater.swift:682-692 | Sources/Type4Me/Services/ModelManager.swift:702-713 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1113b6367c6ccca35c29ac1a29bf1c6c2ddd8db957d12d17b1f0b682a422268"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/HotwordStorage.swift:105-112 | Sources/Type4Me/Services/SnippetStorage.swift:235-242 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/HotwordStorage.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41d0e00fe77895fb6b0c2e141987ab360a939e718d05a6de237e1114d02af2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/HotwordStorage.swift:144-151 | Sources/Type4Me/Services/SnippetStorage.swift:260-267 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/HotwordStorage.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"766aaa1745143b6e4a1fb5dbc67b19abc1ee840ae582ab3aba2022fddd196781"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Type4Me/Database/AskAnythingStore.swift:591-594 | Sources/Type4Me/Database/HistoryStore.swift:904-907 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/AskAnythingStore.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bcceceae1d6900f178540d47ccb28a0308847f369545bc7be6b7c45b2801c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/BatchCorrectionInference.swift:172-179 | Sources/Type4Me/Services/ExpressionProfileStore.swift:230-238 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/BatchCorrectionInference.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c5a9aa15f9c1e029d6ae69b1bfefc3ed2bcdb518589b5a466d3ce40a1ecde4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/Services/HotwordStorage.swift:166-173 | Sources/Type4Me/Services/SnippetStorage.swift:279-286 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/HotwordStorage.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491d460f288e2db2dc928f1e4e5d55a6917eb323f4a8093fd479155e4b7358a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:208-210 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1523-1525 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc4e59eba484e9053d9ce50cbe3175b7e5da9180aac0e6d7163b85f56a59f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): iOS/App/Model/LocalStores.swift:67-70 | iOS/App/Model/VocabularyStore.swift:153-156 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/Model/LocalStores.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"944909dadfcd3b40586123152a62ebbbe58df326808d6fbc58233484b696dac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:232-239 | Sources/Type4Me/Protocol/SonioxProtocol.swift:131-135 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"481e7496f4ef359f6f98f1050507ce64725bcc64c2350d2a9636cc0d0106d6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): Sources/Type4Me/ASR/BailianASRClient.swift:292-301 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:238-241 | Sources/Type4Me/ASR/GeminiConnectionGate.swift:117-123 | Sources/Type4Me/ASR/MetaMuseConnectionGate.swift:148-157 | Sources/Type4Me/ASR/StepFunASRClient.swift:294-303 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BailianASRClient.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5469e4796e2cccd8901607c3a7e683e61887eb4caf85e7ae79769ebf34711873"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/Type4Me/Protocol/CharacterExtensions.swift:13-22 | Sources/Type4Me/Services/CorrectionLearning.swift:388-397 | Sources/Type4Me/Services/TechnicalTokenBoundaryResolver.swift:120-129 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/CharacterExtensions.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e12644fb5df1c086f49e13363e578e9a2ea23450d4e75330424514b09657df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Type4Me/Services/HotwordStorage.swift:20-23 | Sources/Type4Me/Services/SnippetStorage.swift:22-25 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/HotwordStorage.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1fd366ab088c63574d0a7c41cbf57a38b364eee4f6f26d98d3e4d172ddc747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:347-354 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:147-154 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a2e2eb46779a5ade80b8ba52922d7785ff650a6aaf99c25c3c15bfcaf48ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Type4Me/Input/HotkeyManager.swift:1603-1607 | Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:196-198 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8503d9d431045ab0d1a87b9d27888f43c8a7e3cfd30b5c17f602c7dabb62b627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Type4Me/Services/KeychainService.swift:599-605 | iOS/App/Model/ConfigStore.swift:157-163 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc310b3839dd2ae5df32e98e22132ae639e663b6bbfd2ff456512f78cd589ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Type4Me/UI/Settings/VocabularyTab.swift:842-844 | Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:155-157 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"5431f022c9e71e03d59eb468dbfb75685d11f97e38016b0d71f3d629dd2b96bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/Protocol/AzureMAIProtocol.swift:118-123 | Sources/Type4Me/Protocol/StepFunASRProtocol.swift:84-90 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/AzureMAIProtocol.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6e78157fb04cb74587be242b38f939317f718ef473529d3d247adf2340bb63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/Type4Me/ASR/GrokASRClient.swift:107-110 | Sources/Type4Me/ASR/SonioxASRClient.swift:89-94 | Sources/Type4Me/ASR/TencentASRClient.swift:123-126 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/GrokASRClient.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e4adf285b310ec039e239e74c251ec0963bc8cfdc188de664e8ee97497fc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Type4Me/Services/AskAnythingCoordinator.swift:599-604 | Sources/Type4Me/Session/RecognitionSession.swift:1865-1870 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AskAnythingCoordinator.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb154fe50bc8c30c23cdfd0c3e2d1ed6250324190ed9bd2e487185e3a2ef6e82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Type4Me/ASR/BufferedBatchASRClient.swift:84-86 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:460-462 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BufferedBatchASRClient.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d63952ab30e4ba54f650dda0879fb716f5d266960df1f829f09934c03471f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): iOS/Keyboard/KeyFeedback.swift:79-84 | iOS/SharedUI/RecordingCapsule.swift:485-488 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Keyboard/KeyFeedback.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9635a92def6b5be9d71d854b36788c8971183b13cf0d207744ae63474913286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/Type4Me/ASR/Providers/OpenAIASRConfig.swift:49-51 | Sources/Type4Me/ASR/Providers/SonioxASRConfig.swift:60-66 | Sources/Type4Me/LLM/Providers/ClaudeLLMConfig.swift:47-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/OpenAIASRConfig.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dfa157d603d26fd2cff77366dc25bc265287bc066832642b884e4c97ebc183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:2091-2095 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:963-966 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2965de8fa5fe6d3a6b6b2294db60568d263e83094fc2214eefa7d903de815b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201361 lines \u00D7 2): Sources/Type4Me/Services/CorrectionLearning.swift:284-342 | Sources/Type4Me/Services/InjectedTextResolver.swift:163-223 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71513529ca09152f09346cbc9a06ea901283360da63f9427cd853b7f2b80eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201343 lines \u00D7 2): Sources/Type4Me/CloudSubscription/AccountTab.swift:71-100 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:133-175 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"107c9495e0f7eca823ff12b2bf76fc8ea6cd6e52f3b5bd5ad4c04bda2ac715d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1604-1646 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1823-1865 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"2584617dcc488f3613b40d3167250fdcdc228163359ccd90f5da7e231de2bb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Sources/Type4Me/Session/RecognitionSession.swift:2355-2395 | Sources/Type4Me/Session/RecognitionSession.swift:2489-2529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb142d53d9d71849821841dfa029d62dc1df949f371e4f2c25e59a154e83b128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModelProviderListView.swift:102-136 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:187-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModelProviderListView.swift:102\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModelProviderListView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a0f1bb42edbd9b3552c6e6896b5d6eda55b2e8ba11b16d190e409a36ebf6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1652-1689 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1869-1906 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1652\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e059e676dc354b445c2a8ed86f3bc316a16c48a469fa61036ceb84ca3956d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:85-116 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1443-1474 \u2014 before extracting anything, compare \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift\u0060 and \u0060Sources/Type4Me/UI/Settings/HistoryTab.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a074a3ceb96cfc2041ed2dae4471278c8160d5b4c30444bcd15a690a781d0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift:44-74 | Sources/Type4Me/Database/HistoryStore.swift:847-872 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift:44\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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8f09e42cc25f71f2c4ea255c51e7adf0d0cc2b60107a4df44b7dc605adcf65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 2): Sources/Type4Me/CloudSubscription/AccountTab.swift:109-128 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:177-203 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift:109\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d081c144e4a5c2cc3a0cfadf30a437381e3342fee588c1b17d3a9db1d228a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): Sources/Type4Me/LLM/DoubaoChatClient.swift:67-110 | Sources/Type4Me/LLM/DoubaoChatClient.swift:141-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/DoubaoChatClient.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5072f3b94459e68ace4abbbb6f4dd4688ae52a862b91d1f5e1bb073fac522c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:90-115 | Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:161-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b86edcc1754ebbf4b7e79665b6eb0694a16dfce3d5c20b10ac9d2029c8693f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:396-420 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:448-472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:396\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a3d2ffd585f2f844900eb22571ebd53958061e0333406a44ed36165d505d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/Type4Me/Session/RecognitionSession.swift:1915-1938 | Sources/Type4Me/Session/RecognitionSession.swift:1959-1982 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Session/RecognitionSession.swift:1915\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":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b214efc2cf6fe78dfbbde005ffd6b0d31ed973a5da740730cc175f1c6e8ae88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): Sources/Type4MeIntelliSenseCore/CorrectionIntentAnalysis.swift:65-93 | Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift:253-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4MeIntelliSenseCore/CorrectionIntentAnalysis.swift:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/CorrectionIntentAnalysis.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"238212d13c79611d97ca35609021b46025263fb524a7137e80dba4d2809e0cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore.swift:30-49 | Sources/Type4Me/Database/HistoryStore.swift:181-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Database/HistoryStore.swift:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29c1c423b7b07f04e4c5a9f85bc1c577e7193094bc2ca2b5b8678917e05cfe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:119-140 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1477-1498 \u2014 before extracting anything, compare \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift\u0060 and \u0060Sources/Type4Me/UI/Settings/HistoryTab.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb315d5bd6acde84f356f33270cee3d9b608e6ca7333ecc8c71c6b49b273ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/Type4Me/Protocol/BailianProtocol.swift:143-163 | Sources/Type4Me/Protocol/DeepgramProtocol.swift:130-150 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BailianProtocol.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6086f2cb7f2317ee1b173ee3f0a672bef2a6b04859b12463da7a6744263448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Sources/Type4Me/Services/Evaluation/VolcBench.swift:252-270 | Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift:198-218 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/Evaluation/VolcBench.swift:252\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"df89cf9329f91ce8f2a7d32dbffbce751bc07b6cc1256a2bd16e508550141c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:238-256 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:532-550 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:757-775 \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 \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6315a9205ef512f83225a31cf727b38653fd7f62b258a317ccb10141ee37ae37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Type4Me/Services/KeychainService.swift:151-169 | Sources/Type4Me/Services/KeychainService.swift:273-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/KeychainService.swift:151\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/KeychainService.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f819ec27392539e7a2de9cb9508c35e5f74141732902df008f1b6bd0e64d8f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:419-437 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:199-217 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:419\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 \u00602\u0060 in one and \u00606\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bf9acae94b1c30c70fa34042ca9de89752d2b6731ccaf3fe71faa374c55fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:334-351 | Sources/Type4Me/Protocol/AssemblyAIProtocol.swift:201-218 | Sources/Type4Me/Protocol/BaiduProtocol.swift:174-191 | Sources/Type4Me/Protocol/BailianProtocol.swift:185-202 | Sources/Type4Me/Protocol/DeepgramProtocol.swift:158-175 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"794890c3b45c3520f07e8c3ab0a4510e49e4058f5a0d8cfa9d0dac766e352ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Sources/Type4Me/Audio/AudioInputDevicePreference.swift:373-390 | Sources/Type4Me/Services/SystemVolumeManager.swift:86-99 \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":"Sources/Type4Me/Audio/AudioInputDevicePreference.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a481d8b08dac4f070195b4bab63d610e843cbecc223c0f79e382cc60a4c00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201318 lines \u00D7 3): Sources/Type4Me/Database/HistoryStore.swift:417-419 | Sources/Type4Me/Database/HistoryStore.swift:1027-1044 | Sources/Type4Me/Database/HistoryStore.swift:1078-1095 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d890120a43e1f4c3a212dd2da06422eea785158b6197a91e539d599ad3303ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:44-59 | Sources/Type4Me/Protocol/GrokProtocol.swift:66-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060ElevenLabsASRConfig\u0060 in one and \u0060GrokASRConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"68db9f1810df30f71103904243e94411f2c2cb1e8caaa4b612edaf081151f076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:284-301 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:307-324 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:284\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"955661154e5799a9a9dfe28ca3c235a3960bed87e18dbf5c2d02abc0968bdbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:446-463 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:798-815 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:446\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"7801033a4833acfa24219685925db54a9d665b8d5a1c57ab72617dd79d54ff9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:137-153 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:289-305 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1495-1511 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5996ef052b01fc2a369b4fc330d941b07bfe72ddfd8ebc21cbf857f5adc10be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Type4Me/ASR/BufferedBatchASRClient.swift:253-269 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:30-46 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BufferedBatchASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/StepFunBatchASRClient.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/StepFunBatchASRClient.swift:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BufferedBatchASRClient.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a8f89bb1a2160676579cb7352e24f545a8ed5d3881be037224d38fcdc9bd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/Type4Me/Input/HotkeyManager.swift:962-978 | Sources/Type4Me/Input/HotkeyManager.swift:995-1010 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Input/HotkeyManager.swift:962\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"886b0f7d21ba17489d917a4f08a1a39b6da86036e44248fbfcf119f1e94d730f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Sources/Type4Me/Type4MeApp.swift:1093-1109 | Sources/Type4Me/Type4MeApp.swift:1171-1185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Type4MeApp.swift:1093\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ac95b195f33fee8494e72cd2480c537c8c654dc35a8717dbb18065016a2c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Type4Me/UI/AppState.swift:1623-1639 | Sources/Type4Me/UI/AppState.swift:1647-1663 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"885d04de1f14f1eb99b92f74965b09f862ba0d0fe54dbfbfd45f4f5ed9e9cd12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:73-88 | Sources/Type4Me/LLM/DoubaoChatClient.swift:117-132 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e158b55781a22706bc916757971ebbd351f3ccb1f513be84bd22a8c6c47910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Type4Me/Permissions/PermissionDragOverlay.swift:17-31 | Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift:64-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Permissions/PermissionDragOverlay.swift:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Permissions/PermissionDragOverlay.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b16cf3bf0ef1cf3061f010caa8e81b26c13f9b6ce10e884d8dbf4a3b630131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:198-213 | iOS/SharedUI/LiquidGlassOrb.swift:171-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a90676925331ada49c4c28a42581c396707b57b028acfe3e0201368ddc2a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:160-175 | Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:186-201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:155\u0060 calls \u0060padding\u0060 and \u0060Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:181\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":"Sources/Type4Me/UI/Settings/MagpieProviderSection.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"93de5684f0f06487aa4f7e2a7b259242de9893277dc2d139331c032ded8e0da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1717-1732 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1954-1969 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1717\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"1117bc60799f9feb47893571e4aec05ff255130b379b22e0be806d558a0ef18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/Type4Me/ASR/SonioxASRClient.swift:230-244 | Sources/Type4Me/ASR/VolcASRClient.swift:572-584 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/SonioxASRClient.swift:230\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxASRClient.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"83881e1ca49e5d522fa56ed49048cb8825b12bb3dbce7b3196d98d09542193c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/Type4Me/ASR/StepFunBatchASRClient.swift:92-106 | Sources/Type4Me/Protocol/StepFunBatchASRProtocol.swift:86-99 \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":"Sources/Type4Me/ASR/StepFunBatchASRClient.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb13fcc4a3154e210a247fbbc550eb94e622e97d31501ee79aaab834b32f9109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:216-230 | Sources/Type4Me/LLM/DoubaoChatClient.swift:322-336 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a3a3384aa10423e6f834eff21984505039ff6b3f83141eafa9cc8dce8a44b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:110-124 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:244-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"423fece75869bf616f2bd9fdc8f4a9f76f0bf1c61c388f7fbfad609d8a5d571e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Type4Me/UI/Settings/VocabularyTab.swift:1292-1306 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:1413-1427 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/VocabularyTab.swift:1292\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93ce1308c2a8b9a265e2673784f15ed07ac58191e21675722053d894f1af433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:39-52 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:217-230 | Sources/Type4Me/Database/HistoryStore\u002BRecentLLMRecords.swift:26-39 \u2014 before extracting anything, compare \u0060Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift\u0060 and \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad7bb042daf68efc459ad9281fbfd7fd94ef9a6a4fe245b1c96ad160234f5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:243-256 | Sources/Type4Me/Injection/TextInjectionEngine.swift:489-502 | Sources/Type4Me/Services/CorrectionLearning.swift:1307-1320 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"109a88f0f080bc2b6f14baf82c922a20834b93863358cdde262d64bd74ede018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/ASR/Providers/GrokASRConfig.swift:18-31 | Sources/Type4Me/ASR/Providers/MiMoASRConfig.swift:25-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/Providers/GrokASRConfig.swift:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GrokASRConfig.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47af4bb185599fde9e38b18a15342518432c506c27f7c18724cc3438796c5bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/Audio/AudioInputDevicePreference.swift:392-405 | Sources/Type4Me/Services/SystemVolumeManager.swift:117-130 \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":"Sources/Type4Me/Audio/AudioInputDevicePreference.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"8702bb417bde3e809a31b72cde1329e0a9b2921752ad5ed734cd3be33e490bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:143-156 | Sources/Type4Me/LLM/DoubaoChatClient.swift:219-232 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:143\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"daee0b28ec5819cf8a2ac25cd34943b8be74e0412ca85b0b1302eccdceb18010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:71-84 | Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:142-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassCancelButton.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1253fbd31c08adf1b3b688595b030e54e0b7f562c84ad422e414ceb356c0964d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:378-391 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:388-401 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce19b2a286ccba34717fa1c8a5fd0b8658b7780bc777aa5f972175ec276c2a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:126-138 | Sources/Type4Me/ASR/MetaMuseASRClient.swift:112-124 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/AssemblyAIASRClient.swift:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4d32df3c4b81e219ffeda8e1fdc3be9cf3bf2230eedb592b751da08fb7f015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/Services/IntelliSenseSettings.swift:20-32 | Sources/Type4Me/Services/ReviseSettings.swift:95-107 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/Services/ReviseSettings.swift:92\u0060 calls \u0060NSLock\u0060 and \u0060Sources/Type4Me/Services/IntelliSenseSettings.swift:17\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/IntelliSenseSettings.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bc93a51e3adc5c37ccc155c57a654fc661ab810cefbaaf8a942f14d61edbaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/UI/Settings/AppearancePreviewStage.swift:185-197 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:550-562 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/AppearancePreviewStage.swift:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/AppearancePreviewStage.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"13033492ddb65fd4768c9cfb8dec673c68c6e9102b34ec7ba8462e1fb96cd70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:433-445 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:487-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 \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96c266d922594372f731240c786f2d70bcdcecea6c4699ecd01dadf68493127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 6): Sources/Type4Me/ASR/BaiduASRClient.swift:117-128 | Sources/Type4Me/ASR/BailianASRClient.swift:132-143 | Sources/Type4Me/ASR/DeepgramASRClient.swift:171-182 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:123-132 | Sources/Type4Me/ASR/GeminiASRClient.swift:248-257 | Sources/Type4Me/ASR/GrokASRClient.swift:151-160 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BaiduASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/BailianASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/BaiduASRClient.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift:184\u0060 calls \u0060info\u0060 and \u0060Sources/Type4Me/ASR/BaiduASRClient.swift:130\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":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6350ff78b718dad0a2e82ed2bfaf03d559e4f792f4dd98209cc1647ff2ff1ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/Type4Me/LLM/ClaudeChatClient.swift:101-112 | Sources/Type4Me/LLM/DoubaoChatClient.swift:70-81 | Sources/Type4Me/LLM/DoubaoChatClient.swift:144-155 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:113\u0060 calls \u0060setValue\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift:82\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":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e045c34b1f37148e54ee5e9fd7ade32b44e3f8652c588fbc16c8d8efb7177e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Sources/Type4Me/Session/RecognitionSession.swift:2335-2345 | Sources/Type4Me/Session/RecognitionSession.swift:2470-2480 | Sources/Type4Me/Session/RecognitionSession.swift:3760-3771 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Session/RecognitionSession.swift:2335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed199a98098212aa36854d460e5554bad39ce91b207f9a47678782e1a0e9f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:106-117 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:250-261 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1464-1475 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b4865362524f44818243ccc744561f0dbdb8e9d9696802326e1044644e20a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:123-134 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:268-279 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1481-1492 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d3f24215d792f9698514253556827e8f81680b131b6e640796008e865d3ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/ASR/GrokASRClient.swift:27-38 | Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:1098-1109 \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":"Sources/Type4Me/ASR/GrokASRClient.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4327d79161065bf492d1921fc590f70d1f75adedaa901809d8cf90c4cf7237b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Type4Me/ASR/SenseVoiceWSClient.swift:53-63 | Sources/Type4Me/ASR/SenseVoiceWSClient.swift:75-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/SenseVoiceWSClient.swift:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Sources/Type4Me/ASR/SenseVoiceWSClient.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bc9ebf553584e58c24db2d6191d0917bd06a13439bdb2573643bb8890139af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/CloudSubscription/DebugTab.swift:150-161 | Sources/Type4Me/CloudSubscription/RegionDetector.swift:43-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/DebugTab.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb6f7b64e7514b128f0822f1a45e449dd569390436263fe712db8f67fe2cb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:187-198 | Sources/Type4Me/Database/HistoryStore.swift:259-270 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8155dcae30287d4be268c47f1f6fe2be875b256447320b64d053c84db949df8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/LLM/ASRVariantGenerator.swift:162-174 | Sources/Type4Me/LLM/ASRVariantGenerator.swift:232-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ASRVariantGenerator.swift:162\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":"Sources/Type4Me/LLM/ASRVariantGenerator.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e50b80da6bd45ca3e6a612c44386d5e5360cd4983813a5d30d3d3c2c37c294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/LLM/Magpie/MagpieGateway.swift:119-130 | Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:143-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/Magpie/MagpieGateway.swift:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/Magpie/MagpieGateway.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2f3be54af53f7356d9617173e4fad8ae8a607eeb80a8b4431ec64786a5451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift:110-121 | Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift:217-228 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"288ea17f5dd71ffbdf13d0bbfd270b2c76ca4498da24d4c7779bd237a81e4cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:339-350 | Sources/Type4Me/UI/Settings/AppearanceSettingsTab.swift:121-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:339\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fd4d40bd0d7ce4c342382e65d52909b345942b5528d3306d84f9511333e1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1058-1069 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1377-1388 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1058\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 \u00606\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1055\u0060 calls \u0060truncationMode\u0060 and \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1376\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e5b6d9fdd1467941250c340c98104e52e27c77e2d02107ed1d30045c2ea35a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/UI/Settings/Home/HomeDashboardModels.swift:55-66 | Sources/Type4Me/UI/Settings/HomeDashboardView.swift:479-490 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/Home/HomeDashboardModels.swift:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/Home/HomeDashboardModels.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ca71c242afa1ee78108a18d04138b5d6ed0df5c89032c82f1f7ef146e8886e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:117-128 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1422-1432 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0665716f54188acf9714c31e9868cd0d4d76df59c4576cb1e0bf4d10c35263de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:140-151 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1448-1457 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0e460edf4d9a4b5cb9dc780c9bc636b10581dd2d4996d0f75681cf50a1f1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:421-432 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:474-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"886190d5c73e7a32a4cb247c9d294304a31cc680879da39a87eda377cfa39fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:132-143 | Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:365-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/MagpieProviderSection.swift:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/MagpieProviderSection.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1527612de5121c37c7832990347bcdc5c1575f3e575ce633f7907640568da8a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:316-327 | Sources/Type4MeReviseCore/ReviseProtectedFactAnalyzer.swift:238-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:316\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"971335f6806fe24fa2d1f22322e13cdec23f64593733863d0df2024376cb4696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Type4MeReviseCore/ReviseScopeResolver.swift:50-60 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:64-74 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:78-88 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"228cfdac92d2c4e3c0fc2af47ac48094bb8fd0f51e86439857eccd2b7c5e526c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/ASR/MiMoASRClient.swift:94-104 | Sources/Type4Me/Protocol/MiMoASRProtocol.swift:155-165 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/MiMoASRClient.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/MiMoASRClient.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf53e97e6ace98ef24d7aa0f8cd22807546e5128a2411f934c5fa0e85f4f495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:53-63 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:73-83 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift\u0060 and \u0060Sources/Type4Me/ASR/Providers/MistralASRConfig.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:53\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685f4cbf7ff3a0342730bdf129db71208fc98bd69d36213a3f6675665a287a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/Actions/Implementations/SetBrightnessAction.swift:10-20 | Sources/Type4Me/Actions/Implementations/SetVolumeAction.swift:10-20 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Actions/Implementations/SetBrightnessAction.swift:10\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Actions/Implementations/SetBrightnessAction.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb9e37aa76eacfe2965139e30accc1bd326a9d7264985894ed4d89674c44c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/Audio/StartSoundRouteGate.swift:360-374 | Sources/Type4Me/Services/SystemVolumeManager.swift:102-112 \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":"Sources/Type4Me/Audio/StartSoundRouteGate.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58f0c8a8ad80f550dda7cc3d156d995c1975e22f4bc54fa71874d7444d31ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Sources/Type4Me/Services/VolcBoostingTableManager.swift:140-168 | Sources/Type4Me/Services/VolcBoostingTableManager.swift:200-227 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/VolcBoostingTableManager.swift:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VolcBoostingTableManager.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2e8dabbbcc256a515da7f966f556f7ea946f60237d936c7062b8127e4a12f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/Type4MeApp.swift:1777-1787 | Sources/Type4Me/Type4MeApp.swift:1809-1819 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bbce2a7da66b0cf3ee9b3ebade6c1fc70871c768c9ef45036e0b37421b3515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/UI/Settings/HomeDashboardView.swift:68-78 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:143-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HomeDashboardView.swift:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HomeDashboardView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4275c79cae96d7e0272925a5f665a9efc9b0141e4152551f2e73497c2b85c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1753-1763 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1991-2001 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d00a0ebab67057a6d87a23a1cdd110647d2df4baa6e5c05820aa38b3dcf5309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:141-151 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:285-295 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00606\u0060 in one and \u0060TF.spacingXS\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"396640aebda10cf6c8dcb6c3d44f50cd7152d9fc402b4442b19c6af3cbddcbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:516-526 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:282-291 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:305-314 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:330-340 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:516\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:279\u0060 calls \u0060secondaryButton\u0060, \u0060L\u0060, \u0060openApp\u0060 and \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:304\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":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5930efd01997af7c7b1f3d27a2360d0db1a888ccd8afbe0115f81d33b255b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Type4Me/ASR/SonioxASRClient.swift:218-227 | Sources/Type4Me/ASR/VolcASRClient.swift:561-569 \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. 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":"Sources/Type4Me/ASR/SonioxASRClient.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2467cd1889c7e7110afcaeb669c4f484559dd5e7389b23c5bb1134fe005f384d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/ASR/SonioxAsyncClient.swift:236-245 | Sources/Type4Me/ASR/SonioxAsyncClient.swift:248-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/SonioxAsyncClient.swift:236\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxAsyncClient.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"293c51e820710e98493a91372fb9a88087a6e3bb51213ac401396528dd487a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore.swift:1211-1220 | Sources/Type4Me/UI/Settings/HistoryTab.swift:53-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note 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":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"80304085696d6471e11074c2f8039c41dcc3854e4ce3b2877c248ae762c27d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:90-99 | Sources/Type4Me/LLM/DoubaoChatClient.swift:134-143 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb8663dc84a007b3304399b0e2d8bf35c134fb3e3ed2a4d5196ffdd47707d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:157-165 | Sources/Type4Me/LLM/DoubaoChatClient.swift:241-250 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f54a88689fdc0348a4b9c5c7cb4eb2993aa3ccaf1846cbefafdad98b63859a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/Services/IntelliSenseSettings.swift:87-96 | Sources/Type4Me/Services/ReviseSettings.swift:194-203 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/IntelliSenseSettings.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0955f018b88c87f61ec9b36338378aaf2b4d482c571b17eff52784b7cf3bfd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/Session/RecognitionSession.swift:4046-4055 | Sources/Type4Me/Session/RecognitionSession.swift:4102-4111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Session/RecognitionSession.swift:4046\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":4046}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc41e101aaeb9271e57211a860f4a6c03d2840227ce8d16a9c2d7870623ecb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift:228-237 | Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift:251-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGeometry.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd286a557c34d9b1262dcd8dc73b924e8b81d151ad5e5b23fd553674558018e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1145-1154 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1290-1299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5ed2b08f13f503e21df69a39cebb4357a0e605bd80ec74800580c1aaf32a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:180-193 | iOS/SharedUI/LiquidGlassOrb.swift:150-159 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a987e0f784b54db03aa0b9c961fb1c9bdfac01de1229daff9ee2ffbff89396ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:229-238 | Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:264-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:229\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"899435a7e4c81c3b8a58d7a0438131a1a7ff5e829bb43b01b2e1ecc240d5bb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:214-223 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1504-1513 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7173b61cd95ab8a106f7074320cc7cf625a455e0bdf0f35d85a66f94e83a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:91-100 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1908-1917 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:91\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, \u0060Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:102\u0060 calls \u0060VStack\u0060 and \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1919\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":"Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"db68e237a78198ef3759ae115e05627a1553fd950c6d53abb2ede37d3e5967db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:103-112 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1919-1928 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:102\u0060 calls \u0060VStack\u0060 and \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1917\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":"Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f00d95b94a19c8aab47287ecadc3da8940b0c526000822c87faa59dbb2625fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/MagpieProviderStatusModel.swift:63-72 | Sources/Type4Me/UI/Settings/MagpieProviderStatusModel.swift:120-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/MagpieProviderStatusModel.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0221049ca70d500fe3e0c8043d8e34ee20692be94db571055d80c2fb7499c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:65-73 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:295-302 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:334-341 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:378-385 \u2014 before extracting anything, compare \u0060Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift\u0060 and \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d64da912f275678bd8fd7353e154b47b40dd06a161e58496e599a2e2d34e81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:136-144 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:288-296 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1494-1502 | Sources/Type4Me/UI/Settings/Home/HomeSideCards.swift:210-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/Home/HomeSideCards.swift:207\u0060 calls \u0060tile\u0060, \u0060VStack\u0060, \u0060Text\u0060 and \u0060Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:287\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":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2481bc48d987d7c76155b5af85a01b6649d6aac13d44e5b4b30cf76eb841410c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/Type4MeReviseCore/ReviseScopeResolver.swift:37-45 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:51-59 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:65-73 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:79-87 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc42d527697c7f20b46a043dd3a1630e3375aa90141a4cc9ce05b47c3b17c3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:89-97 | Sources/Type4Me/ASR/DeepgramASRClient.swift:118-128 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/AssemblyAIASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift:118\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b9a365ec1484a64aead572698e8e9e133ab907bd2edbdd7d162d9fc4c58727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/ASR/SpeechRecognizer.swift:26-34 | iOS/App/ASR/RecognizerSupport.swift:26-34 \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":"Sources/Type4Me/ASR/SpeechRecognizer.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5aa265b21992c337a2ead72a9e0698a55d8282f93878a5d15cac0242938e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:80-88 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:308-316 \u2014 before extracting anything, compare \u0060Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift\u0060 and \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:80\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"617de52ffd690549d07816518bde2dcc4ed7636e71836339b7c92fd5e61c5efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:233-239 | Sources/Type4Me/LLM/DoubaoChatClient.swift:339-347 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b690ffca6a07922314d946f06241e212657803b881abbe0e2643c9b3322562e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:93-101 | Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:131-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3357835eb4b86205a6f192b5489f0ac65027543273e2ddd5cef444b3570b8a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:193-201 | Sources/Type4Me/Protocol/GrokProtocol.swift:338-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf45c56ba65856bf0b26e43b30eab3b7bc76570905eaabdf846a9fa52ac3d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/Services/Evaluation/VolcBench.swift:239-247 | Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift:185-193 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8ca83c09672f6d546491d9bddb7968c24bd679ca4e9c0dfa63ab6f34b5c09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift:41-49 | iOS/SharedUI/LiquidGlassOrb.swift:62-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/LiquidGlass/LiquidGlassOrb.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5417d696c6c58c6646f848bb77a3f61583a1e3dc8b9f816aaca37742408b7235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:117-125 | Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:369-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefd66988c51e1ff5bbb0cd01cc1e7b7fa3dcdb9f432a0fae354eb2b25bb1739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/UI/Settings/HistoryTab.swift:433-441 | Sources/Type4Me/UI/Settings/ModelSettingsTab.swift:196-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HistoryTab.swift:433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f2c339ff88f03d19db6b6f134fe246237eae257db0c546884f4c063fa259d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModelProviderListView.swift:48-56 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:147-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModelProviderListView.swift:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModelProviderListView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"95eeff5feadc8337f101283ca970fd5e50a52a0bd3d2b3d7c3f3459c2006c892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:373-381 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1694-1702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:373\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba68565ce4b928e0c208b6a139dbdd5fd27fca4f6bd75cfc11e0280daaf832c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4MeReviseCore/ReviseScopeResolver.swift:107-115 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:121-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4MeReviseCore/ReviseScopeResolver.swift:107\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a7bf2b8a53b226e6bd972bafc9cd28d52a90dde92001a256ff97b7842e0e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:532-539 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:296-303 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:319-326 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:346-353 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c27a8537a10b41eacf919a2014f222b60beff8356f6432fd158abf77c663c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Type4Me/Protocol/ElevenLabsProtocol.swift:204-211 | Sources/Type4Me/Protocol/GeminiTranscribeProtocol.swift:310-317 | Sources/Type4Me/Protocol/GrokProtocol.swift:329-336 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/ElevenLabsProtocol.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b51f4c4a837a9437cf444ed93137ca4d5574f1120670d2ac1a1675ade1c1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Type4Me/Session/RecognitionSession.swift:1921-1928 | Sources/Type4Me/Session/RecognitionSession.swift:1965-1972 | Sources/Type4Me/Session/RecognitionSession.swift:2866-2873 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f007549875a1d3ea4f3adde2179e711a510a011a557624d985ceb91b50add63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sources/Type4MeReviseCore/ReviseScopeResolver.swift:104-113 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:118-127 | Sources/Type4MeReviseCore/ReviseScopeResolver.swift:132-142 \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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeReviseCore/ReviseScopeResolver.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb4367e0209c96be55fa056ae76934c564c29fa92962d973b54d79e6a57eef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/ASR/ElevenLabsASRClient.swift:67-74 | Sources/Type4Me/ASR/GrokASRClient.swift:85-92 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/ElevenLabsASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/GrokASRClient.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ElevenLabsASRClient.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa6cf40d75f317d1a535d932df32e93a0df26dace1fcb2fdbc0ab5f19b7d3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/ASR/SenseVoiceASRClient.swift:517-524 | Sources/Type4Me/ASR/SenseVoiceASRClient.swift:531-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/SenseVoiceASRClient.swift:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceASRClient.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"386a1688a7960bf415bb3f968d3dca2e2368fae1db541cfe63424f9056c4b016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/ASR/SonioxAsyncClient.swift:124-132 | Sources/Type4Me/ASR/SonioxAsyncClient.swift:168-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/SonioxAsyncClient.swift:124\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxAsyncClient.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0542c32b397fa2c9bd567af00170d0476bf3467935142eb130815b5a130c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/Input/HotkeyManager.swift:34-41 | Sources/Type4Me/Input/HotkeyManager.swift:58-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 \u0060Sources/Type4Me/Input/HotkeyManager.swift:34\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a3349604b5a0ce548c81065756a007a7e8f8875259c52f4765a21c5fffb493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:28-35 | Sources/Type4Me/LLM/DoubaoChatClient.swift:31-38 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"661230263ecfd3416901577fdc014c7a57b24e36e1b567cc3f8515166bde07ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:133-140 | Sources/Type4Me/LLM/DoubaoChatClient.swift:209-216 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cc34dc990ecba86fa9b99a939e8b5921cd8e807e53488acf94e521680ad042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/Services/InjectedTextResolver.swift:59-66 | Sources/Type4Me/Services/InjectedTextResolver.swift:148-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/InjectedTextResolver.swift:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/InjectedTextResolver.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f740d851e50271e1be94f24630a5ffc84196c1be85d4f897ef09cfe017c0453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:304-311 | Sources/Type4Me/UI/Settings/AskAnythingPage.swift:526-533 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift:304\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/SelectionAsk/SelectionAskView.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c60054f40faf69a53389657ea77a1f1589a19f1b433ff2771172867e9612d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:453-460 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:217-224 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:453\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"95160c7be450ad1e04f08b74651399302a47222e08bca3727736ea0917790a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:211-218 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1613-1620 \u2014 before extracting anything, compare \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift\u0060 and \u0060Sources/Type4Me/UI/Settings/HistoryTab.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 119 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcf70c725eb09c0086ebacc3bd8e5781d729ea5957f8e99b3e6a4d30a3b88ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:210-217 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:331-338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1317ac8400649a8456a58ae2417a653129e5be3be28bc7ac94bb6858d0e93e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/Settings/HistoryTab.swift:180-187 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:101-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HistoryTab.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca001daf379b4671d51ec4ac9d1d8173381a02cfd25304027aa9b20bbc0d6031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:190-197 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:93-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"039634cc3544886b0a0fd96449b30d4cd8df4a6d46d392b5e91710290778dbc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:250-256 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:307-314 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"993474447caffbab396568e38538a3dbddf489771fd5c4a3b0ba67d10381b4cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:384-390 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:175-180 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:182-187 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:394-400 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1707-1713 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"360310935a9f065ca4677b93fb68f63740403f31f418716fd55fee8ea66ae66f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:223-229 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:279-285 | Sources/Type4Me/Protocol/MistralASRProtocol.swift:223-229 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"162566b68502f3bfc6b42ee0ec69ddc5cd04719099d7d6088269d4f32dc8803e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:270-276 | Sources/Type4Me/Protocol/BatchASRTranscribers.swift:448-454 | Sources/Type4Me/Protocol/MistralASRProtocol.swift:157-163 \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 \u0060Sources/Type4Me/Protocol/BatchASRTranscribers.swift:270\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060any ASRProviderConfig\u0060 in one and \u0060MistralASRConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/Protocol/BatchASRTranscribers.swift:444\u0060 calls \u0060encode\u0060 and \u0060Sources/Type4Me/Protocol/BatchASRTranscribers.swift:266\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":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86b78643a336cea16b8fda93d9d4bec81e87e22d513f3d12004b9920f57577d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore.swift:289-296 | Sources/Type4Me/Database/HistoryStore.swift:981-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/Database/HistoryStore.swift:980\u0060 calls \u0060bindOptional\u0060 and \u0060Sources/Type4Me/Database/HistoryStore.swift:288\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":"Sources/Type4Me/Database/HistoryStore.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e07769b5807e8b50f7a1ef68a045cbb915a79b993fe37401195261e53b3389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/Protocol/TencentASRProtocol.swift:245-251 | Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:230-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentASRProtocol.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffeb5c9182df4e297ba4f139a3bc643c186d98fd37a6530c50db6c92788cfc29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/Services/IntelliSenseContext.swift:58-64 | Sources/Type4Me/Session/RecognitionSession.swift:3890-3896 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/IntelliSenseContext.swift:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/IntelliSenseContext.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"384150d52391612ff8640cf5bfdef45363221df6e82303e6fc65e2f68f4e8cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/Services/RecordingURLCommands.swift:24-30 | Sources/Type4Me/Services/VocabularyCommands.swift:121-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/RecordingURLCommands.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f82f2377e5171f1055fce0231fe77c50f2d3cb7322fff9079f569a7cc61e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1094-1100 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1110-1116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1094\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d8e4d79e1a1d44b9902f906d88222778e87cdd54635b3f271cd88cddffd3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 4): Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:169-175 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:450-456 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:672-675 | Sources/Type4Me/UI/Settings/HistoryTab.swift:1581-1584 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift:165\u0060 calls \u0060Text\u0060, \u0060L\u0060, \u0060font\u0060 and \u0060Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:449\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":"Sources/Type4Me/UI/Settings/History/ASRUsageAnalyticsView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dae273f358060f8ccb00f84b97b04f104f1dca293215e3231c52cbdea5b28f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/UI/Settings/VocabularyTab.swift:1277-1283 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:1398-1404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/VocabularyTab.swift:1277\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3cd16f8a7a533237d5114ee2264958df49c6523a344d45f2b3b74fd68ad705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): iOS/App/UI/HomeView.swift:205-213 | iOS/App/UI/HomeView.swift:546-554 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060iOS/App/UI/HomeView.swift:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/HomeView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0761e858e45706012343a135966e1345162d2c326f4b3fc38203649868f9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 8): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:371-375 | Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:378-382 | Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:109-114 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:169-173 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:190-195 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:93-98 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:388-392 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1925-1930 \u2014 there are 8 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:371\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea80b9a9965a132016df0ad7b47dce34f27109ff3a0e60eb30edcca06248101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1061-1066 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:1380-1385 | Sources/Type4Me/UI/Settings/HomeDashboardView.swift:273-278 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:982-987 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00602\u0060 in one and \u00603\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc10667b8fa7b3b122fe2ec9ab8ff6f856837bc66f40926358016687ca5358f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): iOS/App/UI/OnboardingView.swift:273-278 | iOS/App/UI/SettingsView.swift:295-300 | iOS/App/UI/SettingsView.swift:318-323 \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 \u0060iOS/App/UI/OnboardingView.swift:273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u006012\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/OnboardingView.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2c7e74e5dc8686b8550843224f4c223426b33b7f046cbf4df1dba4b8f7b315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): iOS/Keyboard/KeyboardRootView.swift:595-600 | iOS/Keyboard/KeyboardRootView.swift:638-643 | iOS/Keyboard/KeyboardRootView.swift:746-751 \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 \u0060iOS/Keyboard/KeyboardRootView.swift:595\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, \u0060iOS/Keyboard/KeyboardRootView.swift:752\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060iOS/Keyboard/KeyboardRootView.swift:601\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":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bbba9826106b76c03ae3e5323d5c54ae5849ca7e5fda67b70e5a2adeb9ccff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:25-34 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:45-54 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift\u0060 and \u0060Sources/Type4Me/ASR/Providers/MistralASRConfig.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb68e26a8d12b97f1d717d0610c24c20cb8155b14db7caf831ad5fe0edf4ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:69-74 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:89-94 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift\u0060 and \u0060Sources/Type4Me/ASR/Providers/MistralASRConfig.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8b0dd29bc1495add2b25abb08fa27d31004d045af6c497cb5511e69600c667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:435-441 | Sources/Type4Me/Database/HistoryStore\u002BRecentLLMRecords.swift:91-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:435\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, \u0060Sources/Type4Me/Database/HistoryStore\u002BRecentLLMRecords.swift:97\u0060 calls \u0060LLMFeatureSource\u0060 and \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:442\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":"Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13c3c349ba9ba5de36d68da5d6c7af9144ef02dc3e6aad190417b52196c4cfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:111-116 | Sources/Type4Me/Protocol/MiMoASRProtocol.swift:65-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcab808988f276c62a37fbcc6f23994845f8c1962c5178c5bd10b7339a603123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:55-61 | Sources/Type4Me/Protocol/MistralASRProtocol.swift:195-201 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Protocol/BatchASRTranscribers.swift:55\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060any ASRProviderConfig\u0060 in one and \u0060MistralASRConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f868c47c1848d6e4dbd0839a442450a3395b6ecd4fe1af7d6a556161b49a01e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 4): Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:76-81 | Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:122-127 | Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:156-157 | Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift:168-170 \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":"Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"944e83f54be2a123e5b651e24ebc41eee257b55deeef9f8a0bcdcd789c4e3dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/Services/GitHubIssueReporter.swift:70-75 | Sources/Type4Me/Services/GitHubIssueReporter.swift:175-180 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/GitHubIssueReporter.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/GitHubIssueReporter.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2beed4fabdb26c4dec89bafcef95051ac99f58a6aee37dc68d191b3c8e70b100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift:31-36 | Sources/Type4MeUI/AudioVisualizer.swift:34-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/AudioVisualizer.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6120f94a5dfed96c8eeb7f2dbe995667e4f9fa615100a6f4a4d57ebcae72c1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/UI/Settings/VocabularyTab.swift:499-504 | Sources/Type4Me/UI/Settings/VocabularyTab.swift:652-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/VocabularyTab.swift:499\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/VocabularyTab.swift:496\u0060 calls \u0060addHotword\u0060 and \u0060Sources/Type4Me/UI/Settings/VocabularyTab.swift:649\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0205287b57eaa3c57a87605ec11461824d0023ecb89b29b18f18b47d4556cb1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): iOS/App/UI/ServiceSettingsView.swift:165-173 | iOS/App/UI/ServiceSettingsView.swift:423-431 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060iOS/App/UI/ServiceSettingsView.swift:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060iOS/App/UI/ServiceSettingsView.swift:174\u0060 calls \u0060endSession\u0060, \u0060L\u0060 and \u0060iOS/App/UI/ServiceSettingsView.swift:432\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":"iOS/App/UI/ServiceSettingsView.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac710226ca3347f04c438ba9d8776a276509b47b6c159e719802e5e475b8881a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:370-374 | Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:377-381 | Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:63-68 | Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:108-112 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:168-172 | Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift:189-193 | Sources/Type4Me/UI/Settings/ModelProviderListView.swift:92-96 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:387-391 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1924-1928 \u2014 there are 9 copies across 6 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift:367\u0060 calls \u0060capabilities\u0060 and \u0060Sources/Type4Me/UI/Settings/IntelliSenseModeDetail.swift:106\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":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"806f610bedef2c008a2f380e9b5a12b7da0a7bcad058b56dcd8155566b39ac9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift:68-73 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:297-302 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:336-341 | Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift:380-385 | Sources/Type4Me/Database/HistoryStore.swift:381-385 \u2014 before extracting anything, compare \u0060Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift\u0060 and \u0060Sources/Type4Me/Database/HistoryStore\u002BLLMUsage.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BDailyModelBreakdown.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"84be44c00b157d2980e9956b46599c1cf36fa11809712979be41110eb1b109e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Type4Me/CloudSubscription/AccountTab.swift:84-88 | Sources/Type4Me/CloudSubscription/AccountTab.swift:112-116 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:153-161 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:183-191 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/CloudSubscription/AccountTab.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. 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":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c330d3196566c848534951cc7199b246b20ae9197944a0c78ca9a0100b18821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:186-190 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:113-117 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:128-132 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:247-251 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a047e9b6e6491042973b618a239743e513cd4aa4d1423c959efab805d902d8b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Type4Me/CloudSubscription/CloudLLMClient.swift:61-65 | Sources/Type4Me/CloudSubscription/CloudQuotaManager.swift:101-105 | Sources/Type4Me/LLM/ASRVariantGenerator.swift:119-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/CloudLLMClient.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c44a8d398efad5e89262700e478fb5516db80bc7a79a6e216fdbb9858e432ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift:691-695 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1718-1722 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1955-1959 \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 \u0060Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift:691\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32d4505c7120268eb7e846ded6e759c5575eeb0733d8d0d1c402d0e62a16632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1719-1723 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1956-1960 | Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:225-229 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08b1c2165ac5096548229594979316b87a9612a738d84322fcd73fe76f07969"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/ASR/SonioxAsyncClient.swift:187-194 | Sources/Type4Me/ASR/SonioxAsyncClient.swift:215-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxAsyncClient.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb07a93afd4239365417bc254d5ec26e95834a0539419ecee411ec766ba023cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/Protocol/BatchASRTranscribers.swift:441-445 | Sources/Type4Me/Protocol/MistralASRProtocol.swift:150-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Protocol/BatchASRTranscribers.swift:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/BatchASRTranscribers.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6bed3670fe0ed5e8a707b88e16bc2bdde3ba806af7b565011b73e23f9c6634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/Services/Evaluation/VolcBench.swift:284-288 | Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift:232-236 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/Services/Evaluation/VolcBench.swift:284\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/Evaluation/VolcBench.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6f57ebb6a89ae52c203710634d4859f517f8ece329d05a1d2b5c08621cf78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/Services/ReviseSettings.swift:70-74 | Sources/Type4MeIntelliSenseCore/IntelliSenseDomain.swift:169-173 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ReviseSettings.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee515e1609d5b7b589d19840bbf4103e455f2400c0c4d03ea23b87ae98fa2467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:85-91 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:1385-1391 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"661eeebd8b8f438023ead0e523c9b4ed8b826790d73f6d773d45fac9bfb63b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:262-266 | Sources/Type4MeReviseCore/ReviseOutputValidator.swift:439-443 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:262\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef2ce1825d8cb784295ff72f777540628055d5d87e72e8cd5e7cffcbd1e3a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:268-272 | Sources/Type4MeReviseCore/ReviseDomain.swift:30-34 | Sources/Type4MeReviseCore/ReviseOutputValidator.swift:445-449 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift:268\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a658fb012d83d0e620a9ca4deac6226668509ffc7bdb15ac1adb17759b5f81a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): iOS/App/LLM/ChatClient.swift:90-94 | iOS/App/LLM/ChatClient.swift:128-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060iOS/App/LLM/ChatClient.swift:90\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":"iOS/App/LLM/ChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4878fdebc4b92687e9f92740478d0d4629b343746a2ac93c0ea7ab5e367710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 14): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:63-71 | Sources/Type4Me/ASR/BaiduASRClient.swift:45-53 | Sources/Type4Me/ASR/BailianASRClient.swift:46-54 | Sources/Type4Me/ASR/BufferedBatchASRClient.swift:244-250 | Sources/Type4Me/ASR/DeepgramASRClient.swift:84-92 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:44-50 | Sources/Type4Me/ASR/GeminiASRClient.swift:120-126 | Sources/Type4Me/ASR/GrokASRClient.swift:62-68 | Sources/Type4Me/ASR/MetaMuseASRClient.swift:24-32 | Sources/Type4Me/ASR/MiMoASRClient.swift:17-23 | Sources/Type4Me/ASR/OpenAIASRClient.swift:31-37 | Sources/Type4Me/ASR/SonioxASRClient.swift:40-48 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:17-23 | Sources/Type4Me/ASR/TencentASRClient.swift:21-27 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/AssemblyAIASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/ASR/BufferedBatchASRClient.swift:240\u0060 calls \u0060init\u0060 and \u0060Sources/Type4Me/ASR/MiMoASRClient.swift:15\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":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"397f03d0cc7b19d2d7830a9bf28b0750887e25164ef42259a8e44c02ea965763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:114-118 | Sources/Type4Me/ASR/BaiduASRClient.swift:86-90 | Sources/Type4Me/ASR/BailianASRClient.swift:97-101 | Sources/Type4Me/ASR/DeepgramASRClient.swift:139-143 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/AssemblyAIASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"769a309c33d806a010c6c510623a15d1a38cec71c8b6b60370e19f5b620cb97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:385-394 | Sources/Type4Me/ASR/BaiduASRClient.swift:259-268 | Sources/Type4Me/ASR/DeepgramASRClient.swift:263-272 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/AssemblyAIASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dd3cd78e0959339f77fad0c632da4afce3c0ce54166d40cd11d371b1132313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift:28-33 | Sources/Type4Me/ASR/StepFunASRClient.swift:205-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d149d0f33a8f9fb7aecea61f0f44e3d61537418e0e7006208cce775325d468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift:35-42 | Sources/Type4Me/ASR/StepFunASRClient.swift:212-218 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b314609d87eec52a5fda20caafb5196dca6e75415a5649f2386046b77217dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Type4Me/ASR/AzureMAIASRClient.swift:21-27 | Sources/Type4Me/ASR/CartesiaASRClient.swift:18-24 | Sources/Type4Me/ASR/StepFunASRClient.swift:45-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AzureMAIASRClient.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"266de3cad9af11625b81da173283367361ced1e59ee28699e5ba1ed7a22faa53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Type4Me/ASR/BaiduASRClient.swift:224-229 | Sources/Type4Me/ASR/DeepgramConnectionGate.swift:28-33 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:212-217 | Sources/Type4Me/ASR/GrokASRClient.swift:241-246 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BaiduASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramConnectionGate.swift\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bc89d9d7eb6c02dd6c50fc7408d3295e3bd7a50e88eb7fd3385bde0931cdc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Type4Me/ASR/BaiduASRClient.swift:231-238 | Sources/Type4Me/ASR/DeepgramConnectionGate.swift:35-42 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BaiduASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/DeepgramConnectionGate.swift\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac43ca6d7fab21008ade3ad2455568c44dad13f21dc4e7405d3464cd409e7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Type4Me/ASR/BufferedBatchASRClient.swift:319-327 | Sources/Type4Me/ASR/MiMoASRClient.swift:83-91 | Sources/Type4Me/ASR/StepFunBatchASRClient.swift:81-89 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BufferedBatchASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/StepFunBatchASRClient.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BufferedBatchASRClient.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bf395b668775335b71e3889511244e5f2af08fc9c569ab1c02984b9031e4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/ASR/ElevenLabsASRClient.swift:219-223 | Sources/Type4Me/ASR/GrokASRClient.swift:248-252 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/ElevenLabsASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/GrokASRClient.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ElevenLabsASRClient.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a6239043ae8d66e1a8f4c91329083bc2a9c0081d8c801c4eee7a612139a47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): Sources/Type4Me/ASR/Providers/AssemblyAIASRConfig.swift:63-70 | Sources/Type4Me/ASR/Providers/BaiduASRConfig.swift:102-109 | Sources/Type4Me/ASR/Providers/BailianASRConfig.swift:244-251 | Sources/Type4Me/ASR/Providers/MetaMuseASRConfig.swift:76-83 | Sources/Type4Me/ASR/Providers/SonioxASRConfig.swift:74-81 | Sources/Type4Me/ASR/Providers/StepFunASRConfig.swift:233-240 | Sources/Type4Me/Protocol/AssemblyAIProtocol.swift:220-227 | Sources/Type4Me/Protocol/BaiduProtocol.swift:198-205 | Sources/Type4Me/Protocol/BailianProtocol.swift:175-182 | Sources/Type4Me/Protocol/VolcProtocol.swift:162-169 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Type4Me/ASR/Providers/SonioxASRConfig.swift:70\u0060 calls \u0060contains\u0060 and \u0060Sources/Type4Me/ASR/Providers/MetaMuseASRConfig.swift:73\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":"Sources/Type4Me/ASR/Providers/AssemblyAIASRConfig.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b792dae324dd2ecf68b1f83d4a660d4dc46709c7ef0a26d113f3939ea393c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/ASR/Providers/GroqASRConfig.swift:79-88 | Sources/Type4Me/ASR/Providers/MistralASRConfig.swift:100-109 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/Providers/GroqASRConfig.swift\u0060 and \u0060Sources/Type4Me/ASR/Providers/MistralASRConfig.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/Providers/GroqASRConfig.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16492bd626c64e96e47026ade083684a0d8c1d4ed368bbb39bef9d4a8b6aed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Type4Me/ASR/SenseVoiceASRClient.swift:89-97 | Sources/Type4Me/ASR/SenseVoiceWSClient.swift:33-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SenseVoiceASRClient.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"274af53f9bcedbb3d918a10a4b026784e7181a2817e7f1580a35644185fa407d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/ASR/SonioxASRClient.swift:103-114 | Sources/Type4Me/ASR/VolcASRClient.swift:430-444 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxASRClient.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6df84fb8017e415c5ad951fdcc5ceae63d558fa29c0e12cdbcbb6da5a2101af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/ASR/SonioxASRClient.swift:124-129 | Sources/Type4Me/ASR/VolcASRClient.swift:458-463 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SonioxASRClient.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"130ae3a1468124c2af1e5dc92a87dc3a51073feee3e7fcf39694e250fabef86a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/ASR/SpeechRecognizer.swift:57-62 | iOS/App/ASR/RecognizerSupport.swift:44-49 \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":"Sources/Type4Me/ASR/SpeechRecognizer.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7162294df08038471215818c223124c169b2db260bf8c8d151b5cc3e47a68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/ASR/SpeechRecognizer.swift:191-196 | iOS/App/ASR/RecognizerSupport.swift:99-104 \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":"Sources/Type4Me/ASR/SpeechRecognizer.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"597320f5642d6061b827a225856aa1dd53ea86d2643aed20806c76d51ea59440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Type4Me/CloudSubscription/AccountTab.swift:193-205 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:224-236 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed47037b844420a757fc370dbae9c7995ce4eea8525496207812a9885d1ce3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Type4Me/CloudSubscription/AccountTab.swift:207-218 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:238-249 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0be88b6c5295f1be668ad436ab042802843c828c708d83a4db43ae9b480c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/CloudSubscription/AccountTab.swift:461-465 | Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift:251-255 \u2014 before extracting anything, compare \u0060Sources/Type4Me/CloudSubscription/AccountTab.swift\u0060 and \u0060Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"af807b0462f7051de367eb1b107d28868c253c607eacc19dec604b10300fa7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Type4Me/Injection/ReviseAccessibilityClient.swift:235-241 | Sources/Type4Me/Injection/TextInjectionEngine.swift:481-487 | Sources/Type4Me/Services/CorrectionLearning.swift:1265-1269 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e162df6e959b09b06d985cbb81fd32bef72e5199f934bdffd5dbe1169f70043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Type4Me/LLM/ClaudeChatClient.swift:42-55 | Sources/Type4Me/LLM/DoubaoChatClient.swift:46-59 \u2014 before extracting anything, compare \u0060Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060 and \u0060Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b66238291b2418a41b47f253a0887ea2d17538f11da67bf74662c7fe180699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Type4Me/UI/FloatingBar/FloatingBarDragHandle.swift:125-135 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:2104-2112 | Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift:2190-2198 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarDragHandle.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b13ddb44044205909dcb025872138ece93f81a9777f3929631d80091adf65d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/HomeDashboardView.swift:382-391 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:466-475 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HomeDashboardView.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e3514d9e21cba80b027de3b5246df692e6a351685ff8ceb70cac089e5eed46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Type4Me/UI/Settings/HomeDashboardView.swift:393-402 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:477-486 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HomeDashboardView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4410dcb8ac38a74258e965fc22e8b953c7b007b505b6a4628a9dcb8e5bfa6638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Type4Me/UI/Settings/LiquidGlassTabPicker.swift:195-199 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:1094-1098 | Sources/Type4Me/UI/Settings/SettingsCardHelpers.swift:1102-1106 | Sources/Type4Me/UI/Settings/SettingsView.swift:764-768 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LiquidGlassTabPicker.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed06e4867e128fabb30d5ddf2abf176b28fa74e1c5584814cccd53a89af5eac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift:23-27 | Sources/Type4Me/UI/Settings/SmartCorrectionSheet.swift:46-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/QuickCorrectionSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b34bdef745fa0cc15c1d32b5a3e895c278b913b3a301d2b3fb2943ca9a7ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/ASR/AssemblyAIASRClient.swift:120-124 | Sources/Type4Me/ASR/BaiduASRClient.swift:92-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a087843a8e657f6bfdaf66c7f0e38c9319ad84195fed2492e7a065310665e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift:11-19 | Sources/Type4Me/ASR/BaiduASRClient.swift:207-215 | Sources/Type4Me/ASR/BailianASRClient.swift:232-240 | Sources/Type4Me/ASR/DeepgramConnectionGate.swift:11-19 | Sources/Type4Me/ASR/ElevenLabsASRClient.swift:196-203 | Sources/Type4Me/ASR/GrokASRClient.swift:225-232 | Sources/Type4Me/ASR/StepFunASRClient.swift:189-196 \u2014 before extracting anything, compare \u0060Sources/Type4Me/ASR/BaiduASRClient.swift\u0060 and \u0060Sources/Type4Me/ASR/BailianASRClient.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIConnectionGate.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0e5efcaaf42a6e8d05d447526507777199d2f0db997035f34c75d886d68146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Type4Me/ASR/DeepgramASRClient.swift:46-54 | Sources/Type4Me/ASR/GeminiConnectionGate.swift:82-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/DeepgramASRClient.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae50774f3227b63b126dae1e90e034f02b16780af153b1b804edbf4cbc248fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/UI/Settings/HomeDashboardView.swift:404-409 | Sources/Type4Me/UI/Settings/ModesSettingsTab.swift:488-493 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HomeDashboardView.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c51a81a7958a2d43585c809ae48d6f0c894b1f3043d92811f79a761fdf6a605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift:10-14 | Sources/Type4Me/Database/HistoryStore.swift:809-813 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Database/HistoryStore\u002BFilteredBreakdown.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a142e28e52401705e13df2a0838612f886e62f5ee53e3211660712a6099ea56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift:797-802 | Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGuideWindow.swift:141-146 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"49221e67f8eaec456a64694dd9e7b3f423adfdbaf1bef426f9513ebde897f737"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): scripts/benchmark_9b_vs_doubao.py:120-194 | scripts/benchmark_llm.py:165-272 \u2014 These two members are one piece of code written twice and then edited apart: 75 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_9b_vs_doubao.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2d032294fdf384a7787cbde8d8784afd4a1080f0c7143550d6fdb4917d679c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): scripts/benchmark_9b_vs_doubao.py:71-93 | scripts/benchmark_llm.py:81-119 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_9b_vs_doubao.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccae451a11b55af77ed161f231e3013df2c4855c21885886bd17e0d793a8c363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): scripts/benchmark_4b_vs_9b.py:82-91 | scripts/benchmark_9b_vs_doubao.py:108-116 | scripts/benchmark_llm.py:142-159 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_4b_vs_9b.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d295084c4c29a52827c117dbbff71cef0892f602fcc7a422d4060fb4450bd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): scripts/benchmark_9b_vs_doubao.py:153-166 | scripts/benchmark_llm.py:216-231 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_9b_vs_doubao.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7e8af2a1bbfb984b0a5e022dfb3761cc986b7d32d5eebff3d70e97e31d2d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): scripts/benchmark_4b_vs_9b.py:123-135 | scripts/benchmark_9b_vs_doubao.py:153-165 | scripts/benchmark_llm.py:216-230 \u2014 before extracting anything, compare \u0060scripts/benchmark_4b_vs_9b.py\u0060 and \u0060scripts/benchmark_llm.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_4b_vs_9b.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f906110c4d724967e9d7bb40913515dcdd72c7424b5d65d42b34fe38802e51a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): scripts/benchmark_9b_vs_doubao.py:77-89 | scripts/benchmark_llm.py:98-112 \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":"scripts/benchmark_9b_vs_doubao.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"42043763730fa9d921fc8518f79af3e1f5323b5922aee695455f0d66469c50d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/benchmark_4b_vs_9b.py:104-110 | scripts/benchmark_llm.py:182-188 \u2014 before extracting anything, compare \u0060scripts/benchmark_4b_vs_9b.py\u0060 and \u0060scripts/benchmark_llm.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_4b_vs_9b.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99364ca9e483ded676bb092d372bcdc04d942672eb2ebbbd90872e199c61a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): scripts/benchmark_4b_vs_9b.py:60-69 | scripts/benchmark_llm.py:65-75 \u2014 before extracting anything, compare \u0060scripts/benchmark_4b_vs_9b.py\u0060 and \u0060scripts/benchmark_llm.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_4b_vs_9b.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd183ec48f121256d4eeb02ec5740dd61f112df1bd72cd2ba1722273cb45f641"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ManualInputTextView (LCOM4 4): ManualInputTextView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/ManualInputPanel.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c622de3187467c227e29c9dbb688dc3f2c91fb1f335e014ca12efe4716612fb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsNSTextField (LCOM4 4): SettingsNSTextField\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/FixedWidthTextField.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a84621aebacd869a1f4915501f9636400d3ce3860bd2bb519c2c8c4295e78ce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsNSSecureTextField (LCOM4 4): SettingsNSSecureTextField\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/FixedWidthTextField.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"86800ee9116f9ea684d54407f1f4ef38b2fb035d2248ffcdee4b9cbe7c875d1a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCapabilities_followSavedRecognitionMode: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/ASRProviderRegistryTests.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9fecbb9934dade2cff7dcc4d0759c1116869f8eb4d3559e02d00680c362b27"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveCodexCLIWhenEnabled: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/CodexCLIClientTests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3a5e9bd9340105bf02c9afed2e57340bd05f53e228a8e6b638211ed413783b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveAppServerSessionReusesThenRotatesWithoutCrossTurnLeakage: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/CodexCLIClientTests.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"04aab6253b75c883fb125cc39a654ace4a2c2d73734d20bc7e4a344a25ebb9ae"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testListenerBlocksHelperActuallyRemovesListener: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/CoreAudioOutputRouteMonitorTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e2c2edfbc1c3ae3d56cdf168c8e59aaac070d6131e6147f08fab6fd69853ef"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSaveASRCredentialsObserverSynchronousReadDoesNotDeadlock: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/KeychainNotificationTests.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"521142d0825de0f5c88d36c0b7686c97c7d7c488a67ab20fa0a39c2023bc745e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSaveLLMCredentialsObserverSynchronousReadDoesNotDeadlock: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/KeychainNotificationTests.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e20a0bccb0461c3701a750eb5d3a4ec41f9bd4e48a36fde6212a5f8939953e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSimCaptionRoll: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/CaptionRollTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cecc6a8b9c4968ce8a35caaae803325cd2b5cf4632cdcb0de56adfe84069c7e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStopsWhenCancelled: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/DataBackupSchedulerTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a13ea8ad10ad3aedd6fc3f11dd22b990a83772122197a7744d968618a43d0db"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWaitUntilOpen_returnsWhenHandshakeOpens: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/DeepgramConnectionGateTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ff0ba66ef95105006b39c3fb9aa38f85c55ea80e3e7ce13ce64df0c7f53f0e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEndAudio_withoutConnect_doesNotThrow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/GeminiASRClientTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a09b2788380f91daa2510cc205e962e3eb53e2c3f80304603c50669ff5e81a1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSendAudio_withoutConnect_doesNotThrow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/GeminiASRClientTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"045a5d5371677e60bb4b502407ba7edf4b297d2f13f3e7e1292a748053d9367a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDisconnect_withoutConnect_isSafeAndRepeatable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/GeminiASRClientTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5e80feeb552d2801cc335e1ec80604251639c145b8302cd808232d7fa7aae6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmptyAudio_doesNotStartActivity: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/GeminiASRClientTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"71af89ac3854f5b3f959b7baae2438a959e24c50ffb29886a097ba7687a5469d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsertPostsHistoryDidChangeNotification: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/HistoryStoreTests.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"befec8c9bcf8689fb00249740fefca45cbd827a9e3c80d5135ee8aa73463bbbf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSoundFeedbackCancelActiveFeedbackDoesNotCrash: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/HotkeyStateMachineTests.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"95192acc1592e3882771b5e4e4b632967eaa57144cc638ab4d1aa88f19a4b1e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReviseCoordinatorCancelActiveTransaction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/HotkeyStateMachineTests.swift"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e599e6d64fe05b2edc0025e9dcc49a75fb48e9e51a4b913c05ac42e408f88bd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEndAudio_withoutConnect_doesNotThrow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/MetaMuseASRClientTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"26109ae2c6d8654cf9bd76611649219d5a93400fdc5e1346f62e4600d751622b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSendAudio_withoutConnect_doesNotThrow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/MetaMuseASRClientTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a17359232a1376119e4757855cc86960afa310bc095a62c9b7f6997e92b0b08"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDisconnect_withoutConnect_isSafeAndRepeatable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/MetaMuseASRClientTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7579b2b96171c8dda51d7d4ff5e24bfa0779cc2bb21f18aedcd9acdc8a380f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTopologyObserverTriggerCallsOnChange: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/PreparedCaptureAggregateTests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcec912983928a1ee2c6d6126c3833c07e2045527cc93de6dae2325615a0376e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTopologyObserverInvalidatePreventsSubsequentCallbacks: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/PreparedCaptureAggregateTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6712e28463d11fe0458de0c8a849f93cc2f39c9b7fa05373c4e0cb374768e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInvalidatingFromInsideOnChangeDoesNotDeadlock: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/PreparedCaptureAggregateTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a8ffc28d70f6908075beec317ef77cbecc61a6b369b5d6fb0be0566dd162e3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelledEmptyStreamFinishesWithoutReplayingAudio: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingCancellationTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4972fb9f672c1c1ccd444655b60f4336e3cf51eba1b77729f121f3716bf6f4bf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsUnregisteredScheme: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingURLCommandsTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"250bc63e62a62b5444e78afb64dbcc6f377b7b7297e64b96b19d20bb3a1ddd07"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsUnknownCommandHost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingURLCommandsTests.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6991f63cebaf1abb5f149c8b569c99acb1d8f266696c038a41fdc23633f54dfe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsNonEmptyInvalidPath: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingURLCommandsTests.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06bdccd664a66a4207f43e91748428594012b8abfaf3dadb3120d09765a6cee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsQueryParameters: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingURLCommandsTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f81c50157fe95883c1b1b706eba6d230c9e9012f6747a054262da8652aa4e84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsOversizedURL: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/RecordingURLCommandsTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae5137d4c2466bf5235e735d84d6cb651be28dd5bf5830116988a7e288e76c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConcurrentArmAndCheckThreadSafety: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/SpeechGraceGateTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc58d8e6315941cc1f98597e4e9892e5c329775742a4a4635f3be22510649eb8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCallsBeforeConnectAreSafe: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/StepFunASRClientTests.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a286b138105cceba3468aa611fa73d407edef946e7f5415c6d4f37054e22e35"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSilentSnippetRequiresBothFields: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/VocabularyCommandsTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb570aa8b8a357500c2087244dac18ecc39c52446be7a5cb0090093b8cd04333"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsUnknownPathSchemeAndParameter: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/VocabularyCommandsTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16db6dcb96122b9f05515df7165c16dca09b6ea88c4af19beea2e971fbd6410"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsDuplicateEmptyControlAndOversizedValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/VocabularyCommandsTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab90f4d9218993defcc073b2fcf2c3981fb6d8030d1e344e48c6f55420894310"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsInvalidSilentValueAndOversizedURL: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Type4MeTests/VocabularyCommandsTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"237c9f529522bd237ef902aae0dcfe5d3a3c428ce1d11e2f5db788ec86f5c6a4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testCleanupNotes: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"134fa0b9782db7b2d4fd694acb81ef6cbcc4aee4789c2d32c0de1d7c59926228"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimEnableKeyboard: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6091d8b96c08bbb08cd52d1e6ca5fd5f984e5e8c7826811aef121c61887174"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimKeyboard: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"693d20e9bdfe962cde239ad030dafc867bec2a4444b8398bbce95bf28bfcdf3a"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimDarkKeyboard: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50d934f025a2175cec91499d9cab4f71a655e7d170b8b7e2fa3d05b05067108"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimLanguageSwitch: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea57cdc69eca5539a3ea24723dd022223e210070b9444602af9807c68361d3e3"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimOnboardingTry: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d57595836ab025b53265ce615e39f8844346878235ef99a9190fb7ac3a9ca8b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimSettingsPages: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce1c633e54c46864fc34c5d54a2510831f7cbbdd9b286932a0d2751dc6f8b6f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimSyncFlow: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2b7777854db7b15339825e703430fc5c52e6f12d864f956a9966818a9fcf6d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimGestures: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b07fd946fcf0c2161d1982a0784938ef9773c773d5119dca8c831d1f763b42a"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimScrollHitches: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e2e1760f7297aac84143c2d1bff3d93be4940be725367f99625575320a9c8b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testSimApp: No conventional assertion call was detected, and 11 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/UITests/KeyboardDriverTests.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52990f37be1f72361f117929d336bebe80a0dc10537eda043b921ca9dae46f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/Session/RecognitionSession.swift: Sources/Type4Me/Session/RecognitionSession.swift changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 99 in RecognitionSession.finishTextOutput at line 2245. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/Session/RecognitionSession.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9e25696fed9c3a6dcc331d94991717ddc7de9a7d5d64ce6262c2df9cd6ec04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/Type4MeApp.swift: Sources/Type4Me/Type4MeApp.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in AppDelegate.registerHotkeys at line 968. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/Type4MeApp.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Type4MeApp.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"12678ce48b80179a29f43a5d889e9f1ea78d1d06a779b150c9ef7811e4843e40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/AppState.swift: Sources/Type4Me/UI/AppState.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AppState.stopRecording at line 1680. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/AppState.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"799f7d5d511ca9666f171559b4ab5eb95d6374e6f8984b841ffb32972adecc80"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift: Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ASRProviderDetailView.currentASRGuideLinks at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eff979297eab945b222878d63d8ad65dfe1fa009dc5ccfc663aba16aa1b32db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/Input/HotkeyManager.swift: Sources/Type4Me/Input/HotkeyManager.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in HotkeyManager.handleEvent at line 724. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/Input/HotkeyManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Input/HotkeyManager.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6769d05839001b23df9a69fa01af6d7e265735d444d502c7bfa096304482c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift: Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in FloatingBarView.capsuleWidth at line 633. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarView.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7495b923dd4d22aa1586a1366ae187aaf8e664c596c641fe362bf3830f7df6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/Keyboard/KeyboardModel.swift: iOS/Keyboard/KeyboardModel.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in KeyboardModel.stateDidChange at line 523. 5 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/Keyboard/KeyboardModel.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":"iOS/Keyboard/KeyboardModel.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"0518e6eb8467be30d52522902b08476140d8c6bd341c138e389c8f0e4c09db10"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/Settings/ModesSettingsTab.swift: Sources/Type4Me/UI/Settings/ModesSettingsTab.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in HotkeyRecordingSheet.body at line 1181. 1 of those changes was a fix/bug commit, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/Settings/ModesSettingsTab.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ModesSettingsTab.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc704daf74b00bdd00496a8120d98694c81007ed2f39df44fcce007441994e35"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/Keyboard/KeyboardRootView.swift: iOS/Keyboard/KeyboardRootView.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MicButton.body at line 780. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/Keyboard/KeyboardRootView.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":"iOS/Keyboard/KeyboardRootView.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c02593b03e3fca6cf9a493e3012e9bb3d083439137e9c0d341e3d60cf41515"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/Settings/HistoryTab.swift: Sources/Type4Me/UI/Settings/HistoryTab.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in HistoryTab.transcriptsContentView at line 443. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/Settings/HistoryTab.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HistoryTab.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37a2cb6bf4d72d4cadd6b73db028eed97148c9a7d2efe0a114ed59142d7cc1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift: Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in LLMProviderDetailView.credentialFieldRow at line 391. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4612ba9d4460d08ca249ec5c55102d63be7544dd9350bb30838b93c2f9ad29c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift: Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in FloatingBarController.resizePanel at line 464. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd872af51e9d664202ad72edf1bef89244e402148409dd1a2598b1a73c345ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/LLM/DoubaoChatClient.swift: Sources/Type4Me/LLM/DoubaoChatClient.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in DoubaoChatClient.streamChat at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/LLM/DoubaoChatClient.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/DoubaoChatClient.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffd1447d16057c2a0abc6c1ce823d52adfbd4638fc153630da41f3aa0e656ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/Injection/TextInjectionEngine.swift: Sources/Type4Me/Injection/TextInjectionEngine.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in TextInjectionEngine.makeObservationContext at line 504. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/Injection/TextInjectionEngine.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TextInjectionEngine.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea89efebbec3b73ce66abccda4efc4856d7046721c82ea5f454da9ca50379b96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/Services/ModeStorage.swift: Sources/Type4Me/Services/ModeStorage.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ModeStorage.load at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/Services/ModeStorage.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModeStorage.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f071ae42750a53625707800084876b21607c301bfc791448303793b735a68e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/App/Pipeline/VoiceSession.swift: iOS/App/Pipeline/VoiceSession.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in VoiceSession.complete at line 409. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/App/Pipeline/VoiceSession.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":"iOS/App/Pipeline/VoiceSession.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9c5dce9a1a908f96cf68e0f5826ee16563f8a7df640a4e7a07464813016692"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/UI/Settings/VocabularyTab.swift: Sources/Type4Me/UI/Settings/VocabularyTab.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in VocabularyTab.body at line 206. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/UI/Settings/VocabularyTab.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"117b41932e4639f604377f770b4636159b173d0b0971f9923bb3e4730ef92f94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Type4Me/LLM/ClaudeChatClient.swift: Sources/Type4Me/LLM/ClaudeChatClient.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ClaudeChatClient.processStreaming at line 90. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- Sources/Type4Me/LLM/ClaudeChatClient.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a70caac9c8b8ce89923c22e133cc5d580303d9bb26616430743ac785963aa9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/App/UI/ModeSettingsView.swift: iOS/App/UI/ModeSettingsView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ModeEditorView.body at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/App/UI/ModeSettingsView.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":"iOS/App/UI/ModeSettingsView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5963e6bd28263ec509d170ae5c0aa63f0d0f643fadb2de95b238d2c0841c8489"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/App/UI/ServiceSettingsView.swift: iOS/App/UI/ServiceSettingsView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LLMSettingsView.body at line 331. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/App/UI/ServiceSettingsView.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":"iOS/App/UI/ServiceSettingsView.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d4b9c2da136b5f4d39ad157c8d85aa629f13a28a66ed87b7206d133b5c32d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: iOS/App/Debug/DemoSeed.swift: iOS/App/Debug/DemoSeed.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in DemoSeed.apply at line 25. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 16:57:39 -05:00\u0027 --until=\u00272026-11-10 16:57:39 -05:00\u0027 --full-history --no-merges -- iOS/App/Debug/DemoSeed.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":"iOS/App/Debug/DemoSeed.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d853c7e58b55fc4e2ca15633d1738ab4376674a5912f292f700fbd517e12f24f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 28 significant file(s) lose their only recent owner: Sources/Type4Me/UI/Settings/History/LLMUsageAnalyticsView.swift, Sources/Type4Me/UI/MenuBar/MenuBarControlCenter.swift, Sources/Type4Me/UI/Settings/AskAnythingPage.swift, Sources/Type4Me/Protocol/BatchASRTranscribers.swift, Sources/Type4MeIntelliSenseCore/IntelliSensePrompt.swift, Sources/Type4Me/Services/ReviseCoordinator.swift, Sources/Type4Me/UI/Settings/MagpieProviderSection.swift, Sources/Type4MeIntelliSenseCore/IntelliSenseOutputValidator.swift (\u002B20 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e5edd56bdf570b1050aeaa458b74a8d947bf6c02720f0f1001ec6e7e269df6d9"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 9 significant file(s) lose their only recent owner: scripts/readme/gen_header.py, Sources/Type4Me/Services/GitHubIssueReporter.swift, Sources/Type4Me/ASR/SonioxAsyncClient.swift, Sources/Type4Me/ASR/BaiduASRClient.swift, Sources/Type4Me/Services/IssueReportService.swift, Sources/Type4Me/Protocol/BaiduProtocol.swift, Sources/Type4Me/Services/UpdateChecker.swift, scripts/github_monitor.py (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"276c18831a43c69c1d3f634e2be2d10b3dfc98c95ddddbdf3d7d5b36345c6ff1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 6 significant file(s) lose their only recent owner: Sources/Type4Me/Protocol/GrokProtocol.swift, Sources/Type4Me/ASR/GrokASRClient.swift, Sources/Type4Me/UI/Settings/ReleaseNotesMarkupView.swift, Sources/Type4Me/ASR/CartesiaASRClient.swift, Sources/Type4Me/Protocol/CartesiaProtocol.swift, Sources/Type4Me/Protocol/ScriptPunctuationNormalizer.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4267b7f055ffb697de89cc8bda9fba2adc42f149fa788afd2b2653028ff6ef52"}},{"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 (46 single-owned of 315 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 315 of the 401 production source files in this repository met that bar). They are anonymized user #4 (2 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/Type4Me/Services/DataBackupManager.swift, Sources/Type4Me/Services/DataBackupScheduler.swift, Sources/Type4Me/Services/RecordingDisplayProfileStore.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: bind email flow \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":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e306c248c76bd36883da93fc0bb0c2a52c2602e13c908ee4b33b5f6c4b25e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement email binding \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":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c349d0e70f10f863e2542ab9fbe5dbdc725c74f7a627fd65ea6dddd1343187c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement subscription purchase \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":"Sources/Type4Me/CloudSubscription/AccountTab.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1002c1858209f565524d5ed525e34c9fca6bcc7902bb75ca34d391cd9c5822"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: switch to domain names before release (cn.api.type4me.com / us.api.type4me.com) \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":"Sources/Type4Me/CloudSubscription/CloudConfig.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d761982a403543b312800bf07e04b1aebde4c5ede778914748328f9673028f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Open payment page (Paddle or LemonSqueezy) \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":"Sources/Type4Me/CloudSubscription/CloudSettingsCard.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa6b29ea7b85cc0a2a152de606a2edc54425a61e0f10c367b9a667f37ed798c"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 52)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (87911 LoC, 1024 module-visible types across 38 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d96f77f14e72257dce848cad7b123ae776bc1773f519d6a3ac30d739b7954d9"},"properties":{"commitSha":"4d0aacc7612062da338037cc31d33d404ef2940d"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"128f3f7301daf15d2e7ee9a96b6a44783185c7861395198102746a49900e6a4c"},"properties":{"commitSha":"74be935664def8756be8d65f91605f8d8405411a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35ba9f5fe5d67746ba524da8c2743caa54d89e2724e9c1db3bc6e7d533a5fceb"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ecdb195b667e317d86c9cb28f862c313afd5cebb873d8c4649d6568856195c6"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09ecfb70bacb69736f8fc35508c552f64ffd51a508c6f17326d0c45d81bda924"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 315 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 315 of the 401 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: Sources/Type4Me/LLM/LLMClientCache.swift, Sources/Type4Me/UI/SelectionAsk/MarkdownRenderer.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/LLMClientCache.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fbe2042b25aef8b7a9f59ba99f74843a89b452b2274291009d626051a39944"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/SelectionAsk/MarkdownRenderer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8459b81ef5f58dd795595ddb046809d2cc5bb7eeadaec0724392a54cf58b8084"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ASRProviderRegistry.swift \u2194 SetupWizardView.swift: \u0060Sources/Type4Me/ASR/ASRProviderRegistry.swift\u0060 and \u0060Sources/Type4Me/UI/Setup/SetupWizardView.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060036d8fbd\u0060 revert: restore cloud subscription code stripped in v1.7.0 (at that commit the files were still \u0060Type4Me/ASR/ASRProviderRegistry.swift\u0060 and \u0060Type4Me/UI/Setup/SetupWizardView.swift\u0060); \u0060b3cf3ec3\u0060 strip cloud subscription code for open-source release v1.7.0 (at that commit the files were still \u0060Type4Me/ASR/ASRProviderRegistry.swift\u0060 and \u0060Type4Me/UI/Setup/SetupWizardView.swift\u0060); \u00605b542764\u0060 feat: UI redesign, remove Performance Mode, multi-level volume control (at that commit the files were still \u0060Type4Me/ASR/ASRProviderRegistry.swift\u0060 and \u0060Type4Me/UI/Setup/SetupWizardView.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ASRProviderRegistry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3bc37eea2d7fcc4c21757e7f4137ab8f3d89eb093f8e395e2e3a5a4546387c"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"685b927d8e4d0a454af080a52c98ab71db41b46951b0b50f7b92cbee759c79c4"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AXO1","level":"warning","message":{"text":"API operation answered with no credentials: GET /health: http://127.0.0.1:8000/health returned HTTP 200 to two GET requests carrying nothing. Observed on the live app. We do not decide whether this operation is meant to be public. Advisory evidence for CRA Annex I (2)(d) and NIS2 IR.4.1."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"268f40d588f3249380117a4882ad8bc5ad08cc667c5911278b2740072624e6c8"}},{"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":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060Sources/qwen3-asr-server\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060replace\u0060 is async and calls usleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/TrackedTextReplacementEngine.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"658a5e904f6e098ca78a33e449229ba47432ea3b7d7f7557181a2ca7e6330090"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060extractTarBz2\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ModelManager.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba309a13984be451b3f7ce2d8092e033aa68039b034ef889d35b876e479d3e9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Setup/DemoState.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"911a8489a54693ae25d7ac5ca773ccb06733d3bee61b08fb6ee4de204d72bed2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!field.options.isEmpty \u0026\u0026 field.allowCustomInput\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift, Sources/Type4Me/UI/Settings/LLMProviderDetailView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff9b67ca565c761dc0f753636b09986dbc45abefb674f4a4067f9423112ec8d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!recommended.contains($0) \u0026\u0026 $0 != .custom\u0060 appears character-identically in 2 files \u2014 iOS/App/ASR/PhoneASR.swift, iOS/App/Model/ProviderCatalog.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/ASR/PhoneASR.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b9dfdd66e9511ef5e783d9f39f2dd565d0d0ec3698d476558d28ba1f2aa6d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.contains(\u0022secure\u0022) || $0.contains(\u0022password\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Injection/ReviseAccessibilityClient.swift, Sources/Type4Me/Injection/TextInjectionEngine.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d888c139a99782a11001f1676f3521b8fd5b9c19f9dc2ba9b9dc1deebaf2d672"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.value \u003C 128 \u0026\u0026 CharacterSet.letters.contains($0)\u0060 appears character-identically in 3 files \u2014 Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift, Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift, Sources/Type4Me/Services/TechnicalTokenBoundaryResolver.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4144fecbb5170ba04b0b4c3166293053284b85d390dec3c86f2fcc66496137"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(v \u003E= 0x4E00 \u0026\u0026 v \u003C= 0x9FFF) || (v \u003E= 0x3400 \u0026\u0026 v \u003C= 0x4DBF) || (v \u003E= 0x20000 \u0026\u0026 v \u003C= 0x2A6DF) || (v \u003E= 0xF900 \u0026\u0026 v \u003C= 0xFAFF)\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Protocol/TencentASRProtocol.swift, Sources/Type4Me/Protocol/TencentRecTaskProtocol.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/TencentASRProtocol.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f49e9a9f149cb81063c2e275e507935c85d46a2c14ebb6d9c55f14d2b3e885"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(wrongIsHan \u0026\u0026 correctedIsLatin) || (wrongIsLatin \u0026\u0026 correctedIsHan)\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift, Sources/Type4Me/Services/ImmediateCorrectionAnalyzer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionAffinityAnalyzer.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4f8f90812294cc40af3d9961c896e13f8c6591f2b6fd7821a7a919a64a36c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060abs(lhs.origin.x - rhs.origin.x) \u003C 0.5 \u0026\u0026 abs(lhs.origin.y - rhs.origin.y) \u003C 0.5 \u0026\u0026 abs(lhs.size.width - rhs.size.width) \u003C 0.5 \u0026\u0026 abs(lhs.si\u2026\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift, Sources/Type4Me/UI/FloatingBar/FloatingBarPlacementGuideWindow.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPanel.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"63590a8aaffdbb25ff7b0c9d126d3e59b044f9d2f458fc3d418c71fd6d530594"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060barPhase == .preparing || barPhase == .recording\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/UI/AppState.swift, Sources/Type4Me/UI/Setup/DemoState.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/AppState.swift"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"544be0f9cb87a29dfa81d3829ffcbefae5eb5831534ca35f2c1489b1f1d31cfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060didRequestFinish || audioPacketCount \u003E 0\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/ASR/BaiduASRClient.swift, Sources/Type4Me/ASR/BailianASRClient.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/BaiduASRClient.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bcb4f5db09772f4302131e46498ae3619ed25affcd4e40b04b5ac18d55c221"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extracted.code != nil || extracted.message != nil\u0060 appears character-identically in 3 files \u2014 Sources/Type4Me/ASR/VolcASRClient.swift, Sources/Type4Me/Services/Evaluation/VolcBench.swift, Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/VolcASRClient.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc24d694d3ab68ccd40e4e324614ef72661531c9269365dd0a06ce30f76fc08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first.isClosingPunctuation || last.isOpeningPunctuation\u0060 appears character-identically in 8 files \u2014 Sources/Type4Me/ASR/AssemblyAIASRClient.swift, Sources/Type4Me/Protocol/AssemblyAIProtocol.swift, Sources/Type4Me/Protocol/BaiduProtocol.swift, Sources/Type4Me/Protocol/BailianProtocol.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a91ae36157abdfd2e9b69a51134d5adc7745a2412df67d31df086f2350e699"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060header.flags == .positiveSequence || header.flags == .negativeSequenceLast\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Protocol/VolcProtocol.swift, Sources/Type4Me/Services/Evaluation/VolcReplaySweep.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Protocol/VolcProtocol.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"688318e7882a81c58da2cbed2cca16a44de31e5a50e140ec34b41c196b78a677"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kc == 53 \u0026\u0026 event.modifierFlags.intersection(.deviceIndependentFlagsMask).subtracting([.capsLock, .numericPad, .function]).isEmpty\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift, Sources/Type4Me/UI/Settings/ModesSettingsTab.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/HotkeyRecorderView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdc2fe75dccdf25447f4b08b5a0a90142b9126f0915fc8041ac2bb8681463ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060last.isCJKUnifiedIdeograph || first.isCJKUnifiedIdeograph\u0060 appears character-identically in 8 files \u2014 Sources/Type4Me/ASR/AssemblyAIASRClient.swift, Sources/Type4Me/Protocol/AssemblyAIProtocol.swift, Sources/Type4Me/Protocol/BaiduProtocol.swift, Sources/Type4Me/Protocol/BailianProtocol.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/AssemblyAIASRClient.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7e463cb2115815cde29ff534d6fea4915c810554e5d0fdab4d642461624782"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lhs.confirmedSegments == rhs.confirmedSegments \u0026\u0026 lhs.partialText == rhs.partialText \u0026\u0026 lhs.authoritativeText == rhs.authoritativeText \u0026\u0026 lh\u2026\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/ASR/SpeechRecognizer.swift, iOS/App/ASR/RecognizerSupport.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SpeechRecognizer.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36367e2e87a2b90bf7675ba61752ede8fbba89a0f8f6804461853a0122e1823"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lhs.enablePunc == rhs.enablePunc \u0026\u0026 lhs.hotwords == rhs.hotwords \u0026\u0026 lhs.boostingTableID == rhs.boostingTableID \u0026\u0026 lhs.contextHistoryLength =\u2026\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/ASR/SpeechRecognizer.swift, iOS/App/ASR/RecognizerSupport.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/SpeechRecognizer.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2ab58d96a1e1193235b133c25bcca0ef5cbc4d0a7a3aa7e473be81adea6d31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldIndex \u003C old.count || newIndex \u003C new.count\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Services/CorrectionLearning.swift, Sources/Type4Me/Services/InjectedTextResolver.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/CorrectionLearning.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4252f23383b1014dbc815fa3909e61fda8c05ca24f89a9565febb8e0724c89b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.environment[\u0022XCTestConfigurationFilePath\u0022] != nil || processName == \u0022xctest\u0022 || processName.hasSuffix(\u0022packagetests\u0022) || (CommandLin\u2026\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Services/AppDataLocation.swift, Sources/Type4Me/Services/KeychainService.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppDataLocation.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08a29eefe8caaff3426628fc20dd492d52567c0681d1507b074544e7b04c894"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060promptTokens == nil || completionTokens == nil\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/LLM/ClaudeChatClient.swift, Sources/Type4Me/LLM/DoubaoChatClient.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/ClaudeChatClient.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f8f9b449c9844b560113602e2fc4ec5a56cd5757092be6d90bef17a0ed9279"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060record.userEditStatus == .edited || record.userEditStatus == .clearedAfterEdit\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Services/BatchCorrectionInference.swift, Sources/Type4Me/Services/ExpressionProfileStore.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/BatchCorrectionInference.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7981b72f8e7dae2020aa69572ed18e715ebbbfd91be5dc35a0747034865af8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status != .success || focusedValue == nil\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Injection/ReviseAccessibilityClient.swift, Sources/Type4Me/Injection/TextInjectionEngine.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc19a8845091bcae86f2e4d8006346f048741dd5fe3df788cde67ee2e49d16d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == .success \u0026\u0026 settable.boolValue\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/Injection/ReviseAccessibilityClient.swift, Sources/Type4Me/Injection/TextInjectionEngine.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Injection/ReviseAccessibilityClient.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f035235948fac4a5ae915a2f3f1608473ee52276591c7ad39904520a46ee9e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060update.transcript.isFinal \u0026\u0026 pendingFinalCommit\u0060 appears character-identically in 2 files \u2014 Sources/Type4Me/ASR/ElevenLabsASRClient.swift, Sources/Type4Me/ASR/GrokASRClient.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/ASR/ElevenLabsASRClient.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"44438de8316a78519aa9532c74169cab7b734a69184ac77387cf1c357ba84d4d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/Shared/DictationIPC.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f2dbf316df5379f7e2848d764aba7c7de154dd2bc288939e7f99804b3f3191"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iOS/App/UI/AppIconSettingsView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"776849dcf03a522d24f633cb0d8e1b5c611e60fcfb77a2b15f59617d53b6f4ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d315521c255885565fc8e5eb77ea71582bbdcf7fdf6b96670a507407e2de5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8563dd5952187740097e9cc3d2b44b6aecc0d37aef6094a5e74b97d4bd2b23a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bf5ceaaa41b6e6f34dcca96ff3236ef50ebf970cfb4b39a5bb94647aafc80a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b351cceb48373f975243e87fe956ab8d4b90d99ca49da5540925a283f496b2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/qwen3-asr-server/server.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9fba1843cd5be7963a3cd5cafd0215a37d3ae32a2f21ac66d92815f7de3db5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Setup/DemoState.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f6a2d055a56940b3175f60843a7fecf047cbe3c8c824db5a7677b62d78f9bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/ASRProviderDetailView.swift"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"efadeef60a1cee05a2a18674c5c38d4ed00eafff7b4191f7304de0f0f61f0636"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/GeneralSettingsTab.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"a557244f4cd746d59d0f743b113f61d4e6fcb5677bbc2d312faf2ea9dcd0cd04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/Settings/VocabularyTab.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1425c106a6afdfdc127acf7ff5d1e558a9cd616235ad11dfd9d87c8ef491ab11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPlacement.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8657c6b7331f386f6ba1d54432a9200d06d99eaefea182ef8f4be0d2bbe17e61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/UI/FloatingBar/FloatingBarPlacement.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"074374200fa5c651345c5c42c0a9570a0e7bddb6d587779a26a81b533243ad3c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/RecognitionSession.swift"},"region":{"startLine":3887}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e4d66e66a6d593c1ea721e7d195ec111db6d94c7f2e45592849f66849d54af"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/SoundFeedback.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f52483f33cfee9f3d77234ed7e18633dabeeabb24470d42202d2cc9e91aca8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Session/SoundFeedback.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba1cb069973c47c7e29fca4b5f11febf545a01a0ac38af4c95eac59d0bfd243"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/AppUpdater.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9741c985a1fa3f7a406d37883028aa5d322fb2d8b63cde0c1414ed6bb022da3b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/DataBackupScheduler.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c891b36ee01c59a14d8196267749bc971768803ad9c74c0c70f19967ad20f81"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/JiebaChineseWordSegmenter.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c05338f531e9c332673d121d1b5cb501fd4ce4e62be6ec0fd4e3e7b3cec49e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SenseVoiceServerManager.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f64c8371162fbc9200abcf39cf58576e459de1eb977599a62ef1c116cf7961"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SenseVoiceServerManager.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9666353ebd24f7cdc7064d1cb1d933d95c38e206af3a83aed7c4ec0f1305869"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/SenseVoiceServerManager.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"958f74bcd6a8e2a42ebeca41d324fdbfb417de48eb193bfa14c358e1bb96b768"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VocabularyCommands.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"742fc53830604699654da249abe2e28c0931d6029a817cee4051ce864c0e7879"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/VocabularyCommands.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acd437a24d99aa535afda0786163b9d60a872398b59d90edbda1bee65aba4ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/Magpie/MagpieGateway.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e1c67a7af976a69ac3e3f4ecb3b01ff243dbcf78927bec4eab594573c0a756"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/LLM/Magpie/MagpieModelCatalog.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f103f62e0691959bc75b6e1489629eb17185c36297f38d6317b6a9ecd26c50d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/DebugTab.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e3d8dc040b63ee51562757aba14736dbdac5491ddb70b8ba5c4533c355b1f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/CloudSubscription/RegionDetector.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ac044950ebd986a2920eb6963f13ef1043dec5e27e796f9dc05ec341545c6e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060check_port\u0060 swallows every exception into \u0060return False\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/test_vocab_accuracy.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"e197e20d9ec0c7c6bf6ffe59b091ad7e34430af91f578cb2839ba30ef8b0a4cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060storageValue\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Audio/AudioInputDevicePreference.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"86321e4226b15eb3e81a696fd875a0d7157943864fe7502391c9159551504a34"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/BatchCorrectionInference.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc03f3f1b1d1a04c0fb46a8b3c7c870df2b86bcd6caf1b0b7c32ade89b55431e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060matches\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/ExpressionProfileStore.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3366186dbd0878d2f4e4134ed89224e347a6aa57af936eb32dbb35b98e44c3a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060factualTokens\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4Me/Services/UserEditClassifier.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"41309e4bb096de6c9cd4ae6a1808180574dcd9771c405ff022e648372793bfba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060matches\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Type4MeIntelliSenseCore/ListStructureIntent.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1400ea07b263e237b823f2f0d486bcd394f0092aa3b333507a7480359ce89"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":11,"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."]}]}