{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"GameInputView.body (cyclomatic 39): GameInputView.body has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ddbc72e2df4e1cc6a9e0784742292a6a1dcc7aea475c4f2450342de67ab311"}},{"ruleId":"D1","level":"warning","message":{"text":"GameListView.body (cyclomatic 38): GameListView.body has cyclomatic complexity 38 (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":"Phoenix/Phoenix/Views/GameListView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f4220e980aa2efc9cff1aa5de449223092b19898ed01ce575485e50705817e"}},{"ruleId":"D1","level":"warning","message":{"text":"GameDetailView.body (cyclomatic 25): GameDetailView.body has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e35a215a9b66967c970080c6103e9db854beca11d5bdc26241fc04a8513780"}},{"ruleId":"D1","level":"warning","message":{"text":"GameListItem.body (cyclomatic 20): GameListItem.body has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListItem.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e85e65720511283f8cf069c145e71374bd49e1fa8e4ecc0e6286f67705754df"}},{"ruleId":"D1","level":"warning","message":{"text":"GameViewModel.loadGames (cyclomatic 17): GameViewModel.loadGames has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (scanGames). 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":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a49d9ca4a1aa673eca0a03808f5ecf5a59cbee2030e317df50ae11c8d1056c"}},{"ruleId":"D2","level":"warning","message":{"text":"GameInputView.body (cognitive 69): GameInputView.body has cognitive complexity 69 (threshold 15). Drivers by points: if/else 32 (53 pts), boolean chains 11, match/switch 1 (2 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bf54b7e67bde80c3589accabd55c6b2ba2ec1301c46cabb63504a94b284989"}},{"ruleId":"D2","level":"warning","message":{"text":"GameDetailView.body (cognitive 55): GameDetailView.body has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 8 (20 pts), loops 2 (4 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf0b20b17316d090bcd65ca6d3dbf46318b8eaee75876b07be6c213502bfd17"}},{"ruleId":"D2","level":"warning","message":{"text":"GameListView.body (cognitive 53): GameListView.body has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 8 (21 pts), boolean chains 18, if/else 8 (13 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f7f0bab3fb4d0248c81b08653f8c97ce8b60a6f9c736268aac5c058df5cce6"}},{"ruleId":"D2","level":"warning","message":{"text":"GameListItem.body (cognitive 49): GameListItem.body has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (32 pts), ternaries 5 (10 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListItem.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"733206fb8e9cb481e60d27bb588d16424baf494e3b37b00b9a6f04d4e0680207"}},{"ruleId":"D2","level":"warning","message":{"text":"PlatformSettingsDetail.body (cognitive 38): PlatformSettingsDetail.body has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (32 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Settings/PlatformSettingsView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1075d647ff488fa8526a2780b65fb17eaa568debd247e8cded9d320fe1a5963c"}},{"ruleId":"D2","level":"warning","message":{"text":"GameViewModel.saveGamesFromScan (cognitive 25): GameViewModel.saveGamesFromScan has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 4, loops 3 (nesting depth added 10). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 2 function items inside it that branch (saveNonSteamGames, saveSteamGames). 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":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb9613f0120fd25bd3c2ed07948520b8fd8137cad6cfbd8c5f85e8a0d5e7987"}},{"ruleId":"D2","level":"warning","message":{"text":"GameViewModel.loadGames::scanGames (cognitive 24): GameViewModel.loadGames::scanGames has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (6 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b53ef9c49dd5518a808456e05185f75f297659387c390645d125c1130aeef55"}},{"ruleId":"D2","level":"warning","message":{"text":"GameViewModel.compareGamePaths (cognitive 24): GameViewModel.compareGamePaths has cognitive complexity 24 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (7 pts), error handling 1 (4 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"529d70d9cc94ebac188aa6e527239158c92ca042a2a198f1b3e4a95719e51f30"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonUtils.swift.loadGamesFromJSON (cognitive 24): JsonUtils.swift.loadGamesFromJSON has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (6 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/JsonUtils.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"730e109c371c8732a1202b93469ceafe6746140845e76caa0206c468fdeb4654"}},{"ruleId":"D2","level":"warning","message":{"text":"GameDetailView.checkHeader (cognitive 19): GameDetailView.checkHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf818b52506a0fff8986a73b56adfa71f98430dbf6a6a510e899158b8bf0a192"}},{"ruleId":"D2","level":"warning","message":{"text":"GameViewModel.saveSupabaseGame (cognitive 17): GameViewModel.saveSupabaseGame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4321c0679ae0c6dde33c69ae20094d518e8e5211300bb6788d59a72074afac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GameInputView.body: MethodTooLong \u2014 body runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\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":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f631b710afb24a5511a507e502f1b5d64742dffc1fdae806b5bec72c47941f51"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GameDetailView.body: MethodTooLong \u2014 body runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0068633baaf394582f157e49f1d59573dfd2030c51bbc887253216b960d71b75"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlatformSettingsDetail.body: MethodTooLong \u2014 body runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Settings/PlatformSettingsView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e190d4a4f437263d3ce2d4764f33a4902e01654bb01298beb11a0c161060d280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Phoenix/Phoenix/Views/Components/Buttons/LargeToggleButton.swift:19-54 | Phoenix/Phoenix/Views/Components/Buttons/SmallToggleButton.swift:18-47 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Buttons/LargeToggleButton.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f854630ea566475c3bce2c829d21b2c97d64bdecb57f22d50eaacf39e4c74b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Phoenix/Phoenix/Helpers/CmdUtils.swift:18-36 | Phoenix/Phoenix/Helpers/CmdUtils.swift:38-56 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/CmdUtils.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed17002b953285cd19c77d613cf1dbc8e01f365e193d84321d20ed56759fdff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift:71-87 | Phoenix/Phoenix/Views/Components/Buttons/ImportButton.swift:82-97 | Phoenix/Phoenix/Views/Settings/PlatformSettingsView.swift:262-277 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f5b302f3d0404c39264c5d0ec0b269aea32190760e991b5d70ca3fd80dd63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:128-147 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:226-244 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4180f8215c4e69b811ecb35e09d206d74c411695e59485381ec3c84cd02a2ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Phoenix/Phoenix/Helpers/JsonUtils.swift:281-291 | Phoenix/Phoenix/Helpers/JsonUtils.swift:293-302 \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":"Phoenix/Phoenix/Helpers/JsonUtils.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c26e45acfd6a574c496ee9691830e3ab21c4dc7bdea4c2c4e40254d0f190ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 18\u002B corresponding lines): Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:16-33 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:35-52 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:54-71 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:73-90 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:109-126 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6038905a464e5c426aa610a940cc440e15129d13a914f16e3d250a7c596bf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Phoenix/Phoenix/ViewModels/GameViewModel.swift:36-48 | Phoenix/Phoenix/ViewModels/GameViewModel.swift:50-60 \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":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec4f3b430343424dc8dce67f72a00bb4af2116e745d9db3cf136e79e3b093a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Phoenix/Phoenix/Views/Components/Menus/EnumContextButtonMenu.swift:23-40 | Phoenix/Phoenix/Views/Components/Menus/PlatformContextButtonMenu.swift:16-33 \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":"Phoenix/Phoenix/Views/Components/Menus/EnumContextButtonMenu.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d602fc3c4f1dd2588fd3b28069ee5b2c54d6a82fce6a10606abaf2e02674fbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Phoenix/Phoenix/Views/GameDetailView.swift:301-309 | Phoenix/Phoenix/Views/GameDetailView.swift:340-349 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"516dcdc0bba322a606afab9c5204ecda8b0ca892d82d8e79f7d1ddd1bf13556d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Phoenix/Phoenix/Views/GameListItem.swift:142-150 | Phoenix/Phoenix/Views/GameListItem.swift:152-160 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListItem.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc44bb9144fcb02d9de183751e3be90ee938e9a2ab75409b885c0450ad77ca7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Phoenix/Phoenix/Views/Components/Buttons/LargeToggleButton.swift:33-52 | Phoenix/Phoenix/Views/Components/Buttons/SmallToggleButton.swift:26-45 \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 \u0060Phoenix/Phoenix/Views/Components/Buttons/LargeToggleButton.swift:33\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":"Phoenix/Phoenix/Views/Components/Buttons/LargeToggleButton.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e86c716edf28067785828c28cdb0bd2a54eb01b4a9fa0360f56297ce330435f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Phoenix/Phoenix/Helpers/JsonUtils.swift:182-197 | Phoenix/Phoenix/Helpers/JsonUtils.swift:200-215 | Phoenix/Phoenix/Helpers/JsonUtils.swift:218-233 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/JsonUtils.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8af08d7ea1b83cbda747820747cdcb52b33638e5a97daf4046704d57ffdc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Phoenix/Phoenix/Views/GameDetailView.swift:222-234 | Phoenix/Phoenix/Views/GameDetailView.swift:239-251 \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 \u0060Phoenix/Phoenix/Views/GameDetailView.swift:222\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":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9780dfb1cac8f68e852ffec71fd554557990e1a4a8e318798b324753ededc14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:94-105 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:112-123 \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":"Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eae2fd4a9f67f64c0b54c51994bf4b10f90a73a719d2861e3242c62552e3ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift:71-79 | Phoenix/Phoenix/Views/Components/Buttons/ImportButton.swift:82-90 | Phoenix/Phoenix/Views/Settings/PlatformSettingsView.swift:262-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Phoenix/Phoenix/Views/Components/Buttons/ImportButton.swift:79\u0060 calls \u0060padding\u0060 and \u0060Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift:68\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b301844b5f6fab412d418b11d21681da67c83bf3037cec4b49b65dfecc6fb0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Phoenix/Phoenix/App/ContentView.swift:52-61 | Phoenix/Phoenix/App/ContentView.swift:71-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Phoenix/Phoenix/App/ContentView.swift:62\u0060 calls \u0060animation\u0060 and \u0060Phoenix/Phoenix/App/ContentView.swift:81\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":"Phoenix/Phoenix/App/ContentView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a598f8295cc8662890288ddc708aa58c777607f72552e2b9d4d514fafc3d0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Phoenix/Phoenix/Views/GameInputView.swift:108-116 | Phoenix/Phoenix/Views/GameInputView.swift:156-164 \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 \u0060Phoenix/Phoenix/Views/GameInputView.swift:108\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":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f75f8a7e9be5f999433656f634411386b705484e307a83cfc8dbadd35c0541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Phoenix/Phoenix/Views/GameListView.swift:58-65 | Phoenix/Phoenix/Views/GameListView.swift:82-89 \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 \u0060Phoenix/Phoenix/Views/GameListView.swift:58\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060header\u0060 to \u0060Text(\u0022\\(platform.name) \\(showSortByNumber ? \u0022(\\(gamesForPlatform.count))\u0022 : \u0022\u0022)\u0022)\u0060 in one and \u0060Text(LocalizedStringKey(\u0022category_Name\u0022))\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4deab6d69fb1a942e29a6bc19359aac3e05763021362bd9989e1ddeaf7526993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:56-60 | Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:75-79 \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 \u0060Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift:56\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":"Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd6a92b79c0d4a27a6d8ae82dff51445a6f36b8399f15b50f558601528d4ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Phoenix/Phoenix/Views/GameInputView.swift:86-90 | Phoenix/Phoenix/Views/GameInputView.swift:93-97 \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 \u0060Phoenix/Phoenix/Views/GameInputView.swift:86\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":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2a5010a4ac928efa71206578d56fdf62088052a53dd730d668740f25d5a4a1"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/PhoenixTests/PhoenixTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8556ae11c5c376ffb935be4eb2b7154a6c0e33a98de11b2ce62b9ebc39105a53"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/PhoenixTests/PhoenixTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02409a15ad2031a890c6608d0c08eb4072de1f5eb5c7f0518da9ece1673c248"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/PhoenixUITests/PhoenixUITests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6554c3fd5b0d2a523401e45dfc33326899e71eb71981f468c62d575795b0a05"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/PhoenixUITests/PhoenixUITestsLaunchTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb06022fe52af1d92e4eca961f325bbb0975cc4fac374d61ae42e2b08ecbd029"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: PhoenixTests: No conventional assertion call was detected in 2 of 2 tests in \u0060PhoenixTests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/PhoenixTests/PhoenixTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0403c0971dbd30f6ae2ad75701239fa3ef333b109e3bed6309511c59091fc69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Phoenix/Phoenix/Views/GameInputView.swift: Phoenix/Phoenix/Views/GameInputView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in GameInputView.body at line 39. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2024-07-07..2024-10-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272024-07-07 00:17:38 -07:00\u0027 --until=\u00272024-10-05 00:17:38 -07:00\u0027 --full-history --no-merges -- Phoenix/Phoenix/Views/GameInputView.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":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8933cce6e860919bace1a124b7f02268f104536c338ae6bb6f46cd50b0d7ad3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Phoenix/Phoenix/Views/GameDetailView.swift: Phoenix/Phoenix/Views/GameDetailView.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in GameDetailView.body at line 58. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2024-07-07..2024-10-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272024-07-07 00:17:38 -07:00\u0027 --until=\u00272024-10-05 00:17:38 -07:00\u0027 --full-history --no-merges -- Phoenix/Phoenix/Views/GameDetailView.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":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d07d7f59bd29a970994fe256561ae00d1c49ea94aeb1741ebb038630fb7de9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Phoenix/Phoenix/Views/GameListItem.swift: Phoenix/Phoenix/Views/GameListItem.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GameListItem.body at line 39. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2024-07-07..2024-10-05, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272024-07-07 00:17:38 -07:00\u0027 --until=\u00272024-10-05 00:17:38 -07:00\u0027 --full-history --no-merges -- Phoenix/Phoenix/Views/GameListItem.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":"Phoenix/Phoenix/Views/GameListItem.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"da03b5f16d07afaca8f363462550c386be7f289056a895c0023fe9f179a4aa99"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack to work-around the smart quote issue \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/TextBoxes/RoundTextEditor.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca971c72a79527d8d79839c6119df9127282fc744faf017990fc464cdb620b2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Phoenix/Phoenix.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78c1f2c30778aac92576d4dc28e69c2c084ab56bfc167870666d4271e61168c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25c1b0aff1076b473accd28193df7466e180e1f46d1e28e72fa31a40763185f8"},"properties":{"commitSha":"49f76c0ca939afd1becc3209d3684e35e3178f2d"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e1b674b6c9ff60dbad60c8ee711b2a8971dc73ebfecf83f49000171a237f1e8"},"properties":{"commitSha":"de3dddc6bad8bcc74d29c4b9aaa71f69ea3fe5d3"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"392d13826e36acdb45cc20ff8c01f95da12191d76e23092a03c9d2979dbe22f0"},"properties":{"commitSha":"b604fcc382d17d3ccc5129c05a0f174feb47b3b5"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27ccd819dd4bc6c2c1b9ca0700f2a665695f5311806d8dc68beb77a7d1640a78"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.5.2","advisory":"[GHSA redacted]","aliases":["BIT-java-2025-0509","BIT-java-min-2025-0509","BIT-jre-2025-0509","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.6.4","reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 20 of 20 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 20 separate risks. Counted over 20 of the 50 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44a20fa628949ea5c1bcc65ed5c8878b6e2a5d5d5cd8e5bed8b493359a4c24"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameInputView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22784db897bf60f937266af9b5964b34ff889fd776b474ce86ba95ff9b9c3ef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Settings/PlatformSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af37f520cf0be30185f5015f14182cb42cac65fd9dd95a416bee4467c3a257e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/JsonUtils.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdf5a91b0072737f2c0fda64e4d1e88ccf53fbafafc44ce952099a993d9f5cb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/GameViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f2557cd4782a83bb8d96f5de6c0ef6e6669ef1e842d7c1f72e39c956a0c40b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/ViewModels/SupabaseViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c118bce80a95fb0c7409f45e267f948125bfc40abcc07aeeb2c01977a219e013"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListItem.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4df917ca525c3d4af845cedcd5ce3bac02d1e26d5000355b3c75e07b6d86d3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/PhoenixApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d97c11b0b575a6ebfa4a168c0fef42ea04b48eec589de8089e706fc67838079"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f6a7cc1c5e459ff7e0b38d2aa8b867a7fd38126886737bd667172d03098548"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/ImageUtils.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ae43d28349830b211268d591273bd1b7511c716d7e0d7b159feb6f8c2a1783"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/App/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45056085363cae4299fef8b93a18d41e81271d4d73def515bff097f63fe0418a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Services/WhatsNewConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac88c66aea50e397cf7eb3e6f3b5ef64c99843aa45c9a044b067bd30dcfac0ae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Misc/IconSearch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fdfb4994dce43c55059c94b8a9e560d9543440cf39a9c30aadc715cebfd375"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Buttons/GameFilePickerButton.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fe03eb5e437a1ca08bae364f43cfcc516ee7b0a0324f08c03213f2e73db97d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/Buttons/ImportButton.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fcb51c476d6b92006c65b71f7684d0ec771f52848f4c5881a38514313fed0a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Components/TextBoxes/RoundTextEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e446c2de4d224eed5fd2c5a532c5e06373340850b2d76a515c924a9b2613b5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Settings/AppearanceSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"681d932c50bdfd7a6c2c56fa2bc13360947681bf3782b098b50a758ab5fc7fa6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Helpers/LogUtils.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5626995d6f5a61799fce537a1210a3747314444885a4bb21621c33080f9f411c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/Settings/HiddenGamesSettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7952d33a71d38830b2b35332a929328cf196eea54029b260f90b618c6f0e14dc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/ChooseGameView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a99929decff393c7c9db06ec69b14f481f5ac1de2c9ad6f0f38d3628dd3172d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: GameListView.swift \u2194 AppearanceSettingsView.swift: \u0060Phoenix/Phoenix/Views/GameListView.swift\u0060 and \u0060Phoenix/Phoenix/Views/Settings/AppearanceSettingsView.swift\u0060 change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060710c4b4c\u0060 add optional button to add game in sidebar; \u00604a3215b1\u0060 finalize ids; \u0060976018d0\u0060 sf symbol animations!!! \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Phoenix/Phoenix/Views/GameListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5bb6cd0da43f0ca1c9ccdff55af32e3f4358c8c228832eb1d21ee9499a86d0"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":5,"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."]}]}