{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Config::load_from_ssconfig (cyclomatic 142): Config::load_from_ssconfig has cyclomatic complexity 142 (threshold 15). Of this number, 139 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 21 functions over the threshold \u2014 including the worst \u2014 and 202 of the 450 points over it (45%), 3\u00D7 the next-largest file (src/service/local.rs at 67). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"158a43385af5679f1534928279ae529c0e9b04ce922d1424426c237b7646867e"}},{"ruleId":"D1","level":"warning","message":{"text":"shadowsocks_rust::service::local::create (cyclomatic 82): shadowsocks_rust::service::local::create has cyclomatic complexity 82 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"249bcbfebe56689a127274b44a2ce1a1dfba109f460e27b53fb9c67d6b0fbb9e"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::fmt (cyclomatic 74): Config::fmt has cyclomatic complexity 74 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 21 functions over the threshold \u2014 including the worst \u2014 and 202 of the 450 points over it (45%), 3\u00D7 the next-largest file (src/service/local.rs at 67). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":3001}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5af1e203f80e394b0dc8ce5342a63f06b8209388bbf3c7f152ee4a168b8e54"}},{"ruleId":"D1","level":"warning","message":{"text":"Server::new (cyclomatic 65): Server::new has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f676f3fd1d0f46b3f3a00f21a2d96404edd73fdaca36b3c3bcde70abd41afb"}},{"ruleId":"D1","level":"warning","message":{"text":"shadowsocks_rust::service::server::create (cyclomatic 47): shadowsocks_rust::service::server::create has cyclomatic complexity 47 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/server.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52f4975dc76bb1a92b8d6f1bf87591e88068eeaa185cae771da91207f276d6d"}},{"ruleId":"D1","level":"warning","message":{"text":"shadowsocks_rust::service::manager::create (cyclomatic 46): shadowsocks_rust::service::manager::create has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/manager.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd333ae25a3eb4f1199cd0dd1a9090685ae1749cd5636e262d3780bc902d8b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Config::check_integrity (cyclomatic 31): Config::check_integrity has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 21 functions over the threshold \u2014 including the worst \u2014 and 202 of the 450 points over it (45%), 3\u00D7 the next-largest file (src/service/local.rs at 67). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a045fbd8eae7d9b01b8f3b4c50de0262997b12ae7aa106aa096d9875c6ceff7"}},{"ruleId":"D1","level":"warning","message":{"text":"TcpTun::new (cyclomatic 27): TcpTun::new has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/tcp.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1860c79b3fb11d6dbdcd421f4ac0d39605df5f8a0118042f51ab1eecd2379fbc"}},{"ruleId":"D1","level":"warning","message":{"text":"shadowsocks_service::server::run (cyclomatic 26): shadowsocks_service::server::run has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/mod.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffa56a771c7d9017b25dbea57063a9b5e15acf6d7d1bd4c17326a8ae80ba768"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfig::from_url (cyclomatic 23): ServerConfig::from_url has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"5609ee237065fc15d7b598a73f3177f1cbf5c1e5b9f4a64e58bbf0237779fb87"}},{"ruleId":"D1","level":"warning","message":{"text":"PingBalancerContext::check_once (cyclomatic 23): PingBalancerContext::check_once has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0f93f7ac5353d2a02c8a982b9fd0f842fcdff4eab4b513be005f8af44e23e1"}},{"ruleId":"D1","level":"warning","message":{"text":"shadowsocks_service::local::dns::server::should_forward_by_response (cyclomatic 20): shadowsocks_service::local::dns::server::should_forward_by_response has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"99acfdbc0578ac687de082014304bc73447b9f64e86194038eee44bd5dabde86"}},{"ruleId":"D1","level":"warning","message":{"text":"DecryptedReader::poll_read_header (cyclomatic 19): DecryptedReader::poll_read_header has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead_2022.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a79be956204628d35ace35e6545308207f547ff1d62cae0b3f834cd709a91a"}},{"ruleId":"D1","level":"warning","message":{"text":"AccessControl::load_from_file (cyclomatic 19): AccessControl::load_from_file has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb4da42be35247182f97699f97f4ff0eed76536d1c732dced71843a603204bd"}},{"ruleId":"D1","level":"warning","message":{"text":"OnlineConfigService::run_once_impl (cyclomatic 19): OnlineConfigService::run_once_impl has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/online_config/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b84550da7ef1bdfb6036be39f80a356b74560695eef5802c97ed795ee356b1b"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpService::serve_connection (cyclomatic 18): HttpService::serve_connection has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_service.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7133ca84c841c4e046516cdf248a7d3c15e57cde53ee800df364d6d0ba01ece0"}},{"ruleId":"D1","level":"warning","message":{"text":"UdpAssociationContext::dispatch_packet (cyclomatic 18): UdpAssociationContext::dispatch_packet has cyclomatic complexity 18 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ff6fb4430a704fa979bdf8f4a2ba44b8a827a31209933b9dc8442739746487"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpClient::send_request (cyclomatic 17): HttpClient::send_request has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_client.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"41283fb73bee8f4dcab0ec6e25008ad67e1a99f508aa69031d6abaab6d486a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"Tun::handle_tun_frame (cyclomatic 17): Tun::handle_tun_frame has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a51344a33a0dd32a89302debe34abca6e680ed78982994a3fc009d00f0b518"}},{"ruleId":"D1","level":"warning","message":{"text":"PingBalancerContext::check_best_server (cyclomatic 16): PingBalancerContext::check_best_server has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa8e4a681da2ac7ee792d7975c21d8eb18515eaaba6ffd458d428ac2aeb31fe"}},{"ruleId":"D1","level":"warning","message":{"text":"UdpServer::run (cyclomatic 16): UdpServer::run has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0133023c3a25825c465fc735ab2956cc8f3369064d44620105ffb6ccb58a99ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::load_from_ssconfig (cognitive 353): Config::load_from_ssconfig has cognitive complexity 353 (threshold 15). Drivers by points: if/else 78 (182 pts), match/switch 52 (157 pts), loops 4 (11 pts), boolean chains 3 (nesting depth added 216). Of this number, 347 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 50 functions over the threshold \u2014 including the worst \u2014 and 549 of the 1214 points over it (45%), 5.7\u00D7 the next-largest file (crates/shadowsocks-service/src/local/mod.rs at 96). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad34ee6974ae9f476805a8034d1cf4c9e30935aab72390ec08feacd84e3c14a"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::fmt (cognitive 180): Config::fmt has cognitive complexity 180 (threshold 15). Drivers by points: match/switch 31 (97 pts), if/else 40 (71 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 102). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 50 functions over the threshold \u2014 including the worst \u2014 and 549 of the 1214 points over it (45%), 5.7\u00D7 the next-largest file (crates/shadowsocks-service/src/local/mod.rs at 96). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":3001}}}],"partialFingerprints":{"codehealthFindingId/v1":"da36919e6464f8b893aea53e9b3d9f8a181dfbdaf0f1715dea2991f4728af257"}},{"ruleId":"D2","level":"warning","message":{"text":"Server::new (cognitive 111): Server::new has cognitive complexity 111 (threshold 15). Drivers by points: if/else 43 (81 pts), match/switch 11 (22 pts), loops 5 (8 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"001c046bcf76c6b62316fe296a95c0564c64503635f109b208fbdfc3cd2d18cc"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_rust::service::local::create (cognitive 109): shadowsocks_rust::service::local::create has cognitive complexity 109 (threshold 15). Drivers by points: if/else 58 (79 pts), match/switch 14 (25 pts), boolean chains 4, loops 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a9981ac04b43c5b789b943f6a2da6dd40b3a7314c28547daa4e25ed82aeef3"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpTun::new (cognitive 67): TcpTun::new has cognitive complexity 67 (threshold 15). Drivers by points: if/else 12 (40 pts), loops 6 (13 pts), match/switch 2 (8 pts), boolean chains 6 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/tcp.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"569463c848f646539a9b3f9bb3b628913486fa6720ba4d266f69af863f6aa42b"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_rust::service::server::create (cognitive 63): shadowsocks_rust::service::server::create has cognitive complexity 63 (threshold 15). Drivers by points: if/else 34 (42 pts), match/switch 11 (18 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/server.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b933f5d45d0e60516a95fd7df47b2791ab1e1ccfbea21e81a735b0120f4656"}},{"ruleId":"D2","level":"warning","message":{"text":"Config::check_integrity (cognitive 61): Config::check_integrity has cognitive complexity 61 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 8, loops 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: crates/shadowsocks-service/src/config.rs holds 3 of the 50 functions over the threshold \u2014 including the worst \u2014 and 549 of the 1214 points over it (45%), 5.7\u00D7 the next-largest file (crates/shadowsocks-service/src/local/mod.rs at 96). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81e7a356dcddf41115d2c05166362db739b1e624d9d45e49850409e96b51697"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_rust::service::manager::create (cognitive 50): shadowsocks_rust::service::manager::create has cognitive complexity 50 (threshold 15). Drivers by points: if/else 34 (37 pts), match/switch 8 (10 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/manager.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1c2859f1832932429b6ee85dacca774873999703e5714fcb3dcbeee084d468"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::local::dns::server::should_forward_by_response (cognitive 49): shadowsocks_service::local::dns::server::should_forward_by_response has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (39 pts), loops 2 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cd8a902254fefe15482b4531fc82b984677ab84e656ac9e206c9bed53b2a50"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::server::run (cognitive 43): shadowsocks_service::server::run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (37 pts), loops 3, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/mod.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"177f766ba5efc44e7fb457780e7bc50061482e3dc21f2a97d3d99d45c59137d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig::from_url (cognitive 39): ServerConfig::from_url has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 16 (30 pts), if/else 5 (7 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26157bef7d048443940cda788c0860b5ab83b57173ffe27f7baf04196bfb55d"}},{"ruleId":"D2","level":"warning","message":{"text":"PingBalancerContext::check_once (cognitive 35): PingBalancerContext::check_once has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a68a3a0c2b243b49d18e3871a17cea565aa2970eac00e5ac4c1f8f640f68a81"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpAssociationContext::dispatch_packet (cognitive 32): UdpAssociationContext::dispatch_packet has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 7 (12 pts), loops 1 (nesting depth added 17). Of this number, 26 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/net/udp/association.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a267ffd2989ea921e5436a10b85611bb93cad4b6d6da5384fff92bfc3c52ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpServer::run (cognitive 30): UdpServer::run has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 5 (12 pts), if/else 4 (11 pts), loops 4 (7 pts) (nesting depth added 17). Of this number, 27 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b90403803e58bd5769e455c44f4e4f09af35180055e5c3d46cc557dd616b00"}},{"ruleId":"D2","level":"warning","message":{"text":"OnlineConfigService::run_once_impl (cognitive 29): OnlineConfigService::run_once_impl has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 9 (13 pts), if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/online_config/mod.rs"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"094b8f8ecda268e52160a6c1315678fc600ef50c29a25f8c45bbc8b59b949db4"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpService::serve_connection (cognitive 28): HttpService::serve_connection has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 7 (13 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_service.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ee21cfd8ea48249c82e945e8504789967e54c897e4e4a8a14f3401a235ecc7"}},{"ruleId":"D2","level":"warning","message":{"text":"DecryptedReader::poll_read_header (cognitive 26): DecryptedReader::poll_read_header has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (15 pts), match/switch 5 (10 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead_2022.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db864a3603f03ae6c28385ef4c573291d2f382b8aafa1c93e5924de0e83acd3"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::local::dns::server::should_forward_by_query (cognitive 26): shadowsocks_service::local::dns::server::should_forward_by_query has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c56898f2918dcc7c4638b124684c1c27581cd12ee68f6496044f089feb13e8"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks::relay::udprelay::aead_2022::decrypt_message (cognitive 25): shadowsocks::relay::udprelay::aead_2022::decrypt_message has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 4 (8 pts), loops 1 (4 pts) (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/aead_2022.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ce311f8584a4002e224744825aff2d13e9391fd25b6fc0d887aa71dc9a1f47"}},{"ruleId":"D2","level":"warning","message":{"text":"PingBalancerContext::check_best_server (cognitive 25): PingBalancerContext::check_best_server has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"409bdba43add476de305482fadfada793999bf235ad7f461cb6da91bc78e1b93"}},{"ruleId":"D2","level":"warning","message":{"text":"Tun::run (cognitive 25): Tun::run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 6 (11 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"05807eb92dc6c6a59f2059066256893faeadaad95b8691fbe0408ec1702f1b06"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpAssociationContext::dispatch_packet (cognitive 25): UdpAssociationContext::dispatch_packet has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (14 pts), if/else 4 (10 pts), loops 1 (nesting depth added 14). Of this number, 22 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1a99a185bfc0a4d775a633f5d32df566bebc83132eae7a604400a67f151a33"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpRedirInboundWriter::send_to (cognitive 24): UdpRedirInboundWriter::send_to has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 6 (10 pts), boolean chains 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a75dbd09dccf4c110d079f2c325c463a3cea2fa4781847708fcca4619820b8"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks::config::password_to_keys (cognitive 23): shadowsocks::config::password_to_keys has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 3 (8 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda341408fa022141272ef3c0e45d01de605705b95a104e3a758a2dda9c0d917"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpClient::send_request (cognitive 22): HttpClient::send_request has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 6 (7 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/http_client.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b799a1ada2933f7fc7b77039a73ce3d7b9501859cb3e4e5577d2afd1912a8d82"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager::handle_add (cognitive 22): Manager::handle_add has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 10 (17 pts), if/else 3, loops 1 (2 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/manager/server.rs"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"633a6add0b3fb4a6b6848758927baa23f9c2d99e80f6462e4027406244538c73"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::dns::build_dns_resolver (cognitive 22): shadowsocks_service::dns::build_dns_resolver has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 4 (10 pts), boolean chains 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/dns/mod.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2051e06a3f9db6cce809f677509241b860c2bb1b7f6751341ab27c6e8a3986"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_rust::config::get_default_config_path (cognitive 21): shadowsocks_rust::config::get_default_config_path has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d36d16257be3708f3b397e7bd5db2a9b9f8a5a5ec880f5dc35bac85ecbea69b"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpListener::bind_redir (cognitive 20): TcpListener::bind_redir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 3 (6 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/tcprelay/sys/unix/linux.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9b0a875600035abbb15b6ab825bcf4b46198bf58a93ea58341bb7896afb544"}},{"ruleId":"D2","level":"warning","message":{"text":"EncryptedWriter::poll_write_encrypted (cognitive 20): EncryptedWriter::poll_write_encrypted has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (8 pts), loops 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/aead_2022.rs"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbe773cc962b76ab73618e66b7e65048a12dd45a154163b79131996bc70b92b"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessControl::load_from_file (cognitive 20): AccessControl::load_from_file has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (9 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c564acb70098f72dd0a412d9edde447ecec9d4d4faf8547ac4de61f6fe37218b"}},{"ruleId":"D2","level":"warning","message":{"text":"Tun::handle_tun_frame (cognitive 20): Tun::handle_tun_frame has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 6 (8 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6e0a7df682f584b42a4b7d6bf1459e57a64951f64a2f85582446e399df531e"}},{"ruleId":"D2","level":"warning","message":{"text":"FakeDnsManager::open (cognitive 19): FakeDnsManager::open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/fake_dns/manager.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bda0786c1f4d7dec8cdff10c7498572b444aad6a86031850022011ac2ae3114"}},{"ruleId":"D2","level":"warning","message":{"text":"PingBalancerBuilder::find_best_idx (cognitive 19): PingBalancerBuilder::find_best_idx has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb4c358600da93972c1d78d78af91c872339a9397fb4bd9d7e74ce2e146a9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpRedirSocket::bind (cognitive 19): UdpRedirSocket::bind has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"efee438df3be15b54d13d72da0bb7dd6245582f451fa28784a5794c7e5fd9731"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpRedirSocket::bind (cognitive 19): UdpRedirSocket::bind has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3f4f577fdf0432e2155b9798310bbc97f3a6d56049910cc7f1db251816ee1b"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpAssociationContext::send_received_outbound_packet (cognitive 19): UdpAssociationContext::send_received_outbound_packet has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 5 (8 pts), boolean chains 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d94031b7939e30da474ebfee4328ac7b3201ad8f177b6a7af8d306d0c65d625"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::local::redir::udprelay::sys::unix::openbsd::get_destination_addr (cognitive 19): shadowsocks_service::local::redir::udprelay::sys::unix::openbsd::get_destination_addr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/openbsd.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daced9d9306405fbb93412e628a817c658bec1675f19d9cfcb8f658a8643302"}},{"ruleId":"D2","level":"warning","message":{"text":"genipset.generate_ipset (cognitive 19): genipset.generate_ipset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"configs/genipset.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a8c449c4cccf8a135c918bd5eb4567195abaafe7e4c349b0943048ab9b0f13"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessControl::check_outbound_blocked (cognitive 18): AccessControl::check_outbound_blocked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc8a57f9488c6ee798847484381f16b57a7ab8f42358b493f8d9313faad3301"}},{"ruleId":"D2","level":"warning","message":{"text":"DnsResolver::resolve (cognitive 18): DnsResolver::resolve has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 6 (10 pts), if/else 5 (8 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/dns_resolver.rs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0deb43a47b6ede84944dc783956cc273409b729c9fe6968c511735ad6ffb1b"}},{"ruleId":"D2","level":"warning","message":{"text":"PacketFilter::udp_natlook (cognitive 18): PacketFilter::udp_natlook has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (6 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/sys/unix/bsd_pf.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c594a41b8ddc33ade4a2ed8d3aac3c98450c6ffc4c62f6aa6293f9ec1274d74"}},{"ruleId":"D2","level":"warning","message":{"text":"CopyBuffer::poll_copy (cognitive 17): CopyBuffer::poll_copy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/tcprelay/utils.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f675755fcffd8663170b75dabbb99ad560c18b8e6dd07e83ee1218bb69af3c2"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpRedirSocket::bind (cognitive 17): UdpRedirSocket::bind has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e39501a6c84ebd6514d9fe814eb3999455c0c002ff864612e3a31d404e3b13a"}},{"ruleId":"D2","level":"warning","message":{"text":"UdpRedirSocket::bind (cognitive 17): UdpRedirSocket::bind has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/macos.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf4fe5667987b96755488139444f8425ca63c624d81941376ea7a4487fe1eae"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager::handle_stat (cognitive 17): Manager::handle_stat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/manager/server.rs"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"859f445d9b87110678a77e09d8f5c65cad771c297f4c2e2a6b59484db451a2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessControl::check_target_bypassed (cognitive 16): AccessControl::check_target_bypassed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/acl/mod.rs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3408b6e264d9612835a87e0a685592986fbcdbabf0860fcb95abac36ac21eb"}},{"ruleId":"D2","level":"warning","message":{"text":"RedirUdpServer::run (cognitive 16): RedirUdpServer::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), match/switch 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/redir/udprelay/mod.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"411cc212834f48ae4c94338fa84ad6470beca587301eaffd469a27178fd67cca"}},{"ruleId":"D2","level":"warning","message":{"text":"Server::run (cognitive 16): Server::run has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 5, loops 1 (2 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/server.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f334603675aa4aa0690969ec2012967a9c3c61e92fd2d3726143e742c5ac42"}},{"ruleId":"D2","level":"warning","message":{"text":"shadowsocks_service::local::http::utils::get_keep_alive_val (cognitive 16): shadowsocks_service::local::http::utils::get_keep_alive_val has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/http/utils.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aa36f7f96fcbba4d6357201d8b5c29cfcbed92eb2de95e3186a07aa8244d67"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.load_from_ssconfig: MethodTooLong \u2014 load_from_ssconfig runs 547 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 447 over it, 5.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7372613a9fae8c73d29cb2783a70ed2d5db57df7fd36a70fdae2ef2c7b0ea70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 2074 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1574 over it, 4.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d5ed78c2c82a56cac96d226ec688d7ba8a47469dc0eb800e38b9c2560ae384"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::local::define_command_line_options: FunctionTooLong \u2014 shadowsocks_rust::service::local::define_command_line_options runs 392 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 292 over it, 3.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdeb30f00f8f808ca68535419abbd7d43eb8b944ebe73bb8ca68632ca9fa559"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.fmt: MethodTooLong \u2014 fmt runs 301 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":3001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5818cea727f011e67cc1c90dd18d5329eca59f28009251aae92e05651616784f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.new: MethodTooLong \u2014 new runs 299 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 199 over it, 2.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"49de39b6054bf8ed80d39d7254c326d0dbc6b0689a9f19bb52806e4920568b9b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Config: ClassTooLong \u2014 1130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 3 blocks, lines 1511-3444. The bar is 400 significant lines; this is 730 over it, 2.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8e2b0459e3ac117d5d61bf25dc52e486e05bcc4156063e84e0ad87dccd2a69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::local::create: FunctionTooLong \u2014 shadowsocks_rust::service::local::create runs 273 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c7a3d95ca9298a6699fef256eb19102a47a3651856cd4e0ad6b91beb07a940"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::server::define_command_line_options: FunctionTooLong \u2014 shadowsocks_rust::service::server::define_command_line_options runs 207 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/server.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea4f0f96654a08ce927f4868e5297ba2f183594f882fa5a244258e533060dff"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::manager::define_command_line_options: FunctionTooLong \u2014 shadowsocks_rust::service::manager::define_command_line_options runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/manager.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c939197bf1d1d5c7d428c3a689c99ace83f74416f9c69eeac078fc968b19e7b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::server::create: FunctionTooLong \u2014 shadowsocks_rust::service::server::create runs 166 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/server.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa87fb056d57ab5b862e3f33d27a0cce3132322b759e79a8b9eb92b9f1dec85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.rs: FileTooLong \u2014 776 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 276 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c053a64cedb5d41cdafdd909f1e9a43aaba2b231134fb5c19e3c8b2d5b3d869"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/local.rs: FileTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 275 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/local.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33024a779d3e2e7f3c012dde808421ae1d55af6c1d418862b0001a8c216982b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TcpTun.new: MethodTooLong \u2014 new runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/tcp.rs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36608d318806392a54b7082aece2d667c7b04b1ed575f9f10e231b835504044"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_rust::service::manager::create: FunctionTooLong \u2014 shadowsocks_rust::service::manager::create runs 150 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/service/manager.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cd1fcc819564ffc5a59b96f606b36a92bc47b6ffdd4a3831924954e7fc6541"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: SSConfig: TooManyFields \u2014 43 stored fields. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"965f380f64694441a55f60df27c489c9ed8226732122f37f69c6dfd6d6ab52f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dns/server.rs: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 153 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a154d8b5b0d353a5bbc5c65b590a3c4109b26a395591122fba82421acacded7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: loadbalancing/ping_balancer.rs: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 151 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1134e4be3e8fa4165eed5d1bc71778c6cbff14c24bf1ea271e48c999334f9ae7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerConfig: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dfd119cc50916baf07a094897c42d66c069474425dcff6670e21aeb1710e75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: shadowsocks_service::server::run: FunctionTooLong \u2014 shadowsocks_service::server::run runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/mod.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"843d76b612dfbfe2d093fb99aa384c74abb045ee91a2b9008dc158de6de55d37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 34 stored fields beside 9 methods. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"0022078dec41543ba3811c4bc50e2e85827b31e8b168ea1c00c179e6635dbd3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relay/socks5.rs: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 66 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/socks5.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a703f5e94c15df504e3e875aa92938ca8f0208c6cccfb9dd489975b1f92700a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/udprelay.rs: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/udprelay.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5952373f33d03cbed319e8a08f59abd152454f651aadb0bb4c2c9b3d10d695d1"}},{"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, 134 shared lines): src/service/local.rs:588-1054 | src/service/manager.rs:273-529 | src/service/server.rs:292-571 \u2014 These 3 members are variants of one another: a block of 134 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":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b1d040ede6fdafa6b2e02768f7a3a3f559d7651936aee15bc32676f5abfa43"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 131 shared lines): src/service/local.rs:86-585 | 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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c88da97fc4a8d95bb9e325ebaa103d36a353aac7cced7ad6f6823b1087851cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 19 shared lines): crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:2891-2926 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:3148-3207 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:16401-16444 \u2014 These 3 members are variants of one another: a block of 19 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":"crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs"},"region":{"startLine":2891}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abc267fd350ca8c9d715abbefaf251c34be240fad3194c772f72eed1d4a8397"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (44 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: 44 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":"832bb6e77c0ce89b27e4173c426054ebe092de1a4a1dd544094bb7d65b81b1f7"}},{"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/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 (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 (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/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":"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":"Duplicated block (42 lines \u00D7 3): src/service/local.rs:893-934 | 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 12 separate duplicated blocks between them, totalling at least 278 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":893}}}],"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."},"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 263 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/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:286-324 | 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 12 separate duplicated blocks between them, totalling at least 278 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":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec1cc652ef295369ee37d8cf8b9e7ac5ce487bc68052958721b35eb21e9ece5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): crates/shadowsocks-service/src/local/dns/server.rs:290-326 | crates/shadowsocks-service/src/local/fake_dns/tcp_server.rs:98-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f008edc22d9fdd4f56c8afc85b90d484b47133faff45c8a26f275d2937b74c"}},{"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."},"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 lines \u00D7 3): src/service/local.rs:239-272 | 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 12 separate duplicated blocks between them, totalling at least 278 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":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0704ea7b580f028d867fec97e09d84071786fc6081529575942997bcaa45a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/service/local.rs:522-555 | 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 12 separate duplicated blocks between them, totalling at least 278 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":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e52745260b9cb3a2d3e719fb737b537d2263b7896733f477c593c951a1af30d"}},{"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 135 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-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."},"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:853-881 | 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 12 separate duplicated blocks between them, totalling at least 278 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":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"777c940de5e91e4d8d2d6a447d91cb2dac59f8c1e16275d0cad3e36de18fa514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2163-2189 | crates/shadowsocks-service/src/config.rs:2272-2298 \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":2163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1769ea2199d8295f7f9c8b06d45bb69eea4e0bad3a49e3da91c194cf237889b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/service/local.rs:628-652 | src/service/server.rs:331-355 \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 342 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":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f7e5c49a0ab9afea743220c480a95f6872cecd5fff17ca81480de3b4585630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): src/service/local.rs:594-617 | 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 12 separate duplicated blocks between them, totalling at least 278 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":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38340085c2a488cc3f2b96fbde16a3b7c71c719b957cdb3b58514e931b66434"}},{"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 263 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/freebsd.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f27ec68de0f0af9f9c21d908b8d2fd40d58ab2adac801c5fbf3330785bbc39e"}},{"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."},"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 (22\u201323 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:95-117 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ad5b7657109d9565014fa96a948b2cc2da96bc066c78b9e9eec8424ba00cb3"}},{"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."},"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 (22 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2200-2221 | crates/shadowsocks-service/src/config.rs:2347-2368 \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":2200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0ddde6d226ef8811af644694999c8b737ddbbdaddc2f02e056058839ab1771"}},{"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 11 separate duplicated blocks between them, totalling at least 144 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":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4397b419d953f633f34681baab5444b88dc86944e8cd4d1b507b19a8765cced4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:674-694 | crates/shadowsocks-service/src/local/mod.rs:699-719 \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":674}}}],"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."},"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."},"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/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."},"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."},"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:662-681 | 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 342 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":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d34f205886fa45291b95bbddb0f8c94aa9f0666d5cc910e4681f51b96309b"}},{"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."},"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 (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."},"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 135 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-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 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 11 separate duplicated blocks between them, totalling at least 144 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":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1facfd2715bd569142a0418ed8e11e5069b7a2166b478e6a4d30723570dc65a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/shadowsocks/src/relay/tcprelay/aead.rs:412-430 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:740-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 11 separate duplicated blocks between them, totalling at least 144 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":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4e0f9084b75ab8eeb9c43a91c6797ee470407489b59ef973ae52f36dff3a29"}},{"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."},"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 (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."},"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 (18 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:282-299 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:469-486 | crates/shadowsocks/src/relay/tcprelay/stream.rs:172-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 11 separate duplicated blocks between them, totalling at least 144 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":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5926e5ff8f9de6315c939a02b24e21f4beef5f8f7c32bc1e5ced0a35379a49cf"}},{"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."},"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:501-517 | 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 12 separate duplicated blocks between them, totalling at least 278 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":501}}}],"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."},"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 15 separate duplicated blocks between them, totalling at least 327 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/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 135 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-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 135 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-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:964-979 | 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 12 separate duplicated blocks between them, totalling at least 278 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":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a156af61f0a29e16c1f8a0feb0caa1f5229f3cc23e71be1b86996eed1bff065"}},{"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."},"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): 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."},"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): 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 15 separate duplicated blocks between them, totalling at least 327 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/manager.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd02fbb105db36f6c8586635675bedd2e51863a1516e7d5288e90a7281353b6d"}},{"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 15 separate duplicated blocks between them, totalling at least 327 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/manager.rs"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"85561b82f14fea1ac039b1fe4a4b5e651d2c9d0cbe527805bcc222103a36ab74"}},{"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."},"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."},"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/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."},"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."},"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 (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."},"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 (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."},"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): crates/shadowsocks-service/src/config.rs:2083-2096 | crates/shadowsocks-service/src/config.rs:2397-2410 | crates/shadowsocks-service/src/config.rs:2645-2658 \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":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dea6cf0eb84d0a1c0ddf91bddb39d958839c251183bcc120ed12d21f3b11c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/service/local.rs:983-996 | 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 12 separate duplicated blocks between them, totalling at least 278 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":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"da84c1b2db62a4b0601267f4341a2da1999d976e2f36916a92cafcb5e0e242df"}},{"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."},"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 (14 lines \u00D7 2): crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs:323-336 | crates/shadowsocks/src/net/sys/unix/linux/mod.rs:485-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 263 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/freebsd.rs"},"region":{"startLine":323}}}],"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 11 separate duplicated blocks between them, totalling at least 144 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":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed21e97a0269320c3fd511d344fe5908877e5fd8129e12afd72f021dcf3f9e54"}},{"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."},"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."},"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 (14 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/freebsd.rs:293-306 | crates/shadowsocks-service/src/local/redir/udprelay/sys/unix/linux.rs:299-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 135 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-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d991a23aae0856b45f6abbba0ebb5dab0fd7aa8205621c0165de3dbd3c0118"}},{"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."},"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 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."},"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."},"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."},"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/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."},"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 11 separate duplicated blocks between them, totalling at least 144 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":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd050e35beb607f74a3efae9e442ed0d39fc0ef60d58b0b46d6e98472e60a4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:1818-1830 | crates/shadowsocks-service/src/config.rs:1858-1870 \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":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a79a022114b93af9fd1f21286bcda9a369d1ffcad55c6c70599162c8f0a49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2412-2422 | crates/shadowsocks-service/src/config.rs:2584-2596 \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":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e0164ff307a5f29e2d0b8c946083974dac26967c058244eb5cf8916c1b4e9e"}},{"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."},"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":"78a83c89b4f79614e14a7b890ae3e53ad57ffdaac482cf52958c2e25252eff96"}},{"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."},"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-service/src/net/http_stream.rs:87-99 | crates/shadowsocks-service/src/net/outbound/tls.rs:128-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":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6446f4d69873217a8448139174001ad9f3dc4013655858ad0eafebffadeba82"}},{"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."},"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 (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."},"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."},"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 (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 135 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-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 135 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-service/src/local/redir/udprelay/sys/unix/freebsd.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc4e7c40408a24c94e117c560dcc516b19f37b0c5f34899e621312b1fc9ce01"}},{"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."},"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 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."},"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 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e33fc65fa8d7db9c29ec837baae1faebb3e962cd9b438477918f1005e42f767"}},{"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 135 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-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 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 11 separate duplicated blocks between them, totalling at least 144 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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"54620e933093068c8d04a304dce7a54792acb6a93f77537b3e4a9a19f521be37"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/tun/mod.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"deefa635cf042f25c72644b37bd59c8b01dfe251243943f2806df1a0d9a378ac"}},{"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."},"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:313-322 | crates/shadowsocks-service/src/local/mod.rs:348-357 | crates/shadowsocks-service/src/local/mod.rs:426-435 \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":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d92b0c693129ef61853796d5f72b2d28ac3f15a23862f8b6511747184c71232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:2892-2901 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:3149-3158 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:16402-16411 \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/redir/sys/unix/pfvar_bindgen_macos.rs"},"region":{"startLine":2892}}}],"partialFingerprints":{"codehealthFindingId/v1":"067d0ad5f41211fcba1cdd09c9931c730d5d543653c16802ec25da46247fbe03"}},{"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."},"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."},"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 (9\u201310 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:1467-1476 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/config.rs"},"region":{"startLine":1467}}}],"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-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:5220-5229 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:5333-5342 \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/pfvar_bindgen_macos.rs"},"region":{"startLine":5220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d57e3685402a0bea32882b85a65e883055a870a0b78619cbc2fb78dba56a4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks-service/src/net/http_stream.rs:67-76 | crates/shadowsocks-service/src/net/outbound/tls.rs:108-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/net/http_stream.rs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab723d4b76d506d5b3f95f17995f52f98c8111610c658b5c2cdb4e113b94c426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/service/local.rs:87-96 | 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 342 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":87}}}],"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."},"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."},"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): crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:2918-2926 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:3199-3207 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:16436-16444 \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/redir/sys/unix/pfvar_bindgen_macos.rs"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"1806ebd5040abc5f9a2f4cf257e391683aa1f6d7a90b294f6dece8d7e6c38a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/service/local.rs:883-891 | 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 12 separate duplicated blocks between them, totalling at least 278 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":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c9a6756a07871cc4a0590ca1e3ee3430b144e6e7b0a428e8c5ca866511f380"}},{"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."},"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."},"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 (9 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:440-448 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:551-559 \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":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3df49c6e4da28dacaa6ccfca2ad3bbb6288dc96156987a8434a678d48cff9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:473-481 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:579-587 \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":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"273bf01438b1c0dfdb1c62bd01a5473f425409643536ae5d40475919382fd5de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:5234-5242 | crates/shadowsocks-service/src/local/redir/sys/unix/pfvar_bindgen_macos.rs:5339-5347 \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/pfvar_bindgen_macos.rs"},"region":{"startLine":5234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33c79502bb8031e6a2b8405668e839ce1da5d9e7e4eeee79041ada17ba4fc8e"}},{"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."},"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 (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 263 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/freebsd.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0c579eae03f49f2b48ba075725bff1f9c6c1dbc916061de5e231c58d6b2cc0"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/config.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2b2aaa5e1ea82eb8476228c1fe4c70f3c5e894c71810c9b2ac9b2761b8dd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:274-281 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:461-468 | crates/shadowsocks/src/relay/tcprelay/stream.rs:164-171 \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 11 separate duplicated blocks between them, totalling at least 144 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":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5cc5a1664f20567abc87cd48a69b954b8ce28be3cb0b5357156993af10952b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/shadowsocks/src/relay/tcprelay/aead.rs:405-412 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:733-740 | crates/shadowsocks/src/relay/tcprelay/stream.rs:251-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 11 separate duplicated blocks between them, totalling at least 144 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":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"090dc7bc6111f17f223009b31343a5391b6b171eaae16119fd4d4f28681bb91e"}},{"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."},"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:149-156 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3467737c55f49293a7ba9b4fdabd26f8e4c2e863146bf70d890843cb87a9ba50"}},{"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."},"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/tcprelay/aead.rs:193-200 | crates/shadowsocks/src/relay/tcprelay/stream.rs:139-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 4 separate duplicated blocks between them, totalling at least 42 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":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceee702ba3a882554a16283d7488ca81392efe311cbd6c4329bba7394b16471a"}},{"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."},"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c6cc4d83f66bc119cacfe36e8810314da0552b67e7d04fa141921ea5589c87"}},{"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."},"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."},"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."},"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:125-132 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":125}}}],"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."},"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."},"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."},"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."},"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): src/service/local.rs:653-660 | src/service/server.rs:356-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 342 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":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ea1459814837b43aa33b528e79813764a74a66fccb9e6a9ac326583804e132"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5eaa2595ef353d8d3007d3b7399a7d6fe6c91dcd090973e0638daea0bb2ef8"}},{"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 11 separate duplicated blocks between them, totalling at least 144 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":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d9604f42c64a29d36969b70d127360402f25a00da4944709874e0c3b620f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:113-119 | 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":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3adb727aefb0a692c58a315255296ef997514e416158b526c539b8a83febfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): crates/shadowsocks-service/src/local/mod.rs:137-142 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/mod.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7016ad6e02c6a4f47d21ea04cc5715392d658b66d9eb785eed220097778dc75"}},{"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."},"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 (7 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:3091-3097 | crates/shadowsocks-service/src/config.rs:3127-3133 \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":3091}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb621f5c48b9259d4ab92fa5a5e9af2685977657cd7a5567e29ff47365266e5"}},{"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."},"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 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."},"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:381-386 | crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:709-714 \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 11 separate duplicated blocks between them, totalling at least 144 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":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3886e7cdbfec2e3b23f492f7ff3fa5ccf58ee2d4e5d78cf25d47ba3c8e9c3230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:3083-3088 | crates/shadowsocks-service/src/config.rs:3119-3124 \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":3083}}}],"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 135 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-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."},"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 (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."},"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/relay/udprelay/proxy_socket.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"adda351101c98db65b7e0f6658962d41d5ebd0d7f6ca046de38f45a14ddd8b8f"}},{"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/config.rs:1947-1951 | crates/shadowsocks-service/src/config.rs:1958-1962 \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":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c68cd1869562a3ed95226bd0c06370c69da40a82fbc34194a92c8c240def43c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2005-2009 | crates/shadowsocks-service/src/config.rs:2016-2021 \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":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"15776bb3a1c94d2da280f7503931026f7182fdcf1161e3428ef192d22b2a6e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/shadowsocks-service/src/local/mod.rs:141-145 | crates/shadowsocks-service/src/local/mod.rs:155-159 \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":141}}}],"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 (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 (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 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."},"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 (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 (7 lines \u00D7 2): crates/shadowsocks-service/src/local/context.rs:121-127 | 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":121}}}],"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."},"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 (9 lines \u00D7 3): src/service/local.rs:1058-1066 | 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 12 separate duplicated blocks between them, totalling at least 278 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":1058}}}],"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."},"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."},"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 (11 lines \u00D7 3): crates/shadowsocks/src/manager/protocol.rs:101-111 | crates/shadowsocks/src/manager/protocol.rs:209-219 | crates/shadowsocks/src/manager/protocol.rs:243-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/manager/protocol.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c949e8d4284b858709a77360a1e52b16327d572188109a7db0fc7368c78c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/service/local.rs:87-96 | 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 12 separate duplicated blocks between them, totalling at least 278 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":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"71197d878bb194439a524f202910529acc59b456f084cec73dfab97c75aa79b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:459-468 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:565-574 \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":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea47b859f79b553fa1d35885d1919408cc0af0570f0e019d2225d9d3d64df9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:560-569 | crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs:588-597 \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":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de9f51ef0ea3b434834547d9d008e64ac63be4259cc4340c4d250044401b7ca"}},{"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."},"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."},"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/local/dns/server.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2114e5efce13950b9fb6bb9825d10ededacaed2991be099f945336557d7633d"}},{"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."},"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."},"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."},"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 (5 lines \u00D7 3): crates/shadowsocks/src/manager/protocol.rs:96-100 | crates/shadowsocks/src/manager/protocol.rs:204-208 | crates/shadowsocks/src/manager/protocol.rs:238-242 \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/src/manager/protocol.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6880551065c99449325452df89abdf57457b40e2ee456322a7bfdde119a9eb4c"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks/src/net/sys/unix/bsd/freebsd.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c385dbef8dc2ecdd5494870df1ec35bad3c353510e1b98e2c9effff37ae6401e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/shadowsocks-service/src/config.rs:2141-2147 | crates/shadowsocks-service/src/config.rs:2250-2256 \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":2141}}}],"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":"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":"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":"ccbe69f47a58a1a4568c1be2925d877d36444c05f84d80d1d09e8e9e7aea414c"},"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"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/shadowsocks-service/src/server/mod.rs: crates/shadowsocks-service/src/server/mod.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in shadowsocks_service::server::run at line 33. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-01..2026-09-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-01 10:27:31 \u002B08:00\u0027 --until=\u00272026-09-29 10:27:31 \u002B08:00\u0027 --full-history --no-merges -- crates/shadowsocks-service/src/server/mod.rs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/shadowsocks-service/src/server/mod.rs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59aae81951ae8f518ba9840fab52267f4864e35a215d8a9b2717a935e0ff6f0"}},{"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":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bcd0f84ce916cc7947e8eef5e253e975b1bde685295d74853683cdee61b8ec"}},{"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":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5c3b8f83dd819d387f889bbe959162d7c80be1f302c810dc7ba288dd16d249"}},{"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: 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: 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: 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":"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":"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":"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: 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":"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":"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":"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":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"772ef0dc603384407c9e03abb8fb7ff3d25e8e6107a3044efa2ec0e9ca1d7c51"}},{"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":"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D22","level":"warning","message":{"text":"Duplicate intent with divergent naming and scope. \u0060ServerType\u0060 and \u0060ConfigType\u0060 appear to represent the same conceptual enum (Local/Server/Manager/etc.), but are split across two modules with different method signatures. \u0060ServerType\u0060 only has \u0060is_local\u0060/\u0060is_server\u0060, while \u0060ConfigType\u0060 has \u0060is_manager\u0060/\u0060is_online_config\u0060 as well. This forces users to import two different types for similar checks.: Unify into a single \u0060ServerType\u0060 or \u0060ConfigType\u0060 enum. If separation is required by module boundaries, ensure \u0060ServerType\u0060 exposes the same predicates as \u0060ConfigType\u0060 or that \u0060ConfigType\u0060 delegates to \u0060ServerType\u0060. (signatures: shadowsocks.config.ServerType.is_local(): bool | shadowsocks.config.ServerType.is_server(): bool | shadowsocks_service.config.ConfigType.is_local(): bool | shadowsocks_service.config.ConfigType.is_server(): bool | shadowsocks_service.config.ConfigType.is_manager(): bool | shadowsocks_service.config.ConfigType.is_online_config(): bool)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b5654a8baa50960f06b3e07c1c5a6edf7c886fe8a7a5d411702745f185eb44c9"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant accessors for the same underlying data. \u0060key()\u0060 and \u0060password()\u0060 likely return the same secret material (one as bytes, one as string). \u0060export_password()\u0060 is a third variant. This creates confusion about which method to use for serialization vs internal use.: Keep \u0060password()\u0060 for string access and \u0060key()\u0060 for binary access if distinct types are needed, but remove \u0060export_password()\u0060 if it duplicates \u0060password()\u0060, or rename it to \u0060to_export_string()\u0060 if it performs specific formatting (e.g., URL encoding) distinct from simple string conversion. (signatures: shadowsocks.config.ServerConfig.key(): \u0026[u8] | shadowsocks.config.ServerConfig.password(): str | shadowsocks.config.ServerConfig.export_password(): String)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"da059584c761450a6177aa74af6654a26466f45f712e79e7fd601cb21470d68e"}},{"ruleId":"D22","level":"warning","message":{"text":"Inconsistent naming for cloning/copying operations. \u0060clone_identity_hash\u0060 and \u0060clone_identity_keys\u0060 use the verb \u0060clone\u0060 for returning owned data, whereas Rust idioms typically use \u0060to_owned()\u0060 or just rely on the type system. More importantly, \u0060ServerUser\u0060 has \u0060clone_identity_hash\u0060 but \u0060ServerConfig\u0060 has \u0060clone_identity_keys\u0060. The naming is inconsistent between the two types (\u0060hash\u0060 vs \u0060keys\u0060).: Standardize on \u0060to_owned_identity_hash()\u0060 and \u0060to_owned_identity_keys()\u0060 or simply \u0060identity_hash_owned()\u0060 to clearly indicate ownership transfer, and ensure consistent naming between \u0060ServerUser\u0060 and \u0060ServerConfig\u0060. (signatures: shadowsocks.config.ServerUser.clone_identity_hash(): Bytes | shadowsocks.config.ServerUser.identity_hash(): \u0026[u8] | shadowsocks.config.ServerConfig.clone_identity_keys(): Bytes | shadowsocks.config.ServerConfig.identity_keys(): \u0026[Bytes])"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d4264afb9bd1e1cdf06eba42c51f728482a716224f063b0630a27ba75b06d87b"}},{"ruleId":"D22","level":"warning","message":{"text":"Confusingly similar method names with different signatures. \u0060send_to\u0060 and \u0060send_to_manager\u0060 both send data, but take different target types (\u0060ManagerSocketAddr\u0060 vs \u0060ManagerAddr\u0060) and one takes a \u0060Context\u0060. This suggests \u0060send_to_manager\u0060 is a higher-level wrapper, but the naming is not distinct enough to prevent confusion.: Rename \u0060send_to_manager\u0060 to \u0060send_to_addr\u0060 or \u0060send_with_context\u0060 to distinguish it from the lower-level \u0060send_to\u0060 which uses a socket address. (signatures: shadowsocks.manager.datagram.ManagerDatagram.send_to_manager(buf: \u0026[u8], context: Context, target: ManagerAddr): Result | shadowsocks.manager.datagram.ManagerDatagram.send_to(buf: \u0026[u8], target: ManagerSocketAddr): Result)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8f49e608f4e27e55fbd3fe923c1c63f980cc50545e0c973ef62243c0f5af6560"}},{"ruleId":"D22","level":"warning","message":{"text":"Ambiguous constructor variants. \u0060new\u0060 takes a generic key \u0060K\u0060, while \u0060with_encoded_key\u0060 takes a \u0060str\u0060. It is unclear if \u0060new\u0060 expects raw bytes or encoded strings, leading to potential misuse. The existence of \u0060with_encoded_key\u0060 suggests \u0060new\u0060 might not handle string encoding, but the naming doesn\u0027t make this distinction clear.: Rename \u0060new\u0060 to \u0060new_raw\u0060 or \u0060new_from_bytes\u0060 if it expects raw bytes, and keep \u0060with_encoded_key\u0060 or rename it to \u0060new_from_string\u0060 for clarity. (signatures: shadowsocks.config.ServerUser.with_encoded_key(name: N, key: str): Result | shadowsocks.config.ServerUser.new(name: N, key: K): Self)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0f4c286bae2d9ce1ad7e4546b7f9b5cf56b6019af73ba8f68d0fd320d921488b"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant methods with unclear distinction. \u0060get_user_by_hash\u0060 and \u0060clone_user_by_hash\u0060 both return \u0060ServerUser\u0060. In Rust, \u0060get\u0060 usually implies borrowing or returning a reference, but here both return owned \u0060ServerUser\u0060. The distinction between \u0027get\u0027 and \u0027clone\u0027 is semantically weak if the return type is identical.: If one returns a reference and one returns an owned value, the return types should reflect that (e.g., \u0060\u0026ServerUser\u0060 vs \u0060ServerUser\u0060). If both return owned values, keep only one (e.g., \u0060get_user_by_hash\u0060) and remove the other, or rename to \u0060fetch_user_by_hash\u0060 if it implies a more expensive operation. (signatures: shadowsocks.config.ServerUserManager.get_user_by_hash(user_hash: \u0026[u8]): ServerUser | shadowsocks.config.ServerUserManager.clone_user_by_hash(user_hash: \u0026[u8]): ServerUser)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ebf614ecdce8d1598df9b093f3f8b58d5287cd5f2de0cc4f1c1cfc0b51bac50"}},{"ruleId":"D26","level":"note","message":{"text":"Split crates/shadowsocks: A large shadow-socks relay stack whose namespaces are all named transports/protocols (udprelay/tcprelay/dns_resolver) and a plugin namespace is spread across 16 unrelated namespaces. Suggested: split into \u0060crates/shadowsocks/relay\u0060 for transport families, \u0060crates/shadowsocks/plugin\u0060 for the single plugin, and any remaining namespaces"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f77801b1c263b70661ec07f4dafadd7f77028f413b82ea721ae1d8c31b3e252b"}},{"ruleId":"D26","level":"note","message":{"text":"Split crates/shadowsocks-service: A huge shadow-socks service whose namespaces are all named local/tun/net/outbound/online_config/dns/loadbalancing/redir with no coherent cohesion. Suggested: split into \u0060crates/shadowsocks-service/local\u0060 for tun-local networking and load-balanced DNS, leaving net/outbound/server as the main outbound layer"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2f501731043df41fc2214c45c11ddb2feacb4e2861cf2dc9fc0f992786e0f6d7"}},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"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":"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"}}]},{"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 123 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 123 of the 201 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: crates/shadowsocks-service/src/local/http/tokio_rt.rs. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"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 80% of the time (8 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 8 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: 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 proxy_socket.rs: \u0060crates/shadowsocks/src/relay/tcprelay/proxy_listener.rs\u0060 and \u0060crates/shadowsocks/src/relay/udprelay/proxy_socket.rs\u0060 change together 60% of the time (6 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 6 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":"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":"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"}},{"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"}},{"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"}},{"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"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D36","level":"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"}},{"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"}},{"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: Workloads do not set a seccomp profile (RuntimeDefault or a Localhost profile). Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3f418e9f76c3ac90484e0e94a454bfe9b08e914e1cdd218e1fc9e3b261a3bf6e"}},{"ruleId":"D41","level":"note","message":{"text":"No AppArmor/SELinux confinement: Workloads declare no AppArmor or SELinux profile. A mandatory-access-control profile confines what a compromised container can touch on the host, complementing seccomp\u0027s syscall filter."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e83fbc31033373d6c51983ed230eb4ba61f7775ed02afb30f5fc1840bde01d4f"}},{"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"}}],"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":"CWE-1104","shortDescription":{"text":"CWE-1104"},"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":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-426","guid":"7b39d500-c310-9a5d-9a3d-4c2bf49492a3","name":"CWE-426","shortDescription":{"text":"CWE-426"},"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":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-693","guid":"b9b141dc-018a-9c59-8953-1e3c4e020745","name":"CWE-693","shortDescription":{"text":"CWE-693"},"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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":137,"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."]}]}