{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"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":"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":"D2","level":"warning","message":{"text":"MessagingRoomDetailView.body (cognitive 17): MessagingRoomDetailView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts) (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":"Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa217d3763dfb6f66b6973700ce8a1aae40d768d4f5e994ac08ebe3b7b1c91c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PrivacyVaultApp/PrivacyVaultApp.swift: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 241 over it, 1.48\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":"Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e3e6974890a84f0276d8f428bab66f6c799952dff1eb968847b1afc4fa756"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MessagingApp/MessagingApp.swift: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 211 over it, 1.42\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":"Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8940c222e22b08a0da67db849a68a2c487d7630f8fe2b9c8b1eb825900a52fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TravelPlannerApp/TravelPlannerApp.swift: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36\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":"Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f4383b7e519ba2d3311d0f4988729d33abdd90cec9b97a0f7b0483e21899e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AIAssistantApp/AIAssistantApp.swift: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 174 over it, 1.35\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":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e3a42c95a5cf59fe9dc5466bce25437c1bc29533cfdc05027745a96e7c450e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CreatorShortVideoApp/CreatorShortVideoApp.swift: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22\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":"Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"489e3fa8ec0a68ab70a12d4ef13a51cac89a9bc09a0685bbff49937cf69509ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MarketplaceApp/MarketplaceApp.swift: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\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":"Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56bca8144d8ea0c955896baa86c4a59701f0d1f7911888f2b2a974b5ecbe704"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FoodDeliveryApp/FoodDeliveryApp.swift: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\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":"Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d88a4cd2cf051048a9fb635acc817f6f3aa6963fa3630b91834819f8f7e0da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TeamCollaborationApp/TeamCollaborationApp.swift: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12\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":"Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4bcb842664719fbe6f28b608596a271d880a5858d6947fe2565f39fc0a3235"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AIAssistantWorkspaceView.body: MethodTooLong \u2014 body runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cb94cd742c24818d100cf90efe02a0b11f43e82c036133e88265d3f6663342"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataManager.seedPreviewState: MethodTooLong \u2014 seedPreviewState runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7ea8d305026485c8956830ffde8504868a8612000cfd2ba6c996e98d1a7caa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FinanceApp/FinanceApp.swift: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\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":"Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0102fee6948bc18ed2a66b1dabd8e98d6caac205c470786d3b00e8575c01893d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737-749 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:351-363 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:241-253 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:298-310 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceHomeView.swift:62-74 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:241-253 | Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift:279-291 | Templates/FitnessApp/Sources/FitnessApp/FitnessDashboardView.swift:62-74 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:306-318 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:642-654 | Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:333-345 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:387-399 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:414-426 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:360-372 | Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift:300-312 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:217-229 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:205-217 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:280-292 | Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:318-330 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"d315fdb01b397cc2694d9f897dde33877c9ead9e0773896c2874ba628165e951"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-215 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190-220 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:150-214 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:189-209 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:177-197 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:229-259 \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":"Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"046ef56df3553854ff310184d58959cb449f1c39d3761058628acffdda4b1a45"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:367-502 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-215 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:284-376 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:192-269 \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":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e294e0f7e97f4928081e6d5a269aabdcd88f555b2672e13c6ad1f378ff361f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift:118-167 | Templates/SocialMediaApp/Sources/SocialMediaApp/FeedViewModel.swift:29-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d667fb6f7085f948f287f80d86b6e83c94564a927e51a950ecd4c63d1e999f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201320 lines \u00D7 2): Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift:7-21 | Templates/FitnessApp/Sources/FitnessApp/FitnessProgressViews.swift:155-174 \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 \u0060Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift:7\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":"Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a8f0652f98df6e0e95668068aef0b8554c19820ce521faefb72ac334de2749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:72-87 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:78-93 \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 \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:72\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b964e8ac226e79a434f36a4373af33bd2d03a8da6b677aa8a972375701c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:53-67 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:249-262 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:84-97 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:53\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":"Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"833ccc9db5b9603379a162630c5bb14b6c8bb535bffc8bc09e1be0479e04d73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:284-298 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:242-256 \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 \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:284\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":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d894fe65a481b87ed34d98e939693a68683b3e5491aaacf95338bc370953bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 19): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737-749 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:351-363 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:241-253 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:298-310 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceHomeView.swift:62-74 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:241-253 | Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift:279-291 | Templates/FitnessApp/Sources/FitnessApp/FitnessDashboardView.swift:62-74 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:306-318 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:642-654 | Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:333-345 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:387-399 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:414-426 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:360-372 | Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift:300-312 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:217-229 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:205-217 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:280-292 | Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:318-330 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 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 19 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u006016\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:256\u0060 calls \u0060available\u0060 and \u0060Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:313\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"650be924d77118836f59d15b215aad646e65deaa4d41da0946b5ad98ab22906b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:353-365 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:399-411 \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 \u0060Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:353\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":"Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8b7275c638e3e8f928070a30f7d85931ea21a1c4426a0a6d34b1642b435798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:209-220 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:198-209 \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 \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:209\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":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa208f6335a8808c9f38adc3441e8b192973218e43d3a522639d1211d4af0e52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658-668 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:430-440 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:587-597 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:257-267 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:335-345 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:389-399 \u2014 there are 6 copies across 4 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:598\u0060 calls \u0060Text\u0060, \u0060font\u0060, \u0060weight\u0060 and \u0060Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:441\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":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1e385e84acb9cccd2737bb7e9e103c5500de2fa407542b724c5824e9e3a6ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72-82 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:73-83 \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 \u0060Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a88ddd8f0d667af53bafc39687fcbe73121584c24e726d08bcda026e2ac77ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:233-243 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:350-360 \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":"Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"338a6440c31182c92c3edab9f256070cf70389ff3c4ea773e65de350ddec27b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:237-247 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:309-319 \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 \u0060Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:237\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:236\u0060 calls \u0060foregroundStyle\u0060 and \u0060Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:308\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":"Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a3ec5400a6ab65073b803046fcdb3a2442c96c4f0cbc609573e41b099a6cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:581-591 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:620-630 \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 \u0060Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:581\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":"Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"c836b5f0fc5204df561469a52dbb6688e014f33f58095f3743d0b91b04a1bde3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:235-244 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:274-283 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:352-361 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:235\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":"Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad112262daeb143294999e3c79fd90b011cdc53ef411334adac38395b3dd6a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-169 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:150-159 \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 \u0060Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160\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":"Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"927750f185d3a16a7c934c5aef03104b2e56e80f887c397ac22c10b39b9943ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:413-421 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:492-500 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:334-342 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:342-350 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:426-434 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:488-496 \u2014 there are 6 copies across 5 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:413\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00606\u0060 in one and \u00608\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:422\u0060 calls \u0060Text\u0060, \u0060font\u0060, \u0060foregroundStyle\u0060 and \u0060Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:343\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":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6dac1665a7bdf0fbc1e498b5a68938a9380e20adb5d47daefc0db311e5e775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:421-429 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:265-273 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:231-239 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:348-356 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:388-396 \u2014 there are 5 copies across 4 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:421\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":"Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8291e54a1005f6d7b1c10b708e536b3077dd570ff408a07d8b984e41eb11a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:394-402 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:492-500 \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 \u0060Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:394\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:392\u0060 calls \u0060font\u0060, \u0060foregroundStyle\u0060 and \u0060Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:491\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"d636dcef67b52bfd1db877ba30f67fea335e6d6cfd7121ec87251c3e034c077c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658-665 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:430-437 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:587-594 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:257-264 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:389-396 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:422-429 \u2014 there are 6 copies across 4 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00606\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:428\u0060 calls \u0060Section\u0060 and \u0060Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:387\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f18abe551e4ccfea264663e797ad4adb5a396b166f0760bc99924f2463db83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190-197 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:189-195 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:177-183 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:229-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006020\u0060 in one and \u006012\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0428203f643d67709e3ba11290ab74d58abf133e1464b8ed18a184ea104930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207-214 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:272-279 \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 \u0060Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207\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":"Templates/EducationApp/Sources/EducationApp/EducationApp.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac38acb93688a77a7c9229d9954cef63c0d55c56d4e88550943d4f3d7b68570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268-274 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:332-338 \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 \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268\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":"Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45b4dd44472ddc4e5d2b0f8f43cc77f734479f0a1048413af10077ea1018af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:593-599 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:307-313 \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 \u0060Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:593\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":"Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"36df7359720322f5d620d5ec40b5759b22f624b67889739c30e7d49784a97e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:164-169 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:191-197 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:154-159 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:190-195 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:178-183 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:230-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:163\u0060 calls \u0060VStack\u0060 and \u0060Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190\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":"Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4ceb013b79f80faf0cd408f68da918f72516482975e52721c27578edbb3129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:392-400 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:181-185 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:304-312 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:213-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:392\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45ab8b3bb38def5fc0b8a42f1a0b444822b71f769e00a5cbaca64176572c1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:475-482 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:827-834 \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":"Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4977f8834daf1308952753a9593b5c1aa37263e2e3a56550e2e64d2fff4359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:10-15 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:150-155 | Templates/FitnessApp/Sources/FitnessApp/FitnessModels.swift:124-129 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:19\u0060 calls \u0060init\u0060 and \u0060Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:159\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":"Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6896a41d431e937695da3da6865c05bf879b0c62ba5878939dc247b1d6b3101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift:127-131 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:142-146 \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":"Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd7714ddb55981c7c9ff5f0edbab8308dcaa1af6ba20363fca788cb2aaf3051"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: TemplateScaffold: TemplateScaffold: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f213abb2a70add627b33248c0e4b51a7fe306f8aca7f4cddcc3a90c0a23d3f5"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CleanArchitectureAppDomain: CleanArchitectureAppDomain: abstractness 0.11, instability 0.00, distance 0.89 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7c3ba7808c67926bc886f54579401f8e4573fa178235f40cd710aa1d5e84e7a1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TravelPlannerOperationsStore (LCOM4 5): TravelPlannerOperationsStore\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b64afa2b86c081aad74f027eb9e7f112de9bdafe9d18a7889a691f1c0192047"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CommerceStore (LCOM4 4): CommerceStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d40b962a31b1a7e42e0ad476df3028c8a9e59a9092379849d9b04c075f5f37"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EducationLearningStore (LCOM4 4): EducationLearningStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Templates/EducationApp/Sources/EducationApp/EducationApp.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca0825344f12b0cc4481c5c48c8ba9451692012bebf18f7db5afa40d35c94f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is ProfileDraft.isValidEmail at line 78), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(clean-architecture): report the name scalar limit as its own issue\u201D; \u201Cfix(clean-architecture): reject name characters that draw nothing\u201D; \u201Cfix(clean-architecture): count the Braille blank as invisible in names\u201D; \u201Cfix(clean-architecture): bound profile names and require visible text\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-22 04:50:16 \u002B03:00\u0027 --until=\u00272026-10-20 04:50:16 \u002B03:00\u0027 --full-history --no-merges -- Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.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":"Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1eb477ae45f27dda199fe229cb2d0f5408bfbd6f79a4e6021ecb21d5a01917a"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 7457 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"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":4,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}