{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"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":"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":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"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":"VoxtralProcessor.applyChatTemplate (cyclomatic 42): VoxtralProcessor.applyChatTemplate has cyclomatic complexity 42 (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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e133e22399c736cd86fa5f6142da5917c03ac2cb172b19dcd7ab5d4b32da5936"}},{"ruleId":"D1","level":"warning","message":{"text":"AppModel.stopRecordingAndTranscribe (cyclomatic 33): AppModel.stopRecordingAndTranscribe has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a88d2d59b8bc3a85507d3f60da0e78051ac9069fd2e572d4d0fbc5ede4d36d"}},{"ruleId":"D1","level":"warning","message":{"text":"CapsuleTimeline.frame (cyclomatic 32): CapsuleTimeline.frame has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2a205b1830a18b0f6d56836a710f1b3b92d15941ab171107008875bb081049"}},{"ruleId":"D1","level":"warning","message":{"text":"CapsuleStage.body (cyclomatic 28): CapsuleStage.body has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc954c6d7b9dbbd470c33e23abcea33b672e4e08329e7fee98b8d8e312f1fd15"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralStandardLoader.swift.detectQuantizedModules (cyclomatic 28): VoxtralStandardLoader.swift.detectQuantizedModules has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8a6565284a48613bc5e2c509660fb7b38b2dd71c5e2f246c24bf892e2527e1"}},{"ruleId":"D1","level":"warning","message":{"text":"Module.loadWeights (cyclomatic 27): Module.loadWeights has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ac4cdfc2051f8077f872db6753b65e1b100ee68b9f419929b5055272ea112"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralProcessor.callAsFunction (cyclomatic 26): VoxtralProcessor.callAsFunction has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fad115179ba2d1eb58603b1d79df15e8237673503f00afef564732fa6d86a52"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloader.downloadFromHuggingFace (cyclomatic 26): ModelDownloader.downloadFromHuggingFace has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"20979fe04b69beca431d45fd516e095e10dc17f41a796a67e29f2dcb78ea0b38"}},{"ruleId":"D1","level":"warning","message":{"text":"AppModel.transcribeDroppedAudioFile (cyclomatic 25): AppModel.transcribeDroppedAudioFile 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":"petal/App/AppModel.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd43512b0e40c719b2231c6ab798fa070b32dc4f887f69fb6e564978164e4e3"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloader.downloadWithAria2 (cyclomatic 25): ModelDownloader.downloadWithAria2 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab59b4169877d47f2e7e52c80baee72228e724adcb54cf2c5fb03034be0638ba"}},{"ruleId":"D1","level":"warning","message":{"text":"GameOfLifeSimulation.step (cyclomatic 20): GameOfLifeSimulation.step has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/GameOfLifeSimulation.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c8e52067d2c48715190994de62abb672b0932cdee6691ea8f44b26a557d0ad"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralMultiModalProjector.replaceQuantizedLinearWithWeights (cyclomatic 20): VoxtralMultiModalProjector.replaceQuantizedLinearWithWeights has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3d056cafe71c4c7a6246a1090d58259fb16e2627f358d84b1600be9f0e4e98"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXLMBridge.swift.voxtralMixedQuantizationPredicate (cyclomatic 20): MLXLMBridge.swift.voxtralMixedQuantizationPredicate has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/MLXLMBridge.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d663b254b974f042c51a7f8779cb14d0779c3aac27508ff9caaf1c498790fd"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveAudioCaptureRuntime.startRecordingLocked (cyclomatic 19): LiveAudioCaptureRuntime.startRecordingLocked has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f987e3ed2cfe8924253a7f093b2ddf0371d5c8f681c4afd4d3b99f925aa3bb"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptionClient.liveValue (cyclomatic 18): TranscriptionClient.liveValue 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":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d64a2a9e5fa17e0b815e20a2135babc6513b3c5fea5116bab757b334298342"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRecordingCard.body (cyclomatic 18): HistoryRecordingCard.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/HistoryRecordingCard.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ce3121d8c4f2c0ed90c230b843d97e1b4bd36c0e2967ca2b7a8ab7c9d18261"}},{"ruleId":"D1","level":"warning","message":{"text":"TekkenTokenizer.loadFromCache (cyclomatic 18): TekkenTokenizer.loadFromCache 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"987ce09494277e61fe2e2cac04b84ab0f3199496c7f862926c1c2e5be3f20371"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralModelLoading.swift.loadVoxtralModel (cyclomatic 18): VoxtralModelLoading.swift.loadVoxtralModel has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf1b90965ba6265757d4d79403440bd201f8cc7c02d733054eec7c2d7827cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"CloudCleanupModel.verifyButtonTapped (cyclomatic 17): CloudCleanupModel.verifyButtonTapped 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":"PetalKit/Sources/CloudCleanupFeature/CloudCleanupModel.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f173057adb457f12e1fd9eb11ba8b1c6d9bca98ab8d21551dec40cc65009a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXClient.liveValue (cyclomatic 17): MLXClient.liveValue has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3a2c1b44c5b8dd96d54a59c9784430e1bfe37736aa28c78228671826445c83"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveMLXRuntime.transcribe (cyclomatic 17): LiveMLXRuntime.transcribe 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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c4cf4075bac3f6278b734a4ac4bafe359e878122b63b53fc5c05219e16f576"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingModel.primaryActionTapped (cyclomatic 17): OnboardingModel.primaryActionTapped 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":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c646d3ef06565d591806fa65b90d6d7426fab797b29663199f0ec96ef2f64b7"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemContextClient.liveValue (cyclomatic 17): SystemContextClient.liveValue has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/SystemContextClient/SystemContextClient.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c49f90e7e124cddaacbb5ba7202e9478439110d875ffc2c65ee0f354af726c1"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralForConditionalGeneration.generateStream (cyclomatic 17): VoxtralForConditionalGeneration.generateStream 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. This shape REPEATS in the file: one other method here (VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"b953fc555c70d986a002acee4518a4feb17e6b77c2da98636d8344539b1c425a"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds (cyclomatic 17): VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds 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. This shape REPEATS in the file: one other method here (VoxtralForConditionalGeneration.generateStream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2ce7c40cabba3a8b732655e97c9949bbe06707a2a82510763c8e87a6b73469"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxtralCoreMLEncoder.init (cyclomatic 17): VoxtralCoreMLEncoder.init 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":"mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralCoreMLEncoder.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdce24bc2c682096109272e8f5c7c1c75df29dfd0b6e91b90edf738036ca1b97"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveMLXRuntime.prepareModelIfNeeded (cyclomatic 16): LiveMLXRuntime.prepareModelIfNeeded 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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1135fad872677d7315566380ef848537be233a90a241a6cbe21eaf4f058fc711"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralProcessor.applyChatTemplate (cognitive 102): VoxtralProcessor.applyChatTemplate has cognitive complexity 102 (threshold 15). Drivers by points: if/else 32 (75 pts), loops 5 (17 pts), boolean chains 10 (nesting depth added 55). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71517f3c32f9ca61b581b8f616b7abf6e19199dedda3dab292c4cd77bbb13c8"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralProcessor.callAsFunction (cognitive 79): VoxtralProcessor.callAsFunction has cognitive complexity 79 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 6 (30 pts), boolean chains 6 (nesting depth added 52). 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b3c3a852717ecf2c7d860ed6a376644e970c53690e27c342c8c24e5568f4d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Module.loadWeights (cognitive 54): Module.loadWeights has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (40 pts), loops 7 (11 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"11452e5d8dffe6b4ed8b4538a100d2d31e39ca8863f639a84d11392cf9c2c9f4"}},{"ruleId":"D2","level":"warning","message":{"text":"AppModel.stopRecordingAndTranscribe (cognitive 53): AppModel.stopRecordingAndTranscribe has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (30 pts), ternaries 5 (11 pts), boolean chains 8, match/switch 1 (3 pts), error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e1f5c61f5f6791421e72cfc23d272a86d470b9de25922e0bacdc10821570b6"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralStandardLoader.swift.detectQuantizedModules (cognitive 53): VoxtralStandardLoader.swift.detectQuantizedModules has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (37 pts), loops 5 (9 pts), boolean chains 4, match/switch 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14b46a39c75734a2e79836503b3d2201fa81e19afb430667b1bb73e70e4d7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"GameOfLifeSimulation.step (cognitive 43): GameOfLifeSimulation.step has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (29 pts), ternaries 3 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/GameOfLifeSimulation.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"caeec7623993fec521584ce394edc8baf6d814cc4904e59b701eb9ee7376bcc8"}},{"ruleId":"D2","level":"warning","message":{"text":"AppModel.transcribeDroppedAudioFile (cognitive 37): AppModel.transcribeDroppedAudioFile has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (24 pts), ternaries 3 (5 pts), boolean chains 4, match/switch 1 (3 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff6f377c38a3c13873a817ef2544d6f32d4d66176a740de67dd03d8314c24de"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloader.downloadFromHuggingFace (cognitive 36): ModelDownloader.downloadFromHuggingFace has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 6 (8 pts), ternaries 4 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b936dd26f6d6c0901de61094b762956dfe132a9c3bf8d01e80c394ce5eb731e"}},{"ruleId":"D2","level":"warning","message":{"text":"CapsuleTimeline.frame (cognitive 33): CapsuleTimeline.frame has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 15, boolean chains 10, if/else 7 (8 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"289b6f701ee67c57c53b2662d5a858742747687e1a107c519b4767b61c679ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloader.downloadWithAria2 (cognitive 33): ModelDownloader.downloadWithAria2 has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 6 (8 pts), boolean chains 3, ternaries 1 (3 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a763453e3bcf08a0f957549e423e0745519fef5c61a733925f6e452e4258fd9"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXLMBridge.swift.voxtralMixedQuantizationPredicate (cognitive 33): MLXLMBridge.swift.voxtralMixedQuantizationPredicate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 7 (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":"mlx-voxtral-swift/Sources/VoxtralCore/MLXLMBridge.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54512a63f2052de8ef886ac3373b9849942573b46aa7725bd870651d8bcefa7"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration.generateStream (cognitive 32): VoxtralForConditionalGeneration.generateStream has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"742676df2aba492551eccf4824849070708ca5897824b69945153d6bbcac4b6d"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds (cognitive 32): VoxtralForConditionalGeneration.generateStreamWithAudioEmbeds has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VoxtralForConditionalGeneration.generateStream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb66e056f1cc061c7fe4bcbf0434726bf3d81b3d2d651cc7242abfa875fa312"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralCoreMLEncoder.init (cognitive 32): VoxtralCoreMLEncoder.init has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralCoreMLEncoder.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce6fd90d2c04cac61dcf266a61bcbd775c69d778f3e0db423dd7f0aa14af0b9"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveMLXRuntime.transcribe (cognitive 31): LiveMLXRuntime.transcribe has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (28 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"584855efa3675ee2cfcc6acc35483618cf0eb1b0fb643e3bd1c0dcdffdf0da73"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralModelLoading.swift.loadVoxtralModel (cognitive 31): VoxtralModelLoading.swift.loadVoxtralModel has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 6 (7 pts) (nesting depth added 10). Of this number, 26 points are the body\u0027s own statements and 5 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"597344d59483bc099d30c7b7ecce4778141290f3321c63888071763a2ff3d233"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralMultiModalProjector.replaceQuantizedLinearWithWeights (cognitive 29): VoxtralMultiModalProjector.replaceQuantizedLinearWithWeights has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (7 pts), boolean chains 6 (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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb10650021003e1c1a6e8a334fdd1ba714c7d68fda6f2a3aa99ee28b580a6e1"}},{"ruleId":"D2","level":"warning","message":{"text":"CapsuleStage.body (cognitive 28): CapsuleStage.body has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 12, if/else 11 (12 pts), ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d654c4dfe829f1d10b190b40e6bb70ed4482a63708e8cbcc5da58d02b28d2484"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptionClient.liveValue (cognitive 27): TranscriptionClient.liveValue has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 3 (7 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"35250b67a1c4838e7e50345a7cefa8446d6824406c44586e476ed37b235b96ba"}},{"ruleId":"D2","level":"warning","message":{"text":"TekkenTokenizer.loadFromCache (cognitive 26): TekkenTokenizer.loadFromCache has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4e82608fd4cc2cad0dc6548d0058a0a0aefd02047507ab1a78e355158d40cb"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRuntime.appendEntry (cognitive 25): HistoryRuntime.appendEntry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d66768f55df9c1385eeeb8b104c11649940d0b184ca21d7bb08f0d6ddd81309"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRuntime.healed (cognitive 25): HistoryRuntime.healed has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (19 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8365a856d2cd92d6d09d929e4eeb1eea644b6558974dc4c19dee1390cdb4c7fb"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration.applyWeightsTargeted (cognitive 25): VoxtralForConditionalGeneration.applyWeightsTargeted has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/CustomLoadWeights.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"48584c1e64acf0164d248cbd72e05e3d8eab1708e69fe69fcd7f484806a1d752"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingModel.primaryActionTapped (cognitive 24): OnboardingModel.primaryActionTapped has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7513471e083dab185a1c9168c236683ec21fdea16e88cc516ec5ed74afa34147"}},{"ruleId":"D2","level":"warning","message":{"text":"TekkenTokenizer.encodeBPEChunk (cognitive 23): TekkenTokenizer.encodeBPEChunk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 3 (5 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94b9092d1ca0cd46ccfeaaec41f8e596037d7d2e0bee946d59c4139ef9c5df0"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralQuantization.swift.treeFlatten::processNode (cognitive 23): VoxtralQuantization.swift.treeFlatten::processNode has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 5 (7 pts), loops 3 (6 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralQuantization.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2ea029587d26c5b9502286a74d771e0c1b5b546aff21e7cb262ce19a43ad8f"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveAudioCaptureRuntime.startRecordingLocked (cognitive 22): LiveAudioCaptureRuntime.startRecordingLocked has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c59e0bd83fa6df6b5c976e6f0d6806e4d1eaf41fc87044ea6f92a056cbb299"}},{"ruleId":"D2","level":"warning","message":{"text":"TekkenTokenizer.loadTekkenTokenizerFromFile (cognitive 22): TekkenTokenizer.loadTekkenTokenizerFromFile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"671c623e815b05e7bc26d7e1dba1e2bccc441300c73f90d50e8aa0116affe1df"}},{"ruleId":"D2","level":"warning","message":{"text":"Module.sanitize (cognitive 22): Module.sanitize has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c5fb68287ed50a0ad1dffe17252b7f179d8d0ae9df8f818bff1cbbef74adf4"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveAudioCaptureRuntime.warmupStandbyLocked (cognitive 21): LiveAudioCaptureRuntime.warmupStandbyLocked has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"901cd5d4698c9782fbb67c44a381b6242fe1c8e254f99c6a09483d4527fb65e3"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecordingCard.body (cognitive 21): HistoryRecordingCard.body has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 9 (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":"petal/App/Settings/HistoryRecordingCard.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec34f0ae624d11dbf0df47e0298ca1a6685baae07a1c0866c42b7a1e0b357f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryWaveformSampler.samples (cognitive 21): HistoryWaveformSampler.samples has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/HistoryWaveformSampler.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a42217a15160231ddead9c63939307c2e24538bdc362b1e62757cd048cf47a"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRuntime.pruned (cognitive 20): HistoryRuntime.pruned has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 3 (6 pts) (nesting depth added 12). 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":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7eed96ac4a2c3fa04c324db295a312fa3ca1069b5f058023674583cf87e118"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsViewModel.loadHistory (cognitive 20): SettingsViewModel.loadHistory has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/SettingsViewModel.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb828d42a64dc5c97035253710b2d5b4b568f7311053b55742281d180bf0c729"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudCleanupModel.verifyButtonTapped (cognitive 19): CloudCleanupModel.verifyButtonTapped has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, error handling 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/CloudCleanupFeature/CloudCleanupModel.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"36444241ccb419e541f96860fb7251e13f275d3f6f9dbcaa4a0e61072c70e1e2"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingModel.currentPrimaryTitle (cognitive 19): OnboardingModel.currentPrimaryTitle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 4 (9 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9df249a8b885e994d7d6f948ecc4455f1d62eec04ae533e4b229e94512d9a07"}},{"ruleId":"D2","level":"warning","message":{"text":"AppModel.cleanedTranscript (cognitive 19): AppModel.cleanedTranscript has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece568cbbacfdbde4a1b958f14e3e46f9c70ff2a0ec6a3e1d9118ef6ffe021f1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppModel.ensureSetupReadyForDeepLinkStart (cognitive 18): AppModel.ensureSetupReadyForDeepLinkStart has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"884d7c72f729f12fc0801486754abb511e490cb6567d6cab66a0f77919105ca2"}},{"ruleId":"D2","level":"warning","message":{"text":"TekkenTokenizer.loadSpecialTokens (cognitive 18): TekkenTokenizer.loadSpecialTokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (18 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"af51f794c92c51ee8df88054978b11cbd7c7d95ef1f9477c2fcc64bd4181bbef"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTemplateProcessor.apply (cognitive 18): ChatTemplateProcessor.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f691a53e3fc528b3d62237214b36ab62c072332268c3c434d4ff5e8592282ee"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRuntime.cleanHistoryOlderThan (cognitive 17): HistoryRuntime.cleanHistoryOlderThan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d016503d1b44ad639fac2327c2e56c1e9542a04eeb3e9ff1903277b843d1cfd"}},{"ruleId":"D2","level":"warning","message":{"text":"CarbonKeyboardShortcuts.updateEventHandler (cognitive 17): CarbonKeyboardShortcuts.updateEventHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/CarbonKeyboardShortcuts.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"50364dc5c692fa20b3bfa26ff40a582b2f90b07962487e47efcc41852dad85fb"}},{"ruleId":"D2","level":"warning","message":{"text":"TekkenTokenizer.decode (cognitive 17): TekkenTokenizer.decode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62961a271cd804ed1d964065bad369c1a5e9775e11cf4d19a2ee284aef46a4b"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration.replaceAllQuantizedLinearWithWeights (cognitive 17): VoxtralForConditionalGeneration.replaceAllQuantizedLinearWithWeights has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b5b3f7e046f97785557358052af0d2f9f773b72bbdf861ab46ed878590a263"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRuntime.persistArtifacts (cognitive 16): HistoryRuntime.persistArtifacts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4d675053586972d5e00d5c1794b980b615e99b0b7957874013fe3ef3bfe55e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveMLXRuntime.prepareModelIfNeeded (cognitive 16): LiveMLXRuntime.prepareModelIfNeeded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2020a93c8c9820601aca47a700cb0b7a25da913ab632c7d6b0e482c1c2e6f2c"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemContextClient.liveValue (cognitive 16): SystemContextClient.liveValue has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/SystemContextClient/SystemContextClient.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b67c25e8b2bf7cd631ffe6db5999baf3e188a0298cd28e7f4fb7c59645dd770"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadWaveform.draw (cognitive 16): DownloadWaveform.draw has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), boolean chains 3, if/else 2 (3 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/DownloadWaveform.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e617387da0321c8c9747054dee4cccd778f4b73b0f459909527fa7f76b95ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"GameOfLifePattern.board (cognitive 16): GameOfLifePattern.board has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (12 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/GameOfLifePattern.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c1ee752cb46d3bba24b8af335651385f3ee48fd8d94dadd0eeb1573ff9c5e6"}},{"ruleId":"D2","level":"warning","message":{"text":"AppModel.showCopiedThenAccessibilityPrompt (cognitive 16): AppModel.showCopiedThenAccessibilityPrompt has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"84db5391944d19790b5a7c321baba5aec8cc65cd2c499fe17dd850313e03c8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralForConditionalGeneration.customLoadWeights (cognitive 16): VoxtralForConditionalGeneration.customLoadWeights has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/CustomLoadWeights.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa4fe9687c7e006b0281826b8d445f06f9dca46b328e434d421c703b323507f"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralProcessor._parseMessageContent (cognitive 16): VoxtralProcessor._parseMessageContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4497480632e7437451cafff896946b59b02bef42996eabd330ab37f0a30d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxtralFeatureExtractor.swift.loadAudio (cognitive 16): VoxtralFeatureExtractor.swift.loadAudio has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (7 pts) (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralFeatureExtractor.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed54f0f6c13c11b3ec078223cc11f7746e1050305b09816357c95a3a03faf4c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppModel: ClassTooLong \u2014 1802 significant lines (blank, comment-only and punctuation-only lines excluded), 96 methods. The bar is 400 significant lines; this is 1402 over it, 4.51\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9421f50a431b4ef9141b40700aec298dddc3f605861abec02de2170e66d0aea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppModel.swift: FileTooLong \u2014 1881 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AppModel (34-2542). The bar is 500 significant lines; this is 1381 over it, 3.76\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":"petal/App/AppModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df72fd4b3ce9d828e4484c9b7ccc877e7d9aa65d652577e75f34d5d9ce1d672"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppModel: TooManyMethods \u2014 96 methods. The bar is 30 methods; this is 66 over it, 3.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"11078b945e179f6949400fa7e44dc62c9200326d8fb6fe635dc8f74a30a65310"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppModel.stopRecordingAndTranscribe: MethodTooLong \u2014 stopRecordingAndTranscribe runs 256 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 156 over it, 2.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/AppModel.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0a20c63e43787a48bb7465d7053bba4b7d3ac91b7ea327202e5464409df629"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppModel.transcribeDroppedAudioFile: MethodTooLong \u2014 transcribeDroppedAudioFile runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"petal/App/AppModel.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b68ed0f54bfb668547330afb860b1dfc5c83ac30e84b731ab61ed724f4f3a58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoxtralCore/VoxtralModeling.swift: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: VoxtralForConditionalGeneration (433-1456). The bar is 500 significant lines; this is 237 over it, 1.47\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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb804ce42b206c326dcac867f0c7d6831d27da7311d204e0195c3d1d2402b0e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MLXClient/MLXClient.swift: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 222 over it, 1.44\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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3439f52188b5f083eaabca51fa1a764f2139dd1e581025d493e3cb7bcf9e5da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/VoxtralStandardLoader.swift: FileTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 221 over it, 1.44\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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bdbeb86421697cd2411cac649e885b16e89db82a30b63947fa008c1f73c39f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VoxtralForConditionalGeneration: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 139 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccd80761f5c8ff2c2cfdbc39aa00a2c9a97900bbb91b9ce09756f0aca0e9b36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscriptionClient.liveValue: MethodTooLong \u2014 liveValue runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64c96d3eb525150cdb4c7d4fc11106fd9b7a3accd33cde55e0478545211e0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioClient/AudioClient.swift: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: LiveAudioCaptureRuntime (164-768). 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":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e154463fa03ccd4a19fb943a0db6e4f6ec4f337f56fdb3282863dff75e05875"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsViewModel: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/SettingsViewModel.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7d579ed459a0689d1f639dbc1008846598bad2b4c26a1634ed06ab6865c03f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelDownloader: ClassTooLong \u2014 481 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 81 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c51354a082544be01a88e4ce8101e6b8ff16651e8d894372dd26f95a2c8662"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelDownloader.downloadFromHuggingFace: MethodTooLong \u2014 downloadFromHuggingFace runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0f45fc881aab3ff1d2ed171bd05a6c70e6d27633dd41d0b6949391a5d9d832"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Module.loadWeights: MethodTooLong \u2014 loadWeights runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f04cb14b14b08c9e7219adf5607c279d6164bbb2e9281cc20fbefa6f816aa24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelDownloader.downloadWithAria2: MethodTooLong \u2014 downloadWithAria2 runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfecbac1a0d14eda255e74c967ac6edb5be089440267689bab59afe5f2bdb93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CapsuleTimeline.frame: MethodTooLong \u2014 frame runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c835297453ddf3c499fdef39602cb6affedde6b46a2dc5416a4764cfa8cdfa99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelOption.descriptor: MethodTooLong \u2014 descriptor runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Shared/ModelOption.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de115aa0f32cc6be94cb20cdfb103b02090abac0f8c79fdfc546030ecb9dd76"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveAudioCaptureRuntime: ClassTooLong \u2014 419 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 19 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef8a60f6915d9befe2694531ba88ac5b94142c603f39e976a9a1aa18221d069"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoxtralProcessor.applyChatTemplate: MethodTooLong \u2014 applyChatTemplate runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralProcessor.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd488def93235e0c02a574bc0b3b6edfca077e1ddcc00279fd1ee59caf9135ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: HistoryClient/HistoryClient.swift: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: HistoryRuntime (177-750). The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"695550981f4a9ac9ee1a30fa0708ae2beed706a6ca037954d7b151eeaef016b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveAudioCaptureRuntime: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c877f1e8d4114b22fb895ff8fa91bb033d6f624b7dc3c84d570b80c211cae5ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/ModelDownloader.swift: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ModelDownloader (15-792). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac51fecb19b75a42db247309092ecd13cb4ba98b1e220094b4f34a57b8d7b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (66 shared lines): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:67-168 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:65-162 \u2014 These two members are variants of one another: 66 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"419174eda91cccca9dbacb7234bce5e48253ce554b6ca3fee8a76e2542285641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (160 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:352-511 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:620-781 \u2014 These two members are one piece of code written twice and then edited apart: 160 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eb7ab120e76141ead63bedfe49f044d12bd1d2b6b89a32a2104ce948002327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (131 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:939-1078 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1085-1215 \u2014 These two members are one piece of code written twice and then edited apart: 131 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b7780fd0f614b3decb5bbb70d351946f7c3a8277d31f823f9226f6ceef6ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:89-152 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:648-706 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84d3043324acdaa868082878504818b3773312ce9126c89dbdf6c2c819da1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:707-789 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1220-1261 \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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"941c9b225f047a64e05a09c2c8addf3dcf66a2a5fe873b346ffe4a4d4da0605a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:57-97 | PetalKit/Sources/KeyboardClient/KeyboardClient.swift:100-144 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"87032d8bfb3d9ce8a6bc22003631a5b762412ac1c59df76e161c5f2836170c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift:255-297 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift:299-345 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ef24c2e0a396036171bc695f4b80c700902c0ffda73008feb36b02ca290a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:91-131 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:986-1021 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0313b2de48fe9bf4ab7fb5ef91d4d2dfac40e24782811ccd15dcbcaacdbc0cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:305-348 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:383-426 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f68734d4676ee28c445964de79b200438dcf4c37f04d5db4fcd50cf0de3ed13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:71-90 | PetalKit/Sources/AudioTrimClient/AudioTrimClient.swift:77-96 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2367574cf1ae7c6408ecaf00fe3588bb906ed1c7d343362c4a2cc68fa58d341a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:100-125 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:238-274 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcdd9a796280da1ea05f2eefceb8118d9bc1ccebfe7cbbd6d93d74df7317b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:122-156 | PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:158-195 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7383146f3f4fa06fb6b0a9731921a579122438d9be049b9036090ce720d59dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift:473-505 | mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift:513-546 \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":"mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"9784bf42a2cb8ead2c68b2644d3b81d850001a1063452af36d4ff0cf965bf235"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:345-378 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:516-539 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9609f2f8ee5c244399f9453ad7d7e654503b52e253ade4b2e8883fe2577d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:383-415 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:158-184 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b039cacd74dfe9bd1c11f10a3fce90e73afca7d8846a84387d477282aaed61fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:50-69 | PetalKit/Sources/AudioTrimClient/AudioTrimClient.swift:55-75 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8b60ed2d9def537e7cdd373a09512a331fb2f14aba2883d80f52ff292bebbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:26-43 | PetalKit/Sources/CloudCleanupClient/ChatCompletionsAPI.swift:22-32 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:21-31 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14974de49db4222d5390e72bda7a42754ffdc3fe06a92b9d08e8d327b332055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): petal/App/Settings/CleanupModelNotReadyWarning.swift:8-21 | petal/App/Settings/TranscriptTagWarning.swift:6-19 \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":"petal/App/Settings/CleanupModelNotReadyWarning.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e78f18eb0880d053af9da1085fc4ce06850cd706014694f32c69ab2143b58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): PetalKit/Sources/AudioClient/AudioClient.swift:600-619 | PetalKit/Sources/AudioClient/AudioClient.swift:621-638 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"776814eb9dcc4531c5b31714e8d1da99bfe68ddbc7467ebcea85cd41e2de5614"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): petal/App/Settings/RouterFlowChart.swift:74-84 | petal/App/Settings/RouterFlowChart.swift:86-97 \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":"petal/App/Settings/RouterFlowChart.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8bb18930ec8ce390f50196bcceac4ab6bed60b26524b99300a0ff81c37e85f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): PetalKit/Sources/UI/FloatingCapsule/CircularProgressRing.swift:14-26 | petal/App/Settings/CircularDownloadProgress.swift:6-16 \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":"PetalKit/Sources/UI/FloatingCapsule/CircularProgressRing.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e115e56a2dd2128e6d52ea951984202335313f1ccc76b3a1fbc72a64ac2cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:57-71 | PetalKit/Sources/CloudCleanupClient/ChatCompletionsAPI.swift:47-62 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:44-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c95fa5a918458fd7d44d27746bf6f511e857df8fbf530bf15cfa1dcea536bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralProfiler.swift:138-159 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralProfiler.swift:162-183 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralProfiler.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a156b3a8cd90622eac24f3af7c639f3c4cb0255247ecf826ca8b9f5a1949097a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift:95-116 | PetalKit/Sources/UI/FloatingCapsule/WaveformCanvasRenderer.swift:44-62 \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":"PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef068a697c14a14dea3868e739b3684e8f0290597ee5de3288919156b8bf213b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:174-195 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:734-753 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a266d4ac4d338396cfa68e4789fd0c7985b536f9761cb01e76996f5cbd0bb242"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): PetalKit/Sources/MLXClient/MLXClient.swift:36-56 | PetalKit/Sources/Shared/ModelOption.swift:29-53 \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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2c026d007d27d5f0531a07d18173d30201e4caf2a876b1819f4869493f30e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/KeyboardShortcuts.swift:299-323 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/KeyboardShortcuts.swift:325-349 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/KeyboardShortcuts.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacfd2c6cb4bd484a4cb9173174f6b92394033d9ce3e487fa47aaf5458ee1eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:222-238 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:499-513 \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":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05a782c838ec6f5a81cf85da953d4d3c715962315035917824627c8f3e9a5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): PetalKit/Sources/UI/FloatingCapsule/Motion/SystemGlassLayer.swift:73-82 | PetalKit/Sources/UI/FloatingCapsule/Motion/SystemGlassLayer.swift:85-94 \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":"PetalKit/Sources/UI/FloatingCapsule/Motion/SystemGlassLayer.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"59efdb8c48d74ed88fec3897992c925e31072cf7051e2ab40e879b64d1fe2ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): PetalKit/Sources/MLXClient/MLXClient.swift:36-56 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelRegistry.swift:21-39 \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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dc3c2563869a8a21883b5468e622079587f5352706901529b75793b2b63159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift:415-435 | mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift:445-462 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralHybridEncoder.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ad4ce184266400f7a20c1cff5cc969211f81db8aa51f742e16dacf0776d3f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/VisualEffectView.swift:219-232 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/VisualEffectView.swift:234-252 \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/VisualEffectView.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b8fe2eab11a7a71ea851494e9034846246e6553281229a765709082e4026f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:219-226 | PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:228-236 \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":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c3218efede63c6d178069d3c9f4f8924551a27f15f5d5a9f2dba05b7568c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:243-258 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:544-559 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf77d40809f36842c5c2882a985d01b463e76532ed1960a0e7a4cd5c352a1339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): PetalKit/Sources/FloatingCapsuleClient/FloatingCapsuleClient.swift:412-421 | PetalKit/Sources/FloatingCapsuleClient/FloatingCapsuleClient.swift:423-433 \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":"PetalKit/Sources/FloatingCapsuleClient/FloatingCapsuleClient.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2ff3d4f51c4b240540c9318f34f63a2a2ed96b524c339465555cf216cc7b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/Utils/Aria2RPC.swift:14-22 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:116-127 \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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/Aria2RPC.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"110c5cb498ee55fd3dd8716e6ef258097dbc4d69a903bb13c7bd3647187f2aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): petal/App/AppModel.swift:1364-1377 | petal/App/AppModel.swift:1392-1403 \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":"petal/App/AppModel.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"644fca6ccff9114a570a46dfba3f0c5114ea16bb5ac1265757944327d6327d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): PetalKit/Sources/Onboarding/OnboardingModel.swift:423-432 | petal/App/AppModel.swift:1703-1715 \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":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"4732e777fe18aa8cd3db8210b65b06f33215c3dc56f23a7e8541ad2409ebfa28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralGeneratorBridge.swift:238-257 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralGeneratorBridge.swift:288-306 \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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralGeneratorBridge.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d944c4aa9cc65079384670d039361327443bea803f89a60c5ead88964337ef09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:18-24 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:13-19 \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":"PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e947dd9ba8928ad894e132ed69ee9c6503d5edce268d5b342249d4c8079354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift:313-318 | mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralCoreMLEncoder.swift:562-567 \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":"mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7312a29456c413836b860e10da65a04fd2533d000459cbd6b199ab805b1242"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): PetalKit/Sources/CloudCleanupClient/ChatCompletionsAPI.swift:135-140 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:112-117 \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":"PetalKit/Sources/CloudCleanupClient/ChatCompletionsAPI.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"977608eaddba475186edb8dc34f4470b1460e1e0babac28171688d94fe0caace"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift:244-255 | petal/App/AppModel.swift:2223-2230 \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":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"481b8f5a36d1126cc62d26e4d0dc03dea6f14e6c6968fe8a3f96c24b24cc2d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:194-202 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:204-213 \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"595d3665c35f4d429226a07e9c78ca119ee0f30946296414a07c1de26038506d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): PetalKit/Sources/UI/Extensions/ModelProvider\u002BIcon.swift:6-14 | petal/App/Settings/ModelSelectorCard.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":"PetalKit/Sources/UI/Extensions/ModelProvider\u002BIcon.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b0d4b5364e176124e0fc6f2c13314c897ff9fbe3f0b7c607d57bab9673f44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): petal/App/Settings/ModelSelectorCard.swift:108-113 | petal/App/Settings/SettingsComponents.swift:92-96 \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":"petal/App/Settings/ModelSelectorCard.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7302eed1c411bf706ec7aa7a733c7efb054b5ff05e3cc7c68b7942872ee19904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): petal/App/Settings/CloudProviderPicker.swift:31-36 | petal/App/Settings/HoldDurationPicker.swift:46-51 \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":"petal/App/Settings/CloudProviderPicker.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8f8972561c7f70505f1332e44276d3e9385d609cc474d05e2a892d130e1ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): PetalKit/Sources/UI/VisualEffectBackground.swift:8-14 | PetalKit/Sources/WindowClient/WindowStyle.swift:53-59 \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":"PetalKit/Sources/UI/VisualEffectBackground.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9699ff46c7aac76a6d1c3432951ca7927b2fdcfcc06a7f002b3ee78a6f9d7699"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): PetalKit/Sources/UI/FloatingCapsule/PixelEQ.swift:26-28 | PetalKit/Sources/UI/FloatingCapsule/WaveformMetrics.swift:12-14 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/UI/FloatingCapsule/PixelEQ.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"457263452dc20654870421330f6e9494d52672e86ac0cfff4e0fd7ccd6c04bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102\u2013111 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:968-1078 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1114-1215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:968\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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d12126fb886e069e4c92f82a63c3a10149980e4371a9bea7ad5d76180787967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:378-438 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:653-713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da006970701baf08914696f8568477b236176c8e9b9354e0527f058f72375bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:442-502 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:718-778 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift:442\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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/ModelDownloader.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"0673becc560b921b0f63ba3dfff8f6f161ba2c1b9b806cce706bb1d9cf477cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201342 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:748-789 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1241-1261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:748\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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f875665f7971ba94211b3f28ce1302ac85a5c356b12f5674b279f38db7960f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201340 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift:258-297 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift:309-345 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift:309\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d35781d97e3849bc4217648b7a8eda909d5684b9f2226383822065ea7a1c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:90-120 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:82-112 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:113\u0060 calls \u0060ForEach\u0060, \u0060Array\u0060, \u0060enumerated\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:121\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e307aafdfe57806805cb4af9524c5ec27e6dd62ad1a8bd93820d89d5156ff0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:97-125 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:144-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:97\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1e8efa49602872dfca91788bb0bac99f55c7855879c5f8fd82c2e26d002104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:129-156 | PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:168-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:129\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7159cca362f00a66fa56fc512f2ce73b27cf10783db720befbdfea5f424d614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:257-280 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:267-290 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:257\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c191507cff00ee52e111e92a2a2d1447215fffba571619c30dbc9aa5e9fb7b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:942-963 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1088-1109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:942\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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6e38b7246c13fa8b9c69db0e68c6e2f604d9a3c5f64d30203ea45bbaa1ec86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:51-71 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:116-136 \u2014 both copies are in the same file, so extract the block 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"080d2c7ef50d69996e43b67a32084fa39afc5a55113bacff5507392c09947ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:305-324 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:383-402 \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 \u0060mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:305\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":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c86deffa535385250186cef4a034e825853dbc88b55008d32309755039c24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleRecordingPill.swift:24-42 | PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:13-31 \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 \u0060PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleRecordingPill.swift:24\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":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleRecordingPill.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1442e49d71e017affcdc58cfc93944b3d1550ffd42ea61534697b33003fed740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:177-195 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:736-753 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060LlamaConfig\u0060 in one and \u0060LlamaStandardConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfaf4b8dbf3eeba8583f94120379223f7b12d95ad66bfb40f79bef9d16c994d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:45-62 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:110-127 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:157-174 \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 \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift:45\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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/QuantizedLinearWeightLoader.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"754960673eea360cca9ebe48a9adac07311f1efda004c4042553d9bb8c0f9a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:145-162 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:139-156 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:145\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"78752b4fbc49fa071b2bf945cd983d7cddb8bd878febf412fa2b45352d73251d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): PetalKit/Sources/Onboarding/OnboardingModel.swift:262-274 | petal/App/Settings/SettingsViewModel.swift:99-115 \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 \u0060PetalKit/Sources/Onboarding/OnboardingModel.swift:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c979937ecce866f3b87d67a97afa12ef717d22f697318a22f32b157df5f5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): petal/App/AppModel.swift:1131-1147 | petal/App/AppModel.swift:2433-2449 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060petal/App/AppModel.swift:1131\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":"petal/App/AppModel.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd5014ffc15e65bb65646e153f284a0e34a28e7ebdbca6eb78bf949d8410f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:233-248 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:244-258 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8573a0fb9434fb9833ecc33c921089763c8060376f5115107593e674fcf2559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:287-302 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:310-325 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43de33bd3ea68f7cb2f73b27a1f2fe4efd9f62497481b665579bcb65cc8196f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:550-564 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:589-602 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:566\u0060 calls \u0060writeDebugToDump\u0060 and \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:602\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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5564486c4794d6d42a584aaa380043050d7c7b3dc6771e1b9252e86e7c6da0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): petal/App/AppModel.swift:704-718 | petal/App/AppModel.swift:1235-1249 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060petal/App/AppModel.swift:704\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":"petal/App/AppModel.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ee04f31a80f495f2b181400b5084c149bde46dbdd719ccf3f9faa761171b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): PetalKit/Sources/WindowClient/WindowRuntime.swift:77-89 | PetalKit/Sources/WindowClient/WindowRuntime.swift:148-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/WindowClient/WindowRuntime.swift:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also 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":"PetalKit/Sources/WindowClient/WindowRuntime.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c85dbb749915b7e1bb34c6ddcf18f580feaa1a952bc638a2cdb9d5c456a73a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:93-105 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:650-660 \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 \u0060mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:93\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":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4009309a68404c5680384d660a24c2c301a6c33a398212132009602d6f970683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Pipeline/VoxtralPipeline.swift:274-287 | mlx-voxtral-swift/Sources/VoxtralCore/Pipeline/VoxtralPipeline.swift:336-348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also 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":"mlx-voxtral-swift/Sources/VoxtralCore/Pipeline/VoxtralPipeline.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92a9b89841e0da128d2c7c4e189473d834bee26e95eff73971cef7b7468a6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:723-735 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1226-1238 \u2014 both copies are in the same file, so extract the block 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea2c8a10a7ad5ef0ec5793716176c602857ef45f1ec108a5dfc219d51443552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:73-83 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:174-185 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53a48ff3076f8b8b0639faeef8d973f32acbdc7cb0ade4462ce7e9d531f05e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift:106-116 | PetalKit/Sources/UI/FloatingCapsule/WaveformCanvasRenderer.swift:52-62 \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 \u0060PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift:106\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift:105\u0060 calls \u0060CGFloat\u0060 and \u0060PetalKit/Sources/UI/FloatingCapsule/WaveformCanvasRenderer.swift:51\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":"PetalKit/Sources/UI/FloatingCapsule/DottedHelixRenderer.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"55752e9f6c5802b46c7855b3da05380c4f4b83acf987406bbd6886ce40fa64ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:329-339 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:409-419 \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 \u0060mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift:329\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":"mlx-voxtral-swift/Sources/VoxtralCore/Models/VoxtralLlama.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"959ccae7a6f728619fc87c912ec608589d1f3e63258c847637817f2f73591fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:100-110 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:238-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf9484374748632f1453ae4e4593308e419a47d422b8d9d6df0e711ef8f5250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:320-329 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:371-380 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e056961f3d9397dea7337630c6209769b141b17d93ea4bf060fc6d6a4632f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:339-348 | PetalKit/Sources/Shared/DoubleTapKey.swift:38-47 \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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:339\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a263d8416ba63358679e3f9bd082907bf18c7e79e1b86510197e014eb8d587f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:83-92 | PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:105-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:83\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:115\u0060 calls \u0060accessibilityLabel\u0060 and \u0060PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift:93\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":"PetalKit/Sources/UI/FloatingCapsule/RecordingCapsuleButton.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"edda428e2211aef21c17e68e0f711e9bdc81bcaebe282469ffe7267e44a9a812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:124-140 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:118-134 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:124\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1f4cf2d10bfd732557405ee27ad47456f13a5e37d737ffe9f4105ddc4ad6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:82-90 | PetalKit/Sources/AudioTrimClient/AudioTrimClient.swift:88-96 \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 \u0060PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:82\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"347f9b46b7c944ea96106aded04255ef4f34e5b3145d19220164e6d18ea86c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): PetalKit/Sources/UI/FloatingCapsule/Motion/FutureGlassLayer.swift:47-54 | PetalKit/Sources/UI/FloatingCapsule/Motion/SystemGlassLayer.swift:106-113 \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":"PetalKit/Sources/UI/FloatingCapsule/Motion/FutureGlassLayer.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf288b8f565f76da6c36d980af553ff09f337dbd9ba8e77406ea69dfdf88efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:100-107 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift:992-999 \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 \u0060mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:100\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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"429005a32ab1e387da581294333e7dbecfa8e3e89b2178ef4f23dc5d9e90c651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift:682-689 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:548-555 \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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0f5b77bc4e029f6a8f59cdaba5693f5cc0320bce4231d8e26080c602b2946d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1418-1425 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift:1438-1445 \u2014 both copies are in the same file, so extract the block 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralModeling.swift"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08f23629e7384d132d55f595c5faf639ae71e9aaa9ec092c845f49ff2fe4601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 3): PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:27-33 | PetalKit/Sources/CloudCleanupClient/ChatCompletionsAPI.swift:23-27 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:22-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"311b6ffb84e85e84634273fedd6930fde36b5d66582dbfb1d168d93466a06d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:220-226 | PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:230-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift:230\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0e32825ef7122ef5c546047766cc80fa1f94c0a25a5d67a358b50a2359ec23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:321-326 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:372-377 | PetalKit/Sources/Shared/DoubleTapKey.swift:26-31 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 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 \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:321\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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"744c85368609535a58142897c331dc6bd74e4448dc1f9ec6c53b90a02d1772a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:42-47 | PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:52-57 | PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:67-72 \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 \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:75\u0060 calls \u0060CGPoint\u0060 and \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:50\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":"PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c0e0c3ce01ac90ad3fec85638b888895f5a5e71d6471fb2b773706f447fd3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:45-50 | PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:60-65 | PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:71-76 \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 \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:68\u0060 calls \u0060CGPoint\u0060 and \u0060PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift:42\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":"PetalKit/Sources/UI/FloatingCapsule/DottedStatusGlyph.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f256848e6b3c819948e809ef47c18206b99fd40548d2312acfd4b9cde08d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:118-122 | PetalKit/Sources/CloudCleanupClient/OpenAIResponsesAPI.swift:90-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/CloudCleanupClient/AnthropicMessagesAPI.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dd21ab36445f3c14a55c8dbecdd90c28ae7099d6597ea4e30893ac5f2f176e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): petal/App/Settings/CloudModelPicker.swift:30-34 | petal/App/Settings/SettingsSegmentedPicker.swift:47-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060petal/App/Settings/CloudModelPicker.swift:30\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":"petal/App/Settings/CloudModelPicker.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b596a9e52e58fd38d7a20ff4a2d61a6726c2dfe33703391063e1c32cfcbe9cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:170-177 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:164-171 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"19446e64271ee517ff92a8949c80c8cf6507c02e45ace0618bbef2a8a18c4d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift:216-223 | PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift:227-234 \u2014 before extracting anything, compare \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift\u0060 and \u0060PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 166 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d753ee6b08cbc177564abc21d0fa407741dd71391abea2ff83c8cc05d162364c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): PetalKit/Sources/DownloadClient/DownloadClient.swift:25-36 | PetalKit/Sources/MLXClient/MLXClient.swift:80-91 \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":"PetalKit/Sources/DownloadClient/DownloadClient.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1925b648941bbcd9d0a23e3652b5d480f9d6131d67376ff23e01cd849c94d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): petal/App/Settings/CleanupModelIcon.swift:9-13 | petal/App/Settings/CloudProviderIcon.swift:9-13 \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":"petal/App/Settings/CleanupModelIcon.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"216e9eba8d0296c74a54f90cc0f4dfc8c5c02c7bb97bb7d08165d7ceb894238e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): petal/App/Settings/RouteNode.swift:55-59 | petal/App/Settings/SelectableCard.swift:39-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/RouteNode.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6d31ee8def86f8767bb94f2eccf6034ab1efc98660bd004cf764c04b62d38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): PetalKit/Sources/MLXClient/MLXClient.swift:979-984 | PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift:227-232 \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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfc98c8fbd60f6fa3f27e7372a9c85b54afda6b3f2934c7ad81d572ead42b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): PetalKit/Sources/MLXClient/MLXClient.swift:986-990 | PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift:262-266 | petal/App/AppModel.swift:2273-2277 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4845d40d350e0defa3959ab17d2638f34216828b78b95d40d17945887afc9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:71-78 | PetalKit/Sources/AudioTrimClient/AudioTrimClient.swift:77-84 \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 \u0060PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/AudioSpeedClient/AudioSpeedClient.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a88a1888176f1d3b8a7e2827fbcee800ef64812895b52014fb451e2b69402a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/Utils/CustomLoadWeights.swift:40-44 | mlx-voxtral-swift/Sources/VoxtralCore/Utils/CustomLoadWeights.swift:47-51 \u2014 both copies are in the same file, so extract the block 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":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/CustomLoadWeights.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b98e78d31a38bb4edf57345a0336c2498829fb190de7f84f8354dd84a4bec93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:134-138 | mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift:286-290 \u2014 both copies are in the same file, so extract the block 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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralConfiguration.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8537bf7ad8d8a7a7e5d3c8020f5ef6cc70f5c59bdccd27e33919d2d881c20f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: AudioClient: AudioClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c72d5789a3555db7583084671b9cae48bfec0e415e3ba0ff8e1d6417b579f709"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CloudCleanupFeature: CloudCleanupFeature: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c517a6c55eee39b01a2a40252dc71f349c084773c3e075e85ea5b90c89d4a0df"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: DoubleTapClient: DoubleTapClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c44bdcdb371aa4c77d78ac9ff1dcf4c1dc1e3f866a9c30a3b7f4827dadc69f62"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: DownloadClient: DownloadClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fb2b3278d846c85728a9dc9b0ed48cb3efffe5cf0280365c8afa3b752ff752d2"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: FloatingCapsuleClient: FloatingCapsuleClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"318c846d449916bacbfdd9e9979bbbf0d3a628674224391afa01a1cf78689518"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: FoundationModelClient: FoundationModelClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"85f01290961586dcb2389db47fc3dcb44e98cb35036e33ce7f04e1bbb48aebec"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: HistoryClient: HistoryClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"027919613a64da0d9a202ffbfc8cd65c578979363139f6fc1a6b090042d96ba4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: KeyboardClient: KeyboardClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"88fc66ee73d1fe3db9be74d4c576c760ea3a061c727082ff06b3efc10d122cde"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: KeychainClient: KeychainClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"83eee948409290287e7ea19341eaf84ec12e320e2d878478c58a2d5650bcaeca"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: LocalCleanupClient: LocalCleanupClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bb800d411d2345694e9f84a07a08c9c04c301e264f335060b4b49f9cbc4b32b1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: LogClient: LogClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e975c8d7fc1998cd09cc8c67e40137b1e077e0a0942e4101749eac7e4fd8797"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Onboarding: Onboarding: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea7c27898145318a72bc587dfdce4ea1e00ea405a2056752e66bc1ca2814ba88"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PasteClient: PasteClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"143cd837f8aacbc01b73b46a35dd2d8e36aa83ba5343c044f178c5062bc738b6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PermissionsClient: PermissionsClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6b66b54116169abceae05854779a26ea43fdd7ec607f08522b83cf77dad11493"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PlaybackDuckingClient: PlaybackDuckingClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"409e4d5f93ab855f3f3c94d1a351b7c4ac85f46664e172c6dde4f5b1ce7b33b6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: RouterFeature: RouterFeature: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f07fe282af982ba1d6e826501680c2079107b0079e6104f81ee1f2c1a9cfdba"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SoundClient: SoundClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"982ec28fe9a7c99143e72cdbc42b91c3ab312d3276b7361f5bb2c218bc4d46c2"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SystemContextClient: SystemContextClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2c9f3df0fe3226ffaf54b0f0d49db40d01cd824ba5b854d1e52719da1ec5215f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: TranscriptionClient: TranscriptionClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"de7fbe8f63aa6e2af02c09bd02f46d2b9fd2e4d557e7b9ff1ed6d95df97b8e3a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: UI: UI: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"201dfd60fae3b1db3b35b7c7068e85cc02d5476d1a269669f2cf74e36d87f6c4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: VoxtralCore: VoxtralCore: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6599865babd75bc94d79cc36ed84f0f013b805d562372f6725c2cd11b72fe00f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: WindowClient: WindowClient: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1ac7e9f6fb0bde45ee7feda9bf09e8e77e1a1b2cb4861031889f756fe792a53d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CloudCleanupClient: CloudCleanupClient: abstractness 0.08, instability 0.00, distance 0.92 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc2d9b8763fe70e66a786a98a566d2761543d0e409c26b9f4991c571d1b0b889"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsViewModel (LCOM4 7): SettingsViewModel\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":"petal/App/Settings/SettingsViewModel.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1479084a01f3ca6b2ac35138d30627c88bcf46646e8f51dd51e8d011d2455e7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AccessibilityAppDragView (LCOM4 6): AccessibilityAppDragView\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/PermissionsClient/AccessibilityAppDragView.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1058c8132b5050615d4e35e95d067fa6c269fcf77a23893cd79088b74bc8395a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AccessibilityGuideWindowController (LCOM4 4): AccessibilityGuideWindowController\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":"PetalKit/Sources/PermissionsClient/AccessibilityGuideWindowController.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"668851d61c2f0ff6627b50218bc1ee58c2c5fcd944b38b4e84d0abc6db3d1934"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RouterFlowHighlightView (LCOM4 4): RouterFlowHighlightView\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":"petal/App/Settings/RouterFlowHighlightView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba22b0ec38bcccf56cdb78694fda0b9792b03a6ea1b482437b3ec7d83e8ca90c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuBarContentViewModel (LCOM4 4): MenuBarContentViewModel\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":"petal/Views/MenuBar/MenuBarContentViewModel.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3477fea28d232b0836a350a5b05c1cb573ffd52bf27ccaee73b247eeee7f84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: acceptsSingleSupportedAudioFile: 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":"PetalKit/Tests/PetalKitTests/AudioFileDropValidatorTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"123c8156e4de0600ac556712e16096600b4b50c2c5a8b7cbfaa65253e5fa2050"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsMultipleFiles: 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":"PetalKit/Tests/PetalKitTests/AudioFileDropValidatorTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"60408c54eb517c468531949f57248abf068ec659eff26e958e784992f11b4e38"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsUnsupportedFiles: 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":"PetalKit/Tests/PetalKitTests/AudioFileDropValidatorTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd73780df4bc038ba4b5e4381a6fb5fcbb9b463f51eeeb71d8268a69488de3b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openRouterReasoningMatchesModelFamily: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a34f934dbed57b81ca219035d34d24b9a26f254a67686eae834641075824063"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: requestsWithoutAScreenshotSendOnlyTheTranscript: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bd38102b6ebfc53f0efc1157fbf84a2efd0fe39beb34389090df7473a19322"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openRouterModelListKeepsTextModelsWithNames: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"91da238263b88f83803edf701891c6d226431e00d7fd8081045e4d6280540a93"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: anthropicModelListUsesDisplayNames: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43cf697c5a118baba1ea12d0450b1660bc516f8f15f591b774946785d500f73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openAIModelListKeepsChatModelsNewestFirst: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d143a2fc44cb7c783dc063d0d59f582b7b46141bfb1e806db9a03d6cfbb24b0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: clipboardAndSelectionToolsReturnTheirText: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac0e7abe3709f43476a8f85ae3cd9cbb27a24ee3812c6112506204c2c138c6a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scanFindsTagsKnownVariablesAndTypos: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupClientTests.swift"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"badef3c4743e2d7f79a6d4d9285d18d027680bf340bdfa3ab1103dc89edd79ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: verifiesTheKey: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupIntegrationTests.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"51597a0cdaedeb3a3b9060522cebf8c5fb22c7b1e048729389ab0d72abf8ee69"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: checksTheModel: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupIntegrationTests.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2431f18dee1ac6615997d3c661bb407b23ab8da5b60c366accc48ee463287d52"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsAWrongKey: 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":"PetalKit/Tests/PetalKitTests/CloudCleanupIntegrationTests.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79584aa384cbc64c04ae34cffe4873ea48fb59b31c742173c485846042f80ca"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: evaluateSpeechModels: 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":"PetalKit/Tests/PetalKitTests/SpeechModelEvaluationTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d126f1150177dc2b31abceef7de6abd996b8990578be1725fc7d3a284a7bebf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: downloadClientNormalizesProgressAndExtractsSpeedText: 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":"PetalKit/Tests/PetalKitTests/DownloadClientMappingTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"feba1e4c8fce78af180778903c96a9848c0d0f2451756e53f0fe762292552b9d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: downloadClientMapsMLXDownloadErrorsToTypedFailures: 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":"PetalKit/Tests/PetalKitTests/DownloadClientMappingTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6436e16df6bfc50779b3efa560bca62a11e1e0f2bb3a884c87de9e2dbdf08c12"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelCompletesDownloadAndTransitionsToDownloadedState: 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":"PetalKit/Tests/PetalKitTests/ModelDownloadModelTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6aed78cece6c4b344c58fd08573bd7dc668ddb954aad2ddf4d90eaed9e2434"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelPauseAndCancelButtonsMutateStateDeterministically: 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":"PetalKit/Tests/PetalKitTests/ModelDownloadModelTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7918471d0321e797a3aac85bac757359a6be07ddb64eaf9cbf64f886afc30b2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: selectedModelChangedRefreshesDownloadedState: 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":"PetalKit/Tests/PetalKitTests/ModelDownloadModelTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1647d85b6e2d312c9cc464a8e166f69ff07a33fab473e8017f199178c1a7797d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modulesCompile: 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":"PetalKit/Tests/PetalKitTests/PetalKitSmokeTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"af04620a8549fca115f298b0268550ac294cb11feaec0a0ab147b5bd78842747"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelOptionDisplayNamesUseCleanProductNames: 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":"PetalKit/Tests/PetalKitTests/PetalSharedDomainTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3431f60cdfb365a566cf833eebb8a5b53809482ca792d87e521193b440f204d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelProviderGroupsPreserveProviderAndCatalogOrder: 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":"PetalKit/Tests/PetalKitTests/PetalSharedDomainTests.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1f8be675d27a511fca8ed7ed336880ebd54348c40b45d715d8fe1a04630563"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelProviderGroupsExcludePinnedDownloadOption: 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":"PetalKit/Tests/PetalKitTests/PetalSharedDomainTests.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7a1c4d597f713d6e0ba498abc1b3715f2327365aecedb98d41503b78155722"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: modelProviderListDisplayNamesUseProductLabels: 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":"PetalKit/Tests/PetalKitTests/PetalSharedDomainTests.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a05e39df54e8a1fca4cb35ec86dc13e7da0f9103c77006a41be53df4fa379d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: streamingAudioOverflowFailsInsteadOfReturningAnIncompleteRecording: 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":"PetalKit/Tests/PetalKitTests/StreamingAudioTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bff404df8cce50190e35c47e3b3b2aae08ab87242a83395c4f6989c242f772"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: streamingAudioCancellationDiscardsTheUnfinishedTail: 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":"PetalKit/Tests/PetalKitTests/StreamingAudioTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d375851086964c324c51acbfb9f63940f97a5b998f7bd5f52a66ed8c5c6dff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: petal/App/AppModel.swift: petal/App/AppModel.swift changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in AppModel.stopRecordingAndTranscribe at line 966. 7 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- petal/App/AppModel.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":"petal/App/AppModel.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"3221134c63eb5db38691b5b5485b02dfe11cd5fc03e768c94aba6e67f6357afb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.swift: PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in CapsuleStage.body at line 43. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.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":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleStage.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a51d7fff518cfecc478c69fe5d69960bdbfa3bc8b00cf76b0d0f4e1131e2dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/AudioClient/AudioClient.swift: PetalKit/Sources/AudioClient/AudioClient.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in LiveAudioCaptureRuntime.startRecordingLocked at line 331. 2 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/AudioClient/AudioClient.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":"PetalKit/Sources/AudioClient/AudioClient.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eb7c264c71c4c64e817e39bee7fe374fb69273013435b8446b9d891ca0d608"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/MLXClient/MLXClient.swift: PetalKit/Sources/MLXClient/MLXClient.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LiveMLXRuntime.transcribe at line 372. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/MLXClient/MLXClient.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":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e0ead0d6f18deeb446d03aaf09352080045ba89841fbe7c255b2326daf75df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift: PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in CapsuleTimeline.frame at line 168. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.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":"PetalKit/Sources/UI/FloatingCapsule/Motion/CapsuleTimeline.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a496ea5136c5c36c8eaf6e61234066ee884551a9a89dc22df24312eb43246e5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift: PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in TranscriptionClient.liveValue at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/TranscriptionClient/TranscriptionClient.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":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b368ecf7631c7cebf849cb4c11c414c53305d0703c9aab5fa24f9fa004cffb2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/Onboarding/OnboardingModel.swift: PetalKit/Sources/Onboarding/OnboardingModel.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in OnboardingModel.primaryActionTapped at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/Onboarding/OnboardingModel.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":"PetalKit/Sources/Onboarding/OnboardingModel.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"11693fd83cb11f448594d9a0f051d376bb5e88b14b775c202f243118900b99b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: petal/App/Settings/HistoryRecordingCard.swift: petal/App/Settings/HistoryRecordingCard.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in HistoryRecordingCard.body at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- petal/App/Settings/HistoryRecordingCard.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":"petal/App/Settings/HistoryRecordingCard.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"914be044705dde49c9e528fd842f25e175ea0f9075cc939af286613f04a549d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: PetalKit/Sources/SystemContextClient/SystemContextClient.swift: PetalKit/Sources/SystemContextClient/SystemContextClient.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SystemContextClient.liveValue at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-13..2026-11-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-13 14:54:17 -05:00\u0027 --until=\u00272026-11-11 14:54:17 -05:00\u0027 --full-history --no-merges -- PetalKit/Sources/SystemContextClient/SystemContextClient.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":"PetalKit/Sources/SystemContextClient/SystemContextClient.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"595e14a79814f62f7d944779aadfa75c859ecafeb261021f102a19f4f4490bc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //import Transformers  // TODO: Integrate later when swift-transformers is stable \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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4584cd517c51ebbfc22ceaa04b3c1c0bcd894f36153c24a7489f2fc6bdefcd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: impl\u00E9menter la logique sp\u00E9cifique transcription si n\u00E9cessaire \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":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralComponents.swift"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0114d7ec903780c5d9cde9eac561a9d76c1457e2620c19bfe7af711b9eabb12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Also add \u0060.isEnabled(_ name: Name)\u0060. \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/KeyboardShortcuts.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5395f318152fffcf7105f892efe383bd666a120fbbcd571e3390781bc7d6eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use proper UserDefaults observation instead of this. \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/KeyboardShortcuts.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dabd53de203fd6b643a51dd69e7bb4c9a8dcb2307b09c4d25e71017c66e362d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this a getter/setter. We must first add the ability to create a \u0060Shortcut\u0060 from a \u0060keyEquivalent\u0060. \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/NSMenuItem\u002B\u002B.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c50870c43c227229fc99aa0209817d5451d81cc67c43f0572bc0aa1adc9f4f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use AsyncStream when targeting macOS 15. \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/NSMenuItem\u002B\u002B.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99a65312c9d0412dec5fd4406ba4656fd281462937cc937cf8fa527902a0b24"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Use \u0060Task { @MainActor\u0060 \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/NSMenuItem\u002B\u002B.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b45d54489a64e290cff6136549161b081bb381ceacd98aee3db31d2eb276e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Respect locale decimal separator (\u0022.\u0022 or \u0022,\u0022) \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/Shortcut.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f082b6d6c5438e45af9706d782e95f329f0af3ccb207e1c0d6d32bb97cc7563"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add button to offer to open the relevant system settings pane for the user. \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":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/RecorderContainerView.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a783b135b54fd3c39c2e5ea83cde91abe929a1e72f62153697bd6765a877431"}},{"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 \u0060petal.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ded03602fda29712e5befc5681a5c35722cec697922d4ddc41c98b2e9a6d18"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060stftMlx\u0060 spells \u0060Mlx\u0060 where 13 names in the project spell it \u0060MLX\u0060: 13 of 14 names in project mlx-voxtral-swift~VoxtralCore spell the token \u0060MLX\u0060 (13 of 14; unit: names in project mlx-voxtral-swift~VoxtralCore containing \u0060MLX\u0060). Peers: MLXCoreMLBridge.toMLXArray (mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift:161); MLXCoreMLBridge.toMLXArrayBatch (mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift:241); MLMultiArray.toMLXArray (mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift:300); MLXCoreMLBridge.toMLXArrayWithTiming (mlx-voxtral-swift/Sources/VoxtralCore/CoreML/MLXCoreMLBridge.swift:323); VoxtralCoreMLVariant.fromMLXModelRepoId (mlx-voxtral-swift/Sources/VoxtralCore/CoreML/VoxtralCoreMLEncoder.swift:71). Rename to \u0060stftMLX\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/VoxtralFeatureExtractor.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2810e33e54f59c356e0a38ba7e5481ebefde92ac6903aef4271a76aaf48f871"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060PetalKit\u0060 (15899 LoC, 266 module-visible types across 38 directories) overshoots its size bounds. 2 of 4 build unit(s) (SwiftPM, Xcode) overshoot their size bounds, lowering Project Cohesion to 1.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fd03cbbf6e6ed06bdcb21843c1207ee48eadaea11210dea27989680f94a645"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (9158 LoC, 156 module-visible types across 7 directories) overshoots its size bounds. 2 of 4 build unit(s) (SwiftPM, Xcode) overshoot their size bounds, lowering Project Cohesion to 1.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"446994c68c38db11a957efa285003cab329be2a8a6b08339dbfe335df2f0f943"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4c27f14c716bebd7e1a31ed6c77f2d6a21d61612de961e76376afaec2b1deb1"},"properties":{"commitSha":"55dc5e1ca978474fb8f7bb4b01b6ca2e9f0e4fd4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2d8a12b67f0b030e42dcd6641704281c43188a02de5b515347766aab692eeee"},"properties":{"commitSha":"55dc5e1ca978474fb8f7bb4b01b6ca2e9f0e4fd4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"339d802693a71c92418d8b89a8427ff6db108ad5f24327cb8355eb0728e7eb8e"},"properties":{"commitSha":"55dc5e1ca978474fb8f7bb4b01b6ca2e9f0e4fd4"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0db5a5c5cb9e007dd773d8974533ff38038f5e5fbf5ca5313f5f07cec51919ac"},"properties":{"commitSha":"55dc5e1ca978474fb8f7bb4b01b6ca2e9f0e4fd4"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6ef2f316ca631b692d03c475bed7e473e93f3db6fa35d9ef86248c50808e234"},"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":"8e8759e912da0621f3fbbfd04b8e4b38fb2d41b1d3356a29a82d136146c92187"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17f54fb2cbcb3a3ac79db6ee63e1de2d72883c1f15bc6adcd1384335d0b9f95e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"52ec71bfadd464b53cbd144c0a67f759b9df79d48f119482dc6a49768d030ca4"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"ed758783b44a0cd37bd54cbaf335af21f44588e50ef08d385c016daf58ac4612"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"186887bcde8350354550fa2fd4b943d48bb65a06a5839a69f8e51f0eddb6f665"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3fe506672ffd179b12b430e3814b82373727301c875aa68b8b7359dffdf23eb4"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b9fe5b3a50a1f8cee0374c42b7486193397019bb4ed8d14192636355650f602"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SharedKeys.swift \u2194 AppModel.swift: \u0060PetalKit/Sources/Shared/SharedKeys.swift\u0060 (context PetalKit) and \u0060petal/App/AppModel.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 92% of the time (12 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060377382d5\u0060 feat: choose spoken transcription language; \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d0343658\u0060 feat: skip cleanup for short dictations \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Shared/SharedKeys.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8527f7019a330675126bc1df4f48f85bb104de1fb947e50306f1eaf04a40a6ba"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SharedKeys.swift \u2194 SettingsViewModel.swift: \u0060PetalKit/Sources/Shared/SharedKeys.swift\u0060 (context PetalKit) and \u0060petal/App/Settings/SettingsViewModel.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 92% of the time (12 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060377382d5\u0060 feat: choose spoken transcription language; \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d0343658\u0060 feat: skip cleanup for short dictations \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Shared/SharedKeys.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2752baf3a2f9bb83713269fa5cc2701f961dd5775e93707202311054292695d5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SharedKeys.swift \u2194 SettingsView.swift: \u0060PetalKit/Sources/Shared/SharedKeys.swift\u0060 (context PetalKit) and \u0060petal/App/Settings/SettingsView.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060377382d5\u0060 feat: choose spoken transcription language; \u0060efbc6b87\u0060 Add Launch at Login and Show Live Transcript settings; \u006046a515d6\u0060 Refine history settings and floating capsule behavior \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Shared/SharedKeys.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"474a4e363d09f1162998a740f0b97e679273d6fe818eaf74fc245d2d9d4cb65c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Package.swift \u2194 AppModel.swift: \u0060PetalKit/Package.swift\u0060 (context PetalKit) and \u0060petal/App/AppModel.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 65% of the time (13 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u0060c2b7d571\u0060 feat: route speech models by task; \u00602e9a6f80\u0060 Add live Parakeet Unified transcription from capture through final paste; \u00604759e004\u0060 Refresh model selector, theme assets, and dependency manifests \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Package.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee6b2e26a14cb4516b248f7d755e1235d6880d755859699a870ccc8c3fc87e0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: DownloadClient.swift \u2194 AppModel.swift: \u0060PetalKit/Sources/DownloadClient/DownloadClient.swift\u0060 (context PetalKit) and \u0060petal/App/AppModel.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 63% of the time (12 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d5aecebc\u0060 feat: add multilingual parakeet v3; \u00602e9a6f80\u0060 Add live Parakeet Unified transcription from capture through final paste \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DownloadClient/DownloadClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ab952036b0b4ac2db0cac7d25ccc586b3b17616c6b6699608a62b4ce717a43"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MLXClient.swift \u2194 AppModel.swift: \u0060PetalKit/Sources/MLXClient/MLXClient.swift\u0060 (context PetalKit) and \u0060petal/App/AppModel.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 58% of the time (18 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u0060377382d5\u0060 feat: choose spoken transcription language; \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d5aecebc\u0060 feat: add multilingual parakeet v3 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a351932ad86569c1d63856fe19c2b0344ee523ad0a72b590dc70a8704c20012d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ModelInfoRow.swift \u2194 SettingsView.swift: \u0060PetalKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 (context PetalKit) and \u0060petal/App/Settings/SettingsView.swift\u0060 (context petal) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006073ef7eb9\u0060 parakeet support; \u00604dd8dee5\u0060 more voxtral models (at that commit the files were still \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 and \u0060gloam/App/Settings/SettingsView.swift\u0060); \u0060927d9ee8\u0060 apple inteliggence and apple speech added (at that commit the files were still \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 and \u0060gloam/App/Settings/SettingsView.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Onboarding/Components/ModelInfoRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a1a4eaefc2657654b9d2ae4049c50138c6f908008cbfb2b1b2fea3210fe423"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: OnboardingExtensions.swift, DownloadPage.swift, ModelSelectionPage.swift, ShortcutPage.swift: 4 files \u2014 \u0060PetalKit/Sources/Onboarding/Components/OnboardingExtensions.swift\u0060, \u0060PetalKit/Sources/Onboarding/Pages/DownloadPage/DownloadPage.swift\u0060, \u0060PetalKit/Sources/Onboarding/Pages/ModelSelectionPage/ModelSelectionPage.swift\u0060, \u0060PetalKit/Sources/Onboarding/Pages/ShortcutPage.swift\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Onboarding/Components/OnboardingExtensions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fa14e5a1e7c08442a18cfa7ed6bacde7ca44569beba8207c7b60a59832de06"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DownloadClient.swift \u2194 TranscriptionClient.swift: \u0060PetalKit/Sources/DownloadClient/DownloadClient.swift\u0060 and \u0060PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift\u0060 change together 79% of the time (15 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d5aecebc\u0060 feat: add multilingual parakeet v3; \u00602e9a6f80\u0060 Add live Parakeet Unified transcription from capture through final paste \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DownloadClient/DownloadClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ac00a9edef6c5524d5c6d0e9490bccdde09bd4fa11113c5adbcb9cb36b6273"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MLXClient.swift \u2194 ModelOption.swift: \u0060PetalKit/Sources/MLXClient/MLXClient.swift\u0060 and \u0060PetalKit/Sources/Shared/ModelOption.swift\u0060 change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060377382d5\u0060 feat: choose spoken transcription language; \u0060c2b7d571\u0060 feat: route speech models by task; \u0060d5aecebc\u0060 feat: add multilingual parakeet v3 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ada55054938af552479006da8af4acfb986ceb7ca20d406f992476bd6dd8ba"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SettingsViewModel.swift \u2194 MenuBarContentViewModel.swift: \u0060petal/App/Settings/SettingsViewModel.swift\u0060 and \u0060petal/Views/MenuBar/MenuBarContentViewModel.swift\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c2b7d571\u0060 feat: route speech models by task; \u00602a3bd86f\u0060 Improve drop-to-transcribe and history deletion flow; \u006064761772\u0060 Add audio ducking, dropped-file transcription, and status item contro\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"petal/App/Settings/SettingsViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa89f380dd9204354a01159ef4cfb072ec931bee158ac781e54e3a6c4fd529c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ModelInfoRow.swift \u2194 TranscriptionClient.swift: \u0060PetalKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 and \u0060PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006073ef7eb9\u0060 parakeet support; \u00604dd8dee5\u0060 more voxtral models (at that commit the files were still \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 and \u0060GloamKit/Sources/TranscriptionClient/TranscriptionClient.swift\u0060); \u0060927d9ee8\u0060 apple inteliggence and apple speech added (at that commit the files were still \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 and \u0060GloamKit/Sources/TranscriptionClient/TranscriptionClient.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/Onboarding/Components/ModelInfoRow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ea87dd8fc5b3fc0c9b89b658df2216b7b6dfc3e1432824f935759a1b9af5f0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DownloadClient.swift \u2194 ModelInfoRow.swift: \u0060PetalKit/Sources/DownloadClient/DownloadClient.swift\u0060 and \u0060PetalKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006073ef7eb9\u0060 parakeet support; \u00604dd8dee5\u0060 more voxtral models (at that commit the files were still \u0060GloamKit/Sources/DownloadClient/DownloadClient.swift\u0060 and \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060); \u0060927d9ee8\u0060 apple inteliggence and apple speech added (at that commit the files were still \u0060GloamKit/Sources/DownloadClient/DownloadClient.swift\u0060 and \u0060GloamKit/Sources/Onboarding/Components/ModelInfoRow.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DownloadClient/DownloadClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16919ac951b4485c739ff401109664683f25c27225de64d314a5a11b4068a220"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","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":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060PetalKit/KeyboardShortcuts\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.keyCode == UInt16(kVK_Delete) || event.keyCode == UInt16(kVK_ForwardDelete)\u0060 appears character-identically in 2 files \u2014 PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift, PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/UnifiedShortcutRecorder.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/KeyboardShortcuts/Sources/KeyboardShortcuts/View/DoubleTapRecorder.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12c4accda9b18e3a9c006cc27c78fdb6e2f265eba50347f03d044b04c97afba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.hasSuffix(\u0022.safetensors\u0022) \u0026\u0026 !name.hasPrefix(\u0022._\u0022) \u0026\u0026 !name.hasPrefix(\u0022consolidated\u0022) \u0026\u0026 !name.contains(\u0022consolidated.\u0022)\u0060 appears character-identically in 2 files \u2014 mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift, mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralStandardLoader.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mlx-voxtral-swift/Sources/VoxtralCore/Utils/VoxtralModelLoading.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"30badcaa4816fca88a6941ab278b850bbff1ba36744d953488d89bfb4f608196"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type == .tapDisabledByTimeout || type == .tapDisabledByUserInput\u0060 appears character-identically in 2 files \u2014 PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift, PetalKit/Sources/KeyboardClient/KeyboardClient.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/DoubleTapClient/LiveDoubleTapMonitor.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e196d5a57f06a77e810cc91d90177801475a3b213add705c21d8b8aab35c81c"}},{"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":"petal/App/AppModel.swift"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdda847624488ab2541d72ee74c58d5aff231ec6826b91ca35f89dfdcb385a4"}},{"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":"petal/App/AppModel.swift"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"169e4d015a975210b7a196598ae5f79870558bba7199903343260883c55a71fb"}},{"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":"petal/App/AppModel.swift"},"region":{"startLine":2085}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e05a17d3daeddee5c5cbfab02581e0f4784acb880e70eef31ad8bb6c6e1e3c"}},{"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":"petal/App/Settings/HistoryPlaybackModel.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d271e3d40a4e237852afd7dc63125674784961790788ec06abeb20e9cbe6516e"}},{"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":"petal/App/Settings/HistoryWaveformSampler.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa85312824c9d54092053e3ce11f3468f7a117f9540e833767ab4837462b21e"}},{"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":"PetalKit/Sources/SoundClient/SoundClient.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d60fecd433a2641746c361a985b94e2d04af9c93f1d68852c73b8c9ae3b542"}},{"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":"PetalKit/Sources/RouterFeature/RouterModel.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7da26525374bb0464859dbe777e0d80d26d6620613fd97d97ea08d96634ae38"}},{"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":"PetalKit/Sources/HistoryClient/HistoryClient.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"946684f7ab6906562a03d7122560ab275a2e01eed6eb9f87f92f4b096125c339"}},{"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":"PetalKit/Sources/CloudCleanupFeature/CloudCleanupModel.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda4e1542cd49087fecc790d314cc00056b30d8a0c68384e79706fffabe087aa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060mlxAudioDurationSeconds\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/MLXClient/MLXClient.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91db296de4de7a4b8ce49fda0dc4f155fc80bdbc43766daad7010edc126c169"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060audioFileDurationSeconds\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"PetalKit/Sources/TranscriptionClient/TranscriptionClient.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff4c4e8ad6c1f508c77feec016c1d9acd26887eca2b408e0acc6df9ef354382"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_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-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":18,"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."]}]}