{"$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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"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":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"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":"TextDecoder.decodeText (cyclomatic 43): TextDecoder.decodeText has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1ab16605a4908de11c4a920bd1541c8e8ebcad3356d2afe2ba419695ed30a5"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscribeCLI.transcribe (cyclomatic 38): TranscribeCLI.transcribe has cyclomatic complexity 38 (threshold 15). Of this number, 37 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b8a98df5c4607a0577d566bcb25844e84c6abae1489b43d783148ae1fd98e4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandler.createTranscription (cyclomatic 32): OpenAIHandler.createTranscription 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/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe9a63a0ba48fbcf8932f21d956f5503032e8388f3bbf0e6b16c1604cc50671"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3GenerateTask.runGenerationLoop (cyclomatic 32): Qwen3GenerateTask.runGenerationLoop 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"590677ce49ccaeb4546f38ace896d49a80a4987ed9d78ea9e949378f3122241b"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSKit.generate (cyclomatic 29): TTSKit.generate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/TTSKit.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1834e018265705f810121ccc8d77e2ea7a0349cfd509c7306a215406916f342"}},{"ruleId":"D1","level":"warning","message":{"text":"SegmentSeeker.updateSegmentsWithWordTimings (cyclomatic 25): SegmentSeeker.updateSegmentsWithWordTimings has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"7614412c656c60010ec6bc55d9aad3df446f7b2c5985d52e0bafd25c6c62b176"}},{"ruleId":"D1","level":"warning","message":{"text":"ClusterAlgorithms.kMeans (cyclomatic 23): ClusterAlgorithms.kMeans has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34bb641944c93a05d060e607796c8b0ec6dce58b1aee341594e064248f42baa"}},{"ruleId":"D1","level":"warning","message":{"text":"PyannoteDiarizerActor.postProcess (cyclomatic 23): PyannoteDiarizerActor.postProcess 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/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd9e78e9e785499d7dae60a8c1bbe47e7ddacefe4524d8f43f1a256adbaa5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandler.createTranslation (cyclomatic 21): OpenAIHandler.createTranslation has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd9d60d87d6c7f04f236b600354da73b3c4e2868f4890beb29afc7bd2e2b0bd"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscribeCLI.transcribeStreamSimulated (cyclomatic 19): TranscribeCLI.transcribeStreamSimulated 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c13203f3c9487fb18efb1269e73713c64782e8235e26b3e541b206ad997e27b"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSCLI.run (cyclomatic 18): TTSCLI.run has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/TTSCLI.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02d2714200aa32e8cf7576846978f86eb9c0aed83e0c568b93907dc35227e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3GenerateTask.prefillCodeDecoder (cyclomatic 18): Qwen3GenerateTask.prefillCodeDecoder 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a704f2441a1dd2048faaf685704586b0aec8b28d49c65e191919022ec37c8437"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscribeTask.run (cyclomatic 18): TranscribeTask.run 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/WhisperKit/Core/TranscribeTask.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"767d5ed5ac0cdcf604ce15b8e5d07fcd76625be95c723a51e341215860f3ecec"}},{"ruleId":"D1","level":"warning","message":{"text":"SegmentSeeker.findSeekPointAndSegments (cyclomatic 18): SegmentSeeker.findSeekPointAndSegments 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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"95136c7d45cd46dab80ad83d6e409c798ef9cc1dde636c41e93a0f02f98976d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ClusterAlgorithms.fastLinkage (cyclomatic 17): ClusterAlgorithms.fastLinkage 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/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee804df85a70a270a44d08381e00208ef10abb2b999ad5b4e4826e50525a3539"}},{"ruleId":"D1","level":"warning","message":{"text":"VariationalBayesHiddenMarkovModel.vbx (cyclomatic 17): VariationalBayesHiddenMarkovModel.vbx 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/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"94535d83ca1ecedf67ff63c53d940602d819eae376d11a011a28f6edaa5ce9e7"}},{"ruleId":"D1","level":"warning","message":{"text":"KVCache.update (cyclomatic 17): KVCache.update 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/TTSKit/Utilities/KVCache.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2b6ab0b9c8bb16a9be003622bf761bdafc49a1b96356aa560ed3d89c1a7740"}},{"ruleId":"D1","level":"warning","message":{"text":"String.lastNaturalBoundary (cyclomatic 16): String.lastNaturalBoundary 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/ArgmaxCore/FoundationExtensions.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb58724fe6c4a1a3e50cf28879efe904893882fbe28c65624d155a4d32b9579"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioOutput.scheduleWithFades (cyclomatic 16): AudioOutput.scheduleWithFades 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/TTSKit/Utilities/AudioOutput.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbca3e20466777d6a884bc459cf31042263bda7a786bd5978dd668e86a3422f5"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioProcessor.convertToMono (cyclomatic 16): AudioProcessor.convertToMono 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/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e67d92c855c5c40e0cce2991afeb609c6564d30f2e54430a92a326307503d23"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioProcessor.loadFileIncrementally (cyclomatic 16): AudioProcessor.loadFileIncrementally 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/WhisperKit/Core/Audio/AudioProcessor\u002BIncrementalLoading.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0353bc21cb5b9d474ee00f0ec1e680f4d61cddf7e7af41dbb30ef0b6b95e749f"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDecoder.decodeText (cognitive 75): TextDecoder.decodeText has cognitive complexity 75 (threshold 15). Drivers by points: if/else 28 (52 pts), boolean chains 14, ternaries 2 (5 pts), loops 3 (4 pts) (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/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d1f55d03ebd743a7c8c5715444bb04fd48d5b25f700c9628a00b0ebeb7fc92"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3GenerateTask.runGenerationLoop (cognitive 67): Qwen3GenerateTask.runGenerationLoop has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (47 pts), boolean chains 10, ternaries 2 (6 pts), loops 2 (4 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a107e15c1341568e1c318dcb907e56645a5611778f0044c0e03ea807a3d0ce5"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSKit.generate (cognitive 62): TTSKit.generate has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 8 (20 pts), ternaries 6 (12 pts), boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into 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/TTSKit/TTSKit.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ca30c78916118f26028f8822110777d50f7f6a9773a0ec3aa4211addec65eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeCLI.transcribeStreamSimulated (cognitive 57): TranscribeCLI.transcribeStreamSimulated has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (53 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 37). 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50b1143ca99c177ef18df5af13cce9b9104faa3bd1c02dc0c9106bf6ccddd58"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeCLI.transcribe (cognitive 56): TranscribeCLI.transcribe has cognitive complexity 56 (threshold 15). Drivers by points: if/else 27 (39 pts), loops 4 (6 pts), error handling 2 (5 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 18). Of this number, 54 points are the body\u0027s own statements and 2 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"616692e52c29f9f61a6a9f7e7e1ef534489590a98ba94fbb29f869a22e2807ea"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentSeeker.updateSegmentsWithWordTimings (cognitive 53): SegmentSeeker.updateSegmentsWithWordTimings has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (37 pts), boolean chains 10, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"744bdd0eb5e99fc70339015e33c0ac00b30cf69327ccf2a7263ccd32f6b41a25"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeTask.run (cognitive 52): TranscribeTask.run has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 5 (18 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TranscribeTask.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e40c1f8478dff603dac36121c10502005f62a5049e8e2dd0e5d5bff6c6caf1"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterAlgorithms.kMeans (cognitive 47): ClusterAlgorithms.kMeans has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 9 (19 pts), boolean chains 2 (nesting depth added 25). Of this number, 36 points are the body\u0027s own statements and 11 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/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe18972ec36f74e0d732b48d2c3a4ae8203f93ff617b3d78504314d89dfd3090"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandler.createTranscription (cognitive 42): OpenAIHandler.createTranscription has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (27 pts), ternaries 2 (6 pts), match/switch 3 (5 pts), boolean chains 3, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"18823a76cefd8cfd9cae259cb4d2fce535896a221b88fa5615d259864e2aec8f"}},{"ruleId":"D2","level":"warning","message":{"text":"PyannoteDiarizerActor.postProcess (cognitive 37): PyannoteDiarizerActor.postProcess has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 6 (9 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2a31300dc5f30bd6acf661496dc79848e5fce6c1851d5d5e891277943f1f7c"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor.loadFileIncrementally (cognitive 34): AudioProcessor.loadFileIncrementally has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (12 pts), boolean chains 2, error handling 2 (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/WhisperKit/Core/Audio/AudioProcessor\u002BIncrementalLoading.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe85a5f6a82d191e659ff62c8ddfba7fc8d4f5e8ce7f01b9780318414400011"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterAlgorithms.fastLinkage (cognitive 32): ClusterAlgorithms.fastLinkage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 4 (6 pts), boolean chains 4 (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/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1124a788dd3b7c8f5a7337e88ea8b822a5cf2caac379d1efdd7e7b848cfa2049"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3GenerateTask.prefillCodeDecoder (cognitive 32): Qwen3GenerateTask.prefillCodeDecoder has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, loops 2 (6 pts), ternaries 2 (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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6dd041e783964683f51f1132fa3716373c92056e5079343cd257466c392a22"}},{"ruleId":"D2","level":"warning","message":{"text":"VariationalBayesHiddenMarkovModel.vbx (cognitive 31): VariationalBayesHiddenMarkovModel.vbx has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"5172ed27a1587487861d64df619e25362c929c95ea10c86d48352986dc1d6e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentSeeker.findSeekPointAndSegments (cognitive 31): SegmentSeeker.findSeekPointAndSegments has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 3 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1494d6af8529672b9aca4935274e10e204dbac813c9eabf04ffb0cd0d0e7c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"KVCache.update (cognitive 30): KVCache.update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (8 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Utilities/KVCache.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b75f681f199a636751486e3b52f3c81666d9998944f6f36de1099c5c1cbbf3"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioOutput.scheduleWithFades (cognitive 27): AudioOutput.scheduleWithFades has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (8 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Utilities/AudioOutput.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbac764844ac123f11422d449b891bd9b7aa2a88216a59d7c784313505eb1fda"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSCLI.run (cognitive 26): TTSCLI.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/TTSCLI.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"683515bff0ec32da3bd6e2953cb741233b63eed5740722972040faf303046348"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakerEmbedderModel.processChunk (cognitive 26): SpeakerEmbedderModel.processChunk has cognitive complexity 26 (threshold 15). Drivers by points: loops 7 (12 pts), if/else 5 (10 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a0b1cdd44a892cc9de495e2baf4b9727f5f5a01878c03799fc185c4e4e2e95"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperKit.transcribeWithResults (cognitive 25): WhisperKit.transcribeWithResults has cognitive complexity 25 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 1 (5 pts), error handling 1 (4 pts), match/switch 2 (4 pts), ternaries 1 (2 pts) (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/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"f051d2f07a95d3fde31fa411fa51ef0e1f21c09e5e46ae77c28c64dd25f96a93"}},{"ruleId":"D2","level":"warning","message":{"text":"String.lastNaturalBoundary (cognitive 23): String.lastNaturalBoundary has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 6, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/FoundationExtensions.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96adb48ef59748dcaac0e3f7ac2296d23b7a601a5b5b9c87f1b69cd02d2d317"}},{"ruleId":"D2","level":"warning","message":{"text":"VBxClustering.centroidsFromFinalAssignments (cognitive 23): VBxClustering.centroidsFromFinalAssignments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/VBxClustering.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fb21851ffa634ea849072b0cc36e2076b501b05e211005c62ecca496ed3cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3MultiCodeDecoder.loadModel (cognitive 23): Qwen3MultiCodeDecoder.loadModel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (22 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccc806a294012aa6d8f23d3e8914f7a1be0625a2a16b7e417e3cad8f43245e9"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeCLI.validate (cognitive 22): TranscribeCLI.validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6869ec11111cb09e4a5012ad42f6591edd88a781cb68887b4df057904774acc9"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizationResult.updateSegments (cognitive 21): DiarizationResult.updateSegments has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, 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/SpeakerKit/DiarizationResult.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"af42f8befd357e134e675e4dbcf6a8e2c100460b703da674c7660ee11e4c29c0"}},{"ruleId":"D2","level":"warning","message":{"text":"GreedyTokenSampler.sampleCodec0WithMLTensor (cognitive 21): GreedyTokenSampler.sampleCodec0WithMLTensor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (5 pts), ternaries 1 (4 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":"Sources/TTSKit/Utilities/Sampling.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fa16ffba82828818b7b7e5355aa921e26edc84cec34a839f283d03bdc524de"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperKit.transcribeWithOptions (cognitive 21): WhisperKit.transcribeWithOptions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts), error handling 1 (3 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"509167794149fcf829967308ff0c5eb94105453fe424f741213cbcb8307dad45"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor.convertToMono (cognitive 21): AudioProcessor.convertToMono has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts), 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/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"5097a0a33b0ea7165a4dfb71719208234d61d542e6638b1e6f1cb8cb3907e09e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandler.createTranslation (cognitive 20): OpenAIHandler.createTranslation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 3 (4 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f069a30d5e647b20b43abb26a7c3aa72f7c740d97fd17237fe5c51cfc4f8167"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3SpeechDecoder.decodeFrameAsync (cognitive 20): Qwen3SpeechDecoder.decodeFrameAsync has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 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/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b73ecfb0b356d77579d84637797030a2ce1074b10e89f7792a5fe096fd0032"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeTask.decodeWithFallback (cognitive 20): TranscribeTask.decodeWithFallback has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, 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/WhisperKit/Core/TranscribeTask.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8da29e13ee8411e39eed237a24a82e0eafe79a28a92a284e9eab1a250d51df"}},{"ruleId":"D2","level":"warning","message":{"text":"SegmentSeeker.mergePunctuations (cognitive 20): SegmentSeeker.mergePunctuations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, 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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbaecf530cdc52fef9da0a7d03ca67c1418b0cb25cc0991629a2154af963783"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeCLI.processTranscriptionResult (cognitive 19): TranscribeCLI.processTranscriptionResult has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38240b0ea014aa40d4c142c7860b96378129bb3b7cd253d9138fb1186171413"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampRulesFilter.filterLogits (cognitive 19): TimestampRulesFilter.filterLogits has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (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/WhisperKit/Core/Text/LogitsFilter.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8474d56ce22e72a83303be123f2126f750e5def20c8b8cb62306146d248875"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3GenerateTask.buildPromptCache (cognitive 18): Qwen3GenerateTask.buildPromptCache has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 2 (4 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c05cfcd6dc306bc20f744f9d7e48ca36b1362324d3a5283e42943c08ff5b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakerSegmenterModel.predict (cognitive 17): SpeakerSegmenterModel.predict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (5 pts), error handling 1 (3 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfd3f638ab6f673276b8f90463423cebf80b52ca256f3d19ddf3a0e37e0dfd7"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3SpeechDecoder.loadModel (cognitive 17): Qwen3SpeechDecoder.loadModel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9434e0168890b550272729d78a10021d1c08852e8f533c244d9ada9c1332f9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessor.getAudioDevices (cognitive 17): AudioProcessor.getAudioDevices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"d146458354fc3da47e24287cb1e4984e6106fcadee3d3d127d5cebbd1818bd70"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioStreamTranscriber.transcribeCurrentBuffer (cognitive 17): AudioStreamTranscriber.transcribeCurrentBuffer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 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/WhisperKit/Core/Audio/AudioStreamTranscriber.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d09e1cf88c6a0e85d97a93bb5f281e37c0ad7c0f46549692732c38acedd40d"}},{"ruleId":"D2","level":"warning","message":{"text":"PyannoteDiarizerActor.initialize (cognitive 16): PyannoteDiarizerActor.initialize has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), error handling 1 (4 pts), if/else 1 (4 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af3cba543f8d2cbc6af5eabee8663d4fae2e489375710c7baeedf714e550c2e"}},{"ruleId":"D2","level":"warning","message":{"text":"VBxClustering.calculateCentroids (cognitive 16): VBxClustering.calculateCentroids has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 3 (6 pts), boolean chains 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/VBxClustering.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"136f1f1dc896713da8c5d3765e432d41f4eb58ab3a6c4f883d3c9e18208c7e06"}},{"ruleId":"D2","level":"warning","message":{"text":"TextChunker.chunk (cognitive 16): TextChunker.chunk has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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/TTSKit/Utilities/TextChunker.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad28857c591527b6123b57896fe85f70ec4381e41643a4bb846d1fc49f283b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3GenerateTask.runGenerationLoop: MethodTooLong \u2014 runGenerationLoop runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91681259bb199dde8e8ed177020d0433bd658bf0e592380c21517088b23f7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/Models.swift: FileTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 540 over it, 2.08\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/WhisperKit/Core/Models.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47147e5db9de8a01eda494a306cb9a5493ff14d7ed0fecb21dfa7cdd75e1386"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextDecoder.decodeText: MethodTooLong \u2014 decodeText runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef1deb326fea074e9265a74e09b2752e2625193d14d77ed2867dffe9e770a37"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WhisperKit: ClassTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 353 over it, 1.88\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda5b11ab277e50e5e5a2d6e109685aa1f7c5b51382f99a81fcab24d74667361"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TTSKit: ClassTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 233 over it, 1.58\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/TTSKit/TTSKit.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"551f35ea313d3b9235822f00780f0c6132c8b80b5ade5540af79d8abfb59cb97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/WhisperKit.swift: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WhisperKit (11-1267). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a83c39cdb8032ff98a57994ffb3c6e03c6265ada6e4598bc775ac2236d4de1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscribeTask.run: MethodTooLong \u2014 run runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TranscribeTask.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"605f8426d5a26035c49db9d5dcacd53ec66c97b0317531150da6819ab9ade7d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TTSKit.generate: MethodTooLong \u2014 generate runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/TTSKit.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"157353fb5e6e75634522cdfc5f2743da6a55d6bd3c7023f97b2d92597901d8c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenAIHandler.createTranscription: MethodTooLong \u2014 createTranscription runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"928865c1da4e36b5e60fef63c6b3b14f167ac288dc55ad92cd27e50ed0567768"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Audio/AudioProcessor.swift: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: AudioProcessor (241-933). The bar is 500 significant lines; this is 157 over it, 1.31\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/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"196516144fd87d52abdda021254cc780a0dae93e1a8595065bf117aa001a8142"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscribeCLI.transcribe: MethodTooLong \u2014 transcribe 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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dba0b62fe3dcb3d55e0cc7c8efb2c9a2856ea6385d4c2c8aa0b0065fe4d1146"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTSKit/TTSKit.swift: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TTSKit (33-1178). The bar is 500 significant lines; this is 140 over it, 1.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/TTSKit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fb492ec9f8b6e4bb61b2b44a69a6fd214bec9d3789282fef0804e88591c56e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3GenerateTask: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 7 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa7c7f738e5b733d2dab3cc47898c0ea8d634ba4d1a8ace0a3b766d3c8fe236"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/TextDecoder.swift: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: TextDecoder (306-919). The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d6d8b1216ef0cbfb20b369d295f9c0a2acd81b8a08798905c256d291f877ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TTSCLI.run: MethodTooLong \u2014 run runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCLI/TTSCLI.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9264ff0665cb65a30abda522be3c64d9fc49c4d117ca8faeef834f91a6dcbf2c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AudioProcessor: TooManyMethods \u2014 31 methods, declared across 2 files: Audio/AudioProcessor.swift (30), Audio/AudioProcessor\u002BIncrementalLoading.swift (1). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1f7e2f989f57286318a6a27c1edac88d8c24988ae978d8d9713fafb307702e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Pyannote/ClusteringAlgorithms.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8668fb5c4b4d05d94202ee154114fe9682ad4b6790a4ea6ac457143b18fc5af"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AudioProcessor: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Audio/AudioProcessor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"5108e0cee8618e1b86412805cc662a20b24d13f2afa0abc8ebda72224aa15b1a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VariationalBayesHiddenMarkovModel.vbx: MethodTooLong \u2014 vbx runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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/SpeakerKit/Pyannote/ClusteringAlgorithms.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712d273528c602c57524f7608fc1a65045a13c594a4ed7f7e4da1cde54a7eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:139-185 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:290-343 \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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7cd8e26e7daa17502fea4ddbfb1f429012ac8bda1f8b4f2d822168a8d05f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:404-410 | Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:435-441 | Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:487-493 | Sources/SpeakerKit/Pyannote/SpeakerPreEmbedderModel.swift:62-68 \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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07fd43ae1560d472e0f2a07a9ee37d0730d4887bf35098b5770beb284b828ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:28-51 | Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:18-26 | Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:67-75 | Sources/TTSKit/Qwen3TTS/Qwen3TextProjector.swift:18-26 \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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a442ba94292bdfad848e2689de258fda2b3ec7e779fedcb0342eff260ea4b735"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:560-656 | Sources/WhisperKit/Core/Audio/AudioStreamTranscriber.swift:146-213 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"82231ee95b4a95fa13b336ea708ad6c8618b06f1b6eb128af43e185812353e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/TTSKit/TTSKit.swift:163-208 | Sources/WhisperKit/Core/WhisperKit.swift:102-143 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/TTSKit.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"add1d83d2dea9055541c8107541ce05211320544f43b97ec0166617098a6fc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/WhisperKit/Utilities/ResultWriter.swift:76-101 | Sources/WhisperKit/Utilities/ResultWriter.swift:111-133 \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/WhisperKit/Utilities/ResultWriter.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cd7c7cbaa786adeedcf1c3a01a95540732009bd986a84c9105ac433a6ce55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/ArgmaxCore/ModelManager.swift:121-153 | Sources/ArgmaxCore/ModelManager.swift:159-191 \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/ArgmaxCore/ModelManager.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"180c04753851b8faffb02658b3c06d763ba7dd6950886248f89a72678356645a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift:118-136 | Sources/WhisperKit/Utilities/Extensions\u002BInternal.swift:112-130 \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/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1658d21d9acdc47998db564a160a344ad5e0755eb983d9d641e739d02aa1557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/WhisperKit/Core/AudioEncoder.swift:51-64 | Sources/WhisperKit/Core/FeatureExtractor.swift:41-57 \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/WhisperKit/Core/AudioEncoder.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae9f99f853abbd2d32bc172a439b95b7a75dc6038b179fc6fb5fdae97bfe960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/WhisperKit/Utilities/TranscriptionUtilities.swift:57-71 | Sources/WhisperKit/Utilities/TranscriptionUtilities.swift:78-92 \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/WhisperKit/Utilities/TranscriptionUtilities.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"95835c065727823cd55533b16b6e442aecae589a1784a9fc414b4f313a8ab686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/ArgmaxCore/ModelDownloader.swift:107-112 | Sources/ArgmaxCore/ModelDownloader.swift:241-246 \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/ArgmaxCore/ModelDownloader.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4f900cc9a2c14cd11dca76086c71965e7a1d7d3d0fa2bda2c04977353378d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:11-20 | Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:22-31 \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/SpeakerKit/Pyannote/PyannoteConfig.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3922fb4f2dee716a47515b8633423cc0520727b235f4b90cca74b7b2db7e9a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/WhisperKit/Utilities/TextUtilities.swift:14-28 | Sources/WhisperKit/Utilities/TextUtilities.swift:33-53 \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/WhisperKit/Utilities/TextUtilities.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0470b823fab0173b1c7ad17873d618ea9ee6d01408464674e646df198e2d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SpeakerKit/SpeakerSegment.swift:49-59 | Sources/SpeakerKit/SpeakerSegment.swift:62-72 \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/SpeakerKit/SpeakerSegment.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5958087e11a75cf9e4d0a1c043f95d453437a83be9250ddafd9d08e54c9f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/WhisperKit/Core/Audio/VoiceActivityDetector.swift:132-144 | Sources/WhisperKit/Core/Audio/VoiceActivityDetector.swift:153-165 \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/WhisperKit/Core/Audio/VoiceActivityDetector.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b826d72d86d397d02142d671bc732440145a3cc8e1fb61db64384d92f97e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/TTSKit/Utilities/AudioOutput.swift:391-411 | Sources/TTSKit/Utilities/AudioOutput.swift:452-473 \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/TTSKit/Utilities/AudioOutput.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a460213e80aa61855b08d6c4e785ed70272d85ebaccc47c8fa81d86f87b381f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/TTSKit/TTSKit.swift:1134-1148 | Sources/TTSKit/TTSKit.swift:1161-1177 \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/TTSKit/TTSKit.swift"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3510f004a59705c4fef14c40871a23c97c96b950b62898fb1f0850f000b92e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/ArgmaxCore/External/Hub/HubApi.swift:687-690 | Sources/ArgmaxCore/HubWrapper.swift:76-83 \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/ArgmaxCore/HubWrapper.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fe55147c9e47ec23967f4c108565e471f388fd6c4e330f34c21e6a68a6675f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift:55-64 | Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift:66-81 \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/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"90901cf18810d28868ee7791038508e11c91832df095ec1719285d2bdba88039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/WhisperKit/Core/Models.swift:301-310 | Sources/WhisperKit/Core/Models.swift:1021-1029 | Sources/WhisperKit/Core/TextDecoder.swift:23-39 \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/WhisperKit/Core/Models.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd9bc48667252cb7b16785d432ff28be57ec2bf507151c3a8e867e40ca74ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/ArgmaxCore/ModelUtilities.swift:35-39 | Sources/ArgmaxCore/ModelUtilities.swift:43-47 \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/ArgmaxCore/ModelUtilities.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c92d31ee01a0f1f88b1556b4eac147d65292e9feb4c9c5e730810403f53f70e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:159-168 | Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift:40-46 \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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a2da74b99ae8f90a256c944fef55262a64a214f8b8395e33891654d29a63f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/SpeakerKit/SpeakerKit.swift:64-71 | Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift:73-79 \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/SpeakerKit/SpeakerKit.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccd4159b03395f3d3e43adf5452a233442dec8a401791af13c3ce0279a993bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/WhisperKit/Core/WhisperKit.swift:625-639 | Sources/WhisperKit/Core/WhisperKit.swift:776-788 \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/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"2123109b3f76feb0738fb4011e863284c2c3cdfc99d4610057b84a14f2271734"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/ArgmaxCore/ModelUtilities.swift:17-22 | Sources/ArgmaxCore/ModelUtilities.swift:25-30 | Sources/WhisperKit/Core/FeatureExtractor.swift:33-39 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/ModelUtilities.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acc3dba783d7dc6f42b1cde7330ea2a1025d80d60c5084d0f4691d7be9bb6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/SpeakerKit/Pyannote/PyannoteModelManager.swift:51-61 | Sources/SpeakerKit/Pyannote/PyannoteModelManager.swift:163-177 \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/SpeakerKit/Pyannote/PyannoteModelManager.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6a2aa487a88e1a5739a8cf7e06d3664533324ed25c37a2bac2cc4483acffc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/TTSKit/Utilities/AudioOutput.swift:96-102 | Sources/TTSKit/Utilities/AudioOutput.swift:106-113 \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/TTSKit/Utilities/AudioOutput.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b20c7305c21cb6e747f14f5b78d6ae7fcdc28c3dcfb1057d1087842fd79bb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:388-395 | Sources/SpeakerKit/Pyannote/SpeakerPreEmbedderModel.swift:28-35 \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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2e8c1ce6635577cd7da4099361236cae534a254e51d4a579776a7d42930607"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/ArgmaxCore/External/Tokenizers/Decoder.swift:265-273 | Sources/ArgmaxCore/FoundationExtensions.swift:165-173 \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/ArgmaxCore/FoundationExtensions.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4415411b1220d65530d5210a21e3d1688140faa6857983e97d9217a46c1cf34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/ArgmaxCore/External/Hub/HubApi.swift:258-260 | Sources/ArgmaxCore/HubWrapper.swift:92-98 \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/ArgmaxCore/HubWrapper.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9d31bdd4f2d5e4987bf99c8e91072d6435c5590f3706d94f04debac4df3047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:501-506 | Sources/SpeakerKit/Pyannote/SpeakerPreEmbedderModel.swift:45-50 | Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift:238-243 | Sources/WhisperKit/Core/Models.swift:856-861 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce13ad3b41bb75f66524f5004d946437ee89b19614c853ba64af5cc81089d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Sources/ArgmaxCore/TokenizerWrapper.swift:20-20 | Sources/TTSKit/TTSTokenizer.swift:34-34 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/TokenizerWrapper.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dc350b4ad34e73ad3b36c2097bb30225b7b1af27a830eae44bb7b10e134e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Sources/ArgmaxCore/TokenizerWrapper.swift:22-22 | Sources/TTSKit/TTSTokenizer.swift:36-36 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/TokenizerWrapper.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5caa18055ee59396f876029127b25942446f93b244e937b0231aff551f6dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift:60-62 | Sources/SpeakerKit/SpeakerKitDiarizer.swift:47-49 \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/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"420c6f44148030ecc8573695287aed37c42079bb66be3a6065772f621f8ae70e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:90-120 | Sources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift:95-125 \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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.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. 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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf96d2b5c20fe402b2621aa39ed5be5099482dd149d221773a471c53b3d682f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:473-500 | Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:571-599 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:473\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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d4999a7285fc9ca80ab73216f4984d60599bb1c8365ee2d830c982cff8a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/ArgmaxCLI/Server/OpenAIHandler.swift:210-231 | Sources/ArgmaxCLI/Server/OpenAIHandler.swift:380-401 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ArgmaxCLI/Server/OpenAIHandler.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/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82b49fb9bfc3f1f9384bb5f40b7f9ace189eb8259724a10ae8e155b5e5bf947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201335 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:141-172 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:299-333 \u2014 before extracting anything, compare \u0060Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:141\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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0d727547afe2c7651a6901ac2e0d8d46ad22b2149377a8326a3961c861c481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/WhisperKit/Core/Text/LogitsFilter.swift:185-203 | Sources/WhisperKit/Core/Text/LogitsFilter.swift:212-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/WhisperKit/Core/Text/LogitsFilter.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. 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/WhisperKit/Core/Text/LogitsFilter.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9db6cc77eaf8ecb491a5d5872ca25dbf582608f4f5ff3006cf1341e6f08d799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:65-81 | Sources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift:70-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f88033c51738d8af9caf4a1003fadd985d2bf6759a632e8a3fb9f7fd13eda3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift:121-136 | Sources/WhisperKit/Utilities/Extensions\u002BInternal.swift:115-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeakerKit/Pyannote/PyannoteDiarizer.swift:121\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \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/SpeakerKit/Pyannote/PyannoteDiarizer.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e07cf3ba8d04ba3004b5adbb36378a67bf8e10cdd5b1082073fc1e0be93ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/ArgmaxCLI/Server/OpenAIHandler.swift:304-316 | Sources/ArgmaxCLI/Server/OpenAIHandler.swift:427-440 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/ArgmaxCLI/Server/OpenAIHandler.swift:304\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ArgmaxCLI/Server/OpenAIHandler.swift:302\u0060 calls \u0060TranscriptionWord\u0060 and \u0060Sources/ArgmaxCLI/Server/OpenAIHandler.swift:426\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/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"681a6c2e98b4ffead96eef5d9b1e82e1b03eb449dfa3ad93ce645054bffbb942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/SpeakerKit/DiarizationResult.swift:257-270 | Sources/SpeakerKit/DiarizationResult.swift:278-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeakerKit/DiarizationResult.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"667878c65e867ce2393ca248f45b180250cfa6936e7ebb1c29aad4568fa489ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/WhisperKit/Core/TextDecoder.swift:476-488 | Sources/WhisperKit/Core/TextDecoder.swift:628-640 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/WhisperKit/Core/TextDecoder.swift:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"39227f6f4cd14bc67afa42df184df62d77434ebed07ae2f1206a7c997f8c7e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:51-62 | Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:84-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/SpeakerKit/Pyannote/PyannoteConfig.swift:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:96\u0060 calls \u0060ModelDownloadConfig\u0060 and \u0060Sources/SpeakerKit/Pyannote/PyannoteConfig.swift:63\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/SpeakerKit/Pyannote/PyannoteConfig.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aae055f60fff4290c054ac6b15c25f9992a342cabcf1081d65ce4ee4cb3f97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:428-439 | Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:533-542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6b30f2d44dc6726f3ae5d92132d88fa6b941c700977bdca7e3261e2a64a442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:431-440 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:442-452 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:481-491 \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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:431\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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c378167a679c78966a2c152acd60ac875cf87a4c17ba4cdaf618f74f06bed83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:285-295 | Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:744-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:757\u0060 calls \u0060update\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift:296\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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3034076803c5c9263a0d8bd8ae037f3ec88638039907ee0300184ef90d6d30c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/TTSKit/Utilities/KVCache.swift:502-512 | Sources/TTSKit/Utilities/KVCache.swift:514-524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Utilities/KVCache.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4476a9c01bd63aaaecb4dd781858fa2478a58b6d48bdbb405b7a55da920905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/TTSKit/Utilities/Sampling.swift:174-183 | Sources/TTSKit/Utilities/Sampling.swift:206-215 \u2014 both copies are in the same file, so extract the block 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/TTSKit/Utilities/Sampling.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c79d11814ba83e6038dbcff1ef0098d12a160a22cb18d2f570588a9b3a9b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:28-36 | Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:18-25 | Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:67-74 | Sources/TTSKit/Qwen3TTS/Qwen3TextProjector.swift:18-25 \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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e025310159d09f8a74c20d88d213d7542a0d8acbb8988bc248e3b0e716f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ArgmaxCLI/TranscribeCLI.swift:519-527 | Sources/ArgmaxCLI/TranscribeCLI.swift:531-539 \u2014 both copies are in the same file, so extract the block 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/ArgmaxCLI/TranscribeCLI.swift:530\u0060 calls \u0060WriteJSON\u0060 and \u0060Sources/ArgmaxCLI/TranscribeCLI.swift:517\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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"7337b0bf4c67ba62d516abf326e53bdfd9f7980d0ff61141f27346aadbb768f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:160-168 | Sources/TTSKit/Qwen3TTS/Qwen3SpeechDecoder.swift:187-195 \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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5966708083e5f7b49cb1772c31df18263de5d261774324741325504631ccd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:29-37 | Sources/TTSKit/Qwen3TTS/Qwen3Embedders.swift:78-86 | Sources/TTSKit/Qwen3TTS/Qwen3TextProjector.swift:29-37 \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/TTSKit/Qwen3TTS/Qwen3Embedders.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2eac7a1e5359ce3f55757e5c8626bd2d5288ae12c61f92effd2f580af4c1fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/ArgmaxCLI/Server/OpenAIHandler.swift:51-58 | Sources/ArgmaxCLI/Server/OpenAIHandler.swift:91-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/ArgmaxCLI/Server/OpenAIHandler.swift:51\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/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"da40606076122f81495d2e12bc33af2c2840fef44f55fc4e26c7d77823810e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:40-46 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:140-145 \u2014 before extracting anything, compare \u0060Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:147\u0060 calls \u0060getModelOutputDimension\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:48\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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4002ce6a4b748746152daf3fd459d172f027ad03cd6856e04df573e560dc021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/WhisperKit/Core/Configurations.swift:91-96 | Sources/WhisperKit/Core/WhisperKit.swift:109-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperKit/Core/Configurations.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18beb6cf5fe0b430b5c206a14d8d46d0b2e6d05fa09d952dbb3ef9b3dc20cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/WhisperKit/Core/TextDecoder.swift:258-263 | Sources/WhisperKit/Core/TextDecoder.swift:265-270 \u2014 both copies are in the same file, so extract the block 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/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7275bdf08ab30e95c5c6b52c24ebdca121eea2181ce350581e5c0a54af33260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/WhisperKit/Core/AudioEncoder.swift:25-31 | Sources/WhisperKit/Core/AudioEncoder.swift:33-39 | Sources/WhisperKit/Core/FeatureExtractor.swift:25-31 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The 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/WhisperKit/Core/FeatureExtractor.swift:23\u0060 calls \u0060init\u0060 and \u0060Sources/WhisperKit/Core/AudioEncoder.swift:23\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/WhisperKit/Core/AudioEncoder.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"792839f1172a434cb31cc0d177d0d09dc43059c0ea5e3456242c383f74b0a2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ArgmaxCLI/Server/OpenAIHandler.swift:78-82 | Sources/ArgmaxCLI/Server/OpenAIHandler.swift:270-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/ArgmaxCLI/Server/OpenAIHandler.swift:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/ArgmaxCLI/Server/OpenAIHandler.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7853b04acf86709b434e4493bff53ad7ccc0e872d0c3e954902f78bc89b05a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:404-408 | Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:438-441 | Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:487-491 | Sources/SpeakerKit/Pyannote/SpeakerPreEmbedderModel.swift:65-68 \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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:404\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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bb60f7a3bbc9d9104d575f7711f4bdda75921a4ca0dfc8d4ad0f4a38be5c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/WhisperKit/Utilities/ResultWriter.swift:76-80 | Sources/WhisperKit/Utilities/ResultWriter.swift:111-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/WhisperKit/Utilities/ResultWriter.swift:76\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/WhisperKit/Utilities/ResultWriter.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ef0c7d4852992f5e4311e9333fc2ba640c550c315e289f811eddb11a19d47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift:519-524 | Sources/SpeakerKit/Pyannote/SpeakerPreEmbedderModel.swift:17-22 \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/SpeakerKit/Pyannote/SpeakerEmbedderModel.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"958c7f982c3e569f956606a4e4e1a871b6e2185c47052d8f613ce90d3dfdbe57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:53-59 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:226-232 \u2014 before extracting anything, compare \u0060Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:53\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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f87ea45ed00e949d85a85980badbdd96cdb64c815b3a92cb1733374fd3640f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:63-69 | Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift:236-242 \u2014 before extracting anything, compare \u0060Sources/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift\u0060 and \u0060Sources/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift:63\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/TTSKit/Qwen3TTS/Qwen3CodeDecoder.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ec925d35b9c6330537f2e284401a9ad11c027a81eaac76cbbbfb90be3bd73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/TTSKit/TTSKit.swift:582-588 | Sources/WhisperKit/Core/WhisperKit.swift:510-519 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/TTSKit/TTSKit.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6e80f61b572020542c22a8ec4ba41eaec516a6036cb8f5b02011d1bbb93340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Examples/TTS/TTSKitExample/TTSKitExample/SidebarView.swift:104-122 | Examples/WhisperAX/WhisperAX/Views/ContentView.swift:211-325 \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":"Examples/TTS/TTSKitExample/TTSKitExample/SidebarView.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba1e04f0cf159f27671e1bfa38376628475ab60dfd30f9201ee9ecc5e61e805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:682-734 | Examples/WhisperAX/WhisperAX/Views/ContentView.swift:736-792 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe01a7bfdd3e9b735a3b9a0dafbea066096978986df962445b10f8e00db8b70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1347-1444 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:337-416 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fcdd4f4cd0d23f34adf1e678e56052046231ba4276a00b218e7b3e85f8fcbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Examples/ServeCLIClient/Swift/Sources/main.swift:119-148 | Examples/ServeCLIClient/Swift/Sources/main.swift:152-181 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/ServeCLIClient/Swift/Sources/main.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3b90d1014a455509b1551c45adc42c188d4f9b929b988b42fa704aecf36a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:417-471 | Examples/ServeCLIClient/Swift/Sources/main.swift:185-223 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ec228179598734b2047efe60005f1815cb865e81b3c5c3ec0f23516516cee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Examples/TTS/TTSKitExample/TTSKitExample/MultiCodeDecoderModeView.swift:13-42 | Examples/TTS/TTSKitExample/TTSKitExample/SpeechDecoderModeView.swift:13-42 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/TTS/TTSKitExample/TTSKitExample/MultiCodeDecoderModeView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"671e46cef3a69ec67e62470282308c134a32e3e2d6feed4d885e0b40acfa8c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1880-1891 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:547-558 \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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb02cdd749afe14d8d334640ac4431cafc488b6dfe388f5c863182fe02715c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:63-73 | Examples/ServeCLIClient/Swift/Sources/main.swift:49-52 \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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"754f65ada5dbb165544c98fe87faf0f343995e49f86792289e81f5343a323f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:101-109 | Examples/ServeCLIClient/Swift/Sources/main.swift:75-78 \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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a5ebeebbc8d7f41224a201104319ce01aec07239a8ee57b9dcbe13213b876"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1576-1585 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:448-457 \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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac69a5b9cec6cdaf66beaff411485f40abc9349444380d7a314b8a9f013aba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1910-1951 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:572-612 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1910\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"20604b1a51b114f3dc6f7288ddffe37ecbf0e43c0aa904471efc0b91513c462a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1391-1429 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:371-409 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1391\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, \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1430\u0060 calls \u0060contains\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:410\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"8851f21c18b18504f6a0d9cf768fbc9c3c19c88af9e398fad83fcf0d62181365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1497-1525 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:418-446 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a3281a6adcdc49ee1e4c1ee55d299bfc0865e0c94e91237332d79d41e931fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1359-1384 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:343-369 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1359\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e890dee4b673dcab566a5b9cb1717c0766275fd7fd32207d882f5a1ff1be2760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1836-1856 | Examples/WhisperAX/WhisperAX/Views/ContentView.swift:2065-2085 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1836\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:2087\u0060 calls \u0060info\u0060 and \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1858\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"2114982738096a90645c641382fe1dc6a75b1e7ae37fbc09f4467cfa4f546913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:418-442 | Examples/ServeCLIClient/Swift/Sources/main.swift:185-207 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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 \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:418\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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1e5a96fcd0622cf6525038aeca26971382e8002a2103c149688638f58d746e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Examples/TTS/TTSKitExample/TTSKitExample/MultiCodeDecoderModeView.swift:13-25 | Examples/TTS/TTSKitExample/TTSKitExample/SpeechDecoderModeView.swift:13-25 \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 \u0060Examples/TTS/TTSKitExample/TTSKitExample/MultiCodeDecoderModeView.swift:13\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":"Examples/TTS/TTSKitExample/TTSKitExample/MultiCodeDecoderModeView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e087a864d488e4924d047914c75a8ad4f4bd890066edbaeb0872c0b7f19bf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:138-148 | Examples/ServeCLIClient/Swift/Sources/main.swift:104-115 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6eb9b0b41109e64eed34040c35c67d5ef7819c6e783bfabfe3a6991390182d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:394-404 | Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:440-451 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:394\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":"Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb71969c5fe83b328375bd4b7f3866b88c081cb0e60a91e441476b0fe31b72d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:592-603 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:173-184 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:592\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bf6d6de297556958b97c0c42f9a371583394e61ab9b3cfd2fdd9e73b7329ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:254-269 | Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:322-337 \u2014 both copies are in the same file, so extract the block 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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e770d68083ae32e87646a51fb67d66a6d26ddb3b6e13948d39a0441e1937529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:312-322 | Examples/ServeCLIClient/Swift/Sources/main.swift:166-176 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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 \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:312\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0832d79a897f4be15fc23019729ee773267dc063e2b214bed5a2c187bd79d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:291-300 | Examples/ServeCLIClient/Swift/Sources/main.swift:153-158 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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 \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:291\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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b85b5398859b0377b39f74bed1e9ae9751f1088cd9572cb8104368368912ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:246-254 | Examples/ServeCLIClient/Swift/Sources/main.swift:136-143 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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 \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:246\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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58a8278682d52851394092acaac8c87122bf1cb0dacfb40e6f5f5df9aebbae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Examples/TTS/TTSKitExample/TTSKitExample/SidebarView.swift:105-116 | Examples/WhisperAX/WhisperAX/Views/ContentView.swift:250-261 \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":"Examples/TTS/TTSKitExample/TTSKitExample/SidebarView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a72ac42c846b05e156904797d1adf6409167d9bb729521968263b6dfb9674a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:377-384 | Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:424-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 \u0060Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/TTS/TTSKitExample/TTSKitExample/DetailView.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec7153078549cd23401fb16e747a9e32259767752e505e7ca594420dcdb3500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1303-1310 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:297-304 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:1303\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac38e4269d86e7b66cfc9a40170cd702340452db81d717fd118595a9f33c874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:300-306 | Examples/ServeCLIClient/Swift/Sources/main.swift:125-131 | Examples/ServeCLIClient/Swift/Sources/main.swift:158-164 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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 \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:300\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, \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:309\u0060 calls \u0060response_format\u0060, \u0060init\u0060, \u0060Data\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift:166\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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70031ecb36eb393c2b395b90b28eda2d50fc926f6ce2344a062ea5b8037c3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:450-456 | Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift:229-235 \u2014 before extracting anything, compare \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift\u0060 and \u0060Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 164 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 \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:450\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f6a0310b974c567046277002f1d64c8bfeaf0cf7ccf96318b0c9a4edcc443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Examples/TTS/TTSKitExample/TTSKitExample/WaveformView.swift:140-145 | Examples/TTS/TTSKitExample/TTSKitExample/WaveformView.swift:146-151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/TTS/TTSKitExample/TTSKitExample/WaveformView.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":"Examples/TTS/TTSKitExample/TTSKitExample/WaveformView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02f957eef069e24c3bab2fe66eb62bda86a42dbeb03a0a7a4b1be99aaf90179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Examples/WhisperAX/WhisperAX/Views/ContentView.swift:739-744 | Examples/WhisperAX/WhisperAX/Views/ContentView.swift:758-763 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/WhisperAX/WhisperAX/Views/ContentView.swift:739\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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e458bae9cad536695c1bb742547db30672aa1b9a3fb2ce9245558e75a55af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:161-165 | Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:362-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"97325f05ac257b2893382f20abb73dda6e2cbb5a50e73bea0d4a14f57aa24c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift:481-490 | Examples/ServeCLIClient/Swift/Sources/main.swift:233-242 \u2014 before extracting anything, compare \u0060Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift\u0060 and \u0060Examples/ServeCLIClient/Swift/Sources/main.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 84 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":"Examples/ServeCLIClient/Swift/Sources/WhisperKitSwiftClient/CLI.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae79bf110d738f937bd8681d22f5fe18cb97ebce5f7aa0db96b2d5610d9f0a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Examples/ServeCLIClient/Python/whisperkit_client.py:187-202 | Examples/ServeCLIClient/Python/whisperkit_client.py:269-284 \u2014 both copies are in the same file, so extract the block 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":"Examples/ServeCLIClient/Python/whisperkit_client.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acea8867fa15c71944aa93078b310f8b0a4759e442ef577aff6b8cf856ce8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Examples/ServeCLIClient/Python/whisperkit_client.py:468-478 | Examples/ServeCLIClient/Python/whisperkit_client.py:487-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/ServeCLIClient/Python/whisperkit_client.py:468\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Examples/ServeCLIClient/Python/whisperkit_client.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34b8539659154dd5ed591b76952065bb9d923933ee2560bdb22ff6688c29137"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ArgmaxCore: ArgmaxCore: abstractness 0.11, instability 0.00, distance 0.89 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6a698fa88878346ae6ebbc3a981cc080b119e85b50d54dd6525dd48819e03deb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 7): String\u0027s methods fall into 7 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 7 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/ArgmaxCore/FoundationExtensions.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f4ff1af80d4fce01331a2079ee07ece152a38c26b37008d1b225c1383081f6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 4): Array\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/ArgmaxCore/FoundationExtensions.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"555415d825c1affc59e3db99b6ec689d7ccc5ed2120f06b363431fbee197cd9c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCentroidCosineDistance_sameDiarization: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeakerKitTests/SpeakerCentroidEmbeddingsTests.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce91b51cb2db6466c526d0ec8bfdb102ce93159a3c9b81cb72ed4b4e9bed4ba"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMLTensorPathGeneration: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TTSKitTests/TTSKitIntegrationTests.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc9d35bce2279e1b98b7de00175162be9072d6877aad6c6e3f2f2e9bf8512bb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBothPathsProduceSimilarAudioDuration: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TTSKitTests/TTSKitIntegrationTests.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"912e71bab4ff1f26eb892c42936d86d471138f22241dca8b1c4fcf51ecbdb6b8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBuildMasksAtPositionZero: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TTSKitTests/TTSKitUnitTests.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e92c064f6b7cef62fb76f924761f03db5ab3f771cfcac2f4d66815fa45d323"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBuildMasksAtPositionTwo: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/TTSKitTests/TTSKitUnitTests.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9d36d97aa1b5e396fc0fc3c512e92f84cd6bf2bc29a63a74ae4ee7e7a671f6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCallbackWithEarlyStopping: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b303fe1a51a3f9a0798d85aa85b12616888976d0e62c793b3079dd25dc67c7a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVADAudioChunkerAccuracy: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fa93ceb7134af685b66aa5da3dc8abefad752486b4198af2a21a29474f2e24"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPropertyLockSubPropertyMutationIsUnsafe: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":3586}}}],"partialFingerprints":{"codehealthFindingId/v1":"8285e60cda00d65a4360d184352c3d396da08642793de2fdffede58219f27fcd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMatrixTranspose: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"032202c450f602d63312566f6728ff3703444ecb0df4e6c34575546b6cd0188e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnflatten: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a182b74c59422c2d68049363c2e83bd1ff9d9a0cf8c82a631f7aca3a7d6f3498"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFlattenUnflattenRoundTrip: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fc1b36ccbeba9927cd5a4302d60b0acad7fc3daa9dcaffe31daed3f0192fc4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCosineDistance: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca8cbe119458cd44427726f9a0d64ded12896918b53681a3820d4f9c0787793"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceMatrixMultiply: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f35be6aa9f5360c534147b257a85220c9586b7364a2b7322793b50252734da3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceCosineDistanceMatrix: 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/SpeakerKitTests/MathOpsTests.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8abaaabba5f3c5e173abd4482cda3e3b54cc1bd74a20528796fb6b154d4e2c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancelPendingDecodeIsSafe: 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/TTSKitTests/SpeechStreamWriterTests.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43fdbe83d2fba1dee4ed0c22bda8d6b55ddc803313f444ba393b763dee89288"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChunkerPreservesAllText: 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/TTSKitTests/TTSKitUnitTests.swift"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d83828f5d4f245731283f230f28b5e18530f6fef909abaa54a4beb53ee44d88"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncrementalChunksAreVadWindowsAndReconstructAudio: 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/WhisperKitTests/AudioProcessorTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef3fddc42dd5e42319ebb695580e08344d7329306f9c5ab7f091f2708fe10e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncrementalChunksReconstructAudioWithSilence: 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/WhisperKitTests/AudioProcessorTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a884152f71aeabbef69df2fcbd1404aab5c461eab443c074d92be687907c96a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelPerformanceWithDebugConfig: 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/WhisperKitTests/RegressionTests.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"156fb1a3b9e40318cc53e12900deec295d70ef9792df00bc6a74ef8cabc89b4d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelPerformance: 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/WhisperKitTests/RegressionTests.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd16ef5b58ae35dff50c20a42034d163104f39af500ae5ca22e93085e17734c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInit: 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/WhisperKitTests/UnitTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a445e27f643d505d1438fade3b310e6005349f85267c7217f9ce72ed4ae39099"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInitTiny: 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/WhisperKitTests/UnitTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d1db894c192a858a9b08f0622620d5e2d07cd55f929cdb8eee65c10675b5cc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPrefill: 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/WhisperKitTests/UnitTests.swift"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"13469b1d041b150105fcd32393eac64807fdb26cfd4d9a6bc60d585a51d776c7"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXTests/WhisperAXTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a02a2078edbe1f73d376d5f0fea6625a84b164ec35eebe4cd894719ae41986"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: 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":"Examples/WhisperAX/WhisperAXTests/WhisperAXTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af27e58185503c05293485ab71c5e64e20dcac5f8fa24c3bf2ef19346562ce8"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXUITests/WhisperAXUITests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0733b16d7a6de68f2dd56a96f8637a5d5cf0c356d455e54bfe3f547c82df7403"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: 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":"Examples/WhisperAX/WhisperAXUITests/WhisperAXUITests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17cd284024a1acc1621af73537cc8219d8e1d278624e5836f86b61a88fc3344"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: 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":"Examples/WhisperAX/WhisperAXUITests/WhisperAXUITestsLaunchTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee2f1da83a352c4b32758be4f21af2536cf9f3b7edb71969e69ee66d4a6b93f"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXWatchAppTests/WhisperAX_Watch_AppTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53e89da8c43ad907955320673ade6ef6c2b9214ab247820dbebc3c901f11c5f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: 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":"Examples/WhisperAX/WhisperAXWatchAppTests/WhisperAX_Watch_AppTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3a4f5e48a558231102b0653b1e9c3a51176721f73b8c6743475f86ecc98761"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXWatchAppUITests/WhisperAX_Watch_AppUITests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db5ab1a7bee3dfcfa674f1c92825a68449cf08c97c7ca8b76717ba5827445f9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: 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":"Examples/WhisperAX/WhisperAXWatchAppUITests/WhisperAX_Watch_AppUITests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6277229fc671e9a32cfd13cb1fcfe1dd8682a44d33c9808ebda3711bf6064ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: 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":"Examples/WhisperAX/WhisperAXWatchAppUITests/WhisperAX_Watch_AppUITestsLaunchTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9a1e0a2901eb8c4510cc40b85792a8c76aaea0cde21afcfc6296bf69d2e05"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WhisperAXTests: No conventional assertion call was detected in 2 of 2 tests in \u0060WhisperAXTests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXTests/WhisperAXTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64e71b844ce4b73009c0c8666413eaf9f552cedc0f0574b8becd7b3e2832cca"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WhisperAXUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060WhisperAXUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXUITests/WhisperAXUITests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8333fda0c74159fd4a229b3ba9b97f433f4d025ff11775708eb034258bb93fba"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WhisperAXWatchAppTests: No conventional assertion call was detected in 2 of 2 tests in \u0060WhisperAXWatchAppTests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXWatchAppTests/WhisperAX_Watch_AppTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c9468306cb877d289ca3802fee040b57d1c27d06a54465fe52aed77a46b3ec"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WhisperAXWatchAppUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060WhisperAXWatchAppUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/WhisperAX/WhisperAXWatchAppUITests/WhisperAX_Watch_AppUITests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3a5c3d812064a9b125ad5062391ebe58b1f70d84f8f3c0d5c0470c8e5d0c1a"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: testCallbackWithEarlyStopping: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Disabled on macOS 14 and below due to swift concurrency flakiness\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cabb8e202b72bcc92a931fcddd741056671db631314b05e21d2f38636f930b5"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: testVADAudioChunkerAccuracy: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022Disabled on macOS 14 and below due to swift concurrency flakiness\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2589}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687d891fb068349548196f541ea342254522ade0ab0644540d53d43db350517"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the committed resolution: vapor: \u0060vapor\u0060 is declared in Package.swift but has no entry in the committed \u0060Package.resolved\u0060 beside it, so its version is resolved rather than pinned. Resolve the package and commit the updated \u0060Package.resolved\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4e80a365f8e370c766bdc3d3b16d8fc9f94d6d1d52f5e5327c10086ccbbacc54"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the committed resolution: swift-openapi-generator: \u0060swift-openapi-generator\u0060 is declared in Package.swift but has no entry in the committed \u0060Package.resolved\u0060 beside it, so its version is resolved rather than pinned. Resolve the package and commit the updated \u0060Package.resolved\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"01a76ca5efbf8da076c7e405b51466dde6033779839ce65cf5f3300c7abbf2a4"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the committed resolution: swift-openapi-runtime: \u0060swift-openapi-runtime\u0060 is declared in Package.swift but has no entry in the committed \u0060Package.resolved\u0060 beside it, so its version is resolved rather than pinned. Resolve the package and commit the updated \u0060Package.resolved\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f4916f83884e2083fbb7f7426ffc79edbad66cc5f21d53202f83565ea0679a3a"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the committed resolution: swift-openapi-vapor: \u0060swift-openapi-vapor\u0060 is declared in Package.swift but has no entry in the committed \u0060Package.resolved\u0060 beside it, so its version is resolved rather than pinned. Resolve the package and commit the updated \u0060Package.resolved\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dfb27a0069645412fd1d4c4e18a04d41ef051390dbbc368f2c907a01a0508760"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/WhisperKit/Core/TextDecoder.swift: Sources/WhisperKit/Core/TextDecoder.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in TextDecoder.decodeText at line 551. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 18:10:21 -07:00\u0027 --until=\u00272026-10-10 18:10:21 -07:00\u0027 --full-history --no-merges -- Sources/WhisperKit/Core/TextDecoder.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/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"10280677278e8597093a27ae11ad8e4a1ade280b07f009d1483789c9ee3eef79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift: Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in Qwen3GenerateTask.runGenerationLoop at line 326. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 18:10:21 -07:00\u0027 --until=\u00272026-10-10 18:10:21 -07:00\u0027 --full-history --no-merges -- Sources/TTSKit/Qwen3TTS/Qwen3GenerateTask.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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc9394c1546bacb6d68e6f4c01ab059e0d072b2b76c94ca76d059b436bca746"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: Sources/ArgmaxCore/ModelDownloader.swift, Sources/SpeakerKit/Pyannote/SpeakerSegmenterModel.swift, Sources/SpeakerKit/SpeakerKit.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ab8d6808e6a953615a71fbdf4200fc560f0f91c661367348f5a9e317fd8b7647"}},{"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 (6 single-owned of 70 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; 70 of the 96 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (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/ArgmaxCore/FoundationExtensions.swift, Sources/TTSKit/Utilities/TextChunker.swift, Sources/TTSKit/Utilities/AudioOutput.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Record this data in the test results \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":"Tests/WhisperKitTests/RegressionTests.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd41aba22600fc5f5a772680bd3c84380c885948b2a7cd9a083b4fbf61233c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Some OS ignore the priority here on github action runners for some reason \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":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5801a59aa876a4652d2ec737d6bbc9343ae6099e5d8994a38c4060c91f4d13"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: These tests are flaky \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":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"505127d7a6aa581f99e90d64bb85ee920a6e40e90f6ce307d4d3a85a8f9e109d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: macOS 14 token results differ at this point onward for tiny, only check timings above \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":"Tests/WhisperKitTests/UnitTests.swift"},"region":{"startLine":3018}}}],"partialFingerprints":{"codehealthFindingId/v1":"124cd536a5d8682fa31dab9eb3851892c8154844cac73c0c6f40f75004b3d7ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: throw to caller instead of return infinity \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/WhisperKit/Utilities/TextUtilities.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"974ea7310d5d42acaa8d689158ab0f16183b0dc52933f96a0a95137988b94c63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // nonSpeechTokens() // TODO: implement these as default \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/WhisperKit/Core/Configurations.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2534e3ff04f65cd9ea51808386cc2759c2cea8d45e51b6bf8defd8b3f6beda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement config.json and generation_config.json parsing for models \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/WhisperKit/Core/Models.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfcad2e80c80a2f9e1dbb9b110adcde56cfe1405f0c579f2cd2744c313f767c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement no speech prob \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/WhisperKit/Core/TextDecoder.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b9fab06df9c7b863f35c2ad470d362f5f4750bf9215a40e05924da5aa1ee0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove hub path in future version, retained as additional search path for backward compatibility \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/WhisperKit/Core/WhisperKit.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db536177dd09df012e84a8b7acb34fff037e818f475b4f847a8b38f25a219a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Allow model to predict initial timestamp \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/WhisperKit/Core/Text/LogitsFilter.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ae3b95cc580d9e6cfe93692daa129453e25e810194424158f9c2e64028f838"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: simplify this interface \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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"87214516246f5a49760d9ac8a0d35790d3a4278b38cf0e52e4a6d6d3e989943e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use this logic instead once we handle no speech \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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e47e66a5521dc81a7f6335298379f6d37765d04fa794d914718564d8ef4ed86"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use accelerate framework for these two, they take roughly the same time \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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ccafd21cf4b337e6a38deac138e03b98eb67f9b76a9bebdf1d707f932c39aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This section is considered a \u0022hack\u0022 in the source repo \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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d8fce05a7aff34a88329c25a643f504cebd024b405142ac94a365c03894dcd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This section is considered a \u0022hack\u0022 in the source repo \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/WhisperKit/Core/Text/SegmentSeeker.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d93f323f57adf45a6bc78ce5832445ef32d3267b896d5e7a190c9c6703b59f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: BNNS operations here are deprecated, replace with vDSP or MLX \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/WhisperKit/Core/Text/TokenSampler.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"092d7873e194bb59e22786225a13fbe1877903b5ddbe09d8c99b217f05fd7aa3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement \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/WhisperKit/Core/Text/TokenSampler.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97cff99d0376bb3ce156f27398a29065af448b05ec9fd92d0386aa9f358f667"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement \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/WhisperKit/Core/Text/TokenSampler.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0381acd7a75888e23f670a6b02ebb59c06e4fcbca4c3e2befe8c96b61f9bab6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove forking logic with package with min os version upgrade \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/TTSKit/Models.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"417cdee0abe9942d03367941e0666f550a44dd9aac988d023624c2d744f7988e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove forking logic with package with min os version upgrade \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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"16761aaf4903b19f2f3c821759b1ffb4a9b58a06773b362b8132b73fcfd22717"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove forking logic with package with min os version upgrade \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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4053b4cb373651ef98b5e53feca428dcc02de9e0e5cd6566ff5cebf4590d6ebb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove forking logic with package with min os version upgrade \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/TTSKit/Qwen3TTS/Qwen3GenerateTask.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5ea3042953583054bf52b50d72c7a49ed0112c5e6e72349861c290c2a6b618"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove forking logic with package with min os version upgrade \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/TTSKit/Qwen3TTS/Qwen3MultiCodeDecoder.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2a92dc82b1fbb0125d8b4484965f15b50ff17e9bf96d1a0f492d70f9bad98c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we need to track the results between audio files, and shouldnt merge them \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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8961d37d2c878e10684ce17de17de4e7fbee2eba43e79417b47cd68265201"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Print only net new text without any repeats \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/ArgmaxCLI/TranscribeCLI.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6c3d6cb83a456c5324880422a679b1f827b68354575cba1d171d30e498d494"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable in the UI \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":"Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf562796fbbce54a85410b81225de6c09944711822ccca2212d1767c58be6a57"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable in the UI \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":"Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"662a3b9571d10ac2697c90266bf002182ca460e6d661a7828e4e73d513070086"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable in the UI \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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc87283ebe4a8969bfe02b30b1d0a47deadd4714ad4e847b5b84213f32b114d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this configurable in the UI \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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf4d1b8c085a87b4a5a55b4f1a080d7d476107108c35f3ae8799f6fc814a05"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle incomplete downloads \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":"Examples/WhisperAX/WhisperAXWatchApp/WhisperAXExampleView.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"b384eb18c86c092f8ab9f71f82bdeb142bfa0fe6a119570b7eb5dba870994095"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement silence buffer purging \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":"Examples/WhisperAX/WhisperAX/Views/ContentView.swift"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4227aeed1e61dc24bd8acda6c55bff8250ce19f0dd34d9b00cb00eb23b1661"}},{"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 32)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (20720 LoC, 415 module-visible types across 16 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":"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":"ba03e10074abba3f4451afad20aa25cea692a80439380876ee0972dd1ffb7565"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"580509f15ada43f6c07b5d4140fcd79ae0c5f44a2bb300a009dcd623e5c69289"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"b5e8ca526a5e5c5461e1c3d790b15f5ac764d82ee5a3535892040cbe8a01fc84"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01: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":"725c137e82235740b3633ceb41bf9aff2501c97601fd4490bf3815ee8edec222"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ecf953d9ba747db827d1ace6867171c90896c10d89b5b22b268a06f26fc14022"},"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7e21d7e9b7543649b5c28e9a3787c7c047dd42211e40f63acef6c923b29131f"},"properties":{"dependency":{"package":"anyio","version":"4.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-4024","PYSEC-2026-4025"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ffcd1323a267bd534f7d84a6f306013ab5b0a9b747b5f63430b0f571943c298"},"properties":{"dependency":{"package":"certifi","version":"2025.8.3","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce2a090b677f65a2dec080b23f808e42f06ef242b93bc6287975ca708e7b4e3d"},"properties":{"dependency":{"package":"certifi","version":"2025.8.3","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f4477a6f506d6a242f4b180c041446f32531e3607150a126be9cb730529968df"},"properties":{"dependency":{"package":"urllib3","version":"2.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4175","PYSEC-2026-4176","PYSEC-2026-4177"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d119bcef5bf3e93c83f103a0a8779eeb93a4bee34ffff5c8a4c0d5ba73f4cab"},"properties":{"dependency":{"package":"urllib3","version":"2.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4175","PYSEC-2026-4176","PYSEC-2026-4177"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 70 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; 70 of the 96 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/WhisperKit/Core/Audio/AudioChunker.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/WhisperKit/Core/Audio/AudioChunker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb4f24e2176dd698aa49d7793ea87acb667312b6ae3e1f5664c88009387bd11"}},{"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"e985c75681d8c9c6a0d6c9dae21406f755d5cccfbb610f379f6bfda04e751ab3"},"taxa":[{"id":"CICD-SEC-6","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":"3ce7679d448391b49729e4a8d1261364cb684fa238ba5c7abeeb45610a790041"},"taxa":[{"id":"CICD-SEC-6","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":"fd9ba14f23952b8805303126b9e75f7f9b8272b68fd9144a358c89b4a1af33dc"},"taxa":[{"id":"CICD-SEC-4","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":"30618832b4f82afbc158e49728907509de38d7f2edb5b9bde3da31c70881501b"},"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":"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":"M4","level":"note","message":{"text":"README/code drift: README.md links to \u0060LICENSE.md\u0060, but \u0060LICENSE.md\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85864071a30ab325207b0475304e4f6aa1b79c8e2996b50e4173a6d35a328ea"}},{"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 5 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/development-tests.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060URLSession.shared\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/External/Hub/HubApi.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fc65978df8552072285b8fa49365ba498e0c92e737955cf08ccf18976418b9"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060URLSession(configuration:\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ArgmaxCore/External/Hub/HubApi.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"906d79d668f2cf7fc56952b15201957bd1fdc9550bb39c5e2fe20174e9cc6f43"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate_local_server_openapi.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9051027b25127227317f6513f94aaaf5a86d832873904f113bf9c1c5b34dc7b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060enabledValue.lowercased() == \u0022true\u0022 || enabledValue == \u00221\u0022\u0060 appears character-identically in 2 files \u2014 Package.swift, [e-mail redacted]. 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":"Package.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7c6cad7dcf9f3993d918ec9ea1798863e3aee8cc8a57ca0de31428bc655b01"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"8568b2a4a1cc0bbd72040800d00b8ff46ebe48fa1486b3cc8a7120261036e70c"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef019bd0cdd94dcddc6359436eea28706ca2ae33349099b17cab1ef5ecfb73d"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca0cef492703a3d32a2a48fa4513a6107063fae5ee7f8c319024ee546db7e40"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed8482571d5595f8c08ef5cdd67e057d0d7f27e628995e6ac575b5a7640f7a6"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c0991ee5fe088e4ba8ef5e0f7ad920ff672a924bf88ccd7ae3f54e5238342c"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca1ae0c204a0627fff7940977442472553270500abb3defd5ff6b154a650709"}},{"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/ArgmaxCore/External/Hub/Config.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"1192fe6ef99fa6c5da1537bf8c1c06377437991a5cf2775954d25890a7813da5"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":19,"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."]}]}