{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"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":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"ParsedFormat.init (cognitive 23): ParsedFormat.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/Internals/ParsedFormat.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc6b471563ff1e192b7a8ff52a5be929fb82e9fc1f99d51fce4f12f939999c"}},{"ruleId":"D2","level":"warning","message":{"text":"Range.determineRelationship (cognitive 23): Range.determineRelationship has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (23 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/10-Relations/Relations\u002BRanges.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2673ff340313ca732b4b500faa42447eff6d7d1c5b08b15e6d6d7959d07ad20c"}},{"ruleId":"D2","level":"warning","message":{"text":"Fixed.roundToMultiple (cognitive 18): Fixed.roundToMultiple has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf0e32fa4aae8acd26a3f090dc6c213aee75e2f9716d920aebcd1a2574229c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Fixed: TooManyMethods \u2014 183 methods. The bar is 30 methods; this is 153 over it, 6.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd27c92d1d311f935fa861de1ac7b0f30f72840cba1318615891c99507d2a9cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Time/8-Formatting/FormatTemplates.swift:180-189 | Sources/Time/8-Formatting/FormatTemplates.swift:195-204 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/FormatTemplates.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f0b64b2f556d2c249b29f8da83322f44890c3593535f4ddf9e1b46ce210030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:165-172 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:116-122 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:144-151 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:165\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d12f9b8026414cfe4968299bdfb68e63ea89d48e3ed5d4b9e0968dcde559d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:135-142 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:90-96 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:135\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edfd383ed970618bc521d34c1d2364d4b1c00c88d19c42687af6115b36aadb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:107-113 | Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:134-140 | Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:163-169 \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 \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a470c6796ad1778f569058c6af335e8549221409d50110c37d389d9aaa8836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Time/8-Formatting/PartialFormatting-Others.swift:89-95 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:143-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-Others.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cfb6e095e50b2129831c248f53edee60041e8e24379c16212ebf55108251a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:166-172 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:64-69 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:116-122 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:145-151 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:166\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"99af919bd960a75bc145e31c734b05d9602d6149ea56178261425fc638b40dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:136-142 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:40-45 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:90-96 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:136\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc793fb856d22f9dcc616406ae94418a7a12a8edb445e7074226f54ad27e8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:108-114 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:16-21 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:108\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"302cd8f346cd54e3b6df50b87599eb62de0b9b9be86c732dcd19fbe89c1095c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:137-142 | Sources/Time/8-Formatting/PartialFormatting-4Units.swift:59-63 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:40-45 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:91-96 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:137\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cb26f5f04d7553713a2661528fd38262a77332537d54d290ac224c6f5e6cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:109-114 | Sources/Time/8-Formatting/PartialFormatting-4Units.swift:37-41 | Sources/Time/8-Formatting/PartialFormatting-Others.swift:16-21 \u2014 before extracting anything, compare \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift\u0060 and \u0060Sources/Time/8-Formatting/PartialFormatting-Others.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:109\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c42a5fef051149eb2cdbcad9421e776b2cc3240444704471be5fc38f1f8f882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:83-88 | Sources/Time/8-Formatting/PartialFormatting-4Units.swift:15-19 \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 \u0060Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift:83\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":"Sources/Time/8-Formatting/Fixed\u002BFormatTemplate.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e84b59d6820ff30e868eeee83b78937e3bde1fb50fb3acfa5214b781187817"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DateComponents (LCOM4 6): DateComponents\u0027s methods fall into 6 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 6 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":"Sources/Time/Internals/Time\u002BDateComponents.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3702f2ed62df8e94c609bd0c0ca631b2f3692b42cbd858d79842a7aa3e7fc899"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Calendar (LCOM4 4): Calendar\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":"Sources/Time/Internals/SimpleCache.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36a8799f183800d615ad09b4ec016309ea17daf7e90f363f1d14adde96d3667"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/10-Relations/Relations.swift: 20.0% line coverage (1/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/10-Relations/Relations.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d43300e53a49421fce8c576e60684e28facab4bb0d36599e376bea259a1603"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/2-Core Calendar/TimeError.swift: 49.4% line coverage (42/85)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/2-Core Calendar/TimeError.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54d99ff1371c95cb95db454fa28fed9b14cee7bba8dd1ea88d6777884113c42"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/2-Core Calendar/Units.swift: 0.0% line coverage (0/1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/2-Core Calendar/Units.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69140d5ad89ee3d6d68c46339309918844e6eb019d48fad1c70a9d7a43b4b5d2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/3-RegionalClock/RegionalClock\u002BCurrentValues.swift: 46.2% line coverage (12/26)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/3-RegionalClock/RegionalClock\u002BCurrentValues.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"464fdc61535fbba2cd170fbaecfca5c2423cefe04d5297bbf38a60ca2d46c156"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/3-RegionalClock/RegionalClock\u002BImplementations.swift: 33.9% line coverage (19/56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/3-RegionalClock/RegionalClock\u002BImplementations.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0496e1cbc77a3c80772f90a3f7ef282b9100238a2454d42698d775fbf6e7c40c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/3-RegionalClock/RegionalClock\u002BStrikes.swift: 0.0% line coverage (0/61)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/3-RegionalClock/RegionalClock\u002BStrikes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf625b5ed6c1b13110729e9c31dcec572d19ba6447c11e61e1d22ddd3d6a3fe"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/3-RegionalClock/RegionalClock.swift: 16.3% line coverage (7/43)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/3-RegionalClock/RegionalClock.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9532e0cb267e198603f37aa3fa0bec2f56f70fc7d53a290551b36c654088a8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BConversion.swift: 25.0% line coverage (12/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BConversion.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf91216a7b5ea49444ca938ec414d09ca83774542f7de6a09729686e772ea546"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BDay.swift: 20.0% line coverage (3/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BDay.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9a00a370ddfb9e09aeacf4d51935941de4f5bf037715fb73ed0440fdbacf66"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BEra.swift: 0.0% line coverage (0/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BEra.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b21532e466863bba0095c98c5e80b74f0df7450f8b09ffce9a7fbf51c39889f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BHour.swift: 28.6% line coverage (2/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BHour.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de1ffdfbf96b52f1af83e28d3b4a0822ae21a2226b928679f4b88d803c56d50"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BMinute.swift: 28.6% line coverage (2/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BMinute.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8619eaa737074d81ad85aa9f7a72fdb29b0689745fcef82eb3a99177c99761"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/4-Fixed Values/Fixed\u002BYear.swift: 14.3% line coverage (1/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/4-Fixed Values/Fixed\u002BYear.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"739e4fc597e2996f3b25c676d0a7b43d3b222c817903a047da0275094569a80f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/5-Differences/Fixed\u002BTimeDifference.swift: 12.5% line coverage (3/24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/5-Differences/Fixed\u002BTimeDifference.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89beecf4344dd0dd424fe020f33b144afc15478e1322288c5e29b943fbe92fd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/5-Differences/TimeDifference.swift: 36.1% line coverage (22/61)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/5-Differences/TimeDifference.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c57bc801dad169edd5481e1a89503b36690341485a57a93270737db85cb6abf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/6-Adjustments/Fixed\u002BSafeAdjustment.swift: 26.1% line coverage (23/88)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/6-Adjustments/Fixed\u002BSafeAdjustment.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c9510c8c5b4b4037c0b7fe5ab12713aabdb2f6eecca785e8389d0f901cd5cb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/6-Adjustments/Fixed\u002BUnsafeAdjustment.swift: 4.1% line coverage (6/147)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/6-Adjustments/Fixed\u002BUnsafeAdjustment.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e534507c0faf8171ce622e64089005ebed2aea9d118330f0325e0ce39a8c0418"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/7-Sequences/Fixed\u002BSequence.swift: 48.5% line coverage (32/66)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/7-Sequences/Fixed\u002BSequence.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0000780412ade5d076859d0a2cadaa4a71a6a1b54888f7d3c74a36b8789b4e5b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/Fixed\u002BFormatStyle.swift: 33.3% line coverage (4/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/Fixed\u002BFormatStyle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e249321835ddbabb6aeb01b956ca1f148c4bca737100cf2f0f0facda4c058ab5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/PartialFormatting-1Unit.swift: 44.4% line coverage (12/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-1Unit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"382777b17df5bf3a398ba649342e108ab564833de479517d1ad9ac0f41dd3f60"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/PartialFormatting-2Units.swift: 33.3% line coverage (6/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-2Units.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"507ee83c424a3e1606da95c532d02bf487e540ed38512c2d35e10f72e8015cb4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/PartialFormatting-3Units.swift: 20.0% line coverage (3/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-3Units.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea31857729c59c4f9b6ce5344aa2831bb92569f10a12303931ab63c64c96261e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/PartialFormatting-4Units.swift: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-4Units.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89265a9c2ba4825b416fbd728dd0d3eae13100190e3b7ec1aa03d7bd9d0d1adb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/8-Formatting/PartialFormatting-Others.swift: 0.0% line coverage (0/18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/8-Formatting/PartialFormatting-Others.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e578a3f8aa9eeb5f478985eaf0a08bd9c37ac29a96568ba7aa49bcd231cf2578"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/9-Parsing/Fixed\u002BParsing.swift: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/9-Parsing/Fixed\u002BParsing.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6c940468c02502619e748effb5468310f94461b4d21c263b895785b1c91018"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/Internals/Region\u002BEquivalence.swift: 0.0% line coverage (0/7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/Internals/Region\u002BEquivalence.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a36847ff0cd8c3a072b4967f529936fae40856397fb6706917ee12ddefa2fe6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Sources/Time/Internals/RegionalClock\u002BInternal.swift: 0.0% line coverage (0/57)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/Internals/RegionalClock\u002BInternal.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c44dd78195fbca985db50f0c3dee68fc98a7f5bc073b5ae0526a72789e79d4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPastStrike: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"Tests/TimeTests/ClockStrikeTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"554cd2ad91b2e5aa3bbe01d5e632c019c176648b6a3814f1ecf69957b2cac7e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFixedStrikeCancel: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"Tests/TimeTests/ClockStrikeTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f6719e1ae2cd0b46ad596809fa8ce086e280c861ee29aade9ee1f0c7667df3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIntervalStrikeCancel: 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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":"Tests/TimeTests/ClockStrikeTests.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"86aa77ca36d2b8ca32e70742c5a2dc8233634caa38c49855759ff947b59c1932"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace @unknown after the \u0022isLeapMonth\u0022 issue is resolved \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":"Sources/Time/Internals/Time\u002BCalendarComponent.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b04dac58f730cc5f86a484b73fd501d400cd70decb719078a2923ba00634732"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: dayOfYear: https://github.com/apple/swift-foundation/blob/main/Proposals/0001-calendar-improvements.md"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Time/Internals/Time\u002BCalendarComponent.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2357282e5342c52553b551ec9ece3d9eb9ce9e276819c25b5dc319c9c75ac7d7"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no installation or build instructions: The install line is a bare package dependency line (\u0027Add this to the \u0060dependencies\u0060 section of your Package.swift\u0027) with no build or setup steps. Add how to open a project in Xcode and add Time as an umbrella framework target."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa6bfcd5c6ae231d1b8ee99bced50b832d1f61cde9da6cbb533467b879a57db"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no usage examples: The TL;DR gives only the barest examples (\u0027.today\u0027, \u0027.currentMinute\u0027) without showing any code or explanation of what each returned value represents. Add a short runnable example demonstrating how to get today\u0027s calendar day and format it as a string."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1355eb4e127a4bc9236772ce1c46f09510aa9286e7a06d1e47f308229df19049"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant rounding methods. \u0060roundedToNearestMultiple\u0060 is a specific case of \u0060roundedToMultiple\u0060 (where direction is likely \u0027toNearest\u0027). Having both exposes unnecessary complexity and duplicates intent.: Remove \u0060roundedToNearestMultiple\u0060 and \u0060roundedToNearestEra\u0060/\u0060roundedToNearestYear\u0060 etc., keeping only the version that accepts an explicit \u0060RoundingDirection\u0060 parameter, or vice versa if the library prefers implicit nearest rounding. Standardize on one pattern. (signatures: Fixed.roundedToNearestMultiple(of: TimeDifference\u003CGranularity, Era\u003E): Self | Fixed.roundedToMultiple(of: TimeDifference\u003CGranularity, Era\u003E, direction: RoundingDirection): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ecf910965efef431bfdd75681286ecae37956850e71dc36b40308ac4a5939008"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate operation for calculating time difference. The subtraction operator \u0060-\u0060 and the method \u0060difference(to:)\u0060 perform the exact same calculation.: Remove \u0060difference(to:)\u0060 and rely on the \u0060-\u0060 operator, or remove the operator and rely on the method. In Swift, operators are preferred for arithmetic, but if \u0060difference\u0060 implies a semantic distinction (e.g., absolute vs signed), it should be named \u0060absoluteDifference\u0060 or similar. Currently, they appear identical. (signatures: Fixed.difference(to: Self): TimeDifference\u003CGranularity, Era\u003E | Fixed.-(lhs: Self, rhs: Self): TimeDifference\u003CGranularity, Era\u003E)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"789bdd47d139faa9448b3b5cc5df98bcb07c74e318d0edc6a3bd2a5c6a73a17c"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent conversion API surface. Some conversions require a \u0060ConversionBehavior\u0060 enum (Region, TimeZone, Calendar), while others (Locale, TimeZone, Calendar) do not. This creates confusion about when behavior is required. Additionally, \u0060converted(to: TimeZone)\u0060 exists both with and without behavior.: Unify the conversion API. Either all conversions require a behavior parameter (with a default) or none do. If \u0060ConversionBehavior\u0060 is critical for timezone/calendar changes, ensure it is consistently required or consistently optional. The overload set is confusing. (signatures: Fixed.converted(to: Region, behavior: ConversionBehavior): Self | Fixed.converted(to: TimeZone, behavior: ConversionBehavior): Self | Fixed.converted(to: Calendar, behavior: ConversionBehavior): Self | Fixed.converted(to: Locale): Self | Fixed.converted(to: TimeZone): Self | Fixed.converted(to: Calendar): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c8319630412b7f90814a5e2d8fa2f51605ae2f177e7b1c72fa03b0e849187cd3"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate arithmetic operations. \u0060adding(years:)\u0060 and \u0060subtracting(years:)\u0060 are specific cases of the generic \u0060\u002B\u0060 and \u0060-\u0060 operators which accept \u0060TimeDifference\u0060. This forces users to choose between two different ways to do the same thing.: Remove the specific \u0060adding\u0060/\u0060subtracting\u0060 methods and rely on the generic \u0060\u002B\u0060/\u0060-\u0060 operators with \u0060TimeDifference\u0060. This reduces API surface and enforces a consistent model for time arithmetic. (signatures: Fixed.adding(years: Int): Self | Fixed.subtracting(years: Int): Self | Fixed.\u002B(lhs: Self, rhs: TimeDifference\u003CGranularity, Era\u003E): Self | Fixed.-(lhs: Self, rhs: TimeDifference\u003CGranularity, Era\u003E): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b9fba3fd673676773365eb5f952f401e8a5c74894014148add9f4f506a470ae2"}},{"ruleId":"D22","level":"warning","message":{"text":"Excessive method proliferation for setting components. There are 20\u002B overloads of \u0060setting\u0060 for every combination of components. This is a code smell indicating a lack of a unified component-setting API.: Replace the \u0060setting\u0060 overloads with a single method that accepts a \u0060DateComponents\u0060 or a dictionary-like structure of components to update, e.g., \u0060Fixed.setting(components: DateComponents)\u0060. This drastically reduces API surface and is more idiomatic. (signatures: Fixed.setting(year: Int): Self | Fixed.setting(month: Int): Self | Fixed.setting(day: Int): Self | Fixed.setting(hour: Int): Self | Fixed.setting(minute: Int): Self | Fixed.setting(second: Int): Self | Fixed.setting(nanosecond: Int): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a3474aa59e8bcf72a1443ef3fe8ec8ddee9a7946cb0e6b1ab5d0092189f6db60"}},{"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":"22fcec408aaeec8606477e8b906ea30ff9f645e24c9df9ce86509e8dc2eafac1"},"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"}}]},{"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":"da7fd5abf64febecf6aa4c16c24c704e86cc86f30889525081bfaee79aafc66d"},"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"}}]},{"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":"1ddd4a3eacb5abc26b76d406ddb70aae9070bf3a368b86a2ade443eb3e11ee6d"},"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"}}]},{"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":"a2faf708a19c10bb6a3d6ec4bae6bcb9d1a57f2dd774f609f030cd152fa4fc9a"},"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"}}]},{"ruleId":"D29","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":"579180bd527775c5917bc54352dd5b193895401bccda27b258ff2012acd8df4d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"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 1344 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"CWE-1104","shortDescription":{"text":"CWE-1104"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"CWE-1329","shortDescription":{"text":"CWE-1329"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":7,"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."]}]}