{"$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":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 16 shared lines): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:229-249 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:356-376 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:276-296 | crates/shadowsocks/src/net/sys/unix/others.rs:82-103 | crates/shadowsocks/src/net/sys/windows/mod.rs:466-486 \u2014 These 5 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaeea31a60f4ad5942c26785ff4881cbc97ab520a4f1226d3bba2acd1879331"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 42 shared lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:43-109 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:61-125 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:42-101 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:45-111 \u2014 These 4 members are variants of one another: a block of 42 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a1606fc722f70952facf8b53331d94970f13229272cc13cef6d9fa9dfd39a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 141 shared lines): src/service/local.rs:587-1062 | src/service/manager.rs:273-529 | src/service/server.rs:292-571 \u2014 These 3 members are variants of one another: a block of 141 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34eae2120b0ed8ecbc683c5579fdff98559ad5cf3fabdc75d61b016d7b20cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 131 shared lines): src/service/local.rs:85-584 | src/service/manager.rs:35-270 | src/service/server.rs:33-289 \u2014 These 3 members are variants of one another: a block of 131 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c88da97fc4a8d95bb9e325ebaa103d36a353aac7cced7ad6f6823b1087851cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (49 shared lines): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:386-502 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:505-603 \u2014 These two members are variants of one another: 49 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9263310a2e21996191010b7810bec7a83d0462515430146c0d093c0ece7eade1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): crates/shadowsocks/src/relay/udprelay/crypto_io.rs:74-102 | crates/shadowsocks/src/relay/udprelay/crypto_io.rs:113-136 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/crypto_io.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"225179afb403e72e429ec86cc1211c3019e0079c6ef2f18999452ab578239800"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:162-188 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:154-180 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:182-209 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:176-202 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:204-230 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:178-221 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56461a3c9980ee56120e33d3ca36cb203104866911605ae7c99af1ed6fe2b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:301-361 | crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:384-433 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:452-504 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:527-576 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:463-523 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:546-595 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10445188a9cd3e640a66c1b24cccc0b4213350dd9ca4e5b6c1b32c979916327"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): crates/shadowsocks-service/src/local/dns/server.rs:514-529 | crates/shadowsocks-service/src/local/fake_dns/server.rs:124-137 | crates/shadowsocks-service/src/local/redir/server.rs:131-144 | crates/shadowsocks-service/src/local/socks/server/mod.rs:194-209 | crates/shadowsocks-service/src/local/tunnel/server.rs:157-170 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"309eae9d803a76b0d3c1d97141a48655b256622cfa9b7dbe2351f969efb89ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:116-127 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:132-143 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:108-119 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:118-129 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8fe22be28167e4497a4a3ad2119033ad08847f6b446d55acdd2fc47cda5b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:226-256 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:377-407 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:444-465 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:488-510 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de28c6b3d29a1310b50a92f4c4d909bd0cf4217122947d27ab8ea16c18e4fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:289-351 | crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:97-161 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29f3b0a9666cde127c4f599c621ac8a306dee484c98e23366e3850f49ab5a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:142-187 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:207-258 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02d50c2ab1c005592043a67af3ba620215c602caee8408612e27796d7e8ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): crates/shadowsocks/src/relay/udprelay/aead_2022.rs:537-594 | crates/shadowsocks/src/relay/udprelay/aead_2022.rs:648-700 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/aead_2022.rs"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edc2c734619efcf5d278b74823e4de980205df83dd0e5adc13fe08414ac47e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs:83-152 | crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs:226-287 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3346f62dc1207fdc1ce3d7c1c4af4f30a69fc0e6ca59959bfeb7dbaf898bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): crates/shadowsocks-service/src/net/http_stream.rs:63-117 | crates/shadowsocks-service/src/net/outbound/tls.rs:103-151 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/http_stream.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f95dfcc5adfdb00f582efb532d6a921b939452478b2fe1d68224f9f707834c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:308-345 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:314-357 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:315-352 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c850a8c19c9ecc2ed418f9173084ca80751d42ee7eda549cb9d6f4bc88e6a28c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): crates/shadowsocks/src/relay/udprelay/crypto_io.rs:145-181 | crates/shadowsocks/src/relay/udprelay/crypto_io.rs:189-219 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/crypto_io.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e0eb0f176c633443e7e8fe37b43e7d4f17911146b267f38790f30a78dd76f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:264-306 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:274-312 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b61e94bddd3bc129adca3c2d2e10b20ad3e30dbda05d9384357332fabac6880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:127-173 | crates/shadowsocks-service/src/local/socks/server/mod.rs:120-173 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"85231ea49a2e190e3b734a81d896d61ebd8608ef985eeb13c4008088486b209c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:846-882 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:885-921 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"10edd864c606990507df64c42ef4851598aab9062be36b6b4134a8a77c4030dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:22-95 | crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:190-261 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdeaf30df9ee0b939996cc774c9f70af32dda8942fa4038aef86ffd85c9eebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:236-276 | crates/shadowsocks/src/net/sys/windows/mod.rs:261-302 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/macos.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad51a36c8df6b4066066a00b2ac703ad88b87eaded81a5e715b05dd500a98db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:35-73 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:53-99 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6989686cf266caf50a4e4631a6a05a2e5b65ec21775a42dcd95dbe1a8f0d5a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): crates/shadowsocks-service/src/local/http/config.rs:65-90 | crates/shadowsocks-service/src/local/socks/config.rs:57-82 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/config.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be3d0724f06a0c0dae531b9639c658cf091d5f88b016f12e064a5e9a34235a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:278-303 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:332-355 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0134cf4d54c7d9748f438a8bd34dfc5b9f4406d49778c28580e7627db3412b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/shadowsocks-service/src/acl/mod.rs:570-602 | crates/shadowsocks-service/src/acl/mod.rs:622-661 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85bef69124ea50274bf010a127f7cf65c15e507b1f079e224ed4f04e2e5e8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:182-225 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:317-352 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:237-272 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c91f8f363db44955101b24f3f8b30c8d32e7251c7a4dbb7bc16e8f29d9462b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:211-237 | crates/shadowsocks-service/src/local/http/server.rs:60-88 | crates/shadowsocks-service/src/local/socks/server/server.rs:61-91 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:48-74 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fffada581337b18e2b19e363c1091b23bcef823f0627c48dbb5ad1c73bd0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:389-412 | crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:66-92 | crates/shadowsocks-service/src/local/tunnel/udprelay.rs:56-83 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a817f7d21e04ca0075d5b3dc502d9926857742beeba986bb905ec9d03bbd7010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:135-148 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:280-290 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/crypto_io.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"81540b42d10932a749414bcdfdf833d5cd6ae469b50a7b506a942ce85c9d3d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:243-268 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:436-455 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f21288c30667b92d339f84ab08efa76ea92e03590456680cd947868b432133"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/shadowsocks/src/relay/udprelay/aead.rs:50-77 | crates/shadowsocks/src/relay/udprelay/stream.rs:44-66 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/aead.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7b1088ca2e0dfe8e25edeb0294ab09c62d5f2c6e12696ccc6bdd78b198c4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:98-122 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:216-234 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:243-268 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/crypto_io.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9e411834df91a41c16e7343ad15078a18d30f208756b83f6d2fa5db1cbb76b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/shadowsocks/src/net/udp.rs:107-127 | crates/shadowsocks/src/net/udp.rs:130-150 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b3d4fd0c24e8ecc2612569c6492d5193ca5de31607ae277dd8befe53e7e917"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:192-213 | crates/shadowsocks/src/relay/tcprelay/stream.rs:138-158 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e9870a2753d6030340c1bda9d136bda39c16e7a9baa0ca5b2ee7022b0b1d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/shadowsocks/src/config.rs:1087-1106 | crates/shadowsocks/src/relay/socks5.rs:435-453 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf30370521e822044e05770e5f6f1d5e732903dc4fa711f48e0f53a186832ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:252-273 | crates/shadowsocks/src/net/sys/unix/mod.rs:37-60 | crates/shadowsocks/src/net/sys/windows/mod.rs:438-462 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b91dbb55d30a7474ab55630aa1cd28b69fad2e9a128d5ed365952f463cb142b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:66-90 | crates/shadowsocks-service/src/local/http/server.rs:106-135 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aa5670ee022e6c2a5578d0fb7c463c00c080e181a5750ea3dc9be63d4e7ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:255-281 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:92-114 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2663d9fcd2a43737b61788db387cc64ba5ae315d1655aa09d9e734ea448fe044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:530-539 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:558-566 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e515156540282229122c0984c7a5403de190ef8c9db7784e206c88b918227065"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:211-243 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:232-257 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:153-185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"026d6a8488645ef73f8d7143b0e6a7ae408cd7d9e8641153f0e2b06d1e497a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:104-126 | crates/shadowsocks/src/relay/tcprelay/stream.rs:58-80 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a2fd5eb6b3b3691656d02f4955bde912c4975c0b1740b9c3628bbbf955864d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:150-170 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:174-202 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"faffb8962862cc284f6ca7cc5bb59b34629bc9f3918ceb2f76acc15e705d480e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/shadowsocks/src/net/udp.rs:319-334 | crates/shadowsocks/src/net/udp.rs:364-379 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c469b67e293772ce42d9b9bbb2a53d9f0afebbbe117df8ccb08188929b1005ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs:45-56 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:124-136 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"216830d0ff987bc60907286eba56a159d69151623dc00af431083b2fa8183b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/shadowsocks-service/src/local/net/tcp/listener.rs:13-21 | crates/shadowsocks-service/src/local/net/udp/listener.rs:13-21 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/tcp/listener.rs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3864e9b665b1f7bd325067a8cfd2686bf3448fea0fc32e818316ea01ea29ff90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/shadowsocks-service/src/net/mon_stream.rs:50-61 | crates/shadowsocks-service/src/net/mon_stream.rs:69-79 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/mon_stream.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"906ad82305dc1310ddf705eff7b531f59f07ae716bb2db5fd44ff0f7d88f260a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): crates/shadowsocks-service/src/local/net/udp/association.rs:349-375 | crates/shadowsocks-service/src/server/udprelay.rs:479-501 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62ac3529c8f8946a9b38fe3277eb02e8111502e688d63ed867cb2c3516fdc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/shadowsocks-service/src/local/net/udp/association.rs:548-558 | crates/shadowsocks-service/src/server/udprelay.rs:652-662 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"f808cfc4c1fbdaef6be83cb298b431ea7582e9225f6c607810e891de68e642f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs:62-73 | crates/shadowsocks-service/src/local/tun/tcp.rs:602-613 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a188d9482567f6cf6f0d33754710df180d7d95985e46c0d196d7cdc44548d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/shadowsocks/src/net/tcp.rs:48-60 | crates/shadowsocks/src/net/tcp.rs:63-75 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/tcp.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bf5b02438b4cdced84250c1c17fa07908e4d73a5ac27c982b678c14f02ed5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/daemonize/daemonize/mod.rs:482-493 | src/daemonize/daemonize/mod.rs:500-511 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemonize/daemonize/mod.rs"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a772376542ee9931711787cba024a32a1826a802b9ccd6e1f44d5563496a805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): crates/shadowsocks-service/src/net/outbound/stream.rs:142-150 | crates/shadowsocks-service/src/net/outbound/stream.rs:154-162 | crates/shadowsocks-service/src/net/outbound/stream.rs:164-172 | crates/shadowsocks-service/src/net/outbound/stream.rs:174-182 | crates/shadowsocks-service/src/net/outbound/stream.rs:188-196 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/stream.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"22725aeeab77fd176cd29f5aeae49233ab29e6c1f51d226f75267ced8873a9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:40-58 | crates/shadowsocks-service/src/local/fake_dns/udp_server.rs:25-39 | crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs:89-108 | crates/shadowsocks-service/src/local/redir/udprelay/mod.rs:215-234 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3aef4cb166534e5e75693e9abc0f84590ce9375e218a922e4754a786819be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:40-59 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:156-176 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac22ab7137b0f1538090b0cc6d54dac6ad3279ad90d4b86cefe695f45e882c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs:180-188 | crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs:220-228 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a38815f5712312dde2ca41120c8ce57ec8b134defab37c62898660234293bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/shadowsocks/src/net/udp.rs:251-261 | crates/shadowsocks/src/net/udp.rs:279-289 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13331ecf8654e18128170e10f4bd8c04caaca9cedb94acf25734bba6464a6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/shadowsocks/src/net/sys/unix/uds.rs:32-43 | crates/shadowsocks/src/net/sys/unix/uds.rs:55-68 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/uds.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc97dac43b21d04b59a7bf1229526396fcbe39d4264809c11fe203d5b154ee01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:38-49 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:35-46 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/macos.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1670abcfc43988d19a2cd4b4c0e78be558df08da1e2ce8d8798463b70fc435ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/shadowsocks-service/src/local/socks/socks4.rs:338-353 | crates/shadowsocks/src/relay/socks5.rs:610-627 | crates/shadowsocks/src/relay/socks5.rs:677-692 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/socks4.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a16c2175fdb4dc1cbade883d5e74bd3d692f88587db0d5f8c9d4f9e0a9121e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:151-161 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:164-174 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:177-187 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:189-199 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:293-303 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/crypto_io.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"602cee3b0d9420d83293feaf303163a674d21c9133a3e85a4b82bcecf90a1877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): crates/shadowsocks-service/src/local/http/http_service.rs:257-272 | crates/shadowsocks-service/src/local/http/utils.rs:72-90 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_service.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb54f4848f7995dd20315ed699005b45adbcc1b8ae9ef257a68cfa29f55df78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/service/local.rs:1126-1137 | src/service/local.rs:1156-1167 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"993865815ccb3865a9f0b6585e736cb68e04559a19a55f91819b8e211894c76e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/shadowsocks-service/src/local/dns/dns_resolver.rs:52-63 | crates/shadowsocks-service/src/local/dns/server.rs:852-865 | crates/shadowsocks-service/src/local/dns/server.rs:930-943 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/dns_resolver.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e620398093b53515d3126677b2c3e4a2bbc5f8e1496d23b00dc273e89c63af33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): crates/shadowsocks/src/config.rs:169-177 | crates/shadowsocks/src/config.rs:1157-1165 | crates/shadowsocks/src/config.rs:1338-1346 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"59aafb8c71b74111a7da1a7a7c23915941a99b3fb6870dad5c8adac974e0db43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/shadowsocks-service/src/net/outbound/stream.rs:91-99 | crates/shadowsocks-service/src/net/outbound/stream.rs:198-207 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/stream.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45d1a4c39ad45d2ca56b9c3dc3bd95fc32aadda70722e1e36a06d13ea8f2813"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:347-358 | crates/shadowsocks/src/relay/tcprelay/stream.rs:217-228 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f10633bce4c77fa9c3e1abf226ba5364e9accbf94741583b2e90da7f04e894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/logging/tracing.rs:51-56 | src/logging/tracing.rs:60-68 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging/tracing.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c528ab169f00a6475460e0d86cab7194c3bfbc5ac6b19df1551d3548c2262236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/shadowsocks/src/relay/tcprelay/aead.rs:301-318 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:488-498 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"798e65256f71874818706fb505345493114ce1767301bd09b5800c48545dc38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): crates/shadowsocks-service/src/local/dns/server.rs:93-107 | crates/shadowsocks-service/src/local/tunnel/server.rs:43-58 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2486a68a8be37ea804ad690e090e5f9bd020de266d8946a8706a98e7596bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:245-262 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:187-198 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:223-237 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e866e7863e0be31dc06f99683cddd53d6a3a46dd50a2cf47944c6cf8d5ba2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/shadowsocks-service/src/local/context.rs:244-247 | crates/shadowsocks-service/src/server/context.rs:142-145 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/context.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c682455aae215882e143265ee6b80bc1cd25ac09b4c52165eb87c6b4054d9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): crates/shadowsocks-service/src/local/net/udp/association.rs:252-266 | crates/shadowsocks-service/src/server/udprelay.rs:407-411 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af9667a4f692cac6db775a23311bfde28b01ad47a2eca481d66048145957e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 3): src/service/local.rs:892-933 | src/service/manager.rs:419-460 | src/service/server.rs:460-501 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"580c7e1be8c78fc29e6a57e7cc5249ed7d53e341643c040ba5b76e6e6a26f64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:45-85 | crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:221-261 \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 \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:45\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, \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:218\u0060 calls \u0060set_ip_transparent\u0060 and \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:43\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":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"721d135b1b158dbe860c4972b5f2bb07ce2d306fec0b19027c799a9e98809336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:394-433 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:556-595 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/linux/mod.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 274 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:394\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf0c61c00ce29ca2b1a9dafbbd74bfff854d50d5e2a9b997f42c0bfac88802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): src/service/local.rs:285-323 | src/service/manager.rs:197-235 | src/service/server.rs:216-254 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:285\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":"src/service/local.rs"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec1cc652ef295369ee37d8cf8b9e7ac5ce487bc68052958721b35eb21e9ece5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:48-83 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:50-85 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 166 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:48\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ab6cb89eb40bf1bf4c8df132aab0c450262531fa5cc66b43b8c87d1790ddb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): crates/shadowsocks-service/src/local/dns/server.rs:290-323 | crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:98-132 \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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:290\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f008edc22d9fdd4f56c8afc85b90d484b47133faff45c8a26f275d2937b74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/service/local.rs:238-271 | src/service/manager.rs:126-159 | src/service/server.rs:163-196 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/service/local.rs:236\u0060 calls \u0060arg\u0060, \u0060num_args\u0060, \u0060alias\u0060 and \u0060src/service/manager.rs:125\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":"src/service/local.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0704ea7b580f028d867fec97e09d84071786fc6081529575942997bcaa45a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/service/local.rs:521-554 | src/service/manager.rs:234-267 | src/service/server.rs:253-286 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:521\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/service/local.rs:519\u0060 calls \u0060value_hint\u0060 and \u0060src/service/manager.rs:232\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":"src/service/local.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e52745260b9cb3a2d3e719fb737b537d2263b7896733f477c593c951a1af30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): crates/shadowsocks-service/src/net/http_stream.rs:67-99 | crates/shadowsocks-service/src/net/outbound/tls.rs:108-140 \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":"crates/shadowsocks-service/src/net/http_stream.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c35646574914fc798c666d2d8d750d1e5a780d2cad8816fd33b14876dba02d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 4): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:77-107 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:93-123 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:69-99 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:79-109 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:89\u0060 calls \u0060set_ip_transparent\u0060, \u0060set_ip_recvorigdstaddr\u0060, \u0060set_ip_mtu_discover\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:69\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd8e613b6fd537102f812a492bd01938fbb2772711c2d8b8e46641b62cc8f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:152-182 | crates/shadowsocks-service/src/local/tunnel/udprelay.rs:119-149 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/udprelay.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 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 \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:152\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":"crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b15d67f0453b0e5acc0c2eadf56687ca634257c178d7d0f20501d4ca1ddc56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/service/local.rs:852-880 | src/service/manager.rs:314-342 | src/service/server.rs:399-427 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"777c940de5e91e4d8d2d6a447d91cb2dac59f8c1e16275d0cad3e36de18fa514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2157-2183 | crates/shadowsocks-service/src/config.rs:2266-2292 \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 \u0060crates/shadowsocks-service/src/config.rs:2157\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":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1769ea2199d8295f7f9c8b06d45bb69eea4e0bad3a49e3da91c194cf237889b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/service/local.rs:627-659 | src/service/server.rs:331-363 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 349 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 \u0060src/service/local.rs:627\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/service/local.rs:660\u0060 calls \u0060set_source\u0060 and \u0060src/service/server.rs:364\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":"src/service/local.rs"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecf4b81a0cbc0c003bb9584eb9f5887eedefc6d8ca1bb96e2dd0f116b96cf9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/service/local.rs:593-616 | src/service/manager.rs:278-301 | src/service/server.rs:297-320 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:593\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":"src/service/local.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38340085c2a488cc3f2b96fbde16a3b7c71c719b957cdb3b58514e931b66434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:220-243 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:162-185 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 77 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:208\u0060 calls \u0060Ok\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:150\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"daac3926cb8f89fd2f25bc1f69b69590eea61b17f99dd64242d5a559c29c1227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:338-361 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:500-523 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/linux/mod.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 274 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:338\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f27ec68de0f0af9f9c21d908b8d2fd40d58ab2adac801c5fbf3330785bbc39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:98-120 | crates/shadowsocks-service/src/server/mod.rs:37-58 \u2014 \u0060crates/shadowsocks-service/src/local/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/server/mod.rs\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 4 separate duplicated blocks between them, totalling at least 45 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 \u0060crates/shadowsocks-service/src/local/mod.rs:98\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":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a4f4015ba467c90ebd5d5b35030e403e9387787a532903de65ad7847b4abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/mod.rs:100-122 | crates/shadowsocks-service/src/server/udprelay.rs:668-688 \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":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab15067dc84f32e9ffe452bacfbae8ba38bfadd8265350c24b8694327ca85f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:278-299 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:429-450 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:440-461 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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. 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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"00255e9b6303141cb8609fddd494b850b05eae48ffd5451632991a35640ffbfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:389-409 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:687-707 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:717-737 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:389\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4397b419d953f633f34681baab5444b88dc86944e8cd4d1b507b19a8765cced4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:692-712 | crates/shadowsocks-service/src/local/mod.rs:717-737 \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 \u0060crates/shadowsocks-service/src/local/mod.rs:692\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":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b24beb0c7434209bf87e6e61e6250f1b113f145f9d9b728c69228dd41e2601c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:66-86 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:47-66 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:89\u0060 calls \u0060set_ip_transparent\u0060, \u0060set_ip_recvorigdstaddr\u0060, \u0060set_ip_mtu_discover\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:69\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e61a8b317225f9f258bd52d217e5b8acf5c9b3aab60d941d87a5fffb805a743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:151-170 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:207-226 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:183-202 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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. 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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b22b2d4fb1b9bd66b06d0e3450cbcfd9c945d8ca129bd9731724fd693832afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2196-2215 | crates/shadowsocks-service/src/config.rs:2343-2362 \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 \u0060crates/shadowsocks-service/src/config.rs:2196\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":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2196}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0ddde6d226ef8811af644694999c8b737ddbbdaddc2f02e056058839ab1771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:287-306 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:293-312 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:287\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d991a23aae0856b45f6abbba0ebb5dab0fd7aa8205621c0165de3dbd3c0118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/linux/mod.rs:64-83 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:327-346 \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 \u0060crates/shadowsocks/src/net/sys/unix/linux/mod.rs:64\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":"crates/shadowsocks/src/net/sys/unix/linux/mod.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b26a198c222e8d2d8bbeca0bab16e17576e255d1aad198be3febfdd61b3387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/mod.rs:38-57 | crates/shadowsocks/src/net/sys/windows/mod.rs:439-458 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/shadowsocks/src/net/sys/windows/mod.rs:459\u0060 calls \u0060disable_connection_reset\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/mod.rs:59\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/mod.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"810ee43207150a4ffdc07608f9343568445d66efdf9288bd23851a08d62f4c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/service/local.rs:661-680 | src/service/server.rs:364-383 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 349 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/service/local.rs:660\u0060 calls \u0060set_source\u0060 and \u0060src/service/server.rs:363\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":"src/service/local.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d34f205886fa45291b95bbddb0f8c94aa9f0666d5cc910e4681f51b96309b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/udprelay/mod.rs:247-265 | crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:154-172 | crates/shadowsocks-service/src/local/tunnel/udprelay.rs:121-139 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/udprelay.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/mod.rs:247\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":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2516d84ca4f921c41f64c35bffd55b5d666e874711e3a7a54393398e4a13e692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:327-345 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:339-357 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:334-352 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:327\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce2fbe73ce68a08d927f77b3daf1b83c92884633559c738e71be04fe3ffeb70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:364-382 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:507-525 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:526-544 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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. 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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"98471ccff036030aca918a5bec2cae8c98f1d947d35ea33e17555dd40291b318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs:97-113 | crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs:239-257 \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 \u0060crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a526ce46d2d23c9593f9b4633755e4a87477a103387e3d8c886a4643423276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:169-187 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:240-258 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:169\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1facfd2715bd569142a0418ed8e11e5069b7a2166b478e6a4d30723570dc65a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:381-430 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:709-758 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:381\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3886e7cdbfec2e3b23f492f7ff3fa5ccf58ee2d4e5d78cf25d47ba3c8e9c3230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201319 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/aead_2022.rs:430-448 | crates/shadowsocks/src/relay/udprelay/aead_2022.rs:611-622 \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 \u0060crates/shadowsocks/src/relay/udprelay/aead_2022.rs:430\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":"crates/shadowsocks/src/relay/udprelay/aead_2022.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"429af7215661b0ee4319b458d3897b248a35317b3096b6301b64572e5b2131ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:274-299 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:461-486 | crates/shadowsocks/src/relay/tcprelay/stream.rs:164-189 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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. 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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0428a7315ae3d0692b944c778db13f4c7635badeb3c17cac147b5e4de368fd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:465-482 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:571-588 \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 \u0060crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:465\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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a073609084fb62054a4be7f71cc73280d58d67b87ba244cc621e4e7928d2a905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:169-185 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:183-199 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:211-227 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:169\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":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf072d3d6b9521fb48231b7a871e5960125ab6756d9714f93fce94bdb026953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/service/local.rs:500-516 | src/service/manager.rs:158-174 | src/service/server.rs:195-211 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:500\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/service/manager.rs:155\u0060 calls \u0060value_parser\u0060 and \u0060src/service/local.rs:497\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3728b62bd7b9a8aaa4c40b78e62c63bd28c0a58de68dfefff2c3bdfe45f4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/aead_2022.rs:259-275 | crates/shadowsocks/src/relay/udprelay/aead_2022.rs:281-297 \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 \u0060crates/shadowsocks/src/relay/udprelay/aead_2022.rs:259\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":"crates/shadowsocks/src/relay/udprelay/aead_2022.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36ca98b7f0d7ca68c8bc3e4d079821b13a211917dac4a50e939fcde01487fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/service/manager.rs:513-529 | src/service/server.rs:555-571 \u2014 before extracting anything, compare \u0060src/service/manager.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 334 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 \u0060src/service/manager.rs:513\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":"src/service/manager.rs"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd7e4f027cfd116b64f644e3159a8f69f48c90efc40078dda6e8a13b28eeaed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 6): crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:173-188 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:166-180 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:195-209 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:187-202 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:215-230 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:208-221 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs:173\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":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d5ec42c7efde8f3684ede680c1ac918137422b6f3df33d5f0d111037110e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:309-324 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:315-330 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:316-331 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:309\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e64b808b72a88c855834e7b47b3d329323ae0fd39a74fcdf4372f42ddd3f1de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/service/local.rs:963-978 | src/service/manager.rs:472-487 | src/service/server.rs:514-529 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a156af61f0a29e16c1f8a0feb0caa1f5229f3cc23e71be1b86996eed1bff065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:854-869 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:893-908 \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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77cf9ae01b776fe1f4ac68ee2b3b034b309716554b60ef36d5ce7ba198a9548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/server/server.rs:64-79 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:51-66 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/tcprelay.rs\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060crates/shadowsocks-service/src/local/socks/server/server.rs:64\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":"crates/shadowsocks-service/src/local/socks/server/server.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3cd3ab5d75476a3aba5d0653c7fdfd64f1b27c0eab2861417593a2f8ddb25f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/shadowsocks/src/manager/protocol.rs:204-219 | crates/shadowsocks/src/manager/protocol.rs:238-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/protocol.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75dbb4aa616a39710a01df546dddd28d182b0b3fa8164e3796ea481adcc1206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/service/manager.rs:344-359 | src/service/server.rs:439-454 \u2014 before extracting anything, compare \u0060src/service/manager.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 334 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 \u0060src/service/manager.rs:344\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":"src/service/manager.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"219f0638015fe14ae0419f10dd4ffa1a8fddb187bdf1a10448e78c62a5e1a13f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/service/manager.rs:495-510 | src/service/server.rs:537-552 \u2014 before extracting anything, compare \u0060src/service/manager.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 334 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 \u0060src/service/manager.rs:495\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":"src/service/manager.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7673db00f487cf66f57315df94ec6ca728fbcbcd6548131578174c71911b7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 5): crates/shadowsocks-service/src/local/dns/server.rs:515-529 | crates/shadowsocks-service/src/local/fake_dns/server.rs:125-137 | crates/shadowsocks-service/src/local/redir/server.rs:132-144 | crates/shadowsocks-service/src/local/socks/server/mod.rs:195-209 | crates/shadowsocks-service/src/local/tunnel/server.rs:158-170 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. 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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a55cf85c06c8338d582b2f2d7e7633de8034dd6eddfe929d59c5f2f32fa66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:163-177 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:192-206 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:187-201 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:206-219 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 166 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:163\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"057c1fdf98bd778d1da9515adf0a973fec4265f2a55c0c677aba2a455ad12184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:435-449 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:546-560 \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 \u0060crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:435\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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3df49c6e4da28dacaa6ccfca2ad3bbb6288dc96156987a8434a678d48cff9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:241-255 | crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:259-273 \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 \u0060crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:241\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":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4df1eb668166cd778ce7bf85e3c41efefe3f21ba171bbe2e206132e2e36ce7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:59-73 | crates/shadowsocks/src/net/sys/windows/mod.rs:67-81 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/windows/mod.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 85 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:59\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab40432712928173f5e40040a55c989e7184b7aeddcaf48cb4d083e71ad7f961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:237-251 | crates/shadowsocks/src/net/sys/windows/mod.rs:262-276 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/windows/mod.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 85 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":"crates/shadowsocks/src/net/sys/unix/bsd/macos.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"735988a5698d7ebeea008b9fd4632245c7fe34efd23dd7369343f73c8861f234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/crypto_io.rs:149-162 | crates/shadowsocks/src/relay/udprelay/crypto_io.rs:192-206 \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 \u0060crates/shadowsocks/src/relay/udprelay/crypto_io.rs:149\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":"crates/shadowsocks/src/relay/udprelay/crypto_io.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bc77b26a37e493ea6775ffbfa77bb1f60234257fe449f93e197f540baacf60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/shadowsocks-service/src/config.rs:2077-2090 | crates/shadowsocks-service/src/config.rs:2391-2404 | crates/shadowsocks-service/src/config.rs:2639-2652 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dea6cf0eb84d0a1c0ddf91bddb39d958839c251183bcc120ed12d21f3b11c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/shadowsocks-service/src/config.rs:2194-2207 | crates/shadowsocks-service/src/config.rs:2341-2354 | crates/shadowsocks-service/src/config.rs:2500-2513 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6886f5828271f76be9aae261e677394e6eaf069111f601d6300e7e8302613b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:253-264 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:380-393 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:300-313 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a0826332831c64f734d97fa7bf93559a7d9812f0c0cb6f17f69825e2bfc9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/service/local.rs:982-995 | src/service/manager.rs:491-504 | src/service/server.rs:533-546 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"da84c1b2db62a4b0601267f4341a2da1999d976e2f36916a92cafcb5e0e242df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:70-83 | crates/shadowsocks-service/src/local/tunnel/udprelay.rs:60-73 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/udprelay.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 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 \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:70\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":"crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db727a7e3b19268f2cc41db3ff6b9eef0a7f8ab4b7c0c0cc27838174b17e1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:198-211 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:326-338 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:198\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1cedbbb453ad03f87b29ec07d52e4a9220d7b924f5d8897b456b98d53baa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:312-336 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:474-498 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/linux/mod.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 274 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:312\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d0d49296979a38683e0af3be074501f6b33d220690914f29fe3811d65ea07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:219-232 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:418-431 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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. 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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4922ebba81072616a1509bf03cf41623bb1908c933c471ec891f49c81d48e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:218-231 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:246-259 \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 \u0060crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:218\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":"crates/shadowsocks/src/relay/tcprelay/crypto_io.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a1fb879686cc72ba4c71a6c90809447bfc1497a03b068760a87bde73d322f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/aead_2022.rs:581-594 | crates/shadowsocks/src/relay/udprelay/aead_2022.rs:687-700 \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 \u0060crates/shadowsocks/src/relay/udprelay/aead_2022.rs:581\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":"crates/shadowsocks/src/relay/udprelay/aead_2022.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b46dc31cfb460861233fef8983704a2d7c6c42de50f068441dfe1fa087f117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:302-314 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:453-465 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:464-476 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:302\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4fc02d42d1ea1f08a5c4e4c769b67b4dbad575482f23d363c0542c29dd392a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:344-356 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:487-499 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:506-518 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:344\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5e8c39bcb8868eac9980940df660138a3352373dfec2b7c761327eeb0775f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:385-397 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:528-540 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:547-559 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:385\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9080755e191913464c59b47777c40ec4ac2621758ef1c407316348ce15ef447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:1812-1824 | crates/shadowsocks-service/src/config.rs:1852-1864 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a79a022114b93af9fd1f21286bcda9a369d1ffcad55c6c70599162c8f0a49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2406-2416 | crates/shadowsocks-service/src/config.rs:2578-2590 \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 \u0060crates/shadowsocks-service/src/config.rs:2406\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":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2406}}}],"partialFingerprints":{"codehealthFindingId/v1":"e928e8b617f4c5ab72f9ad19a49d6865160f0f9154b3d8a876d2d9bf31c2a82a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks-service/src/local/dns/server.rs:147-159 | crates/shadowsocks-service/src/local/tunnel/server.rs:101-113 \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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/dns/server.rs:144\u0060 calls \u0060clone\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/server.rs:100\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d44adb9cf2a117b16872d96debe02db6c8d94c41bb5a11da7811a75faa48741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/server_data.rs:99-111 | crates/shadowsocks-service/src/server/mod.rs:124-136 \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":"crates/shadowsocks-service/src/local/loadbalancing/server_data.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"97db1249bd4201e7ac4443f9fb64d97012a4975cff749aaa551940db850b2750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs:42-54 | crates/shadowsocks-service/src/local/tun/tcp.rs:583-594 \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. 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":"crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8b7db1bb05701adea3759c4beb8152116febee7a556bbbed17d2b2782f0524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks/src/net/udp.rs:115-127 | crates/shadowsocks/src/net/udp.rs:138-150 \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 \u0060crates/shadowsocks/src/net/udp.rs:115\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":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ec1c9a5903d65385449d7834519e5599ff4c5a0f859691379f2de8f1e67efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:244-256 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:437-449 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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. 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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd050e35beb607f74a3efae9e442ed0d39fc0ef60d58b0b46d6e98472e60a4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/shadowsocks-service/src/local/http/http_client.rs:344-355 | crates/shadowsocks-service/src/local/http/http_client.rs:395-406 \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 \u0060crates/shadowsocks-service/src/local/http/http_client.rs:344\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":"crates/shadowsocks-service/src/local/http/http_client.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb596ac2ad2ac41936422876783834f2209061763b0e30c191ceb0f4f04dd46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/shadowsocks-service/src/local/net/udp/association.rs:485-496 | crates/shadowsocks-service/src/server/udprelay.rs:575-586 \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 \u0060crates/shadowsocks-service/src/local/net/udp/association.rs:485\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060socket\u0060 to \u0060\u0026Option\u003CShadowUdpSocket\u003E\u0060 in one and \u0060\u0026Option\u003COutboundUdpSocket\u003E\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":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ef3c86fc335b7440aa9b580c35c1bd93279e5f97611bd9277949500f4fd430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/shadowsocks/src/relay/socks5.rs:886-897 | crates/shadowsocks/src/relay/socks5.rs:899-910 \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":"crates/shadowsocks/src/relay/socks5.rs"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae1625cbad42dad6dcde9ce0f0ad834e4309c7bc5a60d3f98a86e0cd07b97a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:574-585 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:590-601 \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 \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:574\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":"crates/shadowsocks/src/relay/tcprelay/aead_2022.rs"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2b9f6e0d41e155fad571bdaaa79f9ec7966abef4c61f2261ed9d75cccf4a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:45-55 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:63-73 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:44-54 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:47-57 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:45\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ef66ada28752dac5f65d9ac3f33690c2de6cf81c11addd451451cdb8d42f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:117-127 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:133-143 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs:109-119 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:119-129 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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. 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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc4e7c40408a24c94e117c560dcc516b19f37b0c5f34899e621312b1fc9ce01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): crates/shadowsocks-service/src/local/dns/server.rs:261-271 | crates/shadowsocks-service/src/local/socks/server/server.rs:122-130 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:96-104 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/dns/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/socks/server/server.rs:120\u0060 calls \u0060clone\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:95\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82dd35d0e769e451abe6700b2cc57d261cf60d826d7cfee1c61a2f497a068e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:141-151 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:157-167 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs:143-153 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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. 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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0975dc2ff9e55e8e4b5fc3ad84aa8fd3c79753496b7ec066fe4c906e5a3c552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:43-53 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:63-73 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:326-336 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:43\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43ca44310f6c31b541f31b96aae5cecb07a9e36ac38dbf21e8452fdb434b65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:418-428 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:561-571 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:580-590 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:418\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4116ad505668b6c0c286fd5e533000f894b3514541352a2700bcef04d4ec5d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/shadowsocks-service/src/local/tun/mod.rs:318-328 | crates/shadowsocks-service/src/local/tun/mod.rs:359-369 \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 \u0060crates/shadowsocks-service/src/local/tun/mod.rs:318\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":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef44715eeee9b674ff43aa836eeb3be5817d8135d3a26d78b39b451a30f2f206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:154-164 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:224-234 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:154\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1217abf92be4bc39e8ab0f0274fdaf77e844c930a0e74414884788e6045dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crates/shadowsocks-service/src/local/dns/server.rs:390-398 | crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs:67-76 | crates/shadowsocks-service/src/local/tunnel/udprelay.rs:57-66 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/socks5/udprelay.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/udprelay.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 74 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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:390\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ac04c7dc4fc6133edbd5ca9de65be1f27faf723d75c73852a6a3575a4d7fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:321-330 | crates/shadowsocks-service/src/local/mod.rs:356-365 | crates/shadowsocks-service/src/local/mod.rs:434-443 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d92b0c693129ef61853796d5f72b2d28ac3f15a23862f8b6511747184c71232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:1461-1470 | crates/shadowsocks-service/src/manager/server.rs:388-396 \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 \u0060crates/shadowsocks-service/src/config.rs:1461\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4b6bcd0cb610e35dde7127b49f7bc052cc1fb247369a2bd0cbd15991683822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks-service/src/local/http/config.rs:66-75 | crates/shadowsocks-service/src/local/socks/config.rs:58-67 \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":"crates/shadowsocks-service/src/local/http/config.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9c82f7e0df208ae8bad1671bc804c0758f5905d6a3169b6e6a192a18ed17b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/crypto_io.rs:78-87 | crates/shadowsocks/src/relay/udprelay/crypto_io.rs:116-125 \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 \u0060crates/shadowsocks/src/relay/udprelay/crypto_io.rs:78\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":"crates/shadowsocks/src/relay/udprelay/crypto_io.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"527485868a13720e6f3802709622550fca3c37652f478b4a4c6b203b4497c550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:294-303 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:346-355 \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 \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:294\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":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1157abd927f67a3ea5947ef4828a5e700c491798f97749416b28aa1e524be4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/service/local.rs:86-95 | src/service/server.rs:34-44 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/server.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 349 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"79abd5bb502973895dee92ca21efe583cc05b9fc87fa043b7ab43d8268c654c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/shadowsocks-service/src/local/dns/server.rs:212-220 | crates/shadowsocks-service/src/local/socks/server/server.rs:62-70 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:49-57 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/dns/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:212\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7181d7b6059bfd8babe13b753890874b36fd3d72ffa4f406ab83c6f1accb4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/shadowsocks-service/src/local/http/http_client.rs:347-355 | crates/shadowsocks-service/src/local/http/http_client.rs:379-387 | crates/shadowsocks-service/src/local/http/http_client.rs:398-406 \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 \u0060crates/shadowsocks-service/src/local/http/http_client.rs:347\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":"crates/shadowsocks-service/src/local/http/http_client.rs"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"228a87b71a3c2f45e6068cd07133558abc60fe39dc800a79051291967244ad0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/service/local.rs:882-890 | src/service/manager.rs:355-363 | src/service/server.rs:450-458 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9ca8a1cbb7e0aea24b65164231d60cf95f33c46e6790591e59bb129db959bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks-service/src/manager/mod.rs:49-57 | crates/shadowsocks-service/src/server/mod.rs:83-91 \u2014 \u0060crates/shadowsocks-service/src/manager/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/server/mod.rs\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 4 separate duplicated blocks between them, totalling at least 31 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 \u0060crates/shadowsocks-service/src/manager/mod.rs:49\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":"crates/shadowsocks-service/src/manager/mod.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec460f837115513315fdbdb81879b4321fc7ab43492ee945e5e3442f2fa5dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/mod.rs:136-144 | crates/shadowsocks/src/net/sys/windows/mod.rs:557-565 \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":"crates/shadowsocks/src/net/sys/unix/mod.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a9c55e28d91f1d8341ab1bc704fa79f09619efa84dd0a316f223b59199a56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks/src/relay/socks5.rs:611-619 | crates/shadowsocks/src/relay/socks5.rs:678-686 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/socks5.rs"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aba2cd777582b027a6f0312b5ef6795633f7379e81e136598b26bee853a3c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/aead.rs:125-133 | crates/shadowsocks/src/relay/udprelay/stream.rs:101-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. 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":"crates/shadowsocks/src/relay/udprelay/aead.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a7bf6dc1cf9ca8d76df0aebd7fb879a251e8fb0b5b6235a1f2ff90817700fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:308-315 | crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:391-398 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:470-477 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:553-560 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/linux/mod.rs\u0060 as WHOLE FILES: this scan already matched 21 separate duplicated blocks between them, totalling at least 274 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:308\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee007b2adf7496c6af521d48f17f4303910a9c46241b14a04f8b8e1647755e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/shadowsocks-service/src/local/http/server.rs:71-78 | crates/shadowsocks-service/src/local/socks/server/server.rs:72-79 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:59-66 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/tcprelay.rs\u0060 as WHOLE FILES: this scan already matched 6 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 \u0060crates/shadowsocks-service/src/local/http/server.rs:71\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":"crates/shadowsocks-service/src/local/http/server.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c302b3c32ef616d686b04c38489aa65851a55acf5807110eed51f98a9742ea96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:152-159 | crates/shadowsocks-service/src/manager/mod.rs:60-67 | crates/shadowsocks-service/src/server/mod.rs:93-100 \u2014 \u0060crates/shadowsocks-service/src/local/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/manager/mod.rs\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 4 separate duplicated blocks between them, totalling at least 30 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/mod.rs:150\u0060 calls \u0060set_connect_opts\u0060 and \u0060crates/shadowsocks-service/src/manager/mod.rs:58\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":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3467737c55f49293a7ba9b4fdabd26f8e4c2e863146bf70d890843cb87a9ba50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/shadowsocks/src/config.rs:170-177 | crates/shadowsocks/src/config.rs:1158-1165 | crates/shadowsocks/src/config.rs:1339-1346 \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":"crates/shadowsocks/src/config.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2b2aaa5e1ea82eb8476228c1fe4c70f3c5e894c71810c9b2ac9b2761b8dd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:405-413 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:733-741 | crates/shadowsocks/src/relay/tcprelay/stream.rs:251-259 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:405\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"090dc7bc6111f17f223009b31343a5391b6b171eaae16119fd4d4f28681bb91e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/dns/server.rs:215-222 | crates/shadowsocks-service/src/local/http/server.rs:64-71 \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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:215\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b791b41b0eea94b79041d8606bccf393ecd9d4a88e7b8e11740bdf717d05ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:398-405 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:524-531 \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 \u0060crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:398\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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"85582a56888caa72458a8291d44acf97b30adcf04ce61e7d7d4b038460e9fa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:408-415 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:535-542 \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 \u0060crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:408\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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54837b2ce10d605c31ca32d2c9dd77be74acbe574b62607e31a2e4bd1b81310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:128-135 | crates/shadowsocks-service/src/manager/mod.rs:36-43 \u2014 \u0060crates/shadowsocks-service/src/local/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/manager/mod.rs\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 4 separate duplicated blocks between them, totalling at least 30 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 \u0060crates/shadowsocks-service/src/local/mod.rs:128\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":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f412376d926cf5978cdd6e5f1e47fdc17908ccf434c66aeb6c60479e640cf684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:80-87 | crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:99-106 \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 \u0060crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:80\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":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9abcff1080a37ff6a799f359e09b1fafefd001e45913acba1898fec75831927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:123-130 | crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:144-151 \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 \u0060crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:123\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":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"430e07e5d147927397639b7754232676a7c25156463fa3e56fae0112a21ca406"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs:66-73 | crates/shadowsocks-service/src/local/tun/tcp.rs:606-613 \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. 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":"crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0943bce909a01800af99ae8fca72d6b1b97e5cdf4109bb4921448b22d403104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs:145-152 | crates/shadowsocks-service/src/local/socks/server/socks5/tcprelay.rs:280-287 \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 \u0060crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs:145\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":"crates/shadowsocks-service/src/local/socks/server/socks4/tcprelay.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0c4a641a84496b987ae99fb59e66ebb7a47462ab0c68dab428b2f3c6e42a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:459-466 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:534-541 \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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:459\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":"crates/shadowsocks/src/net/sys/unix/bsd/macos.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d55493ac457c9592a36f07d04a61b449d49109f854f263c897f9b73aab87037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:241-248 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:392-399 \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 \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:241\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":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c095ffe94bd8b1cc4a2ea8640f8304ac46a85b5828b058334908885419059f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:448-455 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:493-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:448\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":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9683096ac3ef4d7ebbf6c779b8b2ab61c293e3dec7dea1e0be81492c1bf4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:308-314 | crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:391-397 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:459-465 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:534-540 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:470-476 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:553-559 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:308\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"351e29c4e39ff2891c48ab68358ddbb6d2e8158902f6fee75538741bc16acf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:116-122 | crates/shadowsocks-service/src/manager/mod.rs:26-32 | crates/shadowsocks-service/src/server/mod.rs:54-60 \u2014 \u0060crates/shadowsocks-service/src/local/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/manager/mod.rs\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 4 separate duplicated blocks between them, totalling at least 30 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3adb727aefb0a692c58a315255296ef997514e416158b526c539b8a83febfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:155-161 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:213-219 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:225-231 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/aead_2022.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 170 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 \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs:155\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":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f265cd5a345de6f379c1b31f861c19f031a8ef6d95d9bda2e5f83e2226ae0618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/service/local.rs:668-674 | src/service/manager.rs:381-387 | src/service/server.rs:371-377 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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 \u0060src/service/local.rs:668\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":"src/service/local.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f408b914409f4ffb4edd14b873c2fa33cebb3e0c7580940e1e2c4a7a1ad40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:165-171 | crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:178-184 \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 \u0060crates/shadowsocks/src/relay/tcprelay/crypto_io.rs:165\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":"crates/shadowsocks/src/relay/tcprelay/crypto_io.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aafe62481332d574c1c21c3ea8b39f09e8fe35bd73b9999d142c553b89d7621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:244-249 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:371-376 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:291-296 | crates/shadowsocks/src/net/sys/unix/others.rs:98-103 | crates/shadowsocks/src/net/sys/windows/mod.rs:481-486 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:244\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f720c2b8e7cb0cdcfcad2a9aa7c61f659ab62b8cf9d187a7d1b46f41aa56b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:140-145 | crates/shadowsocks-service/src/manager/mod.rs:48-54 | crates/shadowsocks-service/src/server/mod.rs:82-88 \u2014 \u0060crates/shadowsocks-service/src/local/mod.rs\u0060 and \u0060crates/shadowsocks-service/src/manager/mod.rs\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 4 separate duplicated blocks between them, totalling at least 30 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 \u0060crates/shadowsocks-service/src/local/mod.rs:140\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":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7016ad6e02c6a4f47d21ea04cc5715392d658b66d9eb785eed220097778dc75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:3079-3084 | crates/shadowsocks-service/src/config.rs:3115-3120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":3079}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8ca33248157bd0186316a8a7b747a0e430101d31e4e7f177136b6e97fef5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs:181-186 | crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs:221-226 \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":"crates/shadowsocks-service/src/local/net/tcp/auto_proxy_stream.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e6003ffe4c85047d2df70a19d8e980b7e2e955fbc99f1f089cc728d18b0227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:269-274 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:275-280 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 141 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 \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:269\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":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da50c514602618cc98d3587faf7438792a0f69a2526b3547f97615457b64ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/local/tun/udp.rs:134-139 | crates/shadowsocks-service/src/local/tun/udp.rs:144-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/shadowsocks-service/src/local/tun/udp.rs:134\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":"crates/shadowsocks-service/src/local/tun/udp.rs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd565e2dc305548e2161f9fa00b3430787c00f1ec8de36bd31bd078488dcdce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks/src/net/udp.rs:329-334 | crates/shadowsocks/src/net/udp.rs:374-379 \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 \u0060crates/shadowsocks/src/net/udp.rs:329\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":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"681e19be247f8e7e77bc1b98b5f874fb249e2900ede8a824885c009bdbbfb5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:195-200 | crates/shadowsocks/src/relay/tcprelay/stream.rs:141-146 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/relay/tcprelay/aead.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/stream.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01bb6bedf5298c472d85c2b6014184520347fc1ac658a110d57b4c39cc70b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:236-240 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:363-367 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:283-287 | crates/shadowsocks/src/net/sys/unix/others.rs:89-93 | crates/shadowsocks/src/net/sys/windows/mod.rs:473-477 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:236\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9c09b4685d9204b60e6a2e364531b628150b72ace6bbc00b76c904440e28ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:241-245 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:392-396 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:448-452 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:493-497 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:241\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":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cfee0c685438c5d4375dd556491324287f028beace2c8c9ed9ca1286b0f49b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:317-321 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:468-472 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:479-483 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be6e0a97ece1c579802a8f2b184836631a088ef587f11bb59ad61764a4aeea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:144-148 | crates/shadowsocks-service/src/local/mod.rs:158-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c1b2df829de06e436a284ed1ef7ad8291849b7fc287a4fc377edf9871623c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/manager/mod.rs:53-57 | crates/shadowsocks-service/src/manager/mod.rs:66-70 \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":"crates/shadowsocks-service/src/manager/mod.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a227f2ee431087e78e03440967f92e5efdb3349a5dcfd4425d31b9f80369884f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks-service/src/local/context.rs:154-160 | crates/shadowsocks-service/src/server/context.rs:75-81 \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":"crates/shadowsocks-service/src/local/context.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"97621c7180a912f22bbcf0bf40a25b44583ca66b3360297c0a3a8fb720ee8045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks-service/src/local/net/udp/association.rs:268-274 | crates/shadowsocks-service/src/server/udprelay.rs:413-419 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060data\u0060 to \u0060(Address, Bytes)\u0060 in one and \u0060UdpAssociationSendMessage\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":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47abeeef07de039bfd5e644985f96eb0afd441d0cf307790108d6bca3186c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/shadowsocks-service/src/local/net/udp/association.rs:329-336 | crates/shadowsocks-service/src/server/udprelay.rs:463-470 \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":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adbe803811df318c9462fa576b45729914438441fcf45302442ee0802356f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks-service/src/local/socks/socks4.rs:127-132 | crates/shadowsocks-service/src/local/socks/socks4.rs:137-142 | crates/shadowsocks/src/relay/socks5.rs:373-378 | crates/shadowsocks/src/relay/socks5.rs:383-388 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060f\u0060 to \u0060\u0026mut fmt::Formatter\u0060 in one and \u0060\u0026mut Formatter\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":"crates/shadowsocks-service/src/local/socks/socks4.rs"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a65ce49f7fd9b3cec09dfb14f00e45107b9e7722bffda227fa98b098c0635e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): crates/shadowsocks-service/src/local/socks/socks4.rs:264-268 | crates/shadowsocks-service/src/local/socks/socks4.rs:359-363 | crates/shadowsocks/src/relay/socks5.rs:327-331 | crates/shadowsocks/src/relay/socks5.rs:559-563 | crates/shadowsocks/src/relay/socks5.rs:633-637 | crates/shadowsocks/src/relay/socks5.rs:698-702 | crates/shadowsocks/src/relay/socks5.rs:759-763 | crates/shadowsocks/src/relay/socks5.rs:818-822 | crates/shadowsocks/src/relay/socks5.rs:919-923 | crates/shadowsocks/src/relay/socks5.rs:969-973 \u2014 there are 10 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 10 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/socks4.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff693c0a6d2eed7ba2f6f6f1b52f88c2b57ecb03593a12d3fadda0b46958201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:75-80 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:132-137 | crates/shadowsocks/src/net/sys/windows/mod.rs:83-88 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c003ab81d96f05cf6e2174fb8fdd8b915ac708acbbb9794975f6383c00a67495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:82-87 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:139-144 | crates/shadowsocks/src/net/sys/windows/mod.rs:90-95 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a0f38db4a8d4c9ed88d7e015f0c783d46403d997b556d0183ee0a7f4c0d02c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:89-94 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:146-151 | crates/shadowsocks/src/net/sys/windows/mod.rs:97-102 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d946e2e7f2727d78d8f8f2475a4258cad41e2371ae2f09ba555bcb4de57906e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:96-101 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:153-158 | crates/shadowsocks/src/net/sys/windows/mod.rs:104-109 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9672a91e119e7f922b342f646cd87f599771705b993067aa16f363fef1eddc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:105-110 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:162-167 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4191939e7f5d90c439635dcd188d33b4db2dc1c55441297ac1320ff2c79a6781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:114-119 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:171-176 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:140-145 | crates/shadowsocks/src/net/sys/windows/mod.rs:122-127 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"35456fa0511a045a92ae42a97b4805532646ce83b46af65de39d360fa90e5a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:123-128 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:180-185 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:149-154 | crates/shadowsocks/src/net/sys/windows/mod.rs:131-136 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"290b9587e65329b9ad99bce87bb7f766200f9f4ea9346dbff546cba47dde9464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:130-135 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:187-192 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:156-161 | crates/shadowsocks/src/net/sys/windows/mod.rs:138-143 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"061934dbceece3f805778d2cba07ca47795eb24f8eb31cafa08f8f356041525f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:137-142 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:194-199 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:163-168 | crates/shadowsocks/src/net/sys/windows/mod.rs:145-150 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed1a212e44a8238909dc757ef3f4b751263bf0e9ff0044d548daf5f3638b97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:173-178 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:229-234 | crates/shadowsocks/src/net/sys/unix/others.rs:122-127 | crates/shadowsocks/src/net/sys/windows/mod.rs:185-190 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c29f3fa5be3d93f5ffc73ad123273dbab0fa5be246507034b2623df52b8da66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:74-79 | crates/shadowsocks/src/relay/udprelay/aead_2022.rs:150-155 \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":"crates/shadowsocks/src/relay/tcprelay/aead_2022.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccdcfef19e37b9584b95f81b58922ebb55bac5214576821240c96ff93bb9cbbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/service/local.rs:1066-1074 | src/service/manager.rs:533-541 | src/service/server.rs:575-583 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"570e6991d49e457112938ce6bc7d1c2b6aac5650e6dd7e82e5aec3400c91aae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/local/http/config.rs:155-160 | crates/shadowsocks-service/src/local/socks/config.rs:124-129 \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":"crates/shadowsocks-service/src/local/http/config.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c02e38ad0f2640d2d1d38cdf933296d880b65630e8a222f7d0a115f1a69a9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/shadowsocks/src/dns_resolver/hickory_dns_resolver.rs:149-162 | crates/shadowsocks/src/dns_resolver/hickory_dns_resolver.rs:174-187 \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 \u0060crates/shadowsocks/src/dns_resolver/hickory_dns_resolver.rs:149\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":"crates/shadowsocks/src/dns_resolver/hickory_dns_resolver.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"be25c69e0b941bba53d50e37ce1633775f18e705731e0d182d18abfa26dd315a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:228-238 | crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:379-389 \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 \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs:228\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":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed751025a663e5bd5a0d80671361762e9df60299fc440ab00fd138ec9f0ddd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/shadowsocks/src/manager/protocol.rs:96-111 | crates/shadowsocks/src/manager/protocol.rs:204-219 | crates/shadowsocks/src/manager/protocol.rs:238-253 \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":"crates/shadowsocks/src/manager/protocol.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6880551065c99449325452df89abdf57457b40e2ee456322a7bfdde119a9eb4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/service/local.rs:86-95 | src/service/manager.rs:36-46 | src/service/server.rs:34-44 \u2014 before extracting anything, compare \u0060src/service/local.rs\u0060 and \u0060src/service/manager.rs\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 285 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"71197d878bb194439a524f202910529acc59b456f084cec73dfab97c75aa79b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): crates/shadowsocks-service/src/local/dns/server.rs:261-270 | crates/shadowsocks-service/src/local/http/server.rs:117-124 | crates/shadowsocks-service/src/local/socks/server/server.rs:122-129 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:96-103 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/dns/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:261\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/socks/server/server.rs:120\u0060 calls \u0060clone\u0060 and \u0060crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:95\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2771ab2609801954af728045fb9e683ced9b823345be832be9441b054523b4f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:454-462 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:487-495 \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 \u0060crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:454\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":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8b3471d7e59745dccdd57e08af151c18ea8cc9c6dfa76a86320fe55e8dab1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): crates/shadowsocks-service/src/local/dns/server.rs:263-271 | crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:67-75 | crates/shadowsocks-service/src/local/http/server.rs:117-125 | crates/shadowsocks-service/src/local/socks/server/server.rs:122-130 | crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:96-104 \u2014 before extracting anything, compare \u0060crates/shadowsocks-service/src/local/dns/server.rs\u0060 and \u0060crates/shadowsocks-service/src/local/socks/server/server.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 39 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 \u0060crates/shadowsocks-service/src/local/dns/server.rs:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/shadowsocks-service/src/local/tunnel/tcprelay.rs:93\u0060 calls \u0060local_addr\u0060 and \u0060crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:66\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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f37971e393873aa90195f358584d3da948fb6ba7445e818bf995c9a15e9868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks-service/src/local/tun/mod.rs:230-238 | crates/shadowsocks-service/src/local/tun/mod.rs:257-265 \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 \u0060crates/shadowsocks-service/src/local/tun/mod.rs:230\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":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b9e17ff787127792a2075182b609b8370d1684ab20491ba85e98feccdd6037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks/src/relay/udprelay/aead.rs:61-69 | crates/shadowsocks/src/relay/udprelay/stream.rs:55-63 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/shadowsocks/src/relay/udprelay/aead.rs:72\u0060 calls \u0060advance_mut\u0060, \u0060tag_len\u0060 and \u0060crates/shadowsocks/src/relay/udprelay/stream.rs:64\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/aead.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2a661e2dc3ba3041e488c7d35fc3e363042c8c271421a300b129de190d48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks-service/src/local/dns/server.rs:441-447 | crates/shadowsocks-service/src/local/fake_dns/udp_server.rs:51-57 \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. 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":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"db48f2973b674d67400c61fc483bf8c9f183302cc01753e2078081ff241c43ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:1936-1941 | crates/shadowsocks-service/src/config.rs:1994-1999 \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 \u0060crates/shadowsocks-service/src/config.rs:1936\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":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bf043d709bdd417622e43d2e6cfc3b0422c160ef0f5fcefbed5435a7d50743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2135-2141 | crates/shadowsocks-service/src/config.rs:2244-2250 \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":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0835e662ad9d9928b8481ac05d79ba1d98f56e5e967e1af8e884bc44660f60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:72-76 | crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:115-119 \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":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ae69500b4fd60d78c977ced54f197b48b6170eda3e87f7f7859cbd1c0fc0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:91-95 | crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs:136-140 \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":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a4e0e5a944f1d951df1bf76748dee1621107cfb7c33223adcba96d68ec24d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/local/socks/socks4.rs:226-231 | crates/shadowsocks-service/src/local/socks/socks4.rs:235-240 \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":"crates/shadowsocks-service/src/local/socks/socks4.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b299e6a8c734c22bf32b40b1dba043e5b31f32eb7ab5801f0a495ca79fe64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:230-234 | crates/shadowsocks/src/net/sys/unix/bsd/macos.rs:357-361 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:277-281 | crates/shadowsocks/src/net/sys/unix/others.rs:83-87 | crates/shadowsocks/src/net/sys/windows/mod.rs:467-471 \u2014 before extracting anything, compare \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs\u0060 and \u0060crates/shadowsocks/src/net/sys/unix/bsd/macos.rs\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 227 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 \u0060crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:230\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":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c385dbef8dc2ecdd5494870df1ec35bad3c353510e1b98e2c9effff37ae6401e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: shadowsocks: shadowsocks: abstractness 0.12, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fa5cc703b47324041b402a1878538a9fecbcd9151d3644f05f44efed858fd25e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: bin/sslocal.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/sslocal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bcdfa6c7b7757bca32af7e43914b474abb5d77d3fee540741ad6749fa62452"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: bin/ssmanager.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/ssmanager.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0a744cf0c22bf680a912c829c7aecc98042e398c973d6027f71f3d7614642b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: bin/ssserver.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/ssserver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f92f4e95bf554c6fe5f878a7ac7ee014fbbf5f1aa8c767be99ec07962930c9e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: bin/ssservice.rs: 0.0% line coverage (0/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/ssservice.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5147c90f2ebb469d8c2c854ffa1cf578055b0b355af1f541f392a6b1a7476196"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: bin/ssurl.rs: 0.0% line coverage (0/94)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/ssurl.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ce0b5e8117a7d367a194f75c1503f180b477ae8301175a062bc9dae33efad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/acl/mod.rs: 45.0% line coverage (174/387)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b308ce187044802f89ff4a17b68bc787b1c954ae8d38b41e9d1b7029e252ba27"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/acl/sub_domains_tree.rs: 6.8% line coverage (3/44)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/sub_domains_tree.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70546713bc8a23d89e6aa95d04168c4e725ca19e1f1bfeb3fa44bfa6a647aeb2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/config.rs: 28.0% line coverage (393/1406)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49689e26fca1df2e07c29128bd5e1aa1e637d1ee840d1b5f3d10c5c02e56a407"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/dns/mod.rs: 34.7% line coverage (17/49)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/dns/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"526e2d935d6c422db253005922787537e0c27752220c4f9cd8d08abbe26dcb62"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/dns/config.rs: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc2b1d6c2e1bf014b7746f202bf61089327f4a13a965e3c27cc4a6e9f328ef2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/dns/dns_resolver.rs: 0.0% line coverage (0/108)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/dns_resolver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcff37846ae32e3597748e22a0f67ca7d4fdadb93e16b96c189a50860c06372"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/http/config.rs: 25.0% line coverage (17/68)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfafc996e9c52bbf3b61d3df98fe53c1f753500727a4a479322abc4f542d5a5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/http/http_client.rs: 37.2% line coverage (92/247)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e59fb778dda5dcf5fe4892bbf4cd881ab7c7891f115fcbf8050014775c9b2c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/http/http_service.rs: 27.6% line coverage (55/199)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_service.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a48ac402cc86cca297425768469f34dc6cb4b22b5f93b5d382e4ac4d20f7148"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/http/tokio_rt.rs: 38.5% line coverage (30/78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/tokio_rt.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2a1603a4aeb08fc02a8fdb984708ad3d701475cdfdcc533eeb22066afd3c51"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs: 35.0% line coverage (212/605)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3adf5fc956b4aeef0a75c69be482e5653f264d0b8566a863b24ebae4388999"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/net/tcp/auto_proxy_io.rs: 0.0% line coverage (0/3)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/tcp/auto_proxy_io.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef8f881ccd4f04d755ef4fca1a862df6bbad5abb2a36ff96a15ef59e8c4185a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/online_config/content_encoding.rs: 0.0% line coverage (0/40)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/online_config/content_encoding.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead7360072ac950bc7c2090b38a741e2c9a008c5227a2ff2d582643ca43bbab"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/online_config/mod.rs: 0.0% line coverage (0/125)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/online_config/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9031bb3d0b27890f9315f29f240dc3b7779ad6b4bfa8f38e332547cebc1212c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/redir_ext.rs: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/redir_ext.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd25634b239da2e45986afdedbdd0f9d3bc3ff258c7b4f5ef5706f9826e4bdb6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/server.rs: 0.0% line coverage (0/80)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0076d65dd3a3fd7cb7b194442ed68ce9a9ed30c59bc1019ed3b552cc4a3f4c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/sys/mod.rs: 0.0% line coverage (0/6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/sys/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60d9edb72b30dc01e9d192408b424aef15ad8d41998033702a2b9d0558a5818"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs: 0.0% line coverage (0/80)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"486dd1c4262c459da6d2cd6a8d030ea601561726d2b40cb7425de94faa9e0c30"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs: 0.0% line coverage (0/111)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5580d9ff46009e49b04520511cdca165c62d7fe37d8c040f45fca0dc3787f20a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/udprelay/mod.rs: 0.0% line coverage (0/131)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b5b80dfb1c90573e5b35c3efcfaf296080ea8d904b21edd38fda5240fac0c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs: 0.0% line coverage (0/199)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"420ec694a9310004f3752edb074b1d0db37ab705dc023ea0c7acbb084535489d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/socks/config.rs: 32.7% line coverage (17/52)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e3b1f8f3cc266bcd8db5fe3228d76831ab9720f200894a59588152916481b7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/tun/ip_packet.rs: 0.0% line coverage (0/26)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/ip_packet.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d45e1b9d9f55d5a070a50f5f2bcda8a83487acb49238a4ff270ec539086fa9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/tun/mod.rs: 0.0% line coverage (0/190)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f150bd4e087481f96804e920dd0651b6e7251fa37c140c9dc51490574f9183"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/tun/tcp.rs: 0.0% line coverage (0/361)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/tcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c251477cc13a057b60f835bb1e746167c15e1d91705a402fce7f91c9c0a46bf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/tun/udp.rs: 0.0% line coverage (0/82)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/udp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"449b37361fa6fd78d1eb0cb4d7e570f6329b85a636786b47a71e23d4509eea4d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/local/tun/virt_device.rs: 0.0% line coverage (0/87)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/virt_device.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7225d1cd18fa695e9e9df96a2172b972da91de67ef475eb0028e4054c261e84f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/manager/mod.rs: 0.0% line coverage (0/56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/manager/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c9e6c3fad32f58d74ebc4d6ee176670cf9c997f974b0c4c466d0e9469b531f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/manager/server.rs: 0.0% line coverage (0/382)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/manager/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e164bfd722395eee84e91e87cd3ce0872f318d0f5a69771dc3d4c7433513a4e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/http_stream.rs: 28.8% line coverage (15/52)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/http_stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f92225eac498d633feed61efe13e9c2617355763f81c9902bfd661d4063731"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/auth.rs: 0.0% line coverage (0/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16056454111f85cf93f68d2a50756bc5bef3c3f72550ad6446a7f44ec591924b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/chain.rs: 0.0% line coverage (0/75)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/chain.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f4e6379bb551e497624496f338a3248100179dd79b2ba1160ad117da02598d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/http_connect.rs: 0.0% line coverage (0/74)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/http_connect.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb9fdc15bffebcd11825f32cf5ac0e68b48513e4a58a20f294a3d236a770e97"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/mod.rs: 0.0% line coverage (0/60)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e739be6cc944d2722feb5b9715a3428a2cff95f730e6662fd207b77982ab5b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/stream.rs: 0.0% line coverage (0/78)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/stream.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8451e94f4ec0c260ad09d240f4577d52a296e11a67c732cfb440cd1ccb71c2d6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/tls.rs: 0.0% line coverage (0/57)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/tls.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc02983c9372b7249b3e7a816253c9cc8e5c2256f26d96990e4b470fd85d620"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/net/outbound/udp.rs: 0.0% line coverage (0/151)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/outbound/udp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd6cc6a4ff5b8dba37c4a9eb1a133178b7ff16a0f3ab935be3ac2b4c6fc9559"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/server/server.rs: 49.3% line coverage (69/140)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1956d5c6fd53f5c24ca57215a095289f4e0baa1161d974d06cf0cb3e8efda8d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/server/tcprelay.rs: 40.7% line coverage (61/150)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/tcprelay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f427ad0591e6ec2291fe68bb63b0a9adc310fb2ade133fb6256e92eae5574f4c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks-service/src/sys/unix/mod.rs: 0.0% line coverage (0/10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/sys/unix/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adb98983292d8cfc4d20dcaa596195d08c7b86de13bd1531234dff03ce1f948"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/config.rs: 30.8% line coverage (213/692)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0a74127b9c9dec54272f85355278f44f2eb6cf62ad642e46ac5586c1166c30"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/dns_resolver/resolver.rs: 46.5% line coverage (74/159)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/dns_resolver/resolver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d8b3d197a13e3f2ebf31e7d50638845f9f33f4f04445f1c222b3af0fadf408"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/manager/client.rs: 0.0% line coverage (0/35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bb04ab658a3c0e71ef59f7250d3bf5842363277a4080a48bd7261a64e17da1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/manager/datagram.rs: 0.0% line coverage (0/89)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/datagram.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e07476a30ca61a49e4016c0f17fcaaf401519b228b9f4b322cc8e402a1e21a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/manager/error.rs: 0.0% line coverage (0/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e99dc87a14198be6f60e88cfbf45ec0a2fb4596e10721180b6cef1dd42622b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/manager/listener.rs: 0.0% line coverage (0/21)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/listener.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95b32b13057e42a913eb82045112bfd61cae0621dde0d41133cbf55c0d71ec1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/manager/protocol.rs: 0.0% line coverage (0/178)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/protocol.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd32e3f6d42bb4a7d5f134f20a8ac46854ab98328e9797778b4293375c1ae53"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/net/sys/unix/linux/mod.rs: 32.2% line coverage (102/317)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/linux/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95884d17f9e2fb29a9630ee9b6695040a43569ed4c4e5e4e2f8bf9d393b77ba1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/net/sys/unix/uds.rs: 0.0% line coverage (0/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/uds.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b71acc46581da909df878be7c52d426580120d78e2c70e967927ee52397ecb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/net/udp.rs: 41.8% line coverage (76/182)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/udp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cac076ba855d8c46a30dad940063b3493392bc15cd6df115661f59e85f3bcfb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/plugin/mod.rs: 4.4% line coverage (4/90)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/plugin/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0543ff6fca7a5455f8a6add97915a9ce45da45310e03f44b4f0af10d647fde52"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/plugin/obfs_proxy.rs: 0.0% line coverage (0/25)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/plugin/obfs_proxy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff4e1566c79dee6040aaacd867fedd8007ecbc95eb8cc796e9071a57cc33db9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/plugin/ss_plugin.rs: 0.0% line coverage (0/17)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/plugin/ss_plugin.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6463799ce05e40f1c4c33973af74c5c8f2cc9e3ff5f84b488fac8d3bb09dc4a0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/mod.rs: 32.4% line coverage (12/37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83af55c0cbae92fe8147fbfa17e74bb51ecbddb74f8040f9f9eca7ed9cea9c6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/v1.rs: 20.0% line coverage (3/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/v1.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a635f73b9d639883c15eee51e0c6ddc85eeb46b93e6c3652e2fbe2c49f34dd1f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/v2.rs: 33.3% line coverage (14/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_stream/protocol/v2.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d8e447876bbab5eaa81589bf468dfe0c89153a98d0ff033fc664a6e62ac918"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: crates/shadowsocks/src/relay/udprelay/proxy_socket.rs: 48.0% line coverage (142/296)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaad88fcf803e29c3021454d9679caed78cea71738cc08ab398bd6945135d526"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/config.rs: 13.8% line coverage (11/80)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f39c712208840f81c3a4b7003d2b51a12011be93376595d0effca010f13ef00"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/daemonize/daemonize/error.rs: 0.0% line coverage (0/86)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemonize/daemonize/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8425636720739be2473007a1c086ba6d56874095202b247ce43c838dfbee37"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/daemonize/daemonize/mod.rs: 0.0% line coverage (0/308)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemonize/daemonize/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2772a42dcf6804008394c65124c23fb9a203d93766f1627709c1c902c994b32c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/daemonize/unix.rs: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/daemonize/unix.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e25b9fbb33916453e9cb3e00bde98a2cb8a02ff2b37acfa1dc8fd933d2224b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/error.rs: 0.0% line coverage (0/14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/error.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dea73955afd46544b478c735472cb4705d6b3761d96222a413d7f5305e851c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/logging/log4rs.rs: 0.0% line coverage (0/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging/log4rs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50ebb87d4afdc4006fada3c26432fc4e8fdca99e6a3a887773cbfd4ad7c29ef"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/logging/mod.rs: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"599a39f942e2e41ed4c820ea19a4cc10bbc974d95a316d59ce0db2c98bbd2b8c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/logging/tracing.rs: 0.0% line coverage (0/127)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/logging/tracing.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e900936fb3b8088a0e919ccc97656e3971d2c2a88024afa6284bb3a8f44809"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/monitor/unix.rs: 0.0% line coverage (0/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/monitor/unix.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c469fdc135a2187b3f0dff9e9d5afe11576d80f491bc9724941cba1e42afcdfd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/password.rs: 0.0% line coverage (0/12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/password.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bc30b77cb7dba66f5a85607b78accbd42c8d46d9b5ffcf99596ab953c86807"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/service/genkey.rs: 0.0% line coverage (0/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/genkey.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ac9c27f524fff9607b1dd2c3f0b8c1b75edf48c09bf954ee026a93d47db0e5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/sys.rs: 0.0% line coverage (0/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/sys.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e3f6df582ac7932350d464e099afa55723c2a91bc1f49dd66cd8bd4ead4c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/vparser/mod.rs: 0.0% line coverage (0/15)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/vparser/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a9876148e6027aedbd1897d7ebe52928b6ff887ef2fe80a69d9c92f73fb30f"}},{"ruleId":"D13","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":"19ee28fabb13afd2bbbb0d25f99688df68e2e5968ec9f9994be87eed1b8d39ee"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: What can I do ... \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":"src/monitor/other.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b56b28d715b9e2b64012b8790cc4e0894e2f628e61f7912c00a339188916da"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: server_packet_id overflowed. There is no way to recover from this error. \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":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"02613b2800531376f72286c5c0afbca21e0cfabe11e5ba4d33cc31ee824bb338"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Complete this after discussion. \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":"crates/shadowsocks-service/src/manager/server.rs"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1505abd44b947725958747cf3eb22654798eabe6adf80c04df62a5f0c273555"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: It should be enough for a normal user. \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":"crates/shadowsocks-service/src/local/context.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5c3b8f83dd819d387f889bbe959162d7c80be1f302c810dc7ba288dd16d249"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: tun2 set IFF_NO_PI by default. \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":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"83505dd09cd59f2522231981f180a3421a7b2ccc5f287010550dbe02b1bacb6b"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It should follow system\u0027s setting. 7200 is Linux\u0027s default. \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":"crates/shadowsocks-service/src/local/tun/tcp.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f953512fd2c36441794b60aa71c45c1a77e3cbf06776bccf13eee32671f653"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: domain-name relay address would require resolving via \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":"crates/shadowsocks-service/src/local/socks/client/socks5/udp_client.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8549708db0dd51341855a1c46dfb0d8285ffb1ba3d9b4c513fedaa76bea67446"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: client_packet_id overflowed. What\u0027s the proper way to handle this? \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":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38f1d952a1ad00c508d3f76617b2e1597e787b596abb70bcff4ed4c2b5f18f6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: What STATUS should I return for connection error? \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":"crates/shadowsocks-service/src/local/http/http_service.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"421c72fc54c0c15a34c00c9401557a5c51c227a4e34c05a82055fc426a20384f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: If this line is not a valid regex, how can we know without actually compile it? \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":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bcd0f84ce916cc7947e8eef5e253e975b1bde685295d74853683cdee61b8ec"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: Is there an easy way to test if UDP port was listening? (no ICMP!) \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":"crates/shadowsocks/src/plugin/mod.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"772ef0dc603384407c9e03abb8fb7ff3d25e8e6107a3044efa2ec0e9ca1d7c51"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Not compatible in Windows \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":"crates/shadowsocks/src/plugin/obfs_proxy.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda77854056024acb3bb98013afc96f023f23842f68728fdae091447866f773f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Linux Kernel doesn\u0027t support setting TCP Keep Alive. (MPTCP) \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":"crates/shadowsocks/src/net/sys/unix/mod.rs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"189179cc14c2aa59fb1d1b0865b28886a28097543950196a768bdb772eedfbde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Try another address after FIXED_DELAY if one of the IPs is unreachable. \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":"crates/shadowsocks/src/dns_resolver/mod.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d62c1782c5957b383c27d4afd2851dca31c3a8c77ad1d8e74ae3a6f6cc318fc"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Cargo.toml\u0060 makes this repository a deployable product (line 17)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Cargo.toml"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a1f320edebd162aecb630322055fab9fa4bd5274ac8a03cd339206970700a5"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060crates/shadowsocks-service\u0060 (78892 LoC, 200 module-visible types across 32 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":"D28","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":"ebd27f40e7443c1acfb0e354711b668cc9af299316b1e87099379853b0165030"},"properties":{"commitSha":"3b09d7633da5c9ba9cc93ec83b07c359d0be5088"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"59e8a00caffd6fdf6f0a332fd48768e1ce09a5c621aa715d9d76de4b582ec3c9"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"9a63136b6a8a88bc6a9b442d172a9ef78b197135e4596dc1b26790ccdfca06a7"},"taxa":[{"id":"CWE-494","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":"6f253ad63f6889c0c13ef9d312352c5e2740ae53013c9d7f4fb35d8ff4545a83"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"4ac25f79e73ffe343a85fe606aba7e7fdecc6d59aa6c7198e8d31a69b6838236"},"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"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"904b55c936301fb3746e9466e3bd67b66eff1c2167980481641cbe7f06be3c55"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"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":"8899e781e1ed2b049618ce3adffdf43e5dc78204417f0534b42f60a805d48ad6"},"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":"38c5b8d77698f03c9130bed8181e905c9e0bd44bb32c987cf1bcddb6c5e0142b"},"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":"61bba33134ccfdcd78c9ae83083c341c194b38c945d6611c737fd88ab4caaecb"},"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":"521c719c8abf05ead0c5101c5d5651f59f61265908280cb0eeace3ac9d065144"},"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":"9ffa62e8501c1695d4a73d3b22b0d56b625e88e352061381da364e5516a5430f"},"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":"ea68c3ea4d84b8d3c84efffdd67920c24ec2e15d97f006b6dde82622fee7a609"},"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":"0ab1579f9510f04c4d4f2de27398b348a09e06512c747ed69d1a08addaa99480"},"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":"abe5809a9e66df0026b9634e31b6b1305986ea6fd16ee978bf79e919a24f90b1"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"886f79bcabea2505c986dd8f6a06bcc4fcce4f666806f34da5f00969e048396d"},"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":"f438a3d5a897822d9dd9a746c63063ac65b458e6267549fba9860f33322e74b1"},"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":"214b7576b7c149409fa7e1473f9a99e2e2b8766c52dd943a8dca256196832e77"},"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":"9bc64dc8ffae93d1b72e4e0cbfbba6320bd306d5b17b644cac4e47ea49925e24"},"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":"cba9b30df08bad63d584baf14ec0fee2d72db63e54ffcbf5623eee0ee1e1019c"},"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":"04a008eaa62b2510f0b1091711aa29f512a8c3ffe53b782f1f6335de429beaf0"},"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":"83036ac13d791138df07e409cae1baf2bdd39ed7996e8fad57e40b2812dc5d30"},"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":"7f2a0ba65a2bfae095ffebbe082d4d37980a2269d37e82fdf58793656c7d0aa7"},"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":"f70b453f95fc66f7117479481a15b4f3869d99dfebdd471264e290d66d9c2716"},"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":"83753031ee4befafa56cae9fa768a47bc8d465f65b611daaaab5c882b31804b6"},"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":"35fdc67d953a60dcdb4a1545d0975f4398896f9fa73431e663fed6933d56389e"},"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":"53a82f576cba85374381a20f17ec3a7ec7fdf7fcce2c8d5b81f54879417510aa"},"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":"32271844b59a83e40ab5be351204683fac57bab53f3c5c6fc92b7c5ed7af41e0"},"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":"eb566706b5b8939320a81a35ec71dce72d22ed6f396e5872283bc74b0ca59efa"},"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":"8476bde507985379720a2c29093f4af3daf7866fe7cf74264f0593e3b8f104aa"},"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":"74f290adb0c29ffebaa5e986cd336972f5549af1b64e8242cc27ef02d7c7d8f5"},"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":"70e0c2b7d1a34dff9033b249a04a09647a950bbadade80ac2a453df3eefa65ec"},"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":"c401b5eeb7f6a72658a963a8fedaa7d53c306a8ab90df63407604dc0f646fa73"},"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":"29f0d45e5f53e37eebfde2779780d8d40ec9f94f68622c4e5652f743cc692ab8"},"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":"1eb65b2e18d550ba548e65b6cd331e18f65819ce650149500444585e5e96d245"},"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":"5e4f0c69f0c2a20e3d713b91a05e8e87173409b50bbbbe3a1708d116eb378bd4"},"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":"2ebd3c2db7617ce92df8165bf9409e6708ca9c6c2a8e8777463924eaa434fcfd"},"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":"264cfa6fcdabf555248a13a0500f0a38b13bfb31b77eb0a27dcef036a013aa03"},"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":"a9e727021e9e429ad9158c409f1f25f055208cea1fa553019956581bf6e83233"},"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":"ba075205d56dc93bf3438b02305f3dc1f7cd866e353bf197292a075515b444ae"},"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":"39aa85a5017bbd2c983b9b51687919ae6470bdd8ef4e7037d3b1ad8d1930a534"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"93748571d43f001d4296310dfe37e7fd48c0f5cd9f62ac08658acfd6e97554d5"},"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":"275917b41a0c5b9cd6a1005232cda3978cafe1ada4baa6d53fb85b9032ae65b0"},"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":"8eb7363da440f01a10737ca60befaa4d4f49ba4cb3450b1357808f7cfe650fa1"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8fae306726af239025d2fe3781401505b4a1648463d26eb5a9ed4c8bf3309639"},"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":"3e86d87a5aaae48c2339d6e9ccae2550f77ae1ffc8561bb3ad38c1c1efe64f71"},"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":"ca38e910722920fb67afc10ea46d96fabab22b2f3592dbd30696792f3d7d2f04"},"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":"ea5c5bd0e76af1aa5117f59825fde79b581a7f5a2c2c1b8c5c33136bf814899c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"3c87b7de554f9976d89adcaca287fc917eb82bac23ed743f13ade715daa87515"},"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":"88958b74bd3367ac26804cb836bf8cb5fdab123efe56182ed95062b6e00c86e5"},"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":"bbae71bd5a250a3d115bf8918dc198626bfba8b2fce0503f22e906cf0570cbff"},"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":"e751e923091735ff770cf3507b1b62f3a97392e8cdfd1b685732aebce6ea1fab"},"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":"ea6170065ff2b467697910160f73fb4cbcb5b5e244aa4fb3a1fe46d008870172"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"7adadfedaf8d11c265b4646e441699974289335e87fbcb34b7894d41a20a181b"},"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":"b3a7da3b3039b0d8dd9508c97cdd4dbe3bcddc929723c3541b6ff5d2767cf890"},"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":"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":"e831f6a473670f000403ddde729edc3ce701b261e2d0525e8d6c447c630ccde5"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b36d2222d86dc1b366dcd5a689edecbfa8c2c86d5d9eec4ac1e7271084a4d3e0"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2da696063367c5de66b01002f67299ee5f3ba27a4f976899a6efe63f190b5bc"},"taxa":[{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5b1b07354d2b41820df216fa8542561bb3a7ad8767e72be1e45257b83b76c496"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","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":"109eb8c2be00952287a6643744da7dcc2c9a7a6618d7cac60ea6539c1687dfd6"},"properties":{"dependency":{"package":"ctutils","version":"0.4.2","advisory":"RUSTSEC-2026-0385","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"728758c9d3428053e1082b5fb9832c05e2e04dab40233f2ffbfd7792b93201ec"},"properties":{"dependency":{"package":"libz-sys","version":"1.1.29","advisory":"RUSTSEC-2026-0418","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ffba3a9076a73cf66b6daacb5914c478fbdc74d1383d8d2e4003b6bf3aa7b43d"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.17","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0340","RUSTSEC-2026-0343","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"28f0bc6d34596072b24d37b19b745b7394ed4ce99a53e032439b262379e02dc1"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.15","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"e9cf74773a6e34d2f2cd5f4cc024a1a57cb07e5917cf84c703df779cadb57013"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"22995033016ae3861d571b2c92ada6244555e3aeec08bc870b909cda12b35c06"},"properties":{"dependency":{"package":"rustls","version":"0.23.45","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0346","RUSTSEC-2026-0347","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"7ec937081c3ad6882e9c07735996d40cd6d5332ac535d70bb5252c6040e1f211"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.15","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.53.2","advisory":"RUSTSEC-2026-0386","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"c78c7c829ffb431fb928ff724c9cf0276a780b7b7d9be87f32343d1209a988f8"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.9","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.9","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"f4999ef69e42f46a403f3866a4a634365963f93fdd6e82c0c4a8e528a960ab52"},"properties":{"dependency":{"package":"zstd","version":"0.14.2","advisory":"RUSTSEC-2026-0391","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"06e8dc8c07565b965cad3fead890e0d682e96e4f994ab4a0654e3f10afe7962d"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0395","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"414bb4a49ee404ddc9dbe92931374dee643d4d3104e067391ed93041a77ff631"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0396","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d67834474e5564706ab5d6117a7537fa7ddd9f89e1070ff0f40846a68262b203"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0397","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"64bc44f41a35cd29a5d01a7b192ce2cc5f1d458c15d9df1d5239ebb5b7c6fd43"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0399","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a79bcf37fda3b3cfb40243fa81b1818f80a0fe095c267b68e3c7eee6f042ddc9"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0400","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"21df614167acad094349de8aa7cfc685e485f636d67b1ded35b43230df65a136"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0401","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"fd61c6a1a6d23109e3da0a091cdbb2ecd3102dd1235e0548e2d8ffd7db2a7005"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0402","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a910032c7367726c7f26107809b36a5b0ab01a6e3af6f2b0cf67b659ecca9e49"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0404","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d11388e41908d6112e7f61d01d0c0d9062830b07945356073c8069de5b88d627"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0405","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"dbb5f2efe8d9cca6344840981b65d21b774960589fc9976e6690dc84fce97102"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0406","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d7870b77ea4843334d11fffa265d6d0542e94eec7f4c8e852762d55c28578136"},"properties":{"dependency":{"package":"zstd-safe","version":"8.1.0","advisory":"RUSTSEC-2026-0398","aliases":["RUSTSEC-2026-0403"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"84f9b61ffb7d87f7a0ea344424bcbd7389e2ed41eb01432b04fba9f732cd312c"},"properties":{"dependency":{"package":"zstd-sys","version":"2.1.1\u002Bzstd.1.5.7","advisory":"RUSTSEC-2026-0410","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"b6413dc74781b71494cec63b36f90c9f0d6aa5fb0cf6e83cb1ab7473138f8958"}},{"ruleId":"D31","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":"46f4de82cc40703e6d858760b9a2aa62ed3baeaa3d57831495cf69835387cffa"}},{"ruleId":"D31","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":"ac965ed840305f805ff897f11d93ed233049a6d70a0260dc15776af89986364f"}},{"ruleId":"D31","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":"5f106394fb1cdd9a680380dc69a4c4acf09bb1413dc66c5cbe527675aebb4c03"}},{"ruleId":"D31","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":"74fc1b457189adc0301e02968c8f18df75aebe3192950e48c7bd702f49109730"},"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":"D31","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":"7e241ce25cd2ddfbc15add5a56b23fccaa9ad895eb78497ccebf28c8af5eed6e"},"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":"D31","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":"c82ddddc6299eb916fe58136f2edd79b951335bdb49e8c21dd1ccd9c1815d295"},"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":"D31","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":"7d355bd973e3c8344dfcbb74c949aa378267a0270bb2c133b09534cc467bdd3a"}},{"ruleId":"D31","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":"2ee21583efc995026b62c8f8bedb14dd2419ace3d5d23553ec9e8e96c4421e6e"}},{"ruleId":"D31","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":"7b8ca4ab2eb5a92dd317b177ec1a499b7da0b798ae1c3cc624206bb6860a607e"}},{"ruleId":"D31","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":"091d6e1331652b48cebbed889f9500fa61fd028f94b65e091a18ffc14282a1c2"},"taxa":[{"id":"CWE-426","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-693","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"ded0bb5290e49e41f198b16f96ecf033f08c48ce10c3677327ed2bcae95c101b"}},{"ruleId":"D31","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":"29b713a27998068c32e7217510402f036e36ab4c12d76a1b54078b0930c22ec2"}},{"ruleId":"D31","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":"a501467a9e8e49f6e29ef2810a76e5856956c7263eecc89b1bff336c865f5a0e"}},{"ruleId":"D31","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":"f68c0c73c14d251888133b9a1ad1bd5427ea95f3a51f32e6ef38134c39ad90d5"}},{"ruleId":"D31","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":"c77ca4b957dd3edd9efc6881f60d2540152301b8507aae6da374cc7a4052b174"}},{"ruleId":"D31","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":"60a9cccdef96c999bc91cfdf16d31b152f8e923e30572c0f5c07477bef725711"}},{"ruleId":"D31","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":"10c496d44994d9305046b86f4ece5a327ba682ab82a7f977231d8099e0459cb0"}},{"ruleId":"D31","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":"707f420d1385fb37434dbcb31e6c8d75869c1f4dd9886d35202ad8c1c3e496f9"}},{"ruleId":"D31","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":"168f6d4119d68eb704e320f77272a77e360200eab32ad9957ec49205c96bb4a4"}},{"ruleId":"D31","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":"6fe6faa8563ec44dfe484b797df957864aa8905fc94caf9a1f9b9f7522251834"}},{"ruleId":"D31","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":"9e4546c2afa3c6e975c09608e5d18afbac700e0554cff3d4d9533d9631e5d833"}},{"ruleId":"D31","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":"3c98133accd3996e477bedbe56c41e4db6020df82bd88ed367be0c17fff1260d"}},{"ruleId":"D31","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":"cddcea215d5932c493c19970d18c1f0914dbfc050ad983e3bc310171e520b3c9"}},{"ruleId":"D31","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":"d6eea1b94148617ccc2c77d2b2066446889e6e028b24ce40526b0fb6dcabc35e"}},{"ruleId":"D31","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":"3dd626961701c6de6da13dcdf577cb28076950651821584622fd42717600e4a6"}},{"ruleId":"D31","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":"d56f4ec16543e8fbd719b7265f20c153b51dd43d124f9dc56f10e5bdca1ba25f"}},{"ruleId":"D31","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":"dc2f2d3577c4b1314d563988fec29e603182700ad81a3211d4f670bc47230c01"}},{"ruleId":"D31","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":"3795c0fdc868cb45d6f8c3eeed837a0ee207dbcb901ce7a39b9d2aac4e9d8012"}},{"ruleId":"D31","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":"f2013e2f501ec09b8d2cdebbfbe0de393261d34bd88f877a479bcc2d88ae7c4c"}},{"ruleId":"D31","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":"05b347dd74e1dcf2d8b6b7f75372356184889e06fcb9984a3d56d7e08b2e6dfb"}},{"ruleId":"D31","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":"9606d55e3a892d0483aba1424804a43729a7607d26baa34c7cc64828f2c80dd2"}},{"ruleId":"D31","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":"ea43877db5624830d7f7381261d8b3cb9b6747cf621c401677d315f233d9ea2c"}},{"ruleId":"D31","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":"147da506a9e616d70d3968410befea5baeb5a55d2605526dff7623974a2237d3"}},{"ruleId":"D31","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":"9c87042bd8ccb7f9c5951faf57204ed5aa97520f1a91f51b2fd80c6f02e2d87e"}},{"ruleId":"D31","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":"371f9a96a6bdbbba75cba175189a9e2f4bc1cc239f932d8e8e4052921fa55a34"}},{"ruleId":"D31","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":"59077c44390a52ceaf52ec02659628ec41b4045cbab37b5e5c9b82cca36ac4ed"}},{"ruleId":"D31","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":"aed39ee23cf5b0f34f2fdd01ac863cd5e75e0c87dfac97b1e5b70063d390c6e2"}},{"ruleId":"D31","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":"72587ee385f8f18339c9a7d18a58ff3969ad1938bc01fe3be1e6c9f093247abb"}},{"ruleId":"D31","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":"012207c73c53a5581aa9971070cf28daaf31155ae9c7154ae6605c65045106a0"}},{"ruleId":"D31","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":"46adfb9959ee62187bb9b44a57bc3d8bb361f610a0991bf096f029751876c7c9"}},{"ruleId":"D31","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":"108a8aac287ea46162304cba9491be40ace100354cf2d8f60237c03a6813fd7b"}},{"ruleId":"D31","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":"40bef213248cec399ee8f550b94918cda47ad7ae933e4b8ae1bc5ee982649590"}},{"ruleId":"D31","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":"a00b2b040f81d858241e4b036923024b475fccc44f53a6091142e838a7559630"}},{"ruleId":"D31","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":"f94df4e11138c355dcca68cd763925437cc9ed876fc0ecbb07a1d67657214e2a"}},{"ruleId":"D31","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":"881908cec259974fa40521113d25e17f59006061c8ea0332a05ad31b555e00af"}},{"ruleId":"D31","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":"4a651a6ee9905745f79824947008c66a15852fa095612fa23d3598e378d1c333"}},{"ruleId":"D31","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":"a2f38f5315a71229a31d451d319c58bdf37b70b96a6151d86a7e681aea2aaf9b"}},{"ruleId":"D31","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":"b9eaff7b69c2083cff5a9595dedbf3811eedfc9944222bac315ed060d3283333"}},{"ruleId":"D31","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":"bbfcbf2dcc1cf833477c2a51fb7c76c32a0a777aaa069801cc306f6fa8651d2e"}},{"ruleId":"D31","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":"f67741cd299b26abcdd85e62714f86cd3180dbcecadf69b02274684c91bbe86b"}},{"ruleId":"D31","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":"1bfba569b396a655127acccdc1101405d391a1676e5250d3be833ed8774f5a23"}},{"ruleId":"D31","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":"ffd888b7cfbbc4e6db047838f9c7ffe60041972ec72b8454c18402c5feaa39c6"}},{"ruleId":"D31","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":"ff09b45e81ed8ed7dfe9d503164761591b0dda5921c08691060e53a23772ff66"}},{"ruleId":"D31","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":"c4e6f8b38afe8e1e72e00c487e5398860d96278fa739b3e9b3cb206b2efc8919"}},{"ruleId":"D31","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":"bce9ffadddc33c61c3bb98c03a8f05d025f123de8a10c95809fa44895869050e"}},{"ruleId":"D31","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":"a10d354acb27bce54cc1fbf505b45af62208fa46a751bf7496c7ac9ed192bb17"}},{"ruleId":"D31","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":"54e006b461f7178603dbeabdca17e24926fa9a35837a3fa640e0f38df75aa173"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"fa344d328cd3d526faa63527722d5a18c27fc08a6bfc463b084e96e047ffc1db"}},{"ruleId":"D31","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":"acd7abf969ccbf95c4b486e3553289d7a2ce1c5f693d567d7aede8fa78250808"}},{"ruleId":"D31","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":"e3456a33515efc2e2b0fc6b725fb30396a686312092c39ebaa9032146e44ed46"}},{"ruleId":"D31","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":"c33e53f2149fd3baa933cf7faa56c5d8208ee2425fa4e0c99439a8f2a11723d9"}},{"ruleId":"D31","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":"ca2a8935b1242809a9c892dddd0ecc14bc9c9a599c45f932d8dfead7101705f8"}},{"ruleId":"D31","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":"bf0b4a0e103b8e2b1f166a4155e3a8a4393204c8c3569b727d76458c92b6fa8f"}},{"ruleId":"D31","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":"b0617bb1fd5704fe235d6b4a06d17b7f99a473d8a327dd959b9155b1177b3a48"}},{"ruleId":"D31","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":"66a472fa9e4d6c88cc92cd184258acb7ab2f70c6ba7b63d347cb8297f6fdfe61"}},{"ruleId":"D31","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":"3ff4085e1956c874125a8728fe8d06662e7cecfc9f0722d8ca5dc4c8c03cae45"}},{"ruleId":"D31","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":"a320f41d70900bfa2aafbc76b493c7c6d2e5c3c4b60618a4c2048000f4094738"}},{"ruleId":"D31","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":"65a040640a96b58088023cb0c4a471ae00f2b91ce409bae78beee2e6dec4c214"}},{"ruleId":"D31","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":"70aafbe97819b9ce4b8cfccd549c4e90fc0cf241caaa38eaabcacc834b27f7d6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: bsd.rs \u2194 freebsd.rs: \u0060crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/bsd.rs\u0060 and \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060e691853f\u0060 add support for OpenBSD/pf (#1567); \u00604006cdec\u0060 feat(local): redir *bsd pfvar.h bindgen (at that commit the file was still \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/bsd.rs\u0060); \u00608817e04d\u0060 enable dual-stack for redir sockets (at that commit the file was still \u0060crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/bsd.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/bsd.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6666591ff6300776965605bcfdaedb6d5a5feb0aae83c9ae3109f301965b198b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: proxy_listener.rs \u2194 client.rs: \u0060crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/proxy_stream/client.rs\u0060 change together 70% of the time (7 of the 10 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) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006085cf58ab\u0060 chore: replace once_cell::sync::Lazy with std::sync::LazyLock (#1963); \u0060a04e92c1\u0060 feat(shadowsocks): add more Debug implementations (#1656); \u0060c9c59f96\u0060 feat(plugin): Support SIP003u, Plugin UDP mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdf54d577917848ebc725da24131d6fea2437699a29cd04d2c039eac97b6631"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: client.rs \u2194 server.rs: \u0060crates/shadowsocks/src/relay/tcprelay/proxy_stream/client.rs\u0060 and \u0060crates/shadowsocks/src/relay/tcprelay/proxy_stream/server.rs\u0060 change together 53% of the time (8 of the 15 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) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006012c4ff25\u0060 feat: add MakeSocketProtect and docs, reformatted; \u0060a04e92c1\u0060 feat(shadowsocks): add more Debug implementations (#1656); \u00602048cb1d\u0060 AEAD-2022 TCP protocol breaking changes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_stream/client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a85eb4b5910da9d32fcb32ae59c67b882c59d14a02de76948952de471d45fb6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: proxy_listener.rs \u2194 proxy_socket.rs: \u0060crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs\u0060 and \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs\u0060 change together 50% of the time (5 of the 10 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) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006085cf58ab\u0060 chore: replace once_cell::sync::Lazy with std::sync::LazyLock (#1963); \u0060a04e92c1\u0060 feat(shadowsocks): add more Debug implementations (#1656); \u0060c9c59f96\u0060 feat(plugin): Support SIP003u, Plugin UDP mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ee6a3174e3c8efae475601db39ce038e40c2d32be9102e2f4026245de7b65f"}},{"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":"8e2e6fa5f619f46cacaad2b49b8c717ff39a97571033bf2b627aa0f80d4e5606"},"taxa":[{"id":"CICD-SEC-5","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":"5e9b5d6eb8861f298c02c67ffba822cf5d845cc07645e81276ad4aac391b6b90"},"taxa":[{"id":"CICD-SEC-5","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":"ab5f43db6c64f92fb10a3ef6ffb13bcb2b90561c418307359005afb553978e7e"},"taxa":[{"id":"CICD-SEC-5","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":"3199b642af1da81843f107638f9234d3557f16ce3ab9345a0beff84bc888e226"},"taxa":[{"id":"CICD-SEC-5","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":"18436a9d7d7e0f7701e8bb6b585e91bf5e1dfa35994651675312fe942032943a"},"taxa":[{"id":"CICD-SEC-5","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":"c71826c4b1c5ffc61781de80087676384069305fe09fe99239a950fee6f68ded"},"taxa":[{"id":"CICD-SEC-5","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":"b13b80e1c709d78310ca0fd568b0c37c277a5cb14ca34796477c1f79a7e76485"},"taxa":[{"id":"CICD-SEC-5","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","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":"c593d4dbd23724f337bfb8d2c1653812f143ae255bd9b59d4b3e9c37779fa6f4"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D40","level":"note","message":{"text":"No network policy: No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"295828650a2aaa1b03ae9b32ae6843a0c38011e5a70b1926442c4fa7187de5f0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"k8s/shadowsocks-rust.yaml"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"863160e15dbc8a53355fd65d1a862ff52c62dbd98de2e2a82c3ca9c02c389da0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"k8s/shadowsocks-rust.yaml"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09ebd7656a239fac779feb427601cd87fa01b580fe8a147a613840f35b67914"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a server (.serve_connection) (crates/shadowsocks-service/src/local/socks/server/server.rs:218) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/socks/server/server.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e62b688fd555f75d448e5bf907c33d5c30d9cde626ab83f860f57e3c655331"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository starts an HTTP server and nothing in its Rust source or committed \u0060Rocket.toml\u0060 secures the transport: no TLS served (actix-web \u0060bind_rustls\u0060/\u0060bind_openssl\u0060, axum-server \u0060bind_rustls\u0060 with a \u0060RustlsConfig\u0060, tonic \u0060ServerTlsConfig\u0060, a \u0060TlsAcceptor\u0060, Rocket\u0027s \u0060[default.tls]\u0060), no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: \u0060.serve_connection(\u0060 (crates/shadowsocks-service/src/local/socks/server/server.rs:218)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Rust server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: \u0060.serve_connection(\u0060 (crates/shadowsocks-service/src/local/socks/server/server.rs:218)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!ip_stack_caps.support_ipv6 || !ip_stack_caps.support_ipv4_mapped_ipv6\u0060 appears character-identically in 2 files \u2014 crates/shadowsocks-service/src/local/redir/udprelay/mod.rs, crates/shadowsocks-service/src/server/udprelay.rs. 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":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a02ced09bd54b3640272f8ad8c55bb2cec3742dcee891a0f222c8c9448d31cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matches.get_flag(\u0022DAEMONIZE\u0022) || matches.get_raw(\u0022DAEMONIZE_PID_PATH\u0022).is_some()\u0060 appears character-identically in 3 files \u2014 src/service/local.rs, src/service/manager.rs, src/service/server.rs. 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":"src/service/local.rs"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ebcb0560d649ea5bc5d1569bb99087888ddc2082209223923a4a946204510a"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-426","guid":"7b39d500-c310-9a5d-9a3d-4c2bf49492a3","name":"Untrusted Search Path","shortDescription":{"text":"Untrusted Search Path"},"helpUri":"https://cwe.mitre.org/data/definitions/426.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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-693","guid":"b9b141dc-018a-9c59-8953-1e3c4e020745","name":"Protection Mechanism Failure","shortDescription":{"text":"Protection Mechanism Failure"},"helpUri":"https://cwe.mitre.org/data/definitions/693.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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":169,"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."]}]}