{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ResponseStreamEvent.init (cyclomatic 59): ResponseStreamEvent.init has cyclomatic complexity 59 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10098}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1282b119e53349cb9020b3cb5912c75f3e8e9a76484630e00686a9daf6317"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseStreamEvent.init (cognitive 58): ResponseStreamEvent.init has cognitive complexity 58 (threshold 15). Drivers by points: error handling 58. 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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10098}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7a068f51972e527b4e2a07757f1e1f823c7c056b64c3a63b4df6170b78a3ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyValue.init (cognitive 28): PropertyValue.init has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (4 pts), match/switch 2 (4 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/PropertyValue.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b96323af3e96e16f9aaf2fac13d0987f61bfe4523a16a60501b971741c03940"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCompletionMessageParam.init (cognitive 17): ChatCompletionMessageParam.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8d06c79381af2d003b426d6a7f2bb787b508d604629d60ad7fee99853e566a"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyValue.encode (cognitive 16): PropertyValue.encode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/PropertyValue.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f319447995fcfe5fc7a2be08a665ed6914ebc3cd3373d5d22fdb287d14b3d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAI: TooManyMethods \u2014 98 methods, declared across 4 files: OpenAI/OpenAI.swift (39), OpenAI/OpenAI\u002BOpenAIAsync.swift (33), Private/OpenAI\u002BMakeRequest.swift (23), OpenAI/OpenAI\u002BOpenAICombine.swift (3). The bar is 30 methods; this is 68 over it, 3.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. This type is on a published API surface \u2014 a \u0060swift package diagnose-api-breaking-changes\u0060 gate in CI (.github/workflows/api-breakage.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/OpenAI.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73966e3a50c4667311b44a0932ef178169769875f3938570040083f9eb0bc18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JSONSchemaField: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. This type is on a published API surface \u2014 a \u0060swift package diagnose-api-breaking-changes\u0060 gate in CI (.github/workflows/api-breakage.yml) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/JSONSchema/JSONSchemaField.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e9ed3a4790c88636d0da641a35de6fc66d71962f9a3d87499815cf8eb499df"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatQuery: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 395 over it, 1.99\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/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8c57c1fba4328daa4877439de9100a0301f970f3acc0982eccfd7b29c386a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/ChatQuery.swift: FileTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatQuery (12-1351). The bar is 500 significant lines; this is 312 over it, 1.62\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd199d480ba5408dc4cfc507fde46bd437d31c5728124691a816e3a0aa3f957"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelResponseEventsStreamInterpreter.responseStreamEvent: MethodTooLong \u2014 responseStreamEvent runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"902f8537b520392a94bb4f540b9621047dd5dadeef2475c6d39d8ea675326f26"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponseStreamEvent.init: MethodTooLong \u2014 init runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae088ca3d810eba05da0f447a50634e5e715b79c6e7f82b797746315c0c15139"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResponseStreamEvent.encode: MethodTooLong \u2014 encode runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Facade/ResponseStreamEvent.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"891f08b4f4e2343cbf088633eb493213b54910e30933df12f3843b94c3bce3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 14 shared lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3702-3791 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3921-3995 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5618 \u2014 These 3 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3702}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970598830e79f3b1c41ae896d3c808fce6224acc39548cd67aa4cbbe77551da"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (33 members, 50\u002B identical tokens): Sources/OpenAI/Public/Schemas/Generated/Components.swift:179-197 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:462-480 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:552-570 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:636-668 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1496-1514 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2565-2585 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3365-3385 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3414-3440 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4927-4947 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5455-5475 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5618 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5781-5799 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11189-11235 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12908-12928 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13773-13795 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14228-14246 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14329-14347 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15515-15533 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15658-15676 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15699-15717 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15890-15910 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16059-16077 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16268-16286 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17102-17120 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17266-17284 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17577-17597 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18119-18139 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18545-18563 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18683-18701 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18960-18980 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19786-19808 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19880-19898 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19923-19941 \u2014 These 33 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 33 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 33 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e312d119ad46861e443f3f35fdd0cfefc531addbd346a57004f0029406628e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3055-3076 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3136-3157 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5083-5104 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5217-5238 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14448-14469 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19337-19358 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19549-19570 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82e3a8017114a7ab9553bc44dd48aa2d30913ef81e5658e851f9eaef7cd5a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 60\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3792-3851 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3996-4059 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5619-5678 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 60 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3792}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddd70730075055a10482b10a442f0febf83c76f9694f62c6fe99c2e9cd1ee5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/OpenAI/Public/Schemas/Edited/Tool.swift:100-135 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11236-11271 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"Sources/OpenAI/Public/Schemas/Edited/Tool.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9c523d71ca55a99b76fae4342b931b61e61b4f768581acdbcc78f19e796c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/OpenAI/Public/Models/ChatResult.swift:78-93 | Sources/OpenAI/Public/Models/ChatStreamResult.swift:245-264 \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":"Sources/OpenAI/Public/Models/ChatResult.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b5738beee9055e89c992eae353524f9787fcdfb296cf883c130f991ac64baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/OpenAI/Private/Client/AsyncClient.swift:34-63 | Sources/OpenAI/Private/Client/AsyncClient.swift:69-102 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Client/AsyncClient.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00a4ab495ad2732199294e5f04f4783698728d85c6dce8f7a591cd08506f5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): Sources/OpenAI/Private/Client/StreamingClient.swift:32-59 | Sources/OpenAI/Private/Client/StreamingClient.swift:61-88 | Sources/OpenAI/Private/Client/StreamingClient.swift:90-117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"Sources/OpenAI/Private/Client/StreamingClient.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"296e6811f18ffc62153ca4eb90e17458fb6a0ecca29513ffa763314503cb22a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:341-372 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12411-12436 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc9b2380023bb304d767859769ba5eda3c4790ba338d26be0c1046b2c86d207"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/OpenAI/Private/JSONRequest.swift:27-53 | Sources/OpenAI/Private/MultipartFormDataRequest.swift:28-49 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Sources/OpenAI/Private/JSONRequest.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8c6402482e57fd7111f91a770df401bf5d3cc1a60349e471b54beb5f39d1eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:56-71 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3441-3456 \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":"Sources/OpenAI/Public/Schemas/Edited/InputItem.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f26c46fc2b0e4bb38a5ad11fe15696e32e5ecbad52ba8a692a93d7354f952b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/OpenAI/Private/Client/CombineClient.swift:28-44 | Sources/OpenAI/Private/Client/CombineClient.swift:52-67 \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":"Sources/OpenAI/Private/Client/CombineClient.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba6f03b5bb4a110aafd2f584d68c56c089923da956bd95a3900f7ff949e1758"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15187-15207 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16202-16222 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89b01ea3f83529adc50aea9cbf897c1ceb735975b6bb376486fed32a3fcdcc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/OpenAI/Private/Client/Client.swift:31-44 | Sources/OpenAI/Private/Client/Client.swift:52-66 \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":"Sources/OpenAI/Private/Client/Client.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"67567b2e577ca8a379305ce81657ee1b17a683060de314fb7fb7e78e2843f11a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:410-429 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12368-12392 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6aa21b3211e8a4d714247803b81497f7aec868c08dbc5f1ccfdf9bb9c9d765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1394-1415 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1704-1731 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"313c0c86aa19205c3c8f547f098b1fd69cf2549b78c52bfde217f41e03d67b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 20\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:308-327 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1936-1955 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2768-2787 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3609-3628 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6186-6205 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18159-18178 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 20 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec8f04656ea39ca660ed11c315f66e8fbdf7865cb7c413b735d7ac02a93a710"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/OpenAI/Private/Streaming/ServerSentEventsStreamingSessionFactory.swift:42-57 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamingSessionFactory.swift:59-74 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamingSessionFactory.swift:76-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Streaming/ServerSentEventsStreamingSessionFactory.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54458969b0b1f48d034da67d9a11477b8ee736b3239c13fd41c5f0b1fefaf7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1859-1877 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2677-2697 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1859}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f5b8cd5772af0a0484791920f54ef7f3ad30e2349470267874fdba5a0e622b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Edited/InputContent.swift:20-45 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1623-1642 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4724-4743 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11051-11076 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/InputContent.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a5e2a5c2eaa6ba56bcde85852c7c1557e68faffdd6d2491d5cc37a1ef40f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:2830-2848 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14142-14158 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18053-18069 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca7ee5b7335d600fcec0ca8bba773208377c88baa4510d3d76fcd6174e9b2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/OpenAI/Private/DataTaskFactory.swift:22-36 | Sources/OpenAI/Private/DataTaskFactory.swift:38-52 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"Sources/OpenAI/Private/DataTaskFactory.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53edefafb45eb8639b794cdc3cb72f20a7a3ba59b263f8e9b19f18933bed01f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/OpenAI/Public/Schemas/Edited/OpenAIFile.swift:86-106 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5411-5431 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/OpenAIFile.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f97bb98109e526aaa4aa4e3c8d47ad35b9eefc41547c16bc51bb7fd281acb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:18215-18233 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18282-18296 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18343-18357 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":18215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0775f973de176a88d71be9f5de864740fd46b9d0a95b480ea7cf0ccd69bec20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 17\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15067-15083 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16567-16583 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17147-17165 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17378-17396 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17627-17643 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17705-17721 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 17 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15067}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc8cba0cdaebcfc6fd3a120bc11230c5e90fc43ad27940b1c24fafb2c9fcbd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:17885-17899 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18585-18601 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18792-18808 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":17885}}}],"partialFingerprints":{"codehealthFindingId/v1":"6affe935acf4b1adbeec816c054325e83f1c03901ffa145e71bc54fa54fdeff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Models/ChatQuery.swift:390-404 | Sources/OpenAI/Public/Models/ChatQuery.swift:525-538 | Sources/OpenAI/Public/Models/EmbeddingsQuery.swift:47-59 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"320d4e128e208bcc3c0f0dfebc2f9ebb697621f336da1efae225a9139ed502a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/OpenAI/Public/JSONSchema/JSONSchema.swift:41-64 | Sources/OpenAI/Public/Models/ChatQuery.swift:588-604 | Sources/OpenAI/Public/Models/ChatQuery.swift:1253-1270 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"Sources/OpenAI/Public/JSONSchema/JSONSchema.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90a1434fdcee8ad37f5f949d68f3fc22ca95a69488958003cfc89853ee86610"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:596-610 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3265-3279 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4684-4698 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4991-5005 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6799285887b3ff2d760935de51d864da4ad595d41dde510e1f1d53340019a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/OpenAI/Private/URLBuilder.swift:64-71 | Sources/OpenAI/Private/URLBuilder.swift:89-99 \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":"Sources/OpenAI/Private/URLBuilder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"521022e62bd2d9784eccafc7a4a1db371f8988c20e28fee67cee5a70f8e43244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 15\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:9404-9418 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9478-9492 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9552-9566 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9626-9640 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9700-9714 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9774-9788 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10599-10615 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10681-10697 \u2014 These 8 members are one piece of code written 8 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 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":9404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4875c67ec53db297954180a597c0b85dee157727f77bcfae7bdb3d36754c01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/OpenAI/Public/Models/ChatQuery.swift:846-854 | Sources/OpenAI/Public/Models/ChatResult.swift:277-283 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2bfd8e5c6c9d93af2c1f752ef4cde50ebb3e0d3ad05d985a7842ef79e06679"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/OpenAI/OpenAI.swift:295-301 | Sources/OpenAI/OpenAI.swift:347-353 | Sources/OpenAI/ResponsesEndpoint.swift:43-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Sources/OpenAI/OpenAI.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"59838230fbfbc4cafbc29864b9b87c6bb185232df4e5485022ac39ed898db711"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15370-15382 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16940-16954 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15370}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a032a02884e2d52f03ab3f3f545723200383d22ee467d22b56271c1e90dea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15554-15564 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15743-15755 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c45ab05654385cfd8cfe5760765647691df6f49e46d6790063836e875274b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift:55-69 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:8902-8918 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00e5ba9789e957418affaf8b9bfc9caef162b3aec2a8546593af27c7ff7eabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1663-1673 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11881-11893 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c75b466fe890bfbf3184efe02f601081ab92a5162cdcd1c495e6e3bcf9b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4301-4313 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4364-4376 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca66536f0a4d8446aebf36a73bfee7114458a9c9b931c53d3057da8b9719a96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1536-1548 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1773-1787 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa292b377890f26f2551179c6141401cfc49ba162feb9cfece8f4582ee1216dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/OpenAI/Public/Models/ChatQuery.swift:1054-1060 | Sources/OpenAI/Public/Schemas/Edited/WebSearchToolCall.swift:56-62 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Sources/OpenAI/Public/Models/ChatQuery.swift"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"6711f8412a925ed726d0c83b2a7da2d640949b6028006977c2de36970fdbe47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:7022-7036 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9327-9343 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:20248-20262 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":7022}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fbcf1327b4794d27c58afa84efe7c7bab26ee1200fd570dd4cd69fd5acb95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:14070-14082 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16406-16418 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17986-17998 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":14070}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9251b9e05372e2a742af64f7e18d39424f4c68a402a83d76350a773795844ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:12698-12710 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12763-12773 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":12698}}}],"partialFingerprints":{"codehealthFindingId/v1":"9136dfbfa2540b358eee891a255739027a8e5ff05b02f5249c39feda8e053e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:373-384 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:8978-8989 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12437-12446 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fc20f05cd2913b8681a024f747fe5fa5f81f521f81ee04b4dfd8853d229047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1979-1991 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:7385-7397 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11128-11140 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19033-19047 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19103-19117 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b82387eb87ae6854bae25b8611ad6b25f331c9c4816d445bc5e661eaed41e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:7738-7750 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:7793-7805 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13670-13682 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13734-13748 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":7738}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7fdf8aca92ac4c69871d15522c1960ac211d1fe21e0d51dcef6140cd61f768"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift:54-66 | Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDoneEvent.swift:54-66 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6563-6575 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6622-6634 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:8340-8352 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:8401-8413 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db98827ac2dfab3d03e33208b6434a2d9f6a1529cb603e484819cce4066e177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:7095-7109 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9202-9216 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14895-14909 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:20029-20041 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:20093-20107 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:20155-20167 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":7095}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dca5bd92a8532fbccc009ed5d94dd427b7f2e692a2ae54c5287bf44188ed23b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4241-4253 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:7205-7217 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:7265-7277 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11946-11960 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12139-12153 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16679-16691 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ec16e81f1243adb0a44d528b6ed00dadbe4ae077896460e1ccb5ecf6365d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/OpenAI/OpenAI.swift:331-337 | Sources/OpenAI/OpenAI.swift:364-370 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Sources/OpenAI/OpenAI.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0230a944bdad5e68ff335432257a382fa99124771177b78bfab96400cc3eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:16741-16753 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19229-19241 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":16741}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c7e7f35b500168d0153f5b99cf47a5d35ea2270d67b44e5afd1d828e4e9aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4112-4124 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4178-4188 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19291-19303 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4112}}}],"partialFingerprints":{"codehealthFindingId/v1":"602268e20e4b377ce56583643b5d71f96dbdb1a21ee2b268e98a70dff1849a4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/OpenAI/Private/Streaming/StreamingSession.swift:117-124 | Sources/OpenAI/Private/URLSessionDataDelegateForwarder.swift:29-31 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/OpenAI/Private/Streaming/StreamingSession.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e8149083fec1638a18f32019adb6419ec7d1ab26a712e97332612f8f4b35e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/OpenAI/FilesEndpoint.swift:14-24 | Sources/OpenAI/ResponsesEndpoint.swift:22-34 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/FilesEndpoint.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec06545d9e4167c86231fcf447e6161909a77dc5f4e478338aa8077525e4d0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/OpenAI/FilesEndpoint.swift:94-97 | Sources/OpenAI/ResponsesEndpoint.swift:67-70 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Sources/OpenAI/FilesEndpoint.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67e22ccb63a6d65b0216e76b2e36657d1dae47aec7795aa52000ae25dd0c317"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/OpenAI/Private/Client/AsyncClient.swift:20-32 | Sources/OpenAI/Private/Client/Client.swift:17-29 | Sources/OpenAI/Private/Client/CombineClient.swift:20-25 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"Sources/OpenAI/Private/Client/AsyncClient.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3da3fc2a3089c3b1f3672da950a25eba68f57d5b09922247aded6cebe6923d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift:42-45 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamInterpreter.swift:42-45 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamParser.swift:47-50 \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":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab0e79c9645c404d1a67228ac846dd20ac77c2615ff9fe84029356a9d53f8cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Demo/DemoChat/Sources/LoggingMiddleware.swift:22-24 | Sources/OpenAI/Public/Protocols/OpenAIMiddleware.swift:15-15 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"Demo/DemoChat/Sources/LoggingMiddleware.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ad37d64f6077c49125d8bea8d04681eba0c8ca09c318f1d659217b69125db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3055-3076 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3136-3157 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5083-5104 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5217-5238 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14448-14469 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19337-19358 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19549-19570 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e3cdf4b71c223a15bcb379e6d5adf3ca938364fb3cf4299ebcc3a9c967d3df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:2566-2585 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3366-3385 \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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead2c20caf170e84d181fa6990a6d37393727d198ab0917b0d0e3803bd8d0d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4027-4045 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5646-5664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5665\u0060 calls \u0060mcpToolCall\u0060, \u0060encode\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:4046\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4027}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b53e1af8caa828b54be885fc644605614a86ffea8a86e5d1de7afaf6ff75b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:343-360 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12413-12430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1554e917b814c85fa78be5330712598e932f22ac5d2579680ed1c5b85f7f230a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1398-1415 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15309-15326 \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/OpenAI/Public/Schemas/Generated/Components.swift:1398\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e7566f8d78df32ea24638b6bf2fbdfa364e75835fcdf24b30d2c2a7b14c3b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15516-15533 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15659-15676 \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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15516}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeaca124eb11dcc665e39f635e4b075aec89272fda9dc9399dc261067d6b5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:19881-19898 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19924-19941 \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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":19881}}}],"partialFingerprints":{"codehealthFindingId/v1":"da453d30b0808fd250d490db60aef59085e15af28cfd42ba168039fcfb04f27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): Sources/OpenAI/Public/Schemas/Generated/Components.swift:312-327 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1940-1955 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2772-2787 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3613-3628 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4728-4743 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6190-6205 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18163-18178 \u2014 all 7 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/OpenAI/Public/Schemas/Generated/Components.swift:312\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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"787690e5daec73925211950c1504580da23a05dacc96b6d5ce99905608838d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/OpenAI/Private/Client/StreamingClient.swift:44-59 | Sources/OpenAI/Private/Client/StreamingClient.swift:73-88 | Sources/OpenAI/Private/Client/StreamingClient.swift:102-117 \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/OpenAI/Private/Client/StreamingClient.swift:44\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060onResult\u0060 to \u0060@escaping @Sendable (Result\u003CAudioSpeechResult, Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping @Sendable (Result\u003CResponseStreamEvent, Error\u003E) -\u003E Void\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Private/Client/StreamingClient.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"262dc745870f947aae7f66d1c8f69a700a94f1ba343885b14f759e5c9a76eed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1706-1720 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10100-10114 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"4daf20690bd91b4ef1db505cd7f89d898df9250e6697b212105f333491a21c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): Sources/OpenAI/Public/Schemas/Generated/Components.swift:308-321 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:341-354 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1936-1949 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2768-2781 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3609-3622 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:6186-6199 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12411-12424 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18159-18172 \u2014 all 8 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/OpenAI/Public/Schemas/Generated/Components.swift:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b31997db0380a8ee69a8590fb602cc17604c20d3e8d5ba0582c03305f78f15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:9554-9566 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:9702-9714 \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/OpenAI/Public/Schemas/Generated/Components.swift:9554\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":9554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e533559ebcef051cdd4630fe66d48e1f6293412e1622dc49c8f4b56b4a6dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:11948-11960 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12141-12153 \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/OpenAI/Public/Schemas/Generated/Components.swift:11948\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":11948}}}],"partialFingerprints":{"codehealthFindingId/v1":"930498a4a87dbb14ebd6b72e046b5627f793751a52ca9b0090e9b0c5406d6272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:1704-1715 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10098-10109 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15305-15316 \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/OpenAI/Public/Schemas/Generated/Components.swift:1704\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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d53811aa9a4040406cf0ba4ced6bc214278056efe578f44b915c10852283c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:44-55 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3429-3440 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:44\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3428\u0060 calls \u0060itemReferenceParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Edited/InputItem.swift:43\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":"Sources/OpenAI/Public/Schemas/Edited/InputItem.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06f0fe02c05d156618dcb1414fea621661022741f330300882694c25af2a801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:15899-15910 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18552-18563 \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/OpenAI/Public/Schemas/Generated/Components.swift:15899\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15898\u0060 calls \u0060containerAutoParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:18551\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":15899}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea4034a1b5a0718bfd90a5fe524a9f7878bc0131933b8f99db679e7b5a740da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:465-480 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:555-570 \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/OpenAI/Public/Schemas/Generated/Components.swift:465\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/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce52f86c9a5e346b8effdbef6a9009e4edb83963f7cc046e5d577b7cb29bf465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:10601-10611 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:10683-10693 \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/OpenAI/Public/Schemas/Generated/Components.swift:10601\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":10601}}}],"partialFingerprints":{"codehealthFindingId/v1":"910b4c2d9246f99cf4e9f23576eceb9e3fbcf21419fd291d52f8ce6d34dc4dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:12700-12710 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16408-16418 \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/OpenAI/Public/Schemas/Generated/Components.swift:12700\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":12700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38b7d5eddc38608052b68b825b48c46c286fdf5b584f8272d4c841a53a6ae49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:2586-2595 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3386-3395 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40666f428efcb90f6de0d8e3d3319d3fc3d10f46810304555ad3a02c70673ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3986-3995 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5609-5618 \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/OpenAI/Public/Schemas/Generated/Components.swift:3986\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3986}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1ca0b4e9da6fb587d31cdf0f0afa95446850e17fc128f9fb310094c2d4b38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:5456-5465 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5782-5791 \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/OpenAI/Public/Schemas/Generated/Components.swift:5456\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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5467\u0060 calls \u0060reasoningTextContent\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5792\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":5456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d5319aebd1d7d6b5b658924b804698506ecd45423528b5de1fda363c83c669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3821-3829 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4029-4037 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5648-5656 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3821}}}],"partialFingerprints":{"codehealthFindingId/v1":"394e0d34cfd83cd8d53e25987fefb5406d4df73dd6dccf066807b66630244b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OpenAI/Public/Models/ImageEditsQuery.swift:50-58 | Sources/OpenAI/Public/Models/ImageEditsQuery.swift:74-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 \u0060Sources/OpenAI/Public/Models/ImageEditsQuery.swift:50\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/OpenAI/Public/Models/ImageEditsQuery.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3c21fdb7f7adce76cb62b1da634fc6f7974ae45abb4222670c23ab136dcb15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/OpenAI/Private/Client/CombineClient.swift:29-37 | Sources/OpenAI/Private/Client/CombineClient.swift:53-60 \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/OpenAI/Private/Client/CombineClient.swift:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Sources/OpenAI/Private/Client/CombineClient.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5010877fcaa52c5bcf0831ef2f56bd308e854ae61b1c7480d8f3c56f42d43cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:373-380 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12437-12444 \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/OpenAI/Public/Schemas/Generated/Components.swift:373\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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:381\u0060 calls \u0060case4\u0060, \u0060encodeToSingleValueContainer\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:12445\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"37169bd1769864aa549d532de9985319c3242917d1fd1521e06f4af9714f1f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 33): Sources/OpenAI/Public/Schemas/Generated/Components.swift:179-185 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:462-468 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:552-558 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:636-642 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:1496-1502 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:2565-2571 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3365-3371 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3414-3420 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:4927-4933 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5455-5461 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5548-5554 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5781-5787 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11189-11195 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:12908-12914 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:13773-13779 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14228-14234 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:14329-14335 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15515-15521 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15658-15664 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15699-15705 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:15890-15896 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16059-16065 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:16268-16274 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17102-17108 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17266-17272 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:17577-17583 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18119-18125 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18545-18551 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18683-18689 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:18960-18966 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19786-19792 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19880-19886 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:19923-19929 \u2014 all 33 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/OpenAI/Public/Schemas/Generated/Components.swift:179\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, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:15898\u0060 calls \u0060containerAutoParam\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:18553\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b15acfd6bbda8b3df2de0b9f8684e025ecbe646d82f1569560a96d75346a94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/OpenAI/Private/Client/StreamingClient.swift:35-41 | Sources/OpenAI/Private/Client/StreamingClient.swift:64-70 | Sources/OpenAI/Private/Client/StreamingClient.swift:93-99 \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/OpenAI/Private/Client/StreamingClient.swift:35\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":"Sources/OpenAI/Private/Client/StreamingClient.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b57b8a61db6243d1fb52fb0f3c36e3c3c1c86907f670bbe628a2422789646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/Tool.swift:105-111 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:11241-11247 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/OpenAI/Public/Schemas/Edited/Tool.swift:112\u0060 calls \u0060webSearchPreviewTool\u0060, \u0060encode\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:11248\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/Tool.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffd069d636938e3f0c5fa7e2bd1f9351268a9895d02317f8e57ce25350c30af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3795-3801 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3999-4005 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3795}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb561bac5182ffb6b44f3de57e1128de61075da9a3f5df59a6c76f8131bab351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4013-4019 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5640-5646 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4013}}}],"partialFingerprints":{"codehealthFindingId/v1":"168f7b96e0b39d4e5fea292691392b5c6c6290f263baa66c8840799f8d5f56a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4021-4027 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5634-5640 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"2713c0a6adcdff35634468acc8b434027eb0cf71d5f7a7827ef718d2a901eb64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:4045-4051 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5666-5672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5664\u0060 calls \u0060encode\u0060, \u0060mcpToolCall\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:4044\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":4045}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc902bc71e4616ba183854eba47dcfc348a42d34432d789a28ab4027e8cbee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift:47-55 | Sources/OpenAI/Private/Streaming/ServerSentEventsStreamInterpreter.swift:48-56 \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":"Sources/OpenAI/Private/Streaming/ModelResponseEventsStreamInterpreter.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b364f6381db30290a4a03584240e55396639b3df78d11dd1ae48da3d2901b7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemAddedEvent.swift:27-37 | Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemDoneEvent.swift:27-37 \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":"Sources/OpenAI/Public/Schemas/Edited/ResponseOutputItemAddedEvent.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9bad3f6477744d7ab38672563b9a6a8250c49771895eb2f6ba89c8408adc7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/OpenAI/Public/Models/ModerationsResult.swift:53-57 | Sources/OpenAI/Public/Models/ModerationsResult.swift:99-103 \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":"Sources/OpenAI/Public/Models/ModerationsResult.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01510302b2610567032cf3346b55cd71d72d59f5b8180c635e1694965753c28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3713-3717 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3931-3935 \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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3713}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed98ba68164787047a8a902e2203b44ef52c61ed6d6e117c5347dcfc07a261d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3738-3746 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3960-3968 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5583-5591 \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/OpenAI/Public/Schemas/Generated/Components.swift:3738\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77befc5d8f11ebc43b78e1dce2b0a2c15b4ddc7ea7d18557ad0cfd381123e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3754-3758 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:3976-3980 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5601-5605 \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/OpenAI/Public/Schemas/Generated/Components.swift:3754\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:5600\u0060 calls \u0060mcpToolCall\u0060, \u0060init\u0060 and \u0060Sources/OpenAI/Public/Schemas/Generated/Components.swift:3975\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"67db77f9c352f7b4f55b40976d729cabbb08aaf1802ef79ba00a7cde32dfe276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/OpenAI/Public/Schemas/Generated/Components.swift:3944-3950 | Sources/OpenAI/Public/Schemas/Generated/Components.swift:5575-5581 \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/OpenAI/Public/Schemas/Generated/Components.swift:3944\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":"Sources/OpenAI/Public/Schemas/Generated/Components.swift"},"region":{"startLine":3944}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d05d228b8b643b94b056c601bf7d2f65c892d2039f1cc6761ccedff7faf0570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Demo/DemoChat/Sources/AssistantStore.swift:29-53 | Demo/DemoChat/Sources/AssistantStore.swift:55-76 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a8dcffae92e43ac4de4de93c440d77e9f8565c9cca1e79511f575c3b6be687"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Scripts/fix_boolean_exclusive_minimum.py:108-117 | Scripts/fix_recursive_reference.py:100-107 | Scripts/fix_rounded_int64_bounds.py:69-78 | Scripts/remove_unsupported_webhooks.py:72-81 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/fix_boolean_exclusive_minimum.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c25b86102f24a105aac0f2d3534ab1f67b2895456365b9a2ce820b2c027819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Demo/DemoChat/Sources/ResponsesStore.swift:790-801 | Demo/DemoChat/Sources/ResponsesStore.swift:803-813 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/ResponsesStore.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"5027a1297e3b5ee669676830e67eaca352555db36b0f277db9091a351447af10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Demo/DemoChat/Sources/AssistantStore.swift:31-39 | Demo/DemoChat/Sources/AssistantStore.swift:57-65 \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 \u0060Demo/DemoChat/Sources/AssistantStore.swift:31\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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc3845f7d07a6381cde9c163020a000506af9e6d15ee4a3fa38c81bb466f8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Scripts/fix_boolean_exclusive_minimum.py:108-113 | Scripts/fix_rounded_int64_bounds.py:69-74 | Scripts/remove_unsupported_webhooks.py:72-77 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Scripts/fix_boolean_exclusive_minimum.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff290041cef0015e552bcfc4bd23f15985c943e721ff01f8a2e1e982c9407c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Scripts/prepare_openapi.py:69-73 | Scripts/remove_required_properties.py:156-160 \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 \u0060Scripts/prepare_openapi.py:69\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":"Scripts/prepare_openapi.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7725414c811b264139507ac412b72faefda3db7831125ad4dac85b2919a637e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImages: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb50896f78c1266f980ad88d8ec081ba3d47f7a6f4776deaac6622ee731efc0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatCompletion: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"38eb82c4272af10b25d8099d0b4e334020bca226ec5af5a8033cfe0b66b91c8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompletionUsageWithCompletionTokensDetails: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed9c0af4eeb109535b88d2b2c2eeb668ce9bd82175b14a632c82ee0754c9f9b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompletionUsageDecodesWithoutCompletionTokensDetails: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"34676369a540a2d8210b0fc1506bc994713d38ea815f9da6579f5925a224da9a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testImageQuery: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3391107a64d7a01531623074b224742047c874b36863b27f75d787493e64bec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithFunctionCall: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dd38f415a34fcbe9f4e7b732ce13e631bd0ccbf8b212b8b582dd0e2e557fc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatCompletionWithFunctionCall: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cfe59b852397155d7d2bf302738093574952baa04df08bc542a885bde85415"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmbeddings: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eeaaaee12efaf4bbde30699c4a65e518377c79ec6fac57c61f504165d9dc55"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModels: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3623ade253d052cb73ed9144c332e8f97b4afcb4f2e5fe81f41a173c9b5e8e8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelType: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffcc5ec2bcf7412bf7e1e4cc67b3d617046ffcf15c324c82ad898e4393b97cf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModerations: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ab0369668d89863b766c93e0200f936de70344ae5d4dbdc80bae920cb257a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAudioTranscriptions: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"79372acf56d7b05f87ea25caa192cb28fea1182bde3ba32c24965aacefa81674"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAudioAudioTranslationResults: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6928985695ead51dad21bfe2dc841d290f1f46aa77bfd2260dacc3226dced3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantResult: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab78b7142237cecc72b00eabd593bf8a4c8da22ccde447f5bca89bff510bdc3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantsQuery: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6de748dc90604a2ff518504e9299587e0c50321b28536bfad81cd151ec4173"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAssistantsResult: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"46657e952b1720b9490c50de6afeb39820364f9462d782528fc6e0da3c02a5bf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMessageQuery: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"104d003df9d4e418c68c403805b7a01cb19db93281326b7280299ec9fd2ec7b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRunResult: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"781ba8d93c18789d6864d26d8f26589e94acc53ed40c0cd1e3d176b334f5b9c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRunToolOutputsQuery: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"1163ea6041dc565e7fc6c8230c02f129fe23f24538447524fdd461b7c4a19989"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testThreadRunQuery: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"9072f998093f1cd64c93a72cb966415dbb43faa00f3636ac9e386c73bdf8e93e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithStructuredOutputDerivedSchema: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"a053efb3f78b5a1265efadbe3e817a2ff1ee530c9453b6124b77d2b95a9dc6ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatQueryWithStructuredOutputJsonSchema: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"9272bdde040189671b719028434f4f0e589f62602ad2f034580507008864147f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithStructuredOutputDerivedSchema: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db5e27df73d8fa91866a63ec711926a6e39c66bf0344df21468d2db15c1279"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithStructuredOutputJsonSchema: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f5910d60213ed3979934c8b64b541e86a45c240b8650936e463e3f514d2415"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCreateResponseQueryWithVerbosity: 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":"Tests/OpenAITests/OpenAITestsDecoder.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"14616be70d4ea6b1286732ec2c1ad29845172a63e521e333419579389181254a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: reasoningItemDecodes: 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":"Tests/OpenAITests/OutputItemCodingTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fc8abf66960a4218ea6bfc544e5c7d6ce346d95d10aa0a18d58fdad4dfc1ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResponseCreatedRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d1bd385130d417acbd054f12afbca231287227a21bd75eb419dde24557b74"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutputItemAddedRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"36400193c495646d585bc3a878471b6fffea01f527bff2d90fdd97d098675946"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOutputItemDoneWithFunctionToolCallRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f2798a323563910a6d33278268bcfa302461172180309e755d277ad984aedf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testContentPartAddedRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5d84867625eac1d0e66ef6a87c8adc5836582c2a2d531e216d71282116585a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCodeInterpreterCallCompletedRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3105f6d1a7fba99a037798e29c2424afbafd4199e4788ab6d611b1a908b612bc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShellCallCommandAddedRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2a3d22f272cae740b789617a82443257e9bb9fddb45c1e7bd78c44272c8907"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMcpCallArgumentsDeltaRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dde629be99385df8214e53ec0817b18fb238f4f69cb9f11ca7e23043b207e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFunctionCallArgumentsDoneRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bc9d2d5f3faf188476378c29c17504ac75eda2198293b5218d559232f5f65a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testErrorEventRoundTrips: 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":"Tests/OpenAITests/ResponseStreamEventCodableTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87b6de532007ab656d055631a28187d8802388289b8eef7f203298361436e4d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Demo/DemoChat/Sources/Models/APIProvider.swift: Demo/DemoChat/Sources/Models/APIProvider.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in APIEndpoint.init at line 108. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 12:43:04 \u002B02:00\u0027 --until=\u00272026-11-12 12:43:04 \u002B02:00\u0027 --full-history --no-merges -- Demo/DemoChat/Sources/Models/APIProvider.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/Models/APIProvider.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7612364f55be9e5803d557475f377dc3db63fccf514d94c8392c29948515bca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/OpenAI/Public/Models/ChatResult.swift: Sources/OpenAI/Public/Models/ChatResult.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is ChatCompletionMessageParam.init at line 329), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): add public memberwise init to PromptTokensDetails\u201D; \u201Cfix(chat): honor ParsingOptions when decoding prompt_tokens_details\u201D; \u201Cfix(chat): tolerate missing fields in prompt_tokens_details\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 12:43:04 \u002B02:00\u0027 --until=\u00272026-11-12 12:43:04 \u002B02:00\u0027 --full-history --no-merges -- Sources/OpenAI/Public/Models/ChatResult.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ChatResult.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9af2980d4a801c968db7d9d22d1e4a38a991d393146fd0426a8ceda68bbbfea"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 17 significant file(s) lose their only recent owner: Sources/OpenAI/Private/Streaming/ServerSentEventsStreamParser.swift, Sources/OpenAI/Public/Models/Responses API/ResponseObject.swift, Sources/OpenAI/Public/Schemas/Edited/Tool.swift, Scripts/remove_required_properties.py, Sources/OpenAI/Public/Schemas/Edited/OpenAIFile.swift, Sources/OpenAI/Private/Streaming/ModelResponseStreamEventType.swift, Scripts/extract_components.py, Scripts/fix_recursive_reference.py (\u002B9 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3864df3d6a64d61cf3042ed724cfdc7efd7dff6ded8ae7aa797d3cf368f371ec"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (19 single-owned of 59 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 166 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/OpenAI/Public/Schemas/Edited/ResponseFunctionCallArgumentsDoneEvent.swift, Sources/OpenAI/Private/URLSession\u002BAsyncCompatibility.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e560efb394d26273a80bb7e3591bb55e5766d0cb2538f06e5f8139b059cb8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd8138c5ac6419db2ef80c48f16f7ea2a6ecda7f403456f4938d28d8dc3ec62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/AssistantStore.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b1b108bffb6da4e118a605ded509173a862b4cff877a48a8a6d3883bedfacf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Better error handling \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":"Demo/DemoChat/Sources/MiscStore.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"75432ab55544295c4418b50c2e7ca65d7ff7c7384451935d65bfb7113c3de392"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Depending on the type of tool tha is used we can add additional information here \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":"Demo/DemoChat/Sources/ChatStore.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a6cfdc56f706fe8774617c983fb8a7fb155a60bdca2a33f639d9d823d5faa6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement proper annotation handling when type conversion 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":"Demo/DemoChat/Sources/ResponsesStore.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fea68409a0b4c75d066baef965a68e6927b89369bedd9747dddeec7cdb0d773"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060selectedConversationID\u0060 spells \u0060ID\u0060 where 30 names in the project spell it \u0060Id\u0060: 30 of 31 names in project Demo~DemoChat spell the token \u0060Id\u0060 (30 of 31; unit: names in project Demo~DemoChat containing \u0060Id\u0060). Peers: AssistantStore.selectedAssistantId (Demo/DemoChat/Sources/AssistantStore.swift:15); AssistantStore.modifyAssistant(asstId) (Demo/DemoChat/Sources/AssistantStore.swift:55); ChatStore.currentRunId (Demo/DemoChat/Sources/ChatStore.swift:26); ChatStore.currentThreadId (Demo/DemoChat/Sources/ChatStore.swift:27); ChatStore.currentConversationId (Demo/DemoChat/Sources/ChatStore.swift:28). Rename to \u0060selectedConversationId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/ChatStore.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"51429dab05677b3a63eed449ca47e4897b01e6596dcfbde856e81976930aa4dc"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060resultUrl\u0060 spells \u0060Url\u0060 where 14 names in the project spell it \u0060URL\u0060: 14 of 15 names in project Demo~DemoChat spell the token \u0060URL\u0060 (14 of 15; unit: names in project Demo~DemoChat containing \u0060URL\u0060). Peers: APIProvider.defaultBaseURL (Demo/DemoChat/Sources/Models/APIProvider.swift:27); DemoAPIConfiguration.customBaseURL (Demo/DemoChat/Sources/Models/APIProvider.swift:52); DemoAPIConfiguration.init(customBaseURL) (Demo/DemoChat/Sources/Models/APIProvider.swift:54); DemoAPIConfiguration.baseURL (Demo/DemoChat/Sources/Models/APIProvider.swift:64); DemoAPIConfiguration.migrating(baseURL) (Demo/DemoChat/Sources/Models/APIProvider.swift:92). Rename to \u0060resultURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Demo/DemoChat/Sources/UI/Images/ImageEditView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"624778bb46b1972e9eb60813517fe587dd2b2f230ef128741a15b9c9a2cc40df"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"c2416675bab825913f665ad40a1a9adb372cf763224d930491507f421e8d32ae"},"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":"733b3567401483c1b9b5e31e54bb88b482e4698ad152e65d10a29ad2c6eba89e"},"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":"ddc49ef52c93f5d89390c80bf8f0444bb97743496eeea781d1b7fcf904a3ea48"},"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":"565cb0a25235d1502010c8d34a025c6ae5aeb826c7d5e305b97bb45399050c67"},"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":"fdd80ff4efa055538dc59aafc5e380459b7d05030fbc7ee936f19fa678b3e896"},"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":"94776b81c65a1879dd8fc53e26bc1452c842e8224e84fa3d209cf81adb9735bb"},"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":"16d577d05bd3d2ba83ef1d71d11632d89db3ca39978657e8ca99b8ec196563de"},"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":"b38720db37cd540e3dc09fe3d5c0b3652d2f9d051cf0e85dbbd366b46c6f1a79"},"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":"8729817d98d42eae03b91ddb2679b32cedd1f45b88b226b12f6c9cdf01c36cd2"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 7 of 59 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 166 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/OpenAI/Public/Models/ModerationsResult.swift, Sources/OpenAI/Public/Models/ImageEditsQuery.swift, Sources/OpenAI/Public/Models/ImagesQuery.swift, Sources/OpenAI/Public/Models/AudioSpeechQuery.swift, Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift, Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDoneEvent.swift, Sources/OpenAI/Public/Models/EmbeddingsQuery.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ModerationsResult.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a012b52153d77304a94db34c2f83f51448389160399e5efb709d7bdb6d94a8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ImageEditsQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc5b488eddb76fc0dc5bbcdc193477114d7e0f1b11252fbe3f412a3418eb0d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/ImagesQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"741ca1c7bbd691e804523578cf0355658c1914f51eda33b865d6cad6c56cb668"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/AudioSpeechQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3473f5715068661ba3ae8065260cf60c6db0294997d893e9104ecd43cf800e1e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDeltaEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dce0a0623ad2374acabfacf9a7a76e5ca7311e1a4a511edb27fe313ff5595ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Schemas/Edited/ResponseMCPCallArgumentsDoneEvent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"842ad170996fbc820eba767c1dd954203e4b23ce8a129df72348c5616da5e4ae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/EmbeddingsQuery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135a8d4f072b3f7d0f23bcf4b60dda3c32bf24ab766cad6392187e356469ccb"}},{"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":"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":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/Types/JSONSchemaDefinition.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ec642b848d76968ce9cb76c1efdccf5e8d5c59f906216dd9a0fd9245aa3903"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OpenAI/Public/Models/Types/JSONSchemaDefinition.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a193aa62c9814f9ae94fcd9e86f914a59402073b0dc3cbf7f4149522d4541d"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-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":14,"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."]}]}