{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"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":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"RailwayTracker.updateStationPhaseHistory (cyclomatic 43): RailwayTracker.updateStationPhaseHistory has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb75cd88c38409d5480312e70d9760aeeff376e6ad01bac3962c6d038ae73faa"}},{"ruleId":"D1","level":"warning","message":{"text":"RailwayTracker.process (cyclomatic 23): RailwayTracker.process has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"50719cbf10ec83a50c88f97df40eab19398364215f08d15157103fcdd81226f9"}},{"ruleId":"D1","level":"warning","message":{"text":"RailwayTracker.addLocationToStationLocationHistories (cyclomatic 23): RailwayTracker.addLocationToStationLocationHistories has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c392af71875ea5dc6056bdcb3f4efd8279e8d77960fd318090f67664478ad9ae"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationMapView.body (cyclomatic 23): LocationMapView.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6e9352a2973756e79d89b84ae7413069c706d916c8d3b40d05074235c86de2"}},{"ruleId":"D1","level":"warning","message":{"text":"RailwayTrackerSidebar.body (cyclomatic 21): RailwayTrackerSidebar.body has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"026291245f55d5aa2a4d28995d3fb41a289f585c6e0f235758bdb5090943abb8"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTracker.updateStationPhaseHistory (cognitive 74): RailwayTracker.updateStationPhaseHistory has cognitive complexity 74 (threshold 15). Drivers by points: if/else 20 (34 pts), match/switch 6 (23 pts), boolean chains 12, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5c61454693566b89fa0b62d73b5aece304304d4065fa03f01f0638f2f99cc7"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTracker.process (cognitive 60): RailwayTracker.process has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (41 pts), loops 4 (8 pts), ternaries 2 (8 pts), boolean chains 2, error handling 1 (nesting depth added 36). 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":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"587603a5996e1b8358425e1c2a9935ea790be41ec494910699e8e1bcfdf682af"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTrackerSidebar.body (cognitive 42): RailwayTrackerSidebar.body has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (29 pts), ternaries 4 (9 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"263aad6b6b37beef73ebd7e3ba37d525ac19c0abc30516ed543b202738b204ac"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTracker.addLocationToStationLocationHistories (cognitive 38): RailwayTracker.addLocationToStationLocationHistories has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fab09baee204e30b65e26e6a0d5a91d7ec05b4c22c5379a26b66541adf6fe45"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationMapView.body (cognitive 33): LocationMapView.body has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 5 (10 pts), boolean chains 6 (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":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81a1e7485fbe706c79e307b4936e8ecfc0980ab2aa19ee2f578f820aae90aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTracker.updateFocusStation (cognitive 28): RailwayTracker.updateFocusStation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), match/switch 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba11776897b4f80eaa64f4c4522376cba25932afae17c80b759475e25b5b247"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionDetailStore.togglePlayback (cognitive 22): SessionDetailStore.togglePlayback has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"571e78d4e0a63452147197f0779463bb47172485b8b977fa533dfe01e056d650"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTracker.instantaneousRailwayAscending (cognitive 21): RailwayTracker.instantaneousRailwayAscending has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (7 pts), boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c604d876e6a7fe66f64d16d51091974ecbd55fd5e0c377ae17e32254e4e8ea7c"}},{"ruleId":"D2","level":"warning","message":{"text":"RailwayTrackerSidebar.stationRow (cognitive 16): RailwayTrackerSidebar.stationRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"24365d3e0b17d34f42e14ca4a75425ca1039612d04e2f18b4b27531850d0e35e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RailwayTracker.process: MethodTooLong \u2014 process runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d755db670f0a98fb01ee04367c98d5dcaa82ac773ec979d969e618e605996e61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SessionViewer/SessionDetailView.swift: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80ab3c20c8bdadd824e92e8794ac5657ac582ddfe1738cfeb5140c12c35f258"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SessionViewer/RailwayTracker.swift: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1099489fd97d9adbc272e923197ffcb5c1d3f7dc40ceec5e578112be9dc2658c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RailwayTracker.updateStationPhaseHistory: MethodTooLong \u2014 updateStationPhaseHistory runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7824282085c2c57073771bb81d4de1acef2603d728bada7d5f0420ae484f1875"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): SignificantStartLocation/LocationsListView.swift:157-185 | StartEndLocation/SessionsListView.swift:146-175 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/LocationsListView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"931b03d5244f0e4b10512b201eb2c9bb579a49cce3c5f6e2c2ff058e77572543"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): SessionViewer/TalkView.swift:59-106 | SessionViewer/TalkView.swift:161-218 | SessionViewer/TalkView.swift:276-333 | SessionViewer/TalkView.swift:402-459 | SessionViewer/TalkView.swift:534-591 | SessionViewer/TalkView.swift:623-654 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/TalkView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4405eaffcd1f8fb5c5ea1fb8f6f83da0c7001a4a958198e9ef6f64c20cd1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GroundTruthLogger/Database.swift:8-59 | SignificantChange/Database.swift:8-65 | SignificantStartLocation/Database.swift:8-86 | StartEndLocation/Database.swift:8-119 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/Database.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0956e51845d0729adce2337908bf1b310e202c147f103f75f9263ee28fa66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GroundTruthLogger/Database.swift:61-97 | SignificantChange/Database.swift:67-103 | SignificantStartLocation/Database.swift:88-124 | StartEndLocation/Database.swift:121-157 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/Database.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20d314a9821ce0a29bc87573fd1de1c175a1e15067898bd4890c9ca63233dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GroundTruthLogger/ExportDatabaseView.swift:13-49 | SignificantChange/ExportDatabaseView.swift:13-49 | SignificantStartLocation/ExportDatabaseView.swift:13-49 | StartEndLocation/ExportDatabaseView.swift:13-49 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/ExportDatabaseView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"043883a580c9c5dfa79362da810feb6cf03ddf2c0422af5209519179011ea2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): GroundTruthLogger/ExportDatabaseView.swift:51-66 | SignificantChange/ExportDatabaseView.swift:51-66 | SignificantStartLocation/ExportDatabaseView.swift:51-66 | StartEndLocation/ExportDatabaseView.swift:51-66 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/ExportDatabaseView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d69471e9515f6eeea2c1f60a2ddb320e8de2b3e1b1f4e5feb6fabd014664e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): SessionViewer/TalkView.swift:29-57 | SessionViewer/TalkView.swift:127-159 | SessionViewer/TalkView.swift:236-274 | SessionViewer/TalkView.swift:478-532 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/TalkView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"110508423df7f20aea2350deb57ce14a9d6fd1d20969b8dc6ff057994b33cbbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): MotionActivity/MotionActivity.swift:47-67 | StartEndLocation/MotionActivity.swift:49-71 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MotionActivity/MotionActivity.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"16eaa9d027122e64d56458a52fb52ab42967651d91695358c6cabc44a3f32d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): GroundTruthLogger/RootStore.swift:10-23 | GroundTruthLogger/RootStore.swift:25-38 \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":"GroundTruthLogger/RootStore.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a84c1668af98dad316dd9d789164d3cb1e8067c72d345fb318780c0826d048c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): MotionActivity/MotionActivity.swift:71-82 | StartEndLocation/MotionActivity.swift:75-87 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MotionActivity/MotionActivity.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0da9b35ee2eab22edb75800c957d2318b9058ebb7fbd81a2d68d297e277b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): MotionActivity/MotionActivityFormatters.swift:48-57 | StartEndLocation/Session.swift:39-50 \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":"MotionActivity/MotionActivityFormatters.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"517a200151f764366c76ee129b02a0f0f9ba0cd412e79b301ba3ac490d7dffd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): SignificantStartLocation/LocationsListView.swift:142-151 | StartEndLocation/SessionDetailView.swift:190-199 \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":"SignificantStartLocation/LocationsListView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb575ba6ea66bcd8a5b8a061b6ec9e265261cc85caeed0e74bfc035e0025755"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): StartEndLocation/RootStore.swift:27-42 | SignificantStartLocation/RootStore.swift:21-32 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StartEndLocation/RootStore.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"edde048cd55b294352925188efe88dc03adc64c69d1fcb7099ff0ea7c38dd323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201365 lines \u00D7 2): SignificantStartLocation/Database.swift:50-86 | StartEndLocation/Database.swift:55-119 \u2014 \u0060SignificantStartLocation/Database.swift\u0060 and \u0060StartEndLocation/Database.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 156 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SignificantStartLocation/Database.swift:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060StartEndLocation/Database.swift:54\u0060 calls \u0060execute\u0060, \u0060sessions\u0060 and \u0060SignificantStartLocation/Database.swift:49\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":"SignificantStartLocation/Database.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c6d5cfaff8c7b09665a3132b01fde0499fc9784360b8b2b8a9a9cc7ffca460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 5): SessionViewer/TalkView.swift:74-104 | SessionViewer/TalkView.swift:177-207 | SessionViewer/TalkView.swift:292-322 | SessionViewer/TalkView.swift:418-448 | SessionViewer/TalkView.swift:550-580 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/TalkView.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1788856b896671417c7e0f172eda1722649eb7841b5f4a376ec60ad0fdba86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 4): GroundTruthLogger/ExportDatabaseView.swift:13-49 | SignificantChange/ExportDatabaseView.swift:13-49 | SignificantStartLocation/ExportDatabaseView.swift:13-49 | StartEndLocation/ExportDatabaseView.swift:13-49 \u2014 \u0060GroundTruthLogger/ExportDatabaseView.swift\u0060 and \u0060SignificantChange/ExportDatabaseView.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/ExportDatabaseView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0f7157eb47817c162675e543c7327d29535750e0c230b0c9200f4e544a0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): SignificantChange/Database.swift:78-103 | SignificantStartLocation/Database.swift:99-124 | StartEndLocation/Database.swift:132-157 \u2014 \u0060SignificantChange/Database.swift\u0060 and \u0060SignificantStartLocation/Database.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 91 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SignificantChange/Database.swift:78\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantChange/Database.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8bf6e425d7940550edc415a8757786ec9e1e62bb72feaec846c6b69dc5ad2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): SessionViewer/TalkView.swift:65-88 | SessionViewer/TalkView.swift:168-191 | SessionViewer/TalkView.swift:283-306 | SessionViewer/TalkView.swift:409-432 | SessionViewer/TalkView.swift:541-564 | SessionViewer/TalkView.swift:629-652 \u2014 all 6 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060SessionViewer/TalkView.swift:404\u0060 calls \u0060openAppDatabase\u0060 and \u0060SessionViewer/TalkView.swift:624\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":"SessionViewer/TalkView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09753d0ffa67668aa61852002c151b41df2426368a702453a157c8fd6f5246e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): MotionActivity/HistoricalMotionActivityListView.swift:14-37 | MotionActivity/TimelineMotionActivityListView.swift:16-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MotionActivity/HistoricalMotionActivityListView.swift:14\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":"MotionActivity/HistoricalMotionActivityListView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c25e1f5b10e334ba98896415ba8f5894a75f7444cd3389e9b3935b294a48912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 4): GroundTruthLogger/Database.swift:8-49 | SignificantChange/Database.swift:8-49 | SignificantStartLocation/Database.swift:8-49 | StartEndLocation/Database.swift:8-49 \u2014 \u0060GroundTruthLogger/Database.swift\u0060 and \u0060SignificantStartLocation/Database.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GroundTruthLogger/Database.swift:8\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/Database.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89fe94540a82981b754edf63aff6e8fe2f220eae4c79f1c3983505e08b6f530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): GroundTruthLogger/Database.swift:33-55 | SignificantStartLocation/Database.swift:33-55 \u2014 \u0060GroundTruthLogger/Database.swift\u0060 and \u0060SignificantStartLocation/Database.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GroundTruthLogger/Database.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":"GroundTruthLogger/Database.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"794d4f1473ab9c625a1cfa8a27589cc9086a056fb4913484c51b3123f119c0fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): SignificantStartLocation/Location.swift:17-39 | StartEndLocation/Location.swift:17-39 \u2014 \u0060SignificantStartLocation/Location.swift\u0060 and \u0060StartEndLocation/Location.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 23 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/Location.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fa8eca6c9fccb5c25e40b60d72fe04c78cede8da41da61d00c0c8f9f92a26c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): GroundTruthLogger/Database.swift:61-83 | SignificantChange/Database.swift:67-89 | SignificantStartLocation/Database.swift:88-110 | StartEndLocation/Database.swift:121-143 \u2014 \u0060GroundTruthLogger/Database.swift\u0060 and \u0060SignificantStartLocation/Database.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 88 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060GroundTruthLogger/Database.swift:61\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":"GroundTruthLogger/Database.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"302908da9d436740ffcae3482fad30425f8fb42c6fb3d28e24b2baf77605f302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): SignificantStartLocation/LocationsListView.swift:157-181 | StartEndLocation/SessionsListView.swift:146-170 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SignificantStartLocation/LocationsListView.swift:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060StartEndLocation/SessionsListView.swift:171\u0060 calls \u0060foregroundStyle\u0060 and \u0060SignificantStartLocation/LocationsListView.swift:182\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/LocationsListView.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4306e85b43deacf0eb6801b5e354092a3008eb7fe033a543b1a645ece41c27dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): GroundTruthLogger/ExportDatabaseView.swift:51-66 | SignificantChange/ExportDatabaseView.swift:51-66 | SignificantStartLocation/ExportDatabaseView.swift:51-66 | StartEndLocation/ExportDatabaseView.swift:51-66 \u2014 \u0060GroundTruthLogger/ExportDatabaseView.swift\u0060 and \u0060SignificantChange/ExportDatabaseView.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/ExportDatabaseView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d3f5a82e0279d1e843edf9779f9db528d8fe4be3dbffa613fb6495d5841d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): SessionViewer/ContentView.swift:15-28 | SessionViewer/ContentView.swift:30-43 | SessionViewer/SessionDetailView.swift:206-220 | SessionViewer/SessionsListView.swift:25-38 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SessionViewer/SessionDetailView.swift:206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/ContentView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36910c4cf4ad1b5f61f1471877740a5e7a5529eed18dc785f4f16300ef39ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MotionActivity/HistoricalMotionActivityListView.swift:58-71 | MotionActivity/LiveMotionActivityListView.swift:23-36 \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 \u0060MotionActivity/HistoricalMotionActivityListView.swift:58\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":"MotionActivity/HistoricalMotionActivityListView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd69a8823284cc20efa2546b3e48d28abe1ab2fe602bb8a40da4e2fbc837df9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): SignificantChange/Location.swift:44-56 | SignificantStartLocation/Location.swift:44-56 \u2014 \u0060SignificantChange/Location.swift\u0060 and \u0060SignificantStartLocation/Location.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"SignificantChange/Location.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa70762f900df4096883061242635a169a6d901ea5dc82a1f1d58169755ae23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): SessionViewer/SessionDetailView.swift:785-797 | SessionViewer/SessionDetailView.swift:799-811 \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":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81257f053a74ea0e8e395e37818feb1420a9f9b7e59965cd6c03c173f697130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): SessionViewer/TalkView.swift:243-254 | SessionViewer/TalkView.swift:485-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SessionViewer/TalkView.swift:243\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":"SessionViewer/TalkView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb5368af715348de1c0c4b2f037c590a8e01fcbc914169c0d113d49e8fd859f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): SessionViewer/TalkView.swift:250-259 | SessionViewer/TalkView.swift:366-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060SessionViewer/TalkView.swift:391\u0060 calls \u0060MapCircle\u0060, \u0060foregroundStyle\u0060, \u0060Color\u0060 and \u0060SessionViewer/TalkView.swift:268\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":"SessionViewer/TalkView.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1266c8e8cf9908ed33938d087584d8fb21b5c1aa7155f7b13f487693c7e36d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): SignificantStartLocation/LocationsListView.swift:55-64 | StartEndLocation/SessionsListView.swift:125-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SignificantStartLocation/LocationsListView.swift:55\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/LocationsListView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"594619350dadb58ef27faf82a6719cfd1b87cac725c8afb9bda8854c9180297e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): SessionViewer/TalkView.swift:29-34 | SessionViewer/TalkView.swift:127-132 | SessionViewer/TalkView.swift:236-241 | SessionViewer/TalkView.swift:478-483 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060SessionViewer/TalkView.swift:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060SessionViewer/TalkView.swift:485\u0060 calls \u0060mapOverlayLevel\u0060 and \u0060SessionViewer/TalkView.swift:36\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":"SessionViewer/TalkView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"18caee3b7fe69d0f56a4eb8390c825b016f0e93df7ed50872b65f39273486b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): MotionActivity/MotionActivity.swift:11-22 | StartEndLocation/MotionActivity.swift:12-23 \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":"MotionActivity/MotionActivity.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d024a33ab9ed18a4d86815a81bf5ca6e1bbd52820b764508e6c1d4a1c6493438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): SignificantChange/AppDelegate.swift:7-14 | SignificantStartLocation/AppDelegate.swift:7-14 | StartEndLocation/AppDelegate.swift:7-14 \u2014 \u0060SignificantChange/AppDelegate.swift\u0060 and \u0060SignificantStartLocation/AppDelegate.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 8 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantChange/AppDelegate.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a429fe5d96e4c19e4d126cb376249ed95aef78ac898309bcc717b6a372a2829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): SignificantChange/RootStore.swift:28-37 | SignificantStartLocation/RootStore.swift:34-43 \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":"SignificantChange/RootStore.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c75e33d60cb8d7371d8bdb64ced421170494b8e8fac889987e0532567776e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): SignificantStartLocation/RootStore.swift:45-58 | StartEndLocation/RootStore.swift:68-81 \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":"SignificantStartLocation/RootStore.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"28801abb62b1a6de9dcfd4c2005555ac413810615b3decf9e3ecca11bf096671"}},{"ruleId":"D8","level":"note","message":{"text":"No tests \u2014 template/sample: This repo declares itself a template / kata / sample; tests are deferred to the application built from it, so coverage is not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e5ca94717741d80f619caad143078fae4342c89e6107210846d2f8d1d28343db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: SessionViewer/RailwayTracker.swift: SessionViewer/RailwayTracker.swift changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in RailwayTracker.updateStationPhaseHistory at line 553. 2 of those changes were fix/bug commits, and the other 30 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 2025-07-31..2025-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-07-31 09:43:13 \u002B09:00\u0027 --until=\u00272025-10-29 09:43:13 \u002B09:00\u0027 --full-history --no-merges -- SessionViewer/RailwayTracker.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":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"6816711bd6c47cf09d5ecaeb6953bb90b951bb75312b69a07e0c431e46ec825f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: SessionViewer/SessionDetailView.swift: SessionViewer/SessionDetailView.swift changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in LocationMapView.body at line 323. 2 of those changes were fix/bug commits, and the other 42 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 2025-07-31..2025-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-07-31 09:43:13 \u002B09:00\u0027 --until=\u00272025-10-29 09:43:13 \u002B09:00\u0027 --full-history --no-merges -- SessionViewer/SessionDetailView.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":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"595b5464e04a89b00496f38d3da9e55b2fa41d3d7413f3bcade70e74119bad6c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Set these values and use this to improve calculations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa896d0ce573f5431706c17bb89dbed12ffa45685024600b194eb83efa5b139f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider caching full railways \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7240cc714390bc1907161f3d6694b7b61972cabcc3cf03de4d6f91f16e00650"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider passing full railways list as railwayRailDirections into helper funcs instead of refetching from db \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7817fc2b389396882b23854b063ff0a8c09d734c8ea83f736bd8dea3de63c4e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider breaking up database reads \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0f0e634ae9aca43b43e85e708894670083db9d0cb94f81467db6138499d1f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clear station scores because we may have reversed directions \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ec875f83d0a8981d8c10ac5e5fcd4f0f155886b8fe3e24bda77869adcf5eab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: how to handle locations with no course? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"71380c9e6bf90d6d224ffe397a67b8815d4e6271f626be31498cbc144f820046"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle dot as optional - not required for dist \u003C= visitingDistanceConst case \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d8fa7f09c1704d13ccced2ff0fb974b6ccf4d74b63c18ac5da0f3b0cf08323"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: tweak these constants \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf0c50d84fc1e43b68eb8fc4c5323a95c5db322d80b1d85f35de12bff2273e4"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 25 of 25 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 25 separate risks. Counted over 25 of the 61 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":"SessionViewer/RailwayTracker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"319c224f98ff2ae414b4facb827ba65037ba5f6b0f45a8973ca8ec38a19aa651"}},{"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":"SessionViewer/SessionDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"107804b5f60eb732a2165b8ade1fa0ca78ecefe57ef9156569eb8cabb0c3130b"}},{"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":"SessionViewer/TalkView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddfe7c0aec4f517f3ec4f83d3e71654d36b15b0c809ec06760af809ae808fa3"}},{"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":"StartEndLocation/RootStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8855434b931e921b35808eeaf9e502b5bd505d99b06438b71511a4f37ede2561"}},{"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":"StartEndLocation/SessionDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e3096594ea78fe91d20b08f5114ff4439d7210d641af6f29bc9ea8d9d4e8f3"}},{"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":"MotionActivity/TimelineMotionActivityListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a62feee59db17ea6c8830e8b5eec5e1a3cf17b11a1b140cf30cdd78871d8ba9"}},{"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":"SignificantStartLocation/LocationsListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f5c7cf0c2f7129338e1262404643d7a6c56bf9bdd2362994a08a668472ecf6"}},{"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":"StartEndLocation/SessionsListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2680038d1aef7e8d3a6a4d9d7e83876e632d771e302c2cf3e18b4d4cb0cae712"}},{"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":"SignificantStartLocation/RootStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f59b93124781c6cb38d736809eee226e918049c767e8333418081d583dba777"}},{"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":"SessionViewer/RailwayModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15912884b1e7f194b170a0d7826c726e6e33bc8a29775adc785ed4506c13bcf"}},{"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":"StartEndLocation/Database.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4751c90aa99214d7de51e9940e3ca957abe65116aa64bd43f4d6ff27d23fbfc"}},{"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":"SessionViewer/SessionsListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c601764d57923dd9bbcaefdf520b26657a41526a9859462a8dfa1c74fa6bbb0"}},{"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":"GroundTruthLogger/EventsListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1464360f64e5e7b608462c571412a9f0856437c294c795e3982d28cf389f0889"}},{"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":"SignificantStartLocation/Database.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c38feb72a99f0ae8723a30b6988de086d0cda363f7a09802f2acc4f8526483"}},{"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":"SignificantChange/LocationsListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eef3f84e33fcde319ba69dc048edab75b44ab38ac29f0666d55947fb6c0dbaa"}},{"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":"MotionActivity/RootView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24826238053bd762ccd565486381622ce137b24adfeb4231ac36debc5b5ebf4"}},{"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":"MotionActivity/HistoricalMotionActivityListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80219b80672edb15ceebc05494b32c73a060b327c9f5cbecf0cf8a3288bd281e"}},{"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":"SessionViewer/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba7b03afc6400dc5bd06f34c40b92656b0fb3253660f01769edfcc1944866da"}},{"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":"SignificantChange/Database.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b359a70793bd284e7b6aaf1f382ef8d813e63f1b442688574133b1227583e5e"}},{"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":"GroundTruthLogger/Database.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"475fba3a76438f03a12b14551c19bc90105488b50d72fb586ad912679249671e"}},{"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":"MotionActivity/MotionActivity.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a8fcdc27e5f4d3107799b372ce6f0e4fcd26603f1b1601d849f07aec616aec"}},{"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":"GroundTruthLogger/MillisecondDatePicker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"949fb9e6c6ecea520ee5803d486d9921bb090eb6fc2637da08791a1039daa622"}},{"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":"MotionActivity/RootStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41920caba561065dfc534a4999c9eb7bd2d4003f5e09dad74d85506725a64ba"}},{"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":"SignificantChange/RootStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e954a004f259c7865dfe43a50f52b64581c448e3e4c36930f6df722b8d5577c"}},{"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":"MotionActivity/MotionActivityFormatters.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"164a8aafad61d8d1870c9d1c54f4d46713ed7e3a66b3b1f579b9f2c4fa83de26"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Event: \u0060Event\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"GroundTruthLogger/Event.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"955b57087ab8a2c3b574b041dc1e51853092905770d6bfe046b6e5175c3f8dfd"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Railway: \u0060Railway\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayModels.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a3d503173aab97d5b4cce9e633c2050ec6339d203138a46f1aa63cdca58f92"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Station: \u0060Station\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayModels.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad260724fc4c92bdfe01ddc716a2a481f71a0c62b4db37d42191ec2ccff85fb"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Coordinate: \u0060Coordinate\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayModels.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaef08edacd8101674f0f3f029064490f654d441c554f5bd8faac962b0869be"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Segment: \u0060Segment\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayModels.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4731336ec4245c083d741319243600dbbfd5f6ce265d4bbfc4221e63648766a"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: SegmentCoordinate: \u0060SegmentCoordinate\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SessionViewer/RailwayModels.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e9c70ce29e8e27860300f89aeb0738a696d2f47a346da59b6d55d49923396f"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Location: \u0060Location\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantChange/Location.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0a2aa24e0b29b56f63fa1f99d5808c91fc4628384c3e42abcd750319013573"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Location: \u0060Location\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/Location.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"817fa07e89dbc8cb742a40a6d94c7966cf57028fb5dcfb14e274a1715692d30b"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Session: \u0060Session\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/Session.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebccda636e68bb8b5d203fa061d3f3f89f43b6b1be55c90e7554d9c93d8a22b"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Location: \u0060Location\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StartEndLocation/Location.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0145d0ec6ad07d4f68a6dd8aa8d9960076c51134972d9de27d23f90f0e88f5"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: MotionActivity: \u0060MotionActivity\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StartEndLocation/MotionActivity.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"468488d1b3d61a4d66a926c23352b048b9e88d132b35f1ebc95f1d12c2765b0f"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: Session: \u0060Session\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the StructuredQueries \u0060@Table\u0060/\u0060@Column\u0060 macro markers), with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record). A schema/persistence change ripples straight into the domain type. Keep the ORM/table mapping on a boundary adapter and the domain entity framework-free (or map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StartEndLocation/Session.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a35d82cc0cda83aa3a181c751b0e920910e564b35fb62594b79b6452cadb6e"}},{"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":"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":"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":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"StartEndLocation/RootStore.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"731819ddf8e49efda4ed4d4df0c3119e0599f4e4781f1e2a18438fed48458aed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SignificantStartLocation/RootStore.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf408cb4f5d71074481e98d99259d0ca137281923359182276f8245f11c115f"}}],"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":0,"secretScannerRunsExcluded":0}}}]}