{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"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":"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":"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":"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":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"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":"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":"AppReducer.reduce (cyclomatic 132): AppReducer.reduce has cyclomatic complexity 132 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/Core/AppReducer.swift holds 3 of the 20 methods over the threshold \u2014 including the worst \u2014 and 123 of the 284 points over it (43%), 3.6\u00D7 the next-largest file (Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift at 34). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4860143a756f34358d29af99c0e3dcaf24ec816ef90e442aaefd010c876510af"}},{"ruleId":"D1","level":"warning","message":{"text":"SmokeRunner.run (cyclomatic 47): SmokeRunner.run has cyclomatic complexity 47 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SmokeRunner.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52f1f06a8010f07a4a2f51b149725398cc58373434fe7a43718010ae2a034ca"}},{"ruleId":"D1","level":"warning","message":{"text":"Inpaint.navierStokes (cyclomatic 46): Inpaint.navierStokes has cyclomatic complexity 46 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd0b16f22f1184c3475d3848145a5b2f0a1b1241461281ac40dbc354674c21c"}},{"ruleId":"D1","level":"warning","message":{"text":"AppRuntime.perform (cyclomatic 37): AppRuntime.perform has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AppRuntime.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"54560a939844033e2affc12238f9f01b45f76333bb72c6a755bab88a391b2a54"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageX.decodeStraightRGBA (cyclomatic 34): ImageX.decodeStraightRGBA has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/ImageX.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a661545ae47e61b33c5e75b6a0e4fad88d8b650d6e1ce04e1035ac1af05afd77"}},{"ruleId":"D1","level":"warning","message":{"text":"MeshIO.swift.loadGLB (cyclomatic 27): MeshIO.swift.loadGLB has cyclomatic complexity 27 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshIO.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c0fc6a75671e736d48fa335cd5d2893cabe0b380ce0b31a32906d44451cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"Engine.collapse (cyclomatic 22): Engine.collapse has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6523d82df4b5d57892b23974cd580fcad1db4789708910b89b310738790bbf2e"}},{"ruleId":"D1","level":"warning","message":{"text":"GLB.read (cyclomatic 22): GLB.read has cyclomatic complexity 22 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/GLB.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e65ca15963c3749de238c88817cf26458563d615a2a317f5f7ac29af22c9fb"}},{"ruleId":"D1","level":"warning","message":{"text":"AppReducer.advancedPaintState (cyclomatic 20): AppReducer.advancedPaintState has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/Core/AppReducer.swift holds 3 of the 20 methods over the threshold \u2014 including the worst \u2014 and 123 of the 284 points over it (43%), 3.6\u00D7 the next-largest file (Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift at 34). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f918e7fa544322568748021712b2a1f0df5012a3caf4c591e47614efbb7fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageX.resampleAxis (cyclomatic 20): ImageX.resampleAxis has cyclomatic complexity 20 (threshold 15). 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/ImageX.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a6468d12ed2679968f40b6ee4bdf5079708a748059cf519b8cb36d694195b5"}},{"ruleId":"D1","level":"warning","message":{"text":"PaintPipeline.paintPBR (cyclomatic 20): PaintPipeline.paintPBR has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f955c742149623a03e417f7ba33c07cd5b367b58747416f292549512ff52e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline.nearSurfaceMask (cyclomatic 20): Pipeline.nearSurfaceMask has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/Pipeline.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"044018396236e7ad46e66f4503fdbd654b3bfa5f643a6703cbfac3f58cabc08b"}},{"ruleId":"D1","level":"warning","message":{"text":"MeshExporter.encodeGLB (cyclomatic 19): MeshExporter.encodeGLB has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshExporter.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"33899127b4592d799f08fcad5afe0a7dfce211af00d3574ab62791bafeaf8317"}},{"ruleId":"D1","level":"warning","message":{"text":"Inpaint.edtIndices (cyclomatic 18): Inpaint.edtIndices 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9ad9fa5f36ae480a2b795bfe5ec2505d650abce31179922560abc140f442ab"}},{"ruleId":"D1","level":"warning","message":{"text":"MeshIO.swift.loadOBJ (cyclomatic 18): MeshIO.swift.loadOBJ 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshIO.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbe0e63755bd1b9fa8813467bb808d2878ba90c92fd1702760598a7715f6489"}},{"ruleId":"D1","level":"warning","message":{"text":"PaintPipeline.paintRGB (cyclomatic 17): PaintPipeline.paintRGB 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cd9da3781cd8f27fba945da97c123d2a0bbe3d9b0a338fda8e88419a746112"}},{"ruleId":"D1","level":"warning","message":{"text":"Pipeline.gridSDFOctree (cyclomatic 17): Pipeline.gridSDFOctree has cyclomatic complexity 17 (threshold 15). 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":"Packages/Hy3DMLX/Sources/Hy3DMLX/Pipeline.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"357a59e6741bfc2fffea81df44543cdb545cfedb9742a2972ef139b7a0f9c3ab"}},{"ruleId":"D1","level":"warning","message":{"text":"AppReducer.advancedShapeState (cyclomatic 16): AppReducer.advancedShapeState has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: Sources/Core/AppReducer.swift holds 3 of the 20 methods over the threshold \u2014 including the worst \u2014 and 123 of the 284 points over it (43%), 3.6\u00D7 the next-largest file (Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift at 34). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ebd084339cb1ffd199fbaabf6823f6f377b5466fd3fa9a29a04cd175e16bec"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.downloadFile (cyclomatic 16): DownloadManager.downloadFile has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/DownloadManager.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba9bdae95f974711d44d0541f55bb92c7f274aea358aeebfa69754edb9c9548"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectStore.applyImage (cyclomatic 16): ProjectStore.applyImage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"83664140da82518d532e40ee984deb522a68cc73dd3be81fa6e0080e0eea6fcc"}},{"ruleId":"D2","level":"warning","message":{"text":"AppReducer.reduce (cognitive 160): AppReducer.reduce has cognitive complexity 160 (threshold 15). Drivers by points: if/else 55 (95 pts), boolean chains 32, match/switch 14 (29 pts), loops 2 (4 pts) (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1c416383386d904b5d977834c4a8acafa29207fbae91bf54c4b67e533817d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Inpaint.navierStokes (cognitive 140): Inpaint.navierStokes has cognitive complexity 140 (threshold 15). Drivers by points: if/else 19 (51 pts), ternaries 9 (49 pts), loops 9 (21 pts), boolean chains 10, match/switch 2 (9 pts) (nesting depth added 91). Of this number, 131 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4710a792e474cdee30e0d2762a978674659fc2ab87716ddf316783cf850335"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageX.decodeStraightRGBA (cognitive 66): ImageX.decodeStraightRGBA has cognitive complexity 66 (threshold 15). Drivers by points: if/else 19 (45 pts), boolean chains 16, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 28). Of this number, 62 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/ImageX.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca020d79d7e633dc6bfb8914998e46386372f2a1445e4e706a325682af3d2e9"}},{"ruleId":"D2","level":"warning","message":{"text":"SmokeRunner.run (cognitive 50): SmokeRunner.run has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (25 pts), boolean chains 15, match/switch 2 (4 pts), loops 2 (3 pts), ternaries 3 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SmokeRunner.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d043783630a307be3435b2bb83b33ad0e3494325136d340a23a9522c81273d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.nearSurfaceMask (cognitive 47): Pipeline.nearSurfaceMask has cognitive complexity 47 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 5 (8 pts), boolean chains 4, ternaries 2 (nesting depth added 28). Of this number, 45 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/Pipeline.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b62990dc617edd49a70168d0aafc571c9d6bce5f77dfa0faae71c73f685cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageX.resampleAxis (cognitive 46): ImageX.resampleAxis has cognitive complexity 46 (threshold 15). Drivers by points: loops 11 (34 pts), if/else 6 (9 pts), ternaries 3 (nesting depth added 26). 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/ImageX.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83bddcc27fbcc4ebce30df5f207e44735898a14be55eead0b58d13b973b4019"}},{"ruleId":"D2","level":"warning","message":{"text":"Inpaint.edtIndices (cognitive 43): Inpaint.edtIndices has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 8 (16 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Inpaint.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a5e5122159070a66faa1852de78d5632580d06b814a2d97c7714f4c51b5e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshIO.swift.loadGLB (cognitive 43): MeshIO.swift.loadGLB has cognitive complexity 43 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 10 (16 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 18). Of this number, 36 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshIO.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"741cd44eb6806b7ee0a10a0d915b5324eec939a227c6b9d14dc583664e157296"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshIO.swift.loadOBJ (cognitive 42): MeshIO.swift.loadOBJ has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 4 (11 pts), boolean chains 3 (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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshIO.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc757706e3ea2982967ac81f45cf2061e5d3f171dcedba823a510e7c5e2501e2"}},{"ruleId":"D2","level":"warning","message":{"text":"MarchingCubes.extract (cognitive 39): MarchingCubes.extract has cognitive complexity 39 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 6 (19 pts), ternaries 1 (nesting depth added 27). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/MarchingCubes.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9dd82f4dae8f0a3e10d162384e3583cbf8eb6b0ba285a718d108f28fa05b94"}},{"ruleId":"D2","level":"warning","message":{"text":"PBRWrapper.voxelIndices (cognitive 36): PBRWrapper.voxelIndices has cognitive complexity 36 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 3 (13 pts), boolean chains 2 (nesting depth added 25). 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/PBRWrapper.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0bec6201617b11d3bc062cff88319cb5b946e79133e9d93204bdb370ed4b12"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.gridSDFOctree (cognitive 35): Pipeline.gridSDFOctree has cognitive complexity 35 (threshold 15). Drivers by points: loops 14 (32 pts), ternaries 1 (2 pts), if/else 1 (nesting depth added 19). 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":"Packages/Hy3DMLX/Sources/Hy3DMLX/Pipeline.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2d367e01adb573e55c3f763ff1af8c0d64eafed6a1b57e553d7f8357e37f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectStore.load (cognitive 30): ProjectStore.load has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 3 (12 pts), boolean chains 1, loops 1 (nesting depth added 18). Most of this is not in the body itself: 13 of the 30 points are its own statements and the rest belongs to one function item inside it that branches (snapshot). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"36504dfc251da88c1ddafc9e57a1c4b1cede2f51f02c4d86dd03752b39b8281d"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.collapse (cognitive 28): Engine.collapse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 7 (10 pts), boolean chains 7 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2e31270cc2fd8504ff12392dee35cd40880fcdfe3697981d6bfff44e31c5d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshExporter.encodeGLB (cognitive 26): MeshExporter.encodeGLB has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 5 (7 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshExporter.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8048ae06bf1b28a63946027e62ab07d5a40e392de8eaf3ab5e4565687a27935"}},{"ruleId":"D2","level":"warning","message":{"text":"PaintPipeline.paintPBR (cognitive 23): PaintPipeline.paintPBR has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96cce63803402b245b6480991e4a30cfc46e0a5e2752919bc3026a67057422a"}},{"ruleId":"D2","level":"warning","message":{"text":"GLB.read (cognitive 23): GLB.read has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts), loops 3 (nesting depth added 2). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/GLB.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5a3e2981dd56a2660ba8f0ccf936e45b7f4548f4cb94409d96678df311058c"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.wouldFlip (cognitive 22): Engine.wouldFlip has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (6 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"3747a3f7a30d85760de862fca967639c6f8e56522e698eca54c240e433e38bac"}},{"ruleId":"D2","level":"warning","message":{"text":"GLB.swift.writeGLB (cognitive 22): GLB.swift.writeGLB has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (7 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/GLB.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f595dbbcd8687dc4a6c57e78bb78e30b668e3de053921463ba64e2015cc0b5b6"}},{"ruleId":"D2","level":"warning","message":{"text":"AppRuntime.perform (cognitive 22): AppRuntime.perform has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 2 (4 pts), match/switch 2 (3 pts) (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AppRuntime.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c3da387d42ad0c4ad55adb21adea9069b8013fb9ad3672bd1498aee057ab50"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.dilate (cognitive 21): Pipeline.dilate has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 15). 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":"Packages/Hy3DMLX/Sources/Hy3DMLX/Pipeline.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7350875436bbacf964efd9306555b70a626fc0ec67f452bfc00db72e8f757f48"}},{"ruleId":"D2","level":"warning","message":{"text":"PaintPipeline.paintRGB (cognitive 20): PaintPipeline.paintRGB has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60b70440e2247430994dd14efaa56f9dd67c0d54d80f0b4d96ef33895ff3285"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectStore.applyImage (cognitive 20): ProjectStore.applyImage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"623e097b5c779ce0ff2acce5ef3d76c0c95ab00b93bdeda271a6fc9cac9d33f5"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.downloadFile (cognitive 18): DownloadManager.downloadFile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/DownloadManager.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a015c74eb7525eb587016cf9def3b42251bd24a3fdeffd84775e4bec61d7fa67"}},{"ruleId":"D2","level":"warning","message":{"text":"PaintUNet.callAsFunction (cognitive 18): PaintUNet.callAsFunction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/UNet.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cf009447c5a6ff3b9c3263cacd7d836c82fce13ec321ba891b53ac006fc518"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.build (cognitive 17): Engine.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a4f96bbaf12f2373beb9363218d214940839c64f0d0b47329ee5cda3f84935"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshExporter.encodeOBJ (cognitive 17): MeshExporter.encodeOBJ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (6 pts), loops 4 (5 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshExporter.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e30d7be4a0b7899a30f70637233f51662a0caaffb57312ddc154b4ee5b4749"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshIO.swift.readIndices (cognitive 16): MeshIO.swift.readIndices has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 8). 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshIO.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a71d0e10b871d67711127af3a355cb9ad2c904c7fb453deeaefe279806d891"}},{"ruleId":"D2","level":"warning","message":{"text":"MeshViewer.loadPoints (cognitive 16): MeshViewer.loadPoints has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MeshViewer.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6c46e7ac072bc5c4e140ed2ba17dfa3b9dd174195a8c1037eab6750480fbbc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppReducer.reduce: MethodTooLong \u2014 reduce runs 314 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 214 over it, 3.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9c9dca9a2c1c5598b838ee6dbcb77c1aba4be28f2b8717063452904d278992"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProjectStore: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9f9265cfa0b0aafd5a80f5dd97633c89fd2f33eafec7ca1dc0bdd77818fe37"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GLB.swift.writeGLB: FunctionTooLong \u2014 writeGLB runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/GLB.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"82915bf2aa4458ce262dcc15e147bf0754e1b21d5d5c7d74cad789f6d8edb4a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProjectStore: ClassTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 151 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c60cb86396f556b15aff29222f0ec854c73b15b14b817955f4bdc9727be7f4a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppReducer: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 66 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cd0ae079058692a500cfcefee391e3676dc5443d406f6aa96fcc8ac57a6b85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/ProjectStore.swift: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ProjectStore (12-811). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76581891047b996c768b60960e6488b29fd1b50f7c9e99ae729c6f8f067ac301"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppRuntime.perform: MethodTooLong \u2014 perform 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":"Sources/AppRuntime.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3beb66686a7994c49bcd6e8fe23c0f62755a2e40642d32532da06bae68ee5809"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmokeRunner.run: MethodTooLong \u2014 run runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SmokeRunner.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d53ca73632c58c52725f64900c5cf3e6315165023d164fae4efd7ee695b202"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeshExporter.encodeGLB: MethodTooLong \u2014 encodeGLB runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshExporter.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef11ac1f82fb8cf98458f875714a247150fd661a9d74b63c474f52cada0a011e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:128-195 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:202-287 \u2014 These two members are variants of one another: 23 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4722b464c25272f71610e311fadc5ca991e292bcbf08b5f5fb386a2a604c16d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/PaintEngine.swift:23-76 | Sources/PaintEngine.swift:83-137 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PaintEngine.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"82257cf76120cf9ffcbce862e9193c69a4561bbed5ac76377e215545a4102dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift:144-168 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift:170-193 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fb9f00a9241e82a5bc4b57c70fdc2c7ed7977606e9e78d7c30e108dc062498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Core/MeshDecimator.swift:130-149 | Sources/ShapeEngine.swift:138-165 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c2e7471b482a8d5e2b4abd5438dff6a952ec5e5d816344003abbb671766c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Attention.swift:43-53 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/PBRAttention.swift:67-76 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Attention.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2175950ac505e7ae8ace7ea7a0f3364771bcf4594444a60c0802a53604d184e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Core/MeshDecimator.swift:100-126 | Sources/PaintEngine.swift:189-204 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6664daf7280d777a594b8182993c7afbbfbe04304b12ec387202cc01f2dd7dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/EffortSlider.swift:125-157 | Sources/PaintSettingsPopover.swift:84-112 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea12de6fe824b23d3a7e8558e0bb74de625552e1193273e64f2523bb91a4300a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Packages/Hy3DMLX/Sources/Hy3DMLX/VAE.swift:35-45 | Packages/Hy3DMLX/Sources/Hy3DMLX/VAE.swift:48-58 \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":"Packages/Hy3DMLX/Sources/Hy3DMLX/VAE.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6746e4232781477bf2175a8bf10e2dba25db4e9baba0c92e4a10dfeef4b2658"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/ProjectDetailView.swift:167-184 | Sources/ProjectDetailView.swift:543-564 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectDetailView.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"831058daee16d59fc5944c00bd915da618f3d66213a5ef95096fa18f26ad5157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:70-87 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:89-105 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab2feb45616fa1ffc36fcb1a6265f9b621011f25a7b31af9beb829c73937a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Core/AppReducer.swift:540-562 | Sources/Core/AppReducer.swift:566-592 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808004d7637faa399aab6868143d985ef568ba8f414ccf1837590e0b384e096"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/OnboardingView.swift:61-82 | Sources/OnboardingView.swift:239-265 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OnboardingView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd665ab535243477bc8f8aec85d0c1deb5ccae9b9970e58fddb653322d4a3310"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/ProjectStore.swift:344-357 | Sources/ProjectStore.swift:359-374 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c666b23b71abdaf9cb3d282c2d19a972def6c35a04728ade5682d917dc250cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift:26-33 | Packages/Hy3DMLX/Sources/Hy3DMLX/DiT.swift:28-35 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"714dcb779e8372c6d57fdb851bcbdec3d51d100bc246e677a0a0cf17c017921d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/ProjectDetailView.swift:349-368 | Sources/ProjectDetailView.swift:371-388 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectDetailView.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ec2d42c69c7df403e1182f32c5015be308fb64578e133a2e19dc2256d190ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/EffortSlider.swift:74-90 | Sources/PaintSettingsPopover.swift:34-50 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"455053d336692554ad5704934d1b43dc877d578aae9a2b1efff6f9b59f205e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/ProjectStore.swift:261-275 | Sources/ProjectStore.swift:302-312 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6455413556e4053569295d619a79663e4ba0e682c70e95a331c66182ecb3d0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Attention.swift:30-36 | Packages/Hy3DMLX/Sources/Hy3DMLX/Layers.swift:66-72 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Attention.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"07467bb43754242418f16711e78ddd0e9219e0038c5cc40adc098e3182616c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Layers2D.swift:70-75 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/RealESRGAN.swift:13-17 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Layers2D.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"896fc0f698dfb9d13bcb5755c3c07ca26b45a61f6e036be616e5e16242b6d4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Core/AppReducer.swift:596-610 | Sources/Core/AppReducer.swift:612-629 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eae9a2b7ae4af73a9c6af8bb4d22df8be2786b1fb4a3cfe1cb3c87e9dcf3947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshRender.swift:228-234 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshRender.swift:238-243 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/MeshRender.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab318e582fe1a6ad03072400fee5bca9f70e695e5051505bd6d8a5b01aa81ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/AppRuntime.swift:434-443 | Sources/AppRuntime.swift:451-461 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AppRuntime.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c054a30ba9b3db222bc5fd29f3d6554763ae68cb75e2d3e6a41152a5f742a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/EffortSlider.swift:51-70 | Sources/PaintSettingsPopover.swift:12-31 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1e95fabbafcdcdaa5a3f708c0cba50ebd77805b9b79a14b35b74bbdb1ac65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Layers2D.swift:32-37 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Layers2D.swift:40-44 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Layers2D.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72ba1cc5663b1b1fe2e4e67d5acaf61a3b60438e84ec2672d9e9f0972f8f427"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/EffortSlider.swift:226-232 | Sources/PaintSettingsPopover.swift:185-191 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c7c18b8a1da6b987aa90080987dff508c515d3f28f8288b7038005d950f00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/ProjectStore.swift:51-57 | Sources/ProjectStore.swift:61-69 | Sources/ProjectStore.swift:72-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f483e59b524c015439eb35062b0f08f3d52c57062f8af0a2516233546920743"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Core/MeshExporter.swift:126-132 | Sources/Core/MeshExporter.swift:134-140 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshExporter.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"496ca6ecae475894b8a862a831efc8d8533aafed3b0ac6f3697fe3ec0335c09a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Packages/Hy3DMLX/Sources/Hy3DMLX/Preprocess.swift:39-42 | Packages/Hy3DMLX/Sources/Hy3DMLX/Preprocess.swift:45-48 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/Preprocess.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bba47a243c0048fe0154abb96763ff30d25fc6da8aae62066f74b554a81c79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:66-68 | Packages/Hy3DMLX/Sources/Hy3DMLX/VAE.swift:16-20 \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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e020116d00604bf7a5c44d21153c9637689047bef6df0d39afa0ce40aff05f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift:34-36 | Packages/Hy3DMLX/Sources/Hy3DMLX/VAE.swift:27-29 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff6102abddbdc39a06be0792a4d6f2c767a143f885a32f7eb3d16571642f218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/ProjectStore.swift:27-33 | Sources/ModelStore.swift:15-21 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ProjectStore.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08003d17e8025770e50d65151b1f00d05eec4f32c97189c458d9ad802bf4f1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/EffortSlider.swift:214-217 | Sources/PaintSettingsPopover.swift:165-168 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33e697484c9ec82d885a6c993cf82ab7ac820f1c921dec209c097eadbde3e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/Core/MeshDecimator.swift:151-153 | Sources/PaintEngine.swift:244-246 | Sources/ShapeEngine.swift:167-169 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbb4b8ea13630f46db2413e9c654c0fd05976466cc345d545689a93e09e3102"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/Core/MeshDecimator.swift:154-156 | Sources/PaintEngine.swift:247-249 | Sources/ShapeEngine.swift:170-172 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87d072e338ffaf947a572856dcb6c678e3330154f2c639241347d95c7af7b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/Core/MeshDecimator.swift:157-159 | Sources/PaintEngine.swift:250-252 | Sources/ShapeEngine.swift:173-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e2ef2a7fd49cad773fd0e540d26e5f5858eaea395f6cca4bea70e325f90060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Core/DownloadManager.swift:61-63 | Sources/ModelStore.swift:27-29 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/DownloadManager.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bac558c60d667b3636236d47a679defd96360f6a810bfa1a96d809996a46d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/EffortSlider.swift:198-201 | Sources/PaintSettingsPopover.swift:153-156 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5c8ea9b1ba47be4281ce67cb8cc2972c5f2ebcd568adfd318993e4db253881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/EffortSlider.swift:160-162 | Sources/PaintSettingsPopover.swift:115-117 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef11276b2689566a59d4d9766373fbd31644ec004ff41682c6b2d188a7aa79f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/PaintEngine.swift:44-64 | Sources/PaintEngine.swift:105-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PaintEngine.swift:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PaintEngine.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"589caea89a85ec1c6dc4762b875edac8dcd42562c0d6cd4e0b865215041bf97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/EffortSlider.swift:142-157 | Sources/PaintSettingsPopover.swift:98-112 \u2014 before extracting anything, compare \u0060Sources/EffortSlider.swift\u0060 and \u0060Sources/PaintSettingsPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/EffortSlider.swift:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee5202c678e018a0f64276e8593fcae45f2193ab161ba59d8762a874d08b9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/PaintEngine.swift:26-40 | Sources/PaintEngine.swift:86-101 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PaintEngine.swift:26\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PaintEngine.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2845fdedae1b97bb2328cb01e17abae6dab0041499629d4dc0a21177074fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/EffortSlider.swift:166-181 | Sources/PaintSettingsPopover.swift:121-136 \u2014 before extracting anything, compare \u0060Sources/EffortSlider.swift\u0060 and \u0060Sources/PaintSettingsPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5783a69a2e32be35098de6c005a03e5dc843fd5085747f6f13ddc97b84289ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/EffortSlider.swift:183-194 | Sources/PaintSettingsPopover.swift:138-149 \u2014 before extracting anything, compare \u0060Sources/EffortSlider.swift\u0060 and \u0060Sources/PaintSettingsPopover.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/EffortSlider.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"60307e9e9faaf554948c5b82603284a4d3db13179fec6005826c648792178b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Core/AppReducer.swift:376-385 | Sources/Core/AppReducer.swift:510-519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Core/AppReducer.swift:376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47425b7ed24735ef1b63c408bfa3c19f71184d3d89b9f0ece84e202633c0c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:171-178 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:250-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:171\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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bb24b5706cf857d0b7881b2bbb6866fa5598f570adf45f83312680fa8cc398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/PaintEngine.swift:27-32 | Sources/PaintEngine.swift:88-93 | Sources/ShapeEngine.swift:44-49 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PaintEngine.swift:27\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PaintEngine.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f728a39c90b481d8d43c333d72e8bb13dc4f6ffc5049bc6a7f7759d9f966844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift:154-159 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift:180-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift:154\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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Scheduler.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a7f3f47397fe82068b6563b488a944e52cddbec5a9e6cc668a2c55b48975d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:79-83 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:97-101 \u2014 both copies are in the same file, so extract the block 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b19ec54788b4d4b972b8019a2d32b35ebd0c854f9f295907eea91d82c0f0a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:135-139 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:210-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"82525bbeb323504810c24e5558699071365d0cea1e69e7d364a26de7ff6e57bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/AppRuntime.swift:436-440 | Sources/AppRuntime.swift:453-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/AppRuntime.swift:459\u0060 calls \u0060hasPrefix\u0060 and \u0060Sources/AppRuntime.swift:442\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AppRuntime.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6290ba23cf6022d4f7c36a1b741847b29f58e47a97c8ccf328d340b04fc0f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MeshViewer.swift:146-150 | Sources/MeshViewer.swift:201-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MeshViewer.swift:146\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MeshViewer.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7429f86391d1c1a52097e76be265d5b577d12a95840cecb222d2f6c523826b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/PaintEngine.swift:176-185 | Sources/ShapeEngine.swift:117-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PaintEngine.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b009d395edb2a641bc51f064727da5a06c22df778a22d561c82690b32f633677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:142-151 | Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift:217-226 \u2014 both copies are in the same file, so extract the block 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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7cd2e47ec71c38c140b6ae8952cdcfd19d76a422ac8887e5d9a3e5956e79c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift:29-33 | Packages/Hy3DMLX/Sources/Hy3DMLX/DiT.swift:31-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift:29\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Packages/Hy3DMLX/Sources/Hy3DMLX/DINOv2.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e068404a0cb92b4df0454bf95ed9f96b80b494cf79267510cd48f4db068f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Core/MeshDecimator.swift:138-146 | Sources/ShapeEngine.swift:154-162 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/MeshDecimator.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfd1e4bd8e4d942db266cf0d2acc31f65e909fba14d24e6fef8e2889f0b1dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MeshViewer.swift:175-179 | Sources/MeshViewer.swift:216-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MeshViewer.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c539ca048f8cc031e098921984efa512cdf1ab10067b072c01c8639fcd4f04"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MLXArray (LCOM4 5): MLXArray\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/mlx-swift/Source/MLX/MLXArray.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e45441007ad955e269861dd188f592341e87502599b16c50f8d16344804f270"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Module (LCOM4 4): Module\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":"vendor/mlx-swift/Source/MLXNN/Module.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9b85ad7ac130849881b374c9dd876bcf3a1049c237ea1a780d8c23f29baf25"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ApproximateEqualityTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ab7b68c996cc29eb4fa066d8dc45c84b7536dafe1f0b820ff367ccdcc3435d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testDouble: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ApproximateEqualityTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d0dc2c57bc04a4f7523e57d7f938cb4b8b8555d96462dca341f0e84c3bc61f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat80: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ApproximateEqualityTests.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f0a003b5518ae45952b5d0cea63204d52c5b26ce7418793bb79a1d895ff8ce"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testPolar: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ArithmeticTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08b1dfa1b0768dbb0c977dd9f358e95874817a6e73bdd04cdfadf1d7a1b9e34"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ElementaryFunctionTests.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99a60bdd963e994d3a6bdf69d82cdcb41867d9f98a73a7988f48871cf48a7d0"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testDouble: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ElementaryFunctionTests.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9f9ef8c5361104040ec4d3884a1a48aa3be2fceeaef1b84f36fec47f6ccc91"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat80: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/ElementaryFunctionTests.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a1ff9580d7d0dfdaf6eee44debc6770349722e5f4fa8e0ab8733f7d0b4ce1d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testProperties: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/PropertyTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a56273d4c6c83aaf4aa508702ff3ec36ecba2bf9a3bcbbe7e7045c4d0556542"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testEquatableHashable: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/PropertyTests.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba52346162b85bd353c2ae5240824bc4bf1b791071b79f32ec1fb24bbf3f1ba3"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testCodable: No conventional assertion call was detected, and 10 of 13 tests in \u0060ComplexTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/ComplexTests/PropertyTests.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e921071c0ea9d5d8b921e01059d13985cd63e871b95944956092113acd223629"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ApproximateEqualityTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ef16f41c9646afffaeed437c49283ebfa69c83a3ce2fbeb24ac78131f8c9a0"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testDouble: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ApproximateEqualityTests.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5084f7b7cd4c6bbce9aa4a3831dce717eecbabb48b0cbac0dd99173030327e9e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat80: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ApproximateEqualityTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e6f22dc96f9314788b2c9a4731fc7bc3f8ef613af017b53b9e6bb6622a53e6"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testTwoSum: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/AugmentedArithmeticTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02adb6279f35c9b2161e0eabddd32b14e14da0818b59e6f60249ff92187f351"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat16: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ElementaryFunctionChecks.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b7d43639d756f28f213565914bd0eafc1cf4439e1b5a397e82fc5a67c350e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ElementaryFunctionChecks.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"951d37e6e196aa39404363975b50d1b22d413406269b160ce1a96a9fa246f4bf"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testDouble: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ElementaryFunctionChecks.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4939862377b6432bf3879a89475517d9704906fa1aa766cba5040629f710fee"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat80: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ElementaryFunctionChecks.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ba1c8469782bcff6dca4291027e33b02d8dbcbc294224dc91d32fe7cc3bcde"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat16: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/IntegerExponentTests.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3487e8018231da2eae9368871d06c4810fa9b5693e83dff734f257929dfd0e45"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/IntegerExponentTests.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"971e7ff50c0149b52b57316d16de3728fe45ac1f9e9211d7ddc0fd4e15991ca4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testDouble: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/IntegerExponentTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd12f3b582d0c7f13ffb746183b63635fb15cd06ea945929c16b226020a6f8a3"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testFloat80: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/IntegerExponentTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc844fbaea2b85794f28214950386515cd930b0967291ca677ac8b241d44380"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testStrictSumPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"613901910f791692cac621f39147e611d64dd74a9a715b5f2b6576569423b0f4"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRelaxedSumPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5ae4cbebbdb88e9106e821be91c0187795a02e72e73f60a6ae088533901f71"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testvDSPSumPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c784629fccbeb8984b5b757624226286a763bea57dd3726674ad40af88b6bf"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testStrictDotPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"79dbc616384244350dec2c34559a62c8fbe57f6a961a55dd6fd4ae5d2e3ac13e"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRelaxedDotPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0323193f9ef2030c1e3b5696c378ff3974a418e163f51912991082fdb833c11"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testvDSPDotPerformance: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c561302a1d4afbf80730d95dd772d688251acbb927e90415218161bc655728c8"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testRelaxedArithmetic: No conventional assertion call was detected, and 19 of 19 tests in \u0060RealTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/RelaxedArithmeticTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d49c3320f008650711d496fd7656f4d45929b8268685329397ad63962a0674"}},{"ruleId":"D10","level":"note","message":{"text":"Test project verifies nothing: RealTests: No conventional assertion call was detected in 19 of 19 tests in \u0060RealTests\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vendor/swift-numerics/Tests/RealTests/ApproximateEqualityTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f98cbf13cca00b5c2b131689abddc9570b85b000c2ad0acbdf2224c44603527"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Core/AppReducer.swift: Sources/Core/AppReducer.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 132 in AppReducer.reduce 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 06:51:48 -07:00\u0027 --until=\u00272026-07-12 06:51:48 -07:00\u0027 --full-history --no-merges -- Sources/Core/AppReducer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Core/AppReducer.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69b3680f05584ce4d143f17aadc2b85123e966ac37c6970f07799d78893edd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/AppRuntime.swift: Sources/AppRuntime.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in AppRuntime.perform at line 160. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 06:51:48 -07:00\u0027 --until=\u00272026-07-12 06:51:48 -07:00\u0027 --full-history --no-merges -- Sources/AppRuntime.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AppRuntime.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedebfff870662ec88a6acb255c0ec88411d958a4ab96be6c098779876a3795c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift: Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PaintPipeline.paintRGB at line 128. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 06:51:48 -07:00\u0027 --until=\u00272026-07-12 06:51:48 -07:00\u0027 --full-history --no-merges -- Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.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":"Packages/HunyuanPaintMLX/Sources/HunyuanPaintMLX/Pipeline.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bf153f799b56c751b4c043b2ec501780271d9421c183ddf4637a6c2aaed01f"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (7460 LoC, 548 module-visible types across 30 directories) overshoots its size bounds. 1 of 3 build unit(s) (SwiftPM, XcodeGen) overshoot their size bounds, lowering Project Cohesion to 3.3/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"project.yml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23d198d133233fb121f89f04d444a3b612403e2a350ab393fbd837146fd92d1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"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":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"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":"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":"23242335439540a7f0752c9def5c038b557d1cb0f8e6f7b448b5f69adcab3c1d"}},{"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":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yml"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"}]},{"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-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":8,"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."]}]}