{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"calculate_output_groups._calculate_guid_labels_and_target_ids (cognitive 29): calculate_output_groups._calculate_guid_labels_and_target_ids has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xcodeproj/internal/bazel_integration_files/calculate_output_groups.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5941773e2c66472a4cf1cc19a1b2e40ef43f7b3613ec409efc1e07142e69309c"}},{"ruleId":"D2","level":"warning","message":{"text":"_Syncer.sync_tree (cognitive 20): _Syncer.sync_tree has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"xcodeproj/internal/bazel_integration_files/copy_tool.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c0e5e6ffb17771781cfae2cb0de92101890c35de3b722b7779b3a8d1224520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift:53-129 | tools/generators/target_build_settings/src/Generator/ProcessCxxArgs.swift:53-130 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a8ef8a6669cb145ce8969744dfb4a0918be98fcf03316d6e25a9ebb2365183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): tools/generators/files_and_groups/src/ElementCreator/CreateGroupElement.swift:61-117 | tools/generators/files_and_groups/src/ElementCreator/CreateVersionGroupElement.swift:61-126 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/CreateGroupElement.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff0370fdebf46287196c911a3f12d2f7eea2fb8f3a4c25d00275e8b306a6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 47\u002B corresponding lines): tools/generators/xcschemes/src/Generator/AutogenerationConfig.swift:106-152 | tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift:140-191 | tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift:195-241 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/xcschemes/src/Generator/AutogenerationConfig.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6835c8009c052762b10cdd9db79265b762ad2224b6f87122541efe205c745a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): tools/extension_point_identifiers_parser/extension_point_identifiers_parser.py:15-48 | tools/xccurrentversions_parser/xccurrentversions_parser.py:10-40 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/extension_point_identifiers_parser/extension_point_identifiers_parser.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e49b222d8ffdb452debf5f0902bb7ef5a4db4ccb1a1e00e24b3adba1a63ef16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift:230-260 | tools/generators/lib/PBXProj/src/Identifiers.swift:619-647 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"827acac06931667766a51db07f36117bf3e26872e70b7e64916ed56e248cf88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift:194-226 | tools/generators/files_and_groups/src/ElementCreator/CreateGroupChildElements.swift:159-186 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dd6e530d940e49efe7de4b951a86b45b383fdbd3467830cd49545e349d2d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): tools/generators/files_and_groups/src/ElementCreator/CreateExternalRepositoriesGroup.swift:61-96 | tools/generators/files_and_groups/src/ElementCreator/CreateGroup.swift:61-102 | tools/generators/files_and_groups/src/ElementCreator/CreateInlineBazelGeneratedConfigGroup.swift:60-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/CreateExternalRepositoriesGroup.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d17689cb28c96725485f7d4ee34d14b850c146ed9eb38d595f3fa1817fa69af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): tools/generators/lib/PBXProj/src/ConsumeArgs.swift:45-68 | tools/generators/lib/PBXProj/src/ConsumeArgs.swift:111-136 | tools/generators/lib/PBXProj/src/ConsumeArgs.swift:167-192 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/ConsumeArgs.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f81ddb23d569fb7193e368c09f3000c536968673c7548c084608f843614643"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): tools/generators/files_and_groups/src/ElementCreator/CreateInlineBazelGeneratedConfigGroupElement.swift:51-83 | tools/generators/files_and_groups/src/ElementCreator/CreateInlineBazelGeneratedFilesElement.swift:45-75 | tools/generators/files_and_groups/src/ElementCreator/CreateVariantGroupElement.swift:46-76 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/CreateInlineBazelGeneratedConfigGroupElement.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb162d006b74af68793ad0e0614d63d4461c844f623887b9fb029d9dd13360b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:12-44 | tools/generators/lib/XCScheme/src/CreateTestAction.swift:12-50 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/XCScheme/src/CreateLaunchAction.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedc6c9a62a273e52e24b542a1234c2d576d1d8c8afb091cfbb16deeefcf6863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): tools/generators/lib/PBXProj/src/ConsumeArgs.swift:8-24 | tools/generators/lib/PBXProj/src/ConsumeArgs.swift:89-109 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/ConsumeArgs.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86c23e8e6ba81f5c62d03235dcee0a91c21cb3b649b7ce384394bcab4f22479"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift:259-286 | tools/generators/files_and_groups/src/ElementCreator/CreateGroupChildElements.swift:190-217 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3148913837da13737e55f0d84c21b5819e16c529b9257cfc8e1af715cadcad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): tools/generators/pbxnativetargets/src/Generator/CreateBuildPhases.swift:267-301 | tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift:194-228 | tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift:230-266 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CreateBuildPhases.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"687e0cc2dfd0f6163bf823674cd28c6effdad6718a76c8bde43b2f681a2604ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): tools/generators/pbxtargetdependencies/src/Generator/CreateContainerItemProxyObject.swift:41-63 | tools/generators/pbxtargetdependencies/src/Generator/CreateTargetDependencyObject.swift:46-68 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/CreateContainerItemProxyObject.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fce6e5234729ffc526acfdd1fa7f4734b974ad76edc8cd64f0effc43c76a89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): tools/generators/pbxnativetargets/src/Generator/CreateBuildConfigurationListObject.swift:42-69 | tools/generators/pbxnativetargets/src/Generator/CreateEmbedAppExtensionsBuildPhaseObject.swift:35-61 | tools/generators/pbxnativetargets/src/Generator/CreateSourcesBuildPhaseObject.swift:35-58 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CreateBuildConfigurationListObject.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c91515d4100e0e0b332031cc78c9b7686741e4f4efb74b1a04e3fadce1f292"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift:74-91 | tools/generators/lib/PBXProj/src/Identifiers.swift:578-595 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d605fecad16f0ef1591f1488af1f1187d170b1b0c19c68d7e826884469f2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): tools/generators/lib/PBXProj/src/URL\u002BExtensions.swift:7-25 | tools/generators/pbxproj_prefix/src/Generator/ReadResolvedRepositoriesFile.swift:7-23 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/URL\u002BExtensions.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1449cca50d45d367f720b829f7b9a9e8171e97ccd371efee00ea62be370983ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): tools/generators/pbxnativetargets/src/Generator/WriteBuildFileSubIdentifiers.swift:34-52 | tools/generators/pbxtargetdependencies/src/Generator/WriteConsolidationMap.swift:34-52 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/WriteBuildFileSubIdentifiers.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7909aa6ded2bef1ccbdb5c0a71293d98b2aa2cb141b68854fff161e010fc8869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): tools/generators/files_and_groups/src/ElementCreator/ReadSelectedModelVersionsFile.swift:32-44 | tools/generators/xcschemes/src/Generator/ReadExtensionPointIdentifiersFile.swift:36-52 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/ElementCreator/ReadSelectedModelVersionsFile.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cf04e0e050b3c42215e799fffa36f73eb950a15e4111eee3a35bbde446647f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/generators/swift_debug_settings/src/Generator/Generator.swift:46-59 | tools/generators/target_build_settings/src/Generator/Generator.swift:86-104 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/swift_debug_settings/src/Generator/Generator.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e99bbfb305b8efbc6dcd609edee0a652c1cda7d3bdcade9bb03289ebc51718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): tools/generators/lib/PBXProj/src/Identifiers.swift:131-147 | tools/generators/lib/PBXProj/src/Identifiers.swift:402-415 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/Identifiers.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a84152e314ca934692c782eca0c4c997f8560136b99e4e80122e20bc0d13a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): tools/generators/pbxproj_prefix/src/PBXProjPrefix.swift:21-36 | tools/generators/pbxtargetdependencies/src/PBXTargetDependencies.swift:21-36 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxproj_prefix/src/PBXProjPrefix.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"181cbd56eeb7d64490f49d56c889fa168aad4478371cd1b1eb7b41c96504f891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): tools/generators/pbxtargetdependencies/src/Generator/DisambiguateTargets.swift:453-467 | tools/generators/pbxtargetdependencies/src/Generator/DisambiguateTargets.swift:558-569 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/DisambiguateTargets.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"503910015bc6da27cbea84baafd596851746bff52bd431c45619fd80b86dde9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): tools/generators/lib/PBXProj/src/Identifiers.swift:207-221 | tools/generators/lib/PBXProj/src/Identifiers.swift:312-326 | tools/generators/lib/PBXProj/src/Identifiers.swift:495-509 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/Identifiers.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7334324925d726fb8236337b7e74e72cdf994e9a782742bb01bff090536cf19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift:159-173 | tools/generators/lib/PBXProj/src/Identifiers.swift:609-617 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ad42f0afbd18f6246a8df5879096a5431a9d5e046b67eab22e8229e0e59741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): tools/import_indexstores/SubProcess.swift:3-20 | tools/swiftc_stub/main.swift:133-140 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/import_indexstores/SubProcess.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1024c9efd4d8f47024eb3d63e0ab07adfa064e0d5bae817105ff14ea8d4d02b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): tools/generators/pbxnativetargets/src/Generator/CalculatePartial.swift:26-30 | tools/generators/pbxtargetdependencies/src/Generator/CalculateTargetAttributesPartial.swift:26-35 | tools/generators/pbxtargetdependencies/src/Generator/CalculateTargetDependenciesPartial.swift:27-30 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CalculatePartial.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c66d9f6370a43fb8b7b4d1b3975dea05d8435022be3ef8b5f388b5d3353c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): tools/generators/pbxnativetargets/src/Generator/CalculatePlatformVariants.swift:152-206 | tools/generators/pbxnativetargets/src/Generator/CreateXcodeConfigurations.swift:253-307 \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":"tools/generators/pbxnativetargets/src/Generator/CalculatePlatformVariants.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ba355f5c28ef8bc2d8e13b116ac58f560274dd6325e97919415e4f8cc3b685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201346 lines \u00D7 2): tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift:87-129 | tools/generators/target_build_settings/src/Generator/ProcessCxxArgs.swift:85-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"abce1916af4a22a9e531776318ca3f0d7569bb7e046f7e93eeaca14de6c73aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift:53-83 | tools/generators/target_build_settings/src/Generator/ProcessCxxArgs.swift:53-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift:53\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":"tools/generators/target_build_settings/src/Generator/ProcessCArgs.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb78ff21a24ce8adfe375469123aab7f748753df54d5d95f9c90a46927e3fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift:194-219 | tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift:230-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift:194\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":"tools/generators/pbxnativetargets/src/Generator/CreateTarget.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89d88501c9ca7138550b0c702603ef952cb33fa64b7513f1185902de85f087d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201326 lines \u00D7 2): tools/generators/pbxproj_prefix/src/Generator/BazelDependenciesPartial.swift:90-109 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectPrefixPartial.swift:33-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/pbxproj_prefix/src/Generator/BazelDependenciesPartial.swift:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxproj_prefix/src/Generator/BazelDependenciesPartial.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19cd3af363f44b26169227cd60637300948177fc2de21023f2cd8cffb9acc49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:107-128 | tools/generators/lib/XCScheme/src/CreateTestAction.swift:106-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:107\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":"tools/generators/lib/XCScheme/src/CreateLaunchAction.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dc9520945a2d795ed9cfe0954f5ced831af1b951bfdaabc4f45aa650859501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): tools/generators/lib/PBXProj/src/Identifiers.swift:224-244 | tools/generators/lib/PBXProj/src/Identifiers.swift:329-349 | tools/generators/lib/PBXProj/src/Identifiers.swift:512-530 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/lib/PBXProj/src/Identifiers.swift:224\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":"tools/generators/lib/PBXProj/src/Identifiers.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"294a130213600e43095598534dd6202a994d7b3abe9ea5250019a33ed318c8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): tools/generators/files_and_groups/src/ElementCreator/CreateGroupElement.swift:68-87 | tools/generators/files_and_groups/src/ElementCreator/CreateVersionGroupElement.swift:69-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/files_and_groups/src/ElementCreator/CreateGroupElement.swift:68\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":"tools/generators/files_and_groups/src/ElementCreator/CreateGroupElement.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fae07cf500da9cf2917f7986f9bd654e980026b3b051f7b5f360398152765f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): tools/generators/lib/XCScheme/src/CreateTestAction.swift:141-157 | tools/generators/lib/XCScheme/src/ExecutionAction.swift:54-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/lib/XCScheme/src/CreateTestAction.swift:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/XCScheme/src/CreateTestAction.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efe77b1e52d390f25a3df69f3428b8f16fbaaf9951d9942d1a6eb6bf7c63e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): tools/generators/lib/PBXProj/src/Dictionary\u002BExtensions.swift:15-32 | tools/generators/lib/PBXProj/src/Dictionary\u002BExtensions.swift:36-53 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/src/Dictionary\u002BExtensions.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c6b1a1c53dfe03fed549b39d2b42dd1e867a8e264ee7ab660fb4b4cd69d89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift:259-275 | tools/generators/files_and_groups/src/ElementCreator/CreateGroupChildElements.swift:190-206 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift:259\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":"tools/generators/files_and_groups/src/ElementCreator/CreateGroupChild.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c54d105bd7b866054dd524427030aeace38f66043ba7827b64aa64b0ce0ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): tools/generators/target_build_settings/src/Generator/ProcessSwiftArg.swift:83-98 | tools/generators/target_build_settings/src/Generator/ProcessSwiftArg.swift:111-127 \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 \u0060tools/generators/target_build_settings/src/Generator/ProcessSwiftArg.swift:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/target_build_settings/src/Generator/ProcessSwiftArg.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb974ee9a275948d8c5bfba7cc5fdc758ab87bef2ab7a2c9aa04d7c58461f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): tools/generators/files_and_groups/src/FilesAndGroups.swift:21-36 | tools/generators/pbxnativetargets/src/PBXNativeTargets.swift:21-36 | tools/generators/xcschemes/src/XCSchemes.swift:21-36 \u2014 before extracting anything, compare \u0060tools/generators/files_and_groups/src/FilesAndGroups.swift\u0060 and \u0060tools/generators/pbxnativetargets/src/PBXNativeTargets.swift\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/FilesAndGroups.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"19629a36f443c32124a431bfac7d7407257e698d338435e892cc1b45976fc658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift:76-91 | tools/generators/lib/PBXProj/src/Identifiers.swift:580-595 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift:76\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":"tools/generators/lib/PBXProj/src/ConsolidationMapEntry.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4095eb0def3c26a1f0b97ab875fa77e390e5bf6ef5f0fb75c53b2ab96521c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:42-57 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:130-141 \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 \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:141\u0060 calls \u0060init\u0060 and \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:57\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":"tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"833f88267f96d0365e2220726c34f25a16835dde5e8c9102d41a5a316e9db290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift:93-108 | tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift:147-162 \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 \u0060tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift:93\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":"tools/generators/target_build_settings/src/Generator/ProcessSwiftArgs.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6408a24188638aaaca95057cbe980ceadc887178edb31070fc7bc13a656d32a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:13-27 | tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:68-82 \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 \u0060tools/generators/lib/XCScheme/src/CreateLaunchAction.swift:13\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":"tools/generators/lib/XCScheme/src/CreateLaunchAction.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d5cccd5feea1db2a1e9ffe8ec6b62abeea755c9119210d2749c770592e2998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/generators/target_build_settings/src/Generator/ProcessSwiftClangArg.swift:130-144 | tools/generators/target_build_settings/src/Generator/ProcessSwiftFrontendArg.swift:53-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/target_build_settings/src/Generator/ProcessSwiftClangArg.swift:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060tools/generators/target_build_settings/src/Generator/ProcessSwiftClangArg.swift:145\u0060 calls \u0060appendClangArg\u0060, \u0060escapingForDebugSettings\u0060 and \u0060tools/generators/target_build_settings/src/Generator/ProcessSwiftFrontendArg.swift:68\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":"tools/generators/target_build_settings/src/Generator/ProcessSwiftClangArg.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e0e4af51e2d061ff937adf039325fe68e5a0a273363f1c16903c38a0e4fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): tools/generators/xcschemes/src/Generator/AutogenerationConfig.swift:121-135 | tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift:214-228 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/xcschemes/src/Generator/AutogenerationConfig.swift:121\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":"tools/generators/xcschemes/src/Generator/AutogenerationConfig.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3354fb0104bdff3b2055c184b21ac1fd8f31ef5782e7a93ec5adff5f9c7d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201314 lines \u00D7 4): tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:42-55 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:96-106 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:131-140 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:157-162 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4fa2f8b0169851492c3f7b8fe78ae00b1fbe92087b6bfb5a40516ac46b893b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift:160-172 | tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift:221-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ab9b482b14fda766d3371238291172e5e3999133a9815c3c128005f16ad5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): tools/generators/lib/XCScheme/src/CreateProfileAction.swift:120-130 | tools/generators/lib/XCScheme/src/CreateTestAction.swift:153-163 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/lib/XCScheme/src/CreateProfileAction.swift:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/XCScheme/src/CreateProfileAction.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ba0faf2b14bcd2f7bb484b64b52e7ce1687c74e44917f47e74d55ece10edb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): tools/generators/xcschemes/src/Generator/CreateAutomaticSchemeInfo.swift:78-86 | tools/generators/xcschemes/src/Generator/CreateTargetAutomaticSchemeInfo.swift:93-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/xcschemes/src/Generator/CreateAutomaticSchemeInfo.swift:78\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":"tools/generators/xcschemes/src/Generator/CreateAutomaticSchemeInfo.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1197bc0aba92b14036e8ffc270d312ada7dfe9a34ada9b8ad7d15b271004c993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): tools/generators/xcschemes/src/Generator/ReadTargetArgsAndEnvFile.swift:59-69 | tools/generators/xcschemes/src/Generator/ReadTargetArgsAndEnvFile.swift:90-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060tools/generators/xcschemes/src/Generator/ReadTargetArgsAndEnvFile.swift:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/xcschemes/src/Generator/ReadTargetArgsAndEnvFile.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ce4774020d9838ebda64ea09fa5097701652ae3dcf2c53a6f247c268f1afba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:97-106 | tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:141-145 \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 \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"460e9396cd83b74aae96889c268dfa41299d9875920476363f8ed43165034156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): tools/generators/lib/XCScheme/src/CommandLineArguments.swift:20-31 | tools/generators/lib/XCScheme/src/EnvironmentVariables.swift:16-27 | tools/generators/lib/XCScheme/src/ExecutionAction.swift:20-31 | tools/generators/lib/XCScheme/src/ExecutionAction.swift:35-46 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/XCScheme/src/CommandLineArguments.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a73a7174be37888d2984cca8a33d913c99f5a726b6d3c751832534098bf5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): tools/extension_point_identifiers_parser/extension_point_identifiers_parser.py:15-25 | tools/xccurrentversions_parser/xccurrentversions_parser.py:10-21 \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":"tools/extension_point_identifiers_parser/extension_point_identifiers_parser.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c61341dd6373fb4a720b6d7017e94fdd69c3a266aa9a015e10cb0b1cbbaf364"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 4): String\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":"tools/import_indexstores/ImportIndexstores.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4e80d131b6f02ab0d7150da4b44ef2e03a3adb5c114e05e141de5b24f582f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 4): Array\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":"tools/generators/lib/PBXProj/src/BuildSetting.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d6623f7683f4d2052b9a7f08679f7866aadba00187e500902d2225cc06a1d2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/iOSApp/Test/SwiftUnitTests/SwiftUnitTests.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"298f9b680a465bcc8eea904f85ff96b6f8cbea703214556e57c19af1482e523a"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/iOSApp/Test/UITests/UITests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39c92b31af8a2a7d96adfa3ad065c8bfcec584e86b15e8ec2225eaa3e4de3ba"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunchPerformance: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/iOSApp/Test/UITests/UITests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"08060c958ea9c7060d4dc454d6edec450d50938520df6414e0035c5126f8cf42"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunch: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/iOSApp/Test/UITests/UITestsLaunchTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"737ab371b97719531cd44e9fc88966c40cb2fd450d9ba5c7973032bd93549938"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testMacOSApp: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/macOSApp/Test/UITests/UITests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b50813dea8fa9e4289c09192da92d8fc80fa781de1e49e7ead2da20bebd42f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunchPerformance: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/macOSApp/Test/UITests/UITests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"899b0355127f171c9b853b7a2a1ec7ee507eecab77f0b91a08d5a118e354e772"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunch: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/macOSApp/Test/UITests/UITestsLaunchTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92b6178c6c8374e5c485246d5d2f1921ab0ece321aeede27733823d0ee31244"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/tvOSApp/Test/UITests/UITests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a97bb62cbea401e00c415c7dad46f469595cd41d1c5b957568f49e2e6f7518"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunchPerformance: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/tvOSApp/Test/UITests/UITests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbb4792ecf8414c04af7216fb389214743596706fa96d82226d4804c47e7545"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunch: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/tvOSApp/Test/UITests/UITestsLaunchTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb3f669a9c057dd5be626a0af58def5040255f3e6bfad8d35a04ea611c8d325"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/watchOSApp/Test/UITests/WatchOSAppUITests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7650e2bf707bc58cff132745bd33234d20ac4efabccca75c8672c7d410962445"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunchPerformance: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/watchOSApp/Test/UITests/WatchOSAppUITests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e73c4d8fe3f5951127017627b5c6a4ee718447ba988800c948b91579d9532c"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: testLaunch: No conventional assertion call was detected, and 12 of 12 tests in \u0060UITests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/watchOSApp/Test/UITests/WatchOSAppUITestsLaunchTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b00d84c33ccf8987c3ed6d96974474dde0923867f56bbabbb50f342bcb91396"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/watchOSAppExtension/Test/UnitTests/WatchOSAppExtensionTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bba2208cccb1b902698f15735abab1d6485550e9934c551e34dffdbda6c3a2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/watchOSAppExtension/Test/UnitTests/WatchOSAppExtensionTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7b7a03d019dc39f242e1ff526525879e4eb98e17e583c69fae2c629e76409a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_init_withInvalidValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/lib/PBXProj/test/BazelLabelTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26f0d952d9ea7ea2e01d2f0ffffb4ac38aef4f7e77fae326c559606663f8ebc"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: UITests: No conventional assertion call was detected in 12 of 12 tests in \u0060UITests\u0060 \u2014 the project as a whole, not one method. 4 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/integration/iOSApp/Test/UITests/UITests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7e0bc9a3a623f015b483c42840a367c5507e76e243a3adc0e3c8f830cb7b08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this work with custom toolchains \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/swiftc_stub/main.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"28af62ec8e9e5106d3d9bc73d25766d2a01027c2bd89bbfafe7e3f2dcfbab96d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this work with custom toolchains \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/swiftc_stub/main.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa4e685f9743a13b899115453a4ab109c5d4319c37571e1bdc66c3eb53f0820"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This comment should be updated to not reference opts.bzl \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/params_processors/cc_compiler_params_processor.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b2b9689b8aa482c52404c49dcba96754fdc9e6f61a926b2799935d1e8f6250"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Handle when file doesn\u0027t exist (currently hangs) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/lib/ToolCommon/src/URL\u002BExtensions.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d975905c6bf4d1c6fdb682e7482b9edb96c034e785cca963759c1c425e4c7b1d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove 5.8 when support for Xcode 16.2.x is dropped. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/import_indexstores/ImportIndexstores.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6381953d62f807652cd57fbfcd0e96aa7dbd76353737e75061fc16729ecb8bc1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do this in \u0060index-import\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/import_indexstores/ImportIndexstores.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c4f67e8c8633e914983212bc3daa3c08d450adc9d99182cbb1aaf0d5ca52d9"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use \u0060escapingForDebugSettings\u0060 instead? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/target_build_settings/src/Generator/String\u002BExtensions.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0cec760017be74e0172f3ebf0ec0214903209993b5031a47be1859387b5535"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Eventually we should probably support this, for Universal macOS \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/ConsolidateTargets.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"834c03ebe1d71a7c4467b0bd68dc114104520545c6d216185bdb2de12ee8f94f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle situations where a unique configurations messes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/ConsolidateTargets.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a44e7d68a0103afc6b37899bf714401b0ea6e377774cf83767ebd31db978dae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle same name at different parts in the build graph? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/DisambiguateTargets.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f5309a26c836ea109f27f715a0fb7ce85578ff8a06721d9b5458eb6a0d4a25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Stop relying on the fact that configuration is part of TargetID \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/DisambiguateTargets.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fc3474500bf4b541e767dd259198472c020fa6d219fdf6194cb169952a3e5c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add test \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/IdentifyTargets.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5eb5ccafc5c59ed5615b4feb1178a2a0045ed7114dbfc55c79c092ff962ef0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: test_conditionalFiles \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/test/Generator/CalculateXcodeConfigurationBuildSettingsTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d9815213f47e13b8fa26a1ed52687ccf5da78e57ad43937b0ad523ab394a5b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extract and test? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CalculatePlatformVariants.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b78a73f699105994bc8427bdd2da216b8447ed81f990d79fd02341406dad03"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extract and test? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CreateXcodeConfigurations.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"89eb199aa7f0a81330b8f4e9f9a4647c67877f31d6a334b3dfd4a01f7028be1b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: See if we can not sort, or sort earlier \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CalculateXcodeConfigurationBuildSettings.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"86caed8501c507236c7abf92c9647a75cfdf83b88ad2212d1370fc08ba8b31b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: See if we can not sort, or sort earlier \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CalculateXcodeConfigurationBuildSettings.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b1aa85bdbefd2eb01bc4d0a80e1400ea098d90f7c7badb0101c1ee584a90ea"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Make a version that just takes \u0060watchKitExtensionProductIdentifier\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CreateBuildPhases.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17e010409ec3fd02d73a92bec351c17a708666d91712675a6811dd469fa7f45"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extract this scope into a function -\u003E BuildPhase \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/CreateBuildPhases.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc35b254cd88c9ff214c8912a8aaed501759f66d171d306b1b436633739a7483"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Extract to \u0060Inputs\u0060 type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/TargetArguments.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e31d97d80bc4f41717ed050330683b800d462b4a99e8b0be874a333ae45a3d2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Wrap in better precondition error that mentions url \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxnativetargets/src/Generator/TargetArguments.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fb41c5a6f59a089187fc35007bacc6d89f91444cc165de33dd9e16217da3db"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do this in parallel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/Generator/CalculatePathTree.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2ecd0741bd785d156fc41d7fca65718724eabf837f950c66d1e6f8e47a13e4"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Do these in parallel as tasks \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/src/Generator/Generator.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4feb881e7f100bbe4873994638533224dabbd400b206c30b6a609548509602"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060targetIdToConsolidationMapOutputPath\u0060 spells \u0060Id\u0060 where 12 names in the project spell it \u0060ID\u0060: 12 of 13 names in project repository spell the token \u0060ID\u0060 (12 of 13; unit: names in project repository containing \u0060ID\u0060). Peers: repository.TargetID (tools/generators/lib/PBXProj/src/TargetID.swift:5); Host.pbxProjEscapedID (tools/generators/pbxnativetargets/src/Generator/Target.swift:13); PlatformVariant.bundleID (tools/generators/pbxnativetargets/src/Generator/Target.swift:20); TopLevelTargetAttributes.bundleID (tools/generators/pbxnativetargets/src/Generator/TopLevelTargetAttributes.swift:7); CreateAutomaticSchemeInfos.defaultCallable(targetsByID) (tools/generators/xcschemes/src/Generator/CreateAutomaticSchemeInfos.swift:100). Rename to \u0060targetIDToConsolidationMapOutputPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/src/Generator/InnerIdentifyTargets.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d5037547c446d77d21aa522cc0c7e91c8edbffaae4af3202375f16e951be12"}},{"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":"d0d1ce0a0706d74a359be91003a70c58318b6f519d951c1182e4a1af9e80e819"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ec4d1455cf61acfa62b7aa8e596cfbec3a905cd225bf5db33a3bae350022a8c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4266f166972aa0935423efd9ce20f57002e492dfd17076c12868db50cb77a9a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"843b30a27d39930ff24598fc29e627b4995e6f081fdfa3b99a0a40cb5ae638d4"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"60b63574dc8c13c9d31c768225306814af5be07e8348f95c8f14179c22a31958"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"12fb411838dbd4bfd6339ae7a36e2dfadc418648e4237e2fd4debcac0477f60e"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e9a651fa9a4d68f45620bdcf5a6e4c655bc4707ddbe1f441bc88bf5ccb1e8cdf"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CreateCustomSchemeInfos.swift \u2194 CreateScheme.swift: \u0060tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift\u0060 and \u0060tools/generators/xcschemes/src/Generator/CreateScheme.swift\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060d90788b2\u0060 Support enabling Code Coverage for all targets in scheme test action \u2026; \u00604c0a71bf\u0060 Support StoreKit Configuration setting in xcscheme Run action (#3245); \u00607b985ffd\u0060 Add thread checkers to \u0060xcscheme.diagnostics\u0060 (#3096) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/xcschemes/src/Generator/CreateCustomSchemeInfos.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56f5e96463f0f0f9846473a1cc2547b99f08fd10a59d6704322ed44025aed5c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Environment.swift \u2194 PBXProjectBuildSettings.swift: \u0060tools/generators/pbxproj_prefix/src/Generator/Environment.swift\u0060 and \u0060tools/generators/pbxproj_prefix/src/Generator/PBXProjectBuildSettings.swift\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006049d8311c\u0060 Add \u0060suppress_code_coverage\u0060 flag for builds (#3285); \u0060b579b6c5\u0060 Support index-import on all Xcode 16.x versions (#3162); \u00603f53b4d3\u0060 Add \u0060xcodeproj.import_index_build_indexstores\u0060 (#3034) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxproj_prefix/src/Generator/Environment.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d4af859949c952ca49a55ec4fe5a8c99232c3a11276d8dbe79e403ed035f4"}},{"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":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2af5f1ecd1e2d5baa621f2e8119dc2c0f3cef10884c0ed80199523274ec08d4"},"taxa":[{"id":"CICD-SEC-4","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":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060__init__.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/generators/files_and_groups/README.md links to \u0060src/Generator/Arguments.swift\u0060, but \u0060tools/generators/files_and_groups/src/Generator/Arguments.swift\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/files_and_groups/README.md"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f349ef36a22f413df981591567f773469549e70a7c9b40b063b946a836b70e"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: tools/generators/pbxtargetdependencies/README.md links to \u0060src/Generator/Arguments.swift\u0060, but \u0060tools/generators/pbxtargetdependencies/src/Generator/Arguments.swift\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/generators/pbxtargetdependencies/README.md"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2121313a574cd935c4e07085768f01de3fff0b89f1a01b79383266c2064b37"}},{"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 2 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/check_pr_title.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060main\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/import_indexstores/ImportIndexstores.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc19ce22008984142dfc6ce5821e57a533f3245899f8fd8c68bdb8e95b825cc"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":12,"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."]}]}