{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"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":"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":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"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":"RTMPConnection.connect (cyclomatic 27): RTMPConnection.connect has cyclomatic complexity 27 (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":"RTMPHaishinKit/Sources/RTMP/RTMPConnection.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb39ced3210b156c973313ceb9941c9197e74b1c863e5cb7457d33e34c16a53"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioRingBuffer.render (cyclomatic 24): AudioRingBuffer.render has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/AudioRingBuffer.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5326f696964c5703e7da4e023873ed8577064ba208baf987c5663e9155943d52"}},{"ruleId":"D1","level":"warning","message":{"text":"SDPMediaDescription.init (cyclomatic 20): SDPMediaDescription.init has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/SDP/SDPMediaDescription.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b51970350d2a8fefd1345a73f4fdefa18439cecd22b3f4f124b61d647f7b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamRecorder.makeWriterInput (cyclomatic 19): StreamRecorder.makeWriterInput has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Stream/StreamRecorder.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1b6c1a217c4b09df18ef6a62538cf738f97af40a2b310bb9940b3549c0cf61"}},{"ruleId":"D1","level":"warning","message":{"text":"RTCPeerConnection.init (cyclomatic 18): RTCPeerConnection.init has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCPeerConnection.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6442521d2e8b2344bcb78610603573e16ce1eca5b38680356b4365324adefb1"}},{"ruleId":"D1","level":"warning","message":{"text":"RTMPConnection.dispatch (cyclomatic 18): RTMPConnection.dispatch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/RTMP/RTMPConnection.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2173fa4e67e433eec8532612105635e6007e14de5f3a14dc6d73c15365b428ce"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaMixer.startRunning (cyclomatic 17): MediaMixer.startRunning has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/MediaMixer.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f708323500e6b6cba9412659ad0eb4d6a1f4b26a7e2cb6dcbf03153e686237"}},{"ruleId":"D1","level":"warning","message":{"text":"SRTSocket.open (cyclomatic 16): SRTSocket.open has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Sources/SRT/SRTSocket.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe60f15e59c8792c187cc53de52d6edbf12aaaf86edde5b93c82bd722a95e6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamRecorder.makeWriterInput (cognitive 48): StreamRecorder.makeWriterInput has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 4 (20 pts), if/else 8 (11 pts), match/switch 3 (10 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 30). 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":"HaishinKit/Sources/Stream/StreamRecorder.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cc5e0729b2dd41a537d546e6910f20062499a24cef84bf7d5f2871db3ce455"}},{"ruleId":"D2","level":"warning","message":{"text":"RTMPConnection.connect (cognitive 44): RTMPConnection.connect has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 3 (8 pts), error handling 5 (7 pts), loops 3 (7 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/RTMP/RTMPConnection.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"be26f3da0e26ec3e874f3f184e80a23e8f5ec1226e14c732b47d011014556fc1"}},{"ruleId":"D2","level":"warning","message":{"text":"SDPMediaDescription.init (cognitive 38): SDPMediaDescription.init has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (29 pts), ternaries 1 (4 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 22). 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":"RTCHaishinKit/Sources/SDP/SDPMediaDescription.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d20f1eab3df21f099c023110e61b7f427b73a03a7b39475fbfbff5ecfdf4b24"}},{"ruleId":"D2","level":"warning","message":{"text":"RTMPConnection.dispatch (cognitive 38): RTMPConnection.dispatch has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 4 (12 pts), loops 2 (6 pts) (nesting depth added 21). 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":"RTMPHaishinKit/Sources/RTMP/RTMPConnection.swift"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"34537df3311c879a9ebadf75dd8bdeff51101c46f8a80523ca2228064e1686e0"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRingBuffer.render (cognitive 36): AudioRingBuffer.render has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 4 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/AudioRingBuffer.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4802758a6e33df6343c38f3dbd999f866b376861444614de6310ff2443d422cc"}},{"ruleId":"D2","level":"warning","message":{"text":"RTMPStream.append (cognitive 35): RTMPStream.append has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 2 (5 pts), ternaries 1 (4 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 22). 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":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"9189d3580b829d8d56296acd4d39e91e4bfe00c9e03c7d3504c9e9137e25ef1e"}},{"ruleId":"D2","level":"warning","message":{"text":"RTCPeerConnection.init (cognitive 33): RTCPeerConnection.init has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (32 pts), error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCPeerConnection.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"55be1ae7ac1989c105ba8424132222bb9dc3976338323c2749c9b4d2d44e8531"}},{"ruleId":"D2","level":"warning","message":{"text":"RTMPConnection.listen (cognitive 28): RTMPConnection.listen has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (20 pts), error handling 2 (4 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 17). 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":"RTMPHaishinKit/Sources/RTMP/RTMPConnection.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dbc4ee6afdc4eca57a1cfedec2760b10ea090bf026515cc560b39acb34ca27"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioCodec.append (cognitive 24): AudioCodec.append has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Codec/AudioCodec.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"75313a654c5c653454981aff589e09ddd0069938bcd94a5066e2930c7d0503ae"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioNode.description (cognitive 24): AudioNode.description has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"DebugDescription/AudioNode\u002BDebugExtension.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33551672e624363e08dab08ba33a9d9a6e258393378d583b38d184ef3fce9f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SRTSocket.open (cognitive 24): SRTSocket.open has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (22 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Sources/SRT/SRTSocket.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b3fce2d9dd264dd45a019b45d40d12e9d860a835face4bcd64aa8be52a0f64"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaMixer.startRunning (cognitive 22): MediaMixer.startRunning has cognitive complexity 22 (threshold 15). Drivers by points: loops 9 (13 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/MediaMixer.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8c4c8726cc6e592d619d98fb2f94d69fee1dc3c55004b2638b8425fb818da0"}},{"ruleId":"D2","level":"warning","message":{"text":"RTMPStream.dispatch (cognitive 20): RTMPStream.dispatch has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 6 (9 pts), boolean chains 1 (nesting depth added 8). 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":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"76830f472da0a13cc383ccecb752caa07a459291fcbcc88b0c8bb215143b9a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamRecorder.append (cognitive 19): StreamRecorder.append has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 5). 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":"HaishinKit/Sources/Stream/StreamRecorder.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5848f83617295bd2342bfb75180c785b9246323daa0da79e59ed490d6bc79576"}},{"ruleId":"D2","level":"warning","message":{"text":"CVPixelBuffer.copy (cognitive 18): CVPixelBuffer.copy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (9 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Extension/CVPixelBuffer\u002BExtension.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3de2a38a0d2b3bd7007a2cefcecf9c9202108fc4d2ff6862b7876da80fb678c"}},{"ruleId":"D2","level":"warning","message":{"text":"MoQTSubscribe.payload (cognitive 18): MoQTSubscribe.payload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (2 pts), loops 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MoQTHaishinKit/Sources/ControlMessage/MoQTSubscribe.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0e601784d1c4227831d84be4888fb94207c973cb2e7f43a48a15d6444346b"}},{"ruleId":"D2","level":"warning","message":{"text":"SRTConnection.connect (cognitive 18): SRTConnection.connect has cognitive complexity 18 (threshold 15). Drivers by points: loops 2 (5 pts), match/switch 2 (5 pts), error handling 3 (4 pts), if/else 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Sources/SRT/SRTConnection.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5cb56f938181c95e825eaf487ffcec2d5c7c11a1af89c72615ee812f6476f9"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoCodec.append (cognitive 17): VideoCodec.append has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Codec/VideoCodec.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8694a39314f780ab9714f8557cabb0d47dc45101c93b8fa49157e076910d97"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaLink.startRunning (cognitive 17): MediaLink.startRunning has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Stream/MediaLink.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"383fae7a82d9c66f36052ceab435dec87fac04198af57f57615d64c505fb0610"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRingBuffer.append (cognitive 16): AudioRingBuffer.append has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/AudioRingBuffer.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"811277ab68470a5db132e98f3b2a15a5551c1368b255077a4965deeeb076a6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"RTPH264Packetizer.append (cognitive 16): RTPH264Packetizer.append has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTP/RTPH264Packetizer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c263973f9bb75f4f648f7f7b808f4c94e37e5727aaf3aae0a0880d249ee4817"}},{"ruleId":"D2","level":"warning","message":{"text":"SRTSession.connect (cognitive 16): SRTSession.connect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 2 (4 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Sources/SRT/SRTSession.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1ac5f2bf097dee70f9cc470476f63c10b4f49f26ea3e68239c9c1ffd2ca00e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RTMP/RTMPStream.swift: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ce4c59bc50183360aa31e6a3758ffe608bda52d925140558694d8a8c3caa8e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ByteArray: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39739fb123d66431134b56229fd281a1a456a1fb22e9e8961836ab040c83f23"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ByteArray: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2101cb6ab42df9296b280f66c22e5fbe890facc395ee8842448c323990c777f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ByteArray: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Sources/TS/ByteArray.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f10b8490e9cb8a895dacb4edc6dd38722365c19ec0791425054d94d11d80c9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Name.init: MethodTooLong \u2014 init runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"SRTHaishinKit/Sources/SRT/SRTSocketOption.Name.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"574c5042408fbc113716c5b445bdc2975963e32ce13b7f4fbc9cffb6de81a315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): RTMPHaishinKit/Sources/AMF/AMF0Serializer.swift:87-115 | RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift:98-126 \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 \u0060RTMPHaishinKit/Sources/AMF/AMF0Serializer.swift:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060RTMPHaishinKit/Sources/AMF/AMF0Serializer.swift:117\u0060 calls \u0060serialize\u0060 and \u0060RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift:127\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":"RTMPHaishinKit/Sources/AMF/AMF0Serializer.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"730e4e7aea04ed298cd9d6325f640d9c362c7d9dcdff9b178b4a1318e2474d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): RTCHaishinKit/Sources/RTP/RTPH264Packetizer.swift:250-271 | RTMPHaishinKit/Sources/Codec/AVCDecoderConfigurationRecord.swift:51-72 \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 \u0060RTCHaishinKit/Sources/RTP/RTPH264Packetizer.swift:250\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":"RTCHaishinKit/Sources/RTP/RTPH264Packetizer.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"367827f270095f1c2d43fd8d6010bac2ad4e7059d26e53ffd159ac4c3fa0f23c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): MoQTHaishinKit/Sources/MoQTSocket.swift:155-173 | RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:158-176 \u2014 before extracting anything, compare \u0060MoQTHaishinKit/Sources/MoQTSocket.swift\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MoQTHaishinKit/Sources/MoQTSocket.swift:155\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060MoQTHaishinKit/Sources/MoQTSocket.swift:154\u0060 calls \u0060start\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:157\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MoQTHaishinKit/Sources/MoQTSocket.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd339ab932dedea0735489d0cdbf7394570fc643c12a5834fe53e8e02c00ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): HaishinKit/Sources/Screen/TextScreenObject.swift:5-22 | HaishinKit/Sources/Screen/TextScreenObject.swift:46-63 \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":"HaishinKit/Sources/Screen/TextScreenObject.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bc65235148d70ccc5e002a0cc1da08d0cbbe3f85469ccf6be886e1e8138b96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): RTCHaishinKit/Sources/RTC/RTCStream.swift:39-54 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:394-409 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCStream.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9ce7b356936876d99e6ac16fb06d8c3ec159ef6e93ec8b4cbdcb1d95c250a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:354-368 | RTMPHaishinKit/Sources/Util/ByteArray.swift:354-368 | SRTHaishinKit/Sources/TS/ByteArray.swift:354-368 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"72300a9a25061d429614efd2d7b3b3630a7d5691920a2fdb47e22171a1366edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): HaishinKit/Sources/Screen/AssetScreenObject.swift:78-91 | HaishinKit/Sources/Screen/StreamScreenObject.swift:59-72 | HaishinKit/Sources/Screen/VideoScreenObject.swift:117-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060HaishinKit/Sources/Screen/AssetScreenObject.swift:78\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/AssetScreenObject.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"37928d082a437a7b9093d6c9c5361f53b8ca3dc7c373efa8c65f69a05ce373ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): HaishinKit/Sources/Screen/ScreenObjectSnapshotFactory.swift:9-22 | HaishinKit/Sources/Screen/ScreenObjectSnapshotFactory.swift:26-39 \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 \u0060HaishinKit/Sources/Screen/ScreenObjectSnapshotFactory.swift:9\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":"HaishinKit/Sources/Screen/ScreenObjectSnapshotFactory.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7320ddd07533376d58c601ce3b8ee0c2a5fd318860f0203f24207f51c40315a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MoQTHaishinKit/Sources/MoQTSocket.swift:140-153 | RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:144-157 \u2014 before extracting anything, compare \u0060MoQTHaishinKit/Sources/MoQTSocket.swift\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MoQTHaishinKit/Sources/MoQTSocket.swift:140\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, \u0060MoQTHaishinKit/Sources/MoQTSocket.swift:154\u0060 calls \u0060start\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:158\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MoQTHaishinKit/Sources/MoQTSocket.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddcb98158ee55d4cdaaadf50d3384cefdf6f79fdac0f0691c1c02ade6208bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:371-384 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:526-539 \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 \u0060RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:371\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":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1185452273d691feb073581f09111b0c6ba62028c7c22df7d94d79e71c949ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): HaishinKit/Sources/Mixer/AudioMixerByMultiTrack.swift:146-158 | HaishinKit/Sources/Mixer/AudioMonitor.swift:53-65 \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 \u0060HaishinKit/Sources/Mixer/AudioMixerByMultiTrack.swift:146\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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":"HaishinKit/Sources/Mixer/AudioMixerByMultiTrack.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"677b7903087ed09f56a4fb68c7f3e21706a351de12d4daaadeb14b70ef258e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:311-322 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:373-384 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:528-539 \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 \u0060RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:311\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:310\u0060 calls \u0060startRunning\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:372\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c8b002dd31f631684940349dde9e1ec439b9507b5f7a855493e54886e9365a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:340-351 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:491-502 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:506-517 \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. 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":"RTMPHaishinKit/Sources/RTMP/RTMPStream.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"6017f66f79c25fda282c9a80b61635000960a4037ac1b9ad2ce8c2696c6ab622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): HaishinKit/Sources/Extension/CVPixelBuffer\u002BExtension.swift:69-79 | HaishinKit/Sources/Extension/CVPixelBuffer\u002BExtension.swift:87-98 \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 \u0060HaishinKit/Sources/Extension/CVPixelBuffer\u002BExtension.swift:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Extension/CVPixelBuffer\u002BExtension.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61aec5c4ae27013b8d76d0cef3059d3bf6788d6bb5e4a7477081b958340fcbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:329-339 | RTMPHaishinKit/Sources/Util/ByteArray.swift:329-339 | SRTHaishinKit/Sources/TS/ByteArray.swift:329-339 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36514c79e185f5bd52d98d25c67c6f0c158339264d4489d004afda30caa80ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:380-390 | RTMPHaishinKit/Sources/Util/ByteArray.swift:380-390 | SRTHaishinKit/Sources/TS/ByteArray.swift:380-390 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"663167fb908d8c1b16d70d367074b4b0624efab181ae781269b0b57c52239e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): MoQTHaishinKit/Sources/MoQTSocket.swift:81-91 | RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:62-72 \u2014 before extracting anything, compare \u0060MoQTHaishinKit/Sources/MoQTSocket.swift\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060MoQTHaishinKit/Sources/MoQTSocket.swift:81\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":"MoQTHaishinKit/Sources/MoQTSocket.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a906c8cfa1dcd3893ce12a9ccfdc2e6f56c15ef24fe4e899ad5fd6df522ceb18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): RTMPHaishinKit/Sources/Codec/HEVCDecoderConfigurationRecord.swift:47-56 | SRTHaishinKit/Sources/Extension/HEVCNALUnit\u002BExtension.swift:21-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/Codec/HEVCDecoderConfigurationRecord.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fedac223a7c2d81f534b71741db6d16a509b36258b10f3ca9a2f32dab156f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift:255-261 | RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift:366-372 \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 \u0060RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift:255\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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":"RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1d99ceb925ae44e2243a0993478dc672eef17cecfa555ed6c5d4eb9417ffdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:373-378 | RTMPHaishinKit/Sources/Util/ByteArray.swift:373-378 | SRTHaishinKit/Sources/TS/ByteArray.swift:373-378 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060HaishinKit/Sources/Util/ByteArray.swift:373\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":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5014584b41683568a3116ab258ef6e605e0facc9896571e5ca5afa934e8948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): HaishinKit/Sources/Screen/TextScreenObject.swift:33-38 | HaishinKit/Sources/Screen/TextScreenObject.swift:76-81 \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 \u0060HaishinKit/Sources/Screen/TextScreenObject.swift:33\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/TextScreenObject.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0688a83cce19dafb7566a9d4cf4f12b697b0c8d9d28a4c7284b99c45c9bb5641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): HaishinKit/Sources/ISO/ISOTypeBufferUtil.swift:37-41 | HaishinKit/Sources/ISO/NALUnitReader.swift:13-17 \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 \u0060HaishinKit/Sources/ISO/ISOTypeBufferUtil.swift:37\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":"HaishinKit/Sources/ISO/ISOTypeBufferUtil.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef550fcfc4c6d1eda0ecb0f99932a4be35dbe5a5d58fe3d831ae2e6d4426106e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): RTMPHaishinKit/Sources/RTMP/RTMPChunk.swift:290-294 | RTMPHaishinKit/Sources/RTMP/RTMPChunk.swift:299-303 \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":"RTMPHaishinKit/Sources/RTMP/RTMPChunk.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbeedaa78fbbad5c0880a789391d6e8ab2f9d8fb7519ad5478ecddce471595a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): MoQTHaishinKit/Sources/ControlMessage/MoQTAnnounceOk.swift:9-23 | MoQTHaishinKit/Sources/ControlMessage/MoQTSubscribeAnnouncesOk.swift:9-23 \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 \u0060MoQTHaishinKit/Sources/ControlMessage/MoQTAnnounceOk.swift:9\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":"MoQTHaishinKit/Sources/ControlMessage/MoQTAnnounceOk.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9526fa3d0ee4f9fd8201b8205eec03b2de4777196337dc823ebcce726ac6a4de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): HaishinKit/Sources/Mixer/AudioCaptureUnit.swift:103-112 | HaishinKit/Sources/Mixer/VideoCaptureUnit.swift:145-154 \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":"HaishinKit/Sources/Mixer/AudioCaptureUnit.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"702b3bae9c7cb3b6f717eb2bf245a299e7a3007a45f5cf4e36ea0385841a3a42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): HaishinKit/Sources/Mixer/AudioCaptureUnit.swift:114-123 | HaishinKit/Sources/Mixer/VideoCaptureUnit.swift:156-165 \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":"HaishinKit/Sources/Mixer/AudioCaptureUnit.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"498fa39c2e366df198777748667febeaed077fb8cc9c207b6ef9769aa859bf4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): HaishinKit/Sources/Screen/AssetScreenObject.swift:93-101 | HaishinKit/Sources/Screen/StreamScreenObject.swift:74-82 \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":"HaishinKit/Sources/Screen/AssetScreenObject.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ec62d8d0e46783ad95f9357a381bf0993232e606d7c09bd8da2f9b4e5b5560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): HaishinKit/Sources/Screen/VideoScreenObject.swift:76-82 | HaishinKit/Sources/View/MTHKView.swift:111-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/VideoScreenObject.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"addd987c3123a8308155b6df9ca82cf0cbd3585af8d38468a0cff1f99bd11cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): HaishinKit/Sources/Screen/VideoScreenObject.swift:85-91 | HaishinKit/Sources/View/MTHKView.swift:120-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/VideoScreenObject.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"404cb0cba63db7042893f4ca53e7536d77038666675c89c7d386b843b18cde91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): HaishinKit/Sources/Stream/StreamRecorder.swift:233-242 | RTCHaishinKit/Sources/RTC/RTCStream.swift:160-169 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:801-810 | SRTHaishinKit/Sources/SRT/SRTStream.swift:194-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Stream/StreamRecorder.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4561e3e39c288816fee2338facbab0117c7d280498a402c7b38197923d275f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): HaishinKit/Sources/Util/ByteArray.swift:112-121 | MoQTHaishinKit/Sources/MoQTPayload.swift:16-25 | RTMPHaishinKit/Sources/Util/ByteArray.swift:112-121 | SRTHaishinKit/Sources/TS/ByteArray.swift:112-121 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3759aa02f22f1883fa259e971bc2eb00844ae15da22a5d43ab64c761928996c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:142-150 | RTMPHaishinKit/Sources/Util/ByteArray.swift:142-150 | SRTHaishinKit/Sources/TS/ByteArray.swift:142-150 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48155907d5163cd4cc9ffd8c52ed1a22abf604360b757c6c245aa921919f92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:159-167 | RTMPHaishinKit/Sources/Util/ByteArray.swift:159-167 | SRTHaishinKit/Sources/TS/ByteArray.swift:159-167 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9358c3bb073939b3aeab3bfe700f0b5759d4c22b30a93376926c8094f1380fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:176-182 | RTMPHaishinKit/Sources/Util/ByteArray.swift:176-182 | SRTHaishinKit/Sources/TS/ByteArray.swift:176-182 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fce0ccd85eef2cdd0c8173789698bac94baa2b3775c29d4312bc064197c0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:191-197 | RTMPHaishinKit/Sources/Util/ByteArray.swift:191-197 | SRTHaishinKit/Sources/TS/ByteArray.swift:191-197 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c06a9cb681459bcd70791e163cdbd46c4066347f44dfca66e1d821fadc049d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:206-212 | RTMPHaishinKit/Sources/Util/ByteArray.swift:206-212 | SRTHaishinKit/Sources/TS/ByteArray.swift:206-212 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97ff0731bf807e652f93cee2b29d5fded4159c7b9c0c22f88f05cd6f87daaf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:221-227 | RTMPHaishinKit/Sources/Util/ByteArray.swift:221-227 | SRTHaishinKit/Sources/TS/ByteArray.swift:221-227 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"24afc78bd466161b9c2bac295dabf503b2d67b4d27f7375c7d0c45b056462098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:236-242 | RTMPHaishinKit/Sources/Util/ByteArray.swift:236-242 | SRTHaishinKit/Sources/TS/ByteArray.swift:236-242 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1993f4c2fb3623b3f96ebd4b8bc7a9d46322bea615fb047a97cc57ca373dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:257-263 | RTMPHaishinKit/Sources/Util/ByteArray.swift:257-263 | SRTHaishinKit/Sources/TS/ByteArray.swift:257-263 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fad686f33e10326a1bfbf211485c09fb71e6647ee45dcae16601d7fca42baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:271-277 | RTMPHaishinKit/Sources/Util/ByteArray.swift:271-277 | SRTHaishinKit/Sources/TS/ByteArray.swift:271-277 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1828d8177e739bc79693bb59d347bef0b5d0eb8f67fb73d8159b4580a85ad7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:280-286 | RTMPHaishinKit/Sources/Util/ByteArray.swift:280-286 | SRTHaishinKit/Sources/TS/ByteArray.swift:280-286 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"023dfa584642e9c19cee54ed8cbd1d357f812a423702fa1c7d3a8e6038750708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:295-301 | RTMPHaishinKit/Sources/Util/ByteArray.swift:295-301 | SRTHaishinKit/Sources/TS/ByteArray.swift:295-301 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"db349f609e07c5c1eaa505f0ff47b075dd48d82e88df5c6b0972104a760eab4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:315-319 | RTMPHaishinKit/Sources/Util/ByteArray.swift:315-319 | SRTHaishinKit/Sources/TS/ByteArray.swift:315-319 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"6594a21c4c43c3480460d55370a72f6934c0715db35613d2fe4adae3ce048915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): HaishinKit/Sources/Util/ByteArray.swift:346-352 | RTMPHaishinKit/Sources/Util/ByteArray.swift:346-352 | SRTHaishinKit/Sources/TS/ByteArray.swift:346-352 \u2014 before extracting anything, compare \u0060HaishinKit/Sources/Util/ByteArray.swift\u0060 and \u0060RTMPHaishinKit/Sources/Util/ByteArray.swift\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Util/ByteArray.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c7845bf1dba41cfe1e13862da82e7d3b7bf4b833849607b56b290395501860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): HaishinKit/Sources/View/MTHKView.swift:131-140 | HaishinKit/Sources/View/PiPHKView.swift:100-109 \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":"HaishinKit/Sources/View/MTHKView.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e53212d0dad32d4fa6ae3606d4ac2eaa373f9fecb85b93f7f30df020cf1d666"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): HaishinKit/Sources/View/MTHKViewRepresentable.swift:28-33 | HaishinKit/Sources/View/PiPHKViewRepresentable.swift:28-33 \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":"HaishinKit/Sources/View/MTHKViewRepresentable.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3ce0854df28329bb67f71743df28695e20880cbb3c5d4e357ac330f6d3667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): MoQTHaishinKit/Sources/MoQTSocket.swift:112-124 | RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:130-142 \u2014 before extracting anything, compare \u0060MoQTHaishinKit/Sources/MoQTSocket.swift\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MoQTHaishinKit/Sources/MoQTSocket.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b036e67597d0892dbf80412cd07213c8ee1c8c675fc92fbc409b3cf458dd5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): MoQTHaishinKit/Sources/MoQTSocket.swift:175-180 | RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift:178-183 \u2014 before extracting anything, compare \u0060MoQTHaishinKit/Sources/MoQTSocket.swift\u0060 and \u0060RTMPHaishinKit/Sources/RTMP/RTMPSocket.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MoQTHaishinKit/Sources/MoQTSocket.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d4be69cc5cba6e485c75d2d35f376481c57f70ba5335b612541d85c9c1fc0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): RTCHaishinKit/Sources/RTC/RTCStream.swift:81-86 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:716-721 | SRTHaishinKit/Sources/SRT/SRTStream.swift:145-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCStream.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee6fd86f9fd7c3cf08781d43426d1685574dd75fd9d8f230121757c77dee378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): RTCHaishinKit/Sources/RTC/RTCStream.swift:88-93 | RTMPHaishinKit/Sources/RTMP/RTMPStream.swift:723-728 | SRTHaishinKit/Sources/SRT/SRTStream.swift:152-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCStream.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ddec426bbde0d45f9c7e86f02e044c13bd13a90e518f21325e4e13235c6000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): HaishinKit/Sources/Mixer/MediaMixer.swift:358-363 | HaishinKit/Sources/Stream/StreamConvertible.swift:94-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/MediaMixer.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d18a346acc6c16430b347857cc6025918569467fa116a95938b578fe641819e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): HaishinKit/Sources/Mixer/MediaMixer.swift:366-370 | HaishinKit/Sources/Stream/StreamConvertible.swift:101-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/MediaMixer.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4484edcadce0b1915e9d0e89f203347b515c00a1ac00234e5dde94778b935ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): RTCHaishinKit/Sources/RTC/RTCDataChannel.swift:41-50 | RTCHaishinKit/Sources/RTC/RTCTrack.swift:23-32 | RTCHaishinKit/Sources/RTC/RTCTrack.swift:34-43 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCDataChannel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4dd1c6f992211d5590684e620e541dfd8015a5322269588eb0ae4177bf0ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): Examples/iOS/PublishViewModel.swift:164-187 | Examples/iOS/UVCViewModel.swift:82-106 \u2014 before extracting anything, compare \u0060Examples/iOS/PublishViewModel.swift\u0060 and \u0060Examples/iOS/UVCViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/iOS/PublishViewModel.swift:164\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fa50cba661e921fdd7456569307e83b0a48719c8a2a8f0ac8dbaedd0ea3d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): Examples/iOS/PublishViewModel.swift:510-527 | Examples/macOS/PublishViewModel.swift:149-168 \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 \u0060Examples/iOS/PublishViewModel.swift:510\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":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"978ea4f1275ca0c57dea843ee6f0873435f3e51bd1758a27983e9c44d3d9c66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Examples/iOS/PublishView.swift:310-322 | Examples/iOS/PublishView.swift:337-349 \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 \u0060Examples/iOS/PublishView.swift:310\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006016\u0060 in one and \u006010\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":"Examples/iOS/PublishView.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"069b238152e7c545aaca1333a49f00de2a448f3150ea0f1640dc9d48bbcfd892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Examples/iOS/PublishViewModel.swift:271-283 | Examples/iOS/UVCViewModel.swift:156-168 \u2014 before extracting anything, compare \u0060Examples/iOS/PublishViewModel.swift\u0060 and \u0060Examples/iOS/UVCViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/iOS/PublishViewModel.swift:271\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":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee727df5e5163dfe017f1e85e4b651538adf569dea8bde43c169e4424348b8a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Examples/iOS/UVCViewModel.swift:136-148 | Examples/macOS/PublishViewModel.swift:49-61 \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 \u0060Examples/iOS/UVCViewModel.swift:136\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":"Examples/iOS/UVCViewModel.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"75aeb3fa905421eb2c16f51df7afc78aedd5d8e6c0d2b205610277cd6f67a657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Examples/iOS/UVCViewModel.swift:205-216 | Examples/macOS/PublishViewModel.swift:124-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOS/UVCViewModel.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"978f95c50e23ff1cbb7df37b32dceeedc9e1c23f9d9e6804c0fbd0e30de10918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Examples/iOS/InfoGuideView.swift:75-85 | Examples/iOS/InfoGuideView.swift:87-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/iOS/InfoGuideView.swift:75\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":"Examples/iOS/InfoGuideView.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff643fe298ed40a6fbd38de52c998159bfca9a110ddacc645d981f4e42c3032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Examples/macOS/HaishinApp.swift:20-29 | Examples/tvOS/HaishinApp.swift:20-29 \u2014 \u0060Examples/macOS/HaishinApp.swift\u0060 and \u0060Examples/tvOS/HaishinApp.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 10 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/macOS/HaishinApp.swift:20\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":"Examples/macOS/HaishinApp.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0802451afaf41d5da285759bcf2c5c18d72c790a9e2296c71a42c92a9a90e5fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Examples/iOS/PublishViewModel.swift:138-146 | Examples/iOS/PublishViewModel.swift:167-175 | Examples/iOS/UVCViewModel.swift:85-94 \u2014 before extracting anything, compare \u0060Examples/iOS/PublishViewModel.swift\u0060 and \u0060Examples/iOS/UVCViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/iOS/PublishViewModel.swift:138\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":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0234c15719d27c57f04b02759263582e7cfc35b6dc4510666f6840792543c7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Examples/iOS/UVCView.swift:54-62 | Examples/iOS/UVCView.swift:68-76 \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 \u0060Examples/iOS/UVCView.swift:54\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":"Examples/iOS/UVCView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ff18be38cfbd826759db2c2790b0646fdaa364292ec2b6000c2b7d2c531027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Examples/iOS/PublishViewModel.swift:299-305 | Examples/iOS/PublishViewModel.swift:426-432 \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 \u0060Examples/iOS/PublishViewModel.swift:299\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":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c800c92ccea2e0fe93fdac026b4bdf56bbbf9eff39000fa21fbc0172ccf13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Examples/Preference.swift:11-16 | Examples/iOS/PreferenceViewModel.swift:157-162 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/Preference.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c68f1edadc720520fa2d88445623f633e4b69900257f83e8a8958bcfb80d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Examples/iOS/PublishViewModel.swift:466-476 | Examples/macOS/PublishViewModel.swift:137-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOS/PublishViewModel.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9a43fc5d5dda1bfc9b3d070b597b8996a6eb7d3b73fccf969bf614b2449460"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: HaishinKit: HaishinKit: abstractness 0.30, instability 0.00, distance 0.70 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a7bd31e2313db57f80a910ec4d219e50acf5062e32ac63c1d9605e0505e2f575"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HTTPSession (LCOM4 7): HTTPSession\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/HTTP/HTTPSession.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3337877e0e134b639c7145731b9a5fc4f0e4955482d0bc3ae3e1ed87598e58c3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MTHKView (LCOM4 6): MTHKView\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/View/MTHKView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc4cf64ad2c895295be153e21cc0a3b79709c53fd977cd8991ee3a5becb5648"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AMFReference (LCOM4 6): AMFReference\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Sources/AMF/AMF3Serializer.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"631f498f5762295f718da33b4200d5a19dd01a6ca78fb83fd981e503ba47c594"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AudioCaptureUnit (LCOM4 5): AudioCaptureUnit\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/AudioCaptureUnit.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d7b374a12fa2ace8440bc5b6d5113002891546372d01365c6f08b93b639e22"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MixerNode (LCOM4 5): MixerNode\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/AudioNode.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b5b6d0e963bba81d30f114732ac16adb41ca2cb34106d1749c17830ca13a7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NullCaptureSession (LCOM4 5): NullCaptureSession\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/CaptureSession.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"058c4459553137c8d0ddc7f051e4ba18ce1709f2e9b46291c1a83804f15666aa"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ScreenObject (LCOM4 5): ScreenObject\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/ScreenObject.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaf35657a0b6e6eae505210037e0cc1d30d3d833a8b2436144976df9cca4cae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CaptureSession (LCOM4 4): CaptureSession\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/CaptureSession.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"818612ea37fed5079b3ed3a1ca86ee56ef41beb68ede56e55250b280697aa834"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VideoCaptureUnit (LCOM4 4): VideoCaptureUnit\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/VideoCaptureUnit.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f1d13449868b17e74c95c2609d1b03bd2e746efa25541df613a8301a4aadb0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VideoDeviceUnit (LCOM4 4): VideoDeviceUnit\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/VideoDeviceUnit.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0369f58ff891f2562fd1785df19b42c164cc5df8e54ce61edef4243312c23dc9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PiPHKView (LCOM4 4): PiPHKView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/View/PiPHKView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4ec2afdacd51afd7c2948895612f5c37aca46ee4d4c4e44a7ad07f9f7dcea0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RTCStream (LCOM4 4): RTCStream\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCStream.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"adabe7d944c7332f6800e9f8e8c59725f87580a04fd3ed787e21325aa037323d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RTCTrack (LCOM4 4): RTCTrack\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTCHaishinKit/Sources/RTC/RTCTrack.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"12510e8deea16b90776bb160542c1f93829b87fb6663284b3332d9740fe4d3e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: aac_44100hz_step_1224: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Codec/AudioCodecTests.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fd37fd809ac66b9625d602351ab4bf4cfb6a149b849be993aeda228e6fa35e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test3Channel_withoutCrash: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Codec/AudioCodecTests.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feca5be3c97ec57dc7fa26302b5e46680d3856b3a5f2717b4c9f10e0ce1c631"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: bytes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/ISO/ADTSHeaderTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d3c28c0c963db7645190f6f13bd6a7d88d0c06622134d0ce2799850ef951e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: keep48000: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioMixerTrackTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e8f93c413f4b2d83c03ee88bd22ef6c77386b3e1d153baa27ca18651b28b2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: passthrough48000_44100: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioMixerTrackTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e661b48af093db05d31e1ae9a2a377b03db9b271d34504445da65eec165b7b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: monoAppendSampleBuffer_920: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioRingBufferTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"664f5cf73ca3c1bf4535f288bb095a38da2cd5653f8a12c6bb127bc74b307db3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: monoAppendSampleBuffer_1024: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioRingBufferTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"775d4ab6c3eb52f7a77653d67338062fc394982c3870684ebb4ffb024b1fb533"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stereoAppendSampleBuffer_920: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioRingBufferTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b565e89107e79fc74eba5bf74ce54f27c12bc007e7bfb18bdc20626d98d19ddc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: stereoAppendSampleBuffer_1024: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Mixer/AudioRingBufferTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93ad4036647b5b08512572d0c507f1c23942322adfc54e00deabba761e22119"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: rejectsInvalidURL: No conventional assertion call was detected, and 3 of 4 tests in \u0060Session\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Session/StreamSessionBuilderFactoryTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e5b265e534925137992013e8196bbf2f141b692c9326d9e6a98a03d02d003d"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: unsupportedScheme: No conventional assertion call was detected, and 3 of 4 tests in \u0060Session\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Session/StreamSessionBuilderFactoryTests.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28d3eeb87f3024e07a61ae8d5ce62d980f47afa34a330abc27994399625d3ce"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: acceptsValidAuthority: No conventional assertion call was detected, and 3 of 4 tests in \u0060Session\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Session/StreamSessionBuilderFactoryTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"542869e7df7d7aa6b78874bf2865efc87e044e52a4d3a774e340e3abe99c773c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: startRunning_fileAlreadyExists: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Tests/Stream/StreamRecorderTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ab5a87ae49da755523ff022a3eab7c495e677f1c70a4eb3ae3654cca4df4ef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: chunkSize: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"RTMPHaishinKit/Tests/RTMP/RTMPChunkBufferTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91321d813a1193d47697979a7a971ac7935de287d1b5c7e07ef910da95c9130"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: streamid_success: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SRTHaishinKit/Tests/SRT/SRTConnectionTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e326b8efe05f81a39792c996f6a5f2f4c85ec95b40e83f8fd8a700d1651c0fb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix memory leak \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":"RTCHaishinKit/Sources/RTC/RTCTrackConfiguration.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"36944130fde2ab912bdd61eb29266b149c36fbddd63ed681307c86ecd04f469e"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (21817 LoC, 397 module-visible types across 30 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"edd934967edc6ed70c2079d29f52f029dd1fedfe2b580e4cf3d92d4ae0b14d0a"},"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":"5030957219553669f4fe2e7c98f3ecfa7ef14bea6d83ac3361e836d4d07be860"},"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":"799af5c0b1f6b0a9527fe82ef2ae0bb8c54cebfea2fc883d7db5f2b02748026c"},"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":"c6ef2f316ca631b692d03c475bed7e473e93f3db6fa35d9ef86248c50808e234"},"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":"b045f06583c9b465f808666ab807bb301b75e163408a0670ffe050a381f461f6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"0386b2f3d960d78589c703210a027c469d38e3a4f16c83f4a7e591b4872b11ea"},"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":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: CaptureUnit.swift \u2194 RTMPStream.swift: \u0060HaishinKit/Sources/Mixer/CaptureUnit.swift\u0060 (context HaishinKit) and \u0060RTMPHaishinKit/Sources/RTMP/RTMPStream.swift\u0060 (context RTMPHaishinKit) sit in DIFFERENT parts of the tree yet change together 56% of the time (9 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060a79dbc41\u0060 Add IOTellyUnit. (at that commit the files were still \u0060Sources/Media/IOUnit.swift\u0060 and \u0060Sources/RTMP/RTMPStream.swift\u0060); \u0060360da8ce\u0060 Creating RTMP onMetaData based on input data. (at that commit the files were still \u0060Sources/Media/IOUnit.swift\u0060 and \u0060Sources/RTMP/RTMPStream.swift\u0060); \u0060e4651e08\u0060 Refactor IOMixer#audioEngineHolder. (at that commit the files were still \u0060Sources/Media/IOUnit.swift\u0060 and \u0060Sources/RTMP/RTMPStream.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/CaptureUnit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f4f39bcedae0867cff261f510f17648dd0d6917e839340fead47b3a9f743c5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: VTSessionMode.swift \u2194 VideoCodecSettings.swift: \u0060HaishinKit/Sources/Codec/VTSessionMode.swift\u0060 and \u0060HaishinKit/Sources/Codec/VideoCodecSettings.swift\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060b718080c\u0060 Made expectedFrameRate optional. (#1841); \u0060bc887590\u0060 Refactor VideoCodecSettings.; \u0060f6fc447a\u0060 Add LowLatencyRateControlEnabled option. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Codec/VTSessionMode.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d1f93b4e012a26cc1ddd86720cd7d3cf4587d70ba6c65c930c30052afe1527"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MTHKView.swift \u2194 PiPHKView.swift: \u0060HaishinKit/Sources/View/MTHKView.swift\u0060 and \u0060HaishinKit/Sources/View/PiPHKView.swift\u0060 change together 69% of the time (18 of the 26 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u006013847ffe\u0060 refs 0b7c9982 (at that commit the files were still \u0060Sources/View/MTHKView.swift\u0060 and \u0060Sources/View/PiPHKView.swift\u0060); \u00600b7c9982\u0060 Advanced protocol MediaMixerOutput. (at that commit the files were still \u0060Sources/View/MTHKView.swift\u0060 and \u0060Sources/View/PiPHKView.swift\u0060); \u00608d4c669a\u0060 Integration into DisplayLinkChoreographer. (at that commit the files were still \u0060Sources/View/MTHKView.swift\u0060 and \u0060Sources/View/PiPHKView.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/View/MTHKView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b636536d45fd744bcf4cc120f22f315b5ae9ad08419d66341a3981799fbefa"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DeviceUnit.swift \u2194 MediaMixer.swift: \u0060HaishinKit/Sources/Mixer/DeviceUnit.swift\u0060 and \u0060HaishinKit/Sources/Mixer/MediaMixer.swift\u0060 change together 52% of the time (11 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u00606b24a7be\u0060 Support attachVideo() for visionOS. (at that commit the files were still \u0060Sources/IO/IOCaptureUnit.swift\u0060 and \u0060Sources/IO/IOMixer.swift\u0060); \u006021a55384\u0060 tvOS 17.0 for AVCaptureSession. (at that commit the files were still \u0060Sources/Media/IOCaptureUnit.swift\u0060 and \u0060Sources/Media/IOMixer.swift\u0060); \u00608ef80f98\u0060 fixed #1157 Support 60/fps. (at that commit the files were still \u0060Sources/Media/IOCaptureUnit.swift\u0060 and \u0060Sources/Media/IOMixer.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Mixer/DeviceUnit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"245a52d9fc6f14f120ecd893c41d8b6b6aed8c0a11e560b795e9c4034610b028"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ad4701c91f7eaa24aa7b7536975da3068c18dd1ab098025ae5c285286432c8e"},"taxa":[{"id":"CICD-SEC-6","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":"53a31cf464667a0bc85d41608420a3b86727234209ba8e249ece264d3c92e934"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2215 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u00600.0 \u003C cornerRadius || chromaKeyColor != nil\u0060 appears character-identically in 2 files \u2014 HaishinKit/Sources/Screen/StreamScreenObject.swift, HaishinKit/Sources/Screen/VideoScreenObject.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/Screen/StreamScreenObject.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbab435beb7006eecf1fb45d6e392e35d236a195dbd531aec59493c76aec5f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data[i] == 1 \u0026\u0026 data[i - 1] == 0 \u0026\u0026 data[i - 2] == 0\u0060 appears character-identically in 2 files \u2014 HaishinKit/Sources/ISO/ISOTypeBufferUtil.swift, HaishinKit/Sources/ISO/NALUnitReader.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"HaishinKit/Sources/ISO/ISOTypeBufferUtil.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0281d475383127a7946d590a0168d27ee1072b42726004772e74476d78476ff3"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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":"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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"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":13,"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."]}]}