{"$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":"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":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"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":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Handler.Process (cyclomatic 63): Handler.Process has cyclomatic complexity 63 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 19 belong to 5 function literals 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":"proxy/vless/inbound/inbound.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2729c54b9932de318b591af66efb4ce12f793d716f606da5364ea082f1a374"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.fallback (cyclomatic 37): Server.fallback has cyclomatic complexity 37 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 13 belong to 3 function literals 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":"proxy/trojan/server.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"898780c3a3c99ffe7b2d75d7c76a2603e5750caea672f9f1d86505947e1e42a2"}},{"ruleId":"D1","level":"warning","message":{"text":"dns.New (cyclomatic 32): dns.New has cyclomatic complexity 32 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 11 belong to one function literal 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/server.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4cc4a152467aa7efc49856848dc61f12493dd5a79a498e1ff17b37f2c80840"}},{"ruleId":"D1","level":"warning","message":{"text":"Reader.Read (cyclomatic 32): Reader.Read has cyclomatic complexity 32 (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":"infra/conf/json/reader.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ac5179c3c376d43190cd18f8c731b072e8f3fd5096e3bbe5f5ba697d72f8df"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.Build (cyclomatic 31): Config.Build 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/v2ray.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7012ff52a119b06824ee13bba48fc7e47c11ce37422ba5f713ecea7d310c2825"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerSession.DecodeRequestHeader (cyclomatic 31): ServerSession.DecodeRequestHeader has cyclomatic complexity 31 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 2 belong to one function literal 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/server.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b369996bf99ce75e4a8533bec44e9f06e44c797da191737785fdc2d8f8366280"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamConfig.Build (cyclomatic 28): StreamConfig.Build has cyclomatic complexity 28 (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":"infra/conf/transport_internet.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe20dc4cb007f8c2661b20d5de073a9eec106b9c40e8150e03d6ccf96a303899"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 28): main.main has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 6 belong to 2 function literals 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":"infra/vprotogen/main.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"974fd59d39a662529b70e379086edeb25201117c9a0039180b1899a6406f8b78"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.Process (cyclomatic 28): Handler.Process has cyclomatic complexity 28 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 9 belong to 3 function literals 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":"proxy/vless/outbound/outbound.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe3697ea3e4edc21700348f5e115e46bc2f8a25b766b267b36b251e4be16d52"}},{"ruleId":"D1","level":"warning","message":{"text":"VLessInboundConfig.Build (cyclomatic 26): VLessInboundConfig.Build 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":"infra/conf/vless.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef3e009c84ccc3480c6956db6aa52569625af059a0ea774b45c2da03cecf883"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.Process (cyclomatic 25): Handler.Process has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. 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":"proxy/vmess/outbound/outbound.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5911f4625cbe0b0cc80bdf559070a30a0240db77592962ab8b30eb1f4d7f927"}},{"ruleId":"D1","level":"warning","message":{"text":"tls.ReadClientHello (cyclomatic 23): tls.ReadClientHello 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":"common/protocol/tls/sniff.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca934387a4711d69bde0cd9477eebe3ccd90ec3cba68372eff0b2acb9ff55ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DnsConfig.Build (cyclomatic 23): DnsConfig.Build 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":"infra/conf/dns.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b3d622d32586e53e06b9cd6d4b3d06bce12ba33455dc1d054551c20c2af8b2"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.lookupIPInternal (cyclomatic 22): Server.lookupIPInternal has cyclomatic complexity 22 (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":"app/dns/server.go"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30c8d32b3c297c1fe68c33109fce639cc47afd5711f0cba0915aa898e80cfaf"}},{"ruleId":"D1","level":"warning","message":{"text":"InboundDetourConfig.Build (cyclomatic 22): InboundDetourConfig.Build has cyclomatic complexity 22 (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":"infra/conf/v2ray.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeddd9cc103e889f11578d3e1cc7a71f3c40c15fa3f3d25bbdf6e2d54ca3b9c9"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.Override (cyclomatic 22): Config.Override has cyclomatic complexity 22 (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":"infra/conf/v2ray.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc417cf3abcd564437ca62f5f847c929e090b32747d976d2c8620288d709091"}},{"ruleId":"D1","level":"warning","message":{"text":"DokodemoDoor.Process (cyclomatic 22): DokodemoDoor.Process has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 3 function literals 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":"proxy/dokodemo/dokodemo.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe5dad252df9f2671374ea587134f50785ab7e7444fb84b5c3252f4e199aae2"}},{"ruleId":"D1","level":"warning","message":{"text":"http.setUpHTTPTunnel (cyclomatic 22): http.setUpHTTPTunnel has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 belong to 2 function literals 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":"proxy/http/client.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9f1add4e959a7f3f46e1c7d38f428a3162efb5989bdb669fd2554d9d1804a6"}},{"ruleId":"D1","level":"warning","message":{"text":"conf.parseFieldRule (cyclomatic 21): conf.parseFieldRule has cyclomatic complexity 21 (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":"infra/conf/router.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b3f57ea70de7db44adc7d9938cb45a158822a0ab167178fc77506301128e9c"}},{"ruleId":"D1","level":"warning","message":{"text":"TrojanServerConfig.Build (cyclomatic 21): TrojanServerConfig.Build has cyclomatic complexity 21 (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":"infra/conf/trojan.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa166ddf1fd10e86c9a12f42df144a32310c0432c6874db115377f4a692573c"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.Process (cyclomatic 19): Handler.Process has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 159, 186). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/dns/dns.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f171f83c8cd6e3dd84daf3328a5f59e1024980239a1e572fb83ccf22183643c"}},{"ruleId":"D1","level":"warning","message":{"text":"KCPConfig.Build (cyclomatic 18): KCPConfig.Build has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/transport_internet.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"870b6ccf9506beba17ccc3bb7e2234ca140b45a82398142971842747780232f5"}},{"ruleId":"D1","level":"warning","message":{"text":"OutboundDetourConfig.Build (cyclomatic 17): OutboundDetourConfig.Build has cyclomatic complexity 17 (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":"infra/conf/v2ray.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"546140a2fd1caf086a335862eecf4d9f842e69008fa3bc8bd2f6826b14bb96ba"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.Process (cyclomatic 17): Server.Process has cyclomatic complexity 17 (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":"proxy/http/server.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"394f330c0024b17785145b82f516aae867b4c536d54f4ca3d57e0fe9947f4498"}},{"ruleId":"D1","level":"warning","message":{"text":"socks.ClientHandshake (cyclomatic 17): socks.ClientHandshake has cyclomatic complexity 17 (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":"proxy/socks/protocol.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01b60147c7e208fda872bb60a75a4e8713a944213316e04e0ac6b8b74704cd4"}},{"ruleId":"D1","level":"warning","message":{"text":"DoHNameServer.findIPsForDomain (cyclomatic 16): DoHNameServer.findIPsForDomain has cyclomatic complexity 16 (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":"app/dns/dohdns.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d870ba41f25ca2ddaa3fae8b995281dfb516afbd86f3f21c4cc9f02180de6f85"}},{"ruleId":"D1","level":"warning","message":{"text":"Handler.Process (cyclomatic 16): Handler.Process has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. 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":"proxy/freedom/freedom.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a751965894c24ac30b071a48b1d16892bdd037f2274562cefb9c0b1092d933"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.Process (cyclomatic 16): Client.Process has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 4 function literals 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":"proxy/shadowsocks/client.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa4a65af93cd13b7faf447d559d9e97fb0464206f67d1e8e46d353612c0a394"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Process (cognitive 177): Handler.Process has cognitive complexity 177 (threshold 15). Drivers by points: if/else 146, loops 16, match/switch 9, boolean chains 6 (nesting depth added 113). Of this number, 121 points are the body\u0027s own statements and 56 belong to 5 function literals 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":"proxy/vless/inbound/inbound.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a9b7580f57ce05bfe0ebe41f99149b8ab7fea8f1b463b96a178660560f633c"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.fallback (cognitive 80): Server.fallback has cognitive complexity 80 (threshold 15). Drivers by points: if/else 63, loops 10, boolean chains 5, match/switch 2 (nesting depth added 43). Of this number, 55 points are the body\u0027s own statements and 25 belong to 3 function literals 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":"proxy/trojan/server.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"810ea4832c346a25574f81c695feba2f9ad859761ad27a594767210353351bd5"}},{"ruleId":"D2","level":"warning","message":{"text":"dns.New (cognitive 70): dns.New has cognitive complexity 70 (threshold 15). Drivers by points: if/else 53, loops 13, boolean chains 4 (nesting depth added 37). Of this number, 53 points are the body\u0027s own statements and 17 belong to one function literal 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":"app/dns/server.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"387120b528779d44cbedf34feca51785640d119d6995924bbd69f20005e8d39d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 60): main.main has cognitive complexity 60 (threshold 15). Drivers by points: if/else 54, loops 6 (nesting depth added 32). Of this number, 54 points are the body\u0027s own statements and 6 belong to 2 function literals 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":"infra/vprotogen/main.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3d5188c0ba5259ed8ad45f452ff9bf2390c728c6ae4895ac72cf917b89b15b"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerSession.DecodeRequestHeader (cognitive 54): ServerSession.DecodeRequestHeader has cognitive complexity 54 (threshold 15). Drivers by points: if/else 50, boolean chains 3, match/switch 1 (nesting depth added 21). Of this number, 51 points are the body\u0027s own statements and 3 belong to one function literal 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":"proxy/vmess/encoding/server.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d021c420798828f9dc681faa162a1c7f345ee8d8acda1c7ddc92fac4713863ff"}},{"ruleId":"D2","level":"warning","message":{"text":"VLessInboundConfig.Build (cognitive 51): VLessInboundConfig.Build has cognitive complexity 51 (threshold 15). Drivers by points: if/else 39, match/switch 6, boolean chains 3, loops 3 (nesting depth added 26). 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":"infra/conf/vless.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e714b735026754e787710ce08d6d41646859877de8a32e3edccb982c086387a2"}},{"ruleId":"D2","level":"warning","message":{"text":"DnsConfig.Build (cognitive 46): DnsConfig.Build has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28, loops 13, match/switch 4, boolean chains 1 (nesting depth added 24). 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":"infra/conf/dns.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a97cf247bfc8f127706483ccce60646512a26932ffc0078951f61d746ec2f95"}},{"ruleId":"D2","level":"warning","message":{"text":"tls.ReadClientHello (cognitive 44): tls.ReadClientHello has cognitive complexity 44 (threshold 15). Drivers by points: if/else 38, loops 4, boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/protocol/tls/sniff.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6890c96c76c2e3cb0bd63fd462cfe46dcff482851a1d64668f7687f05e649db"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Build (cognitive 44): Config.Build has cognitive complexity 44 (threshold 15). Drivers by points: if/else 41, loops 2, boolean chains 1 (nesting depth added 14). 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":"infra/conf/v2ray.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c2087d48e44bff1fa9ffab5634005c96f3be7faf7fced8cb76bf51dd444774"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamConfig.Build (cognitive 43): StreamConfig.Build has cognitive complexity 43 (threshold 15). Drivers by points: if/else 42, 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":"infra/conf/transport_internet.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9c17a2e667a680ce07a90ae4bd1f54ff5d0dc9a4ad3c18d9e552902095acfc"}},{"ruleId":"D2","level":"warning","message":{"text":"TrojanServerConfig.Build (cognitive 42): TrojanServerConfig.Build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 32, match/switch 4, boolean chains 3, loops 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/trojan.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d5aecd73ec1e1825b1ba78d143060216f3f7b3ad528e20d8ff5b004f39d740"}},{"ruleId":"D2","level":"warning","message":{"text":"DokodemoDoor.Process (cognitive 38): DokodemoDoor.Process has cognitive complexity 38 (threshold 15). Drivers by points: if/else 36, boolean chains 2 (nesting depth added 14). Of this number, 27 points are the body\u0027s own statements and 11 belong to 3 function literals 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":"proxy/dokodemo/dokodemo.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fa6d383552c78b9a69847dbe130c513e7f9b493c00b1a9ad6119facb8f441b"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.Override (cognitive 35): Config.Override has cognitive complexity 35 (threshold 15). Drivers by points: if/else 33, boolean chains 2 (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":"infra/conf/v2ray.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a736c5a924e5d28423b51f9ece681f4c458cfe577051938604e4531ac3db096"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.lookupIPInternal (cognitive 34): Server.lookupIPInternal has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26, loops 5, boolean chains 3 (nesting depth added 14). 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":"app/dns/server.go"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d691753d8a410e4637913c7f70941edfedd61011d0f3cea8b85b4d5e2081455b"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Process (cognitive 34): Handler.Process has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26, boolean chains 4, match/switch 4 (nesting depth added 9). Of this number, 25 points are the body\u0027s own statements and 9 belong to 3 function literals 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":"proxy/vless/outbound/outbound.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bd6d3ae78beb6ab0e4e3496d74af310875c507b38d118bc5957038a890d22b"}},{"ruleId":"D2","level":"warning","message":{"text":"trojan.NewServer (cognitive 31): trojan.NewServer has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20, loops 11 (nesting depth added 20). 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":"proxy/trojan/server.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2af8df8c1813ded07500e0d880be27d56f4758f62915955e7961152e220645"}},{"ruleId":"D2","level":"warning","message":{"text":"inbound.New (cognitive 31): inbound.New has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20, loops 11 (nesting depth added 20). 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":"proxy/vless/inbound/inbound.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a824b3401389a5b88878a7670bac2e6a4d92135007816570c84b26cfceedd85"}},{"ruleId":"D2","level":"warning","message":{"text":"Reader.Read (cognitive 30): Reader.Read has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 20, if/else 9, loops 1 (nesting depth added 18). 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":"infra/conf/json/reader.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaadfc7711878692697ee92634b1206f39c6e0d4ca17ddf9c8ca45d6bb7dc5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"conf.parseFieldRule (cognitive 29): conf.parseFieldRule has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 8 (nesting depth added 8). 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":"infra/conf/router.go"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b2c812165305edbf4658e4392c16a634ca46e119abfe33811efa35abb4768c"}},{"ruleId":"D2","level":"warning","message":{"text":"InboundDetourConfig.Build (cognitive 29): InboundDetourConfig.Build has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 3 (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":"infra/conf/v2ray.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bb43c47486d9257500ac7e95640669aeb7c2be15bf4af4ef0794d32baeaba6"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Process (cognitive 29): Handler.Process has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, loops 2, boolean chains 1 (nesting depth added 9). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 159, 186). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/dns/dns.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca502ba9d87427b2935849dca5576096aab8f8e9957250dc06ffb9645221cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultSystemDialer.Dial (cognitive 28): DefaultSystemDialer.Dial has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 2 (nesting depth added 14). Most of this is not in the body itself: 10 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 76). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/system_dialer.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0557218948de3dbed1d86104f5c2620c1e4c03b6c8561bd99568fdaf5f8e25"}},{"ruleId":"D2","level":"warning","message":{"text":"http.setUpHTTPTunnel (cognitive 27): http.setUpHTTPTunnel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, boolean chains 1, match/switch 1 (nesting depth added 7). Of this number, 20 points are the body\u0027s own statements and 7 belong to 2 function literals 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":"proxy/http/client.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0214b9ea0f2e32f53b00a958d050c5d5d6d0516e2488bb9d4184a2413797ebe6"}},{"ruleId":"D2","level":"warning","message":{"text":"dns.parseResponse (cognitive 26): dns.parseResponse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, jumps 3, match/switch 2, 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":"app/dns/dnscommon.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d23ba044355640ef5ec221f561b34af6d5063b1ad70707b6fc835d70b4e20e"}},{"ruleId":"D2","level":"warning","message":{"text":"OutboundDetourConfig.Build (cognitive 26): OutboundDetourConfig.Build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, boolean chains 2 (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":"infra/conf/v2ray.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10c1bcc48d935adf9b11b808027f5f028d30aa8e07558b053f560edb1552f47"}},{"ruleId":"D2","level":"warning","message":{"text":"encoding.DecodeRequestHeader (cognitive 26): encoding.DecodeRequestHeader has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23, match/switch 3 (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":"proxy/vless/encoding/encoding.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a927bef87a52036ae9a924a79d0eee6f3436555c1c201158cd391e623244bc55"}},{"ruleId":"D2","level":"warning","message":{"text":"KCPConfig.Build (cognitive 25): KCPConfig.Build has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 2 (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":"infra/conf/transport_internet.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c70d3585806f6b5d4b34a732a8eef8c264ba46f407ca97b1cc586bdfd82fa69"}},{"ruleId":"D2","level":"warning","message":{"text":"dns.NewStaticHosts (cognitive 23): dns.NewStaticHosts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 6, boolean chains 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":"app/dns/hosts.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1a32fb2dd5245f9ecb636d2772ffacfabf68289d5981341ffac56dec4e0157"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.Process (cognitive 23): Client.Process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, boolean chains 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 7 belong to 4 function literals 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":"proxy/shadowsocks/client.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7f6f4f945660657d770504703d71601c5e7698e94d9c52116a97da61988424"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Process (cognitive 23): Handler.Process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 6 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. 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":"proxy/vmess/outbound/outbound.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2a9734d8554e8c8ab197b835e932f9399f104ce9d7504ce6d0371e1810b5c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.writeMultiBufferInternal (cognitive 22): Connection.writeMultiBufferInternal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 12). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal 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":"transport/internet/kcp/connection.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9c53cdd03a5212e6e2829b052737f298809c4b572825540954cb3e1496b8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"core.initInstanceWithConfig (cognitive 21): core.initInstanceWithConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v2ray.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7463c7d6a3b681dc207d282a010f2106d5f9a78d98dd2402a95f5115091522d"}},{"ruleId":"D2","level":"warning","message":{"text":"conf.toCidrList (cognitive 21): conf.toCidrList has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"infra/conf/router.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b6cbeeb5722630685a748d7bbd941291bcc30ba6a20bed49ebe7363b0f208b"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.Process (cognitive 21): Server.Process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, jumps 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/http/server.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fb96554aee25f00a2b924e626892d880ed47780cf5f3e8279891508e546865"}},{"ruleId":"D2","level":"warning","message":{"text":"HeaderReader.Read (cognitive 21): HeaderReader.Read has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, loops 2 (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":"transport/internet/headers/http/http.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"769dc28e54b98db710bb3c88a287ad491b64017e1fb93f4f70a7673cd51c6ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.Start (cognitive 20): Channel.Start has cognitive complexity 20 (threshold 15). Drivers by points: loops 10, if/else 7, match/switch 3 (nesting depth added 13). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 105). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/stats/channel.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64d102446fe84d78b7c5892c1ced3950f438b0f7f1b9c04de67d316381a731c"}},{"ruleId":"D2","level":"warning","message":{"text":"addressParser.readAddress (cognitive 20): addressParser.readAddress has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, match/switch 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":"common/protocol/address.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b25fcc24acff93c3993e950a551a886e8c850853ada4485882ebe9669db1ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"VLessOutboundConfig.Build (cognitive 20): VLessOutboundConfig.Build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 3, match/switch 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/vless.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5134383a2f9bcad799f2f91c6d902ac1142a8865f3cb325255fc565b08261e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.Process (cognitive 20): Handler.Process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 116, 146, 163). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/freedom/freedom.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"934cc98706eb80b58c8c0d5575734b7c7477cf29809744a8046fb31aa6ade3bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientSession.DecodeResponseHeader (cognitive 20): ClientSession.DecodeResponseHeader has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"proxy/vmess/encoding/client.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"085b98a59a63cdd13e4caf1e96e1a909a45ab0ef1b57f1432587e85e351e439e"}},{"ruleId":"D2","level":"warning","message":{"text":"internet.applyInboundSocketOptions (cognitive 20): internet.applyInboundSocketOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/sockopt_linux.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32a2c8f442d6b41196296406c901f173ef7feb4baa121d74700718ac19297e7"}},{"ruleId":"D2","level":"warning","message":{"text":"PortList.UnmarshalJSON (cognitive 19): PortList.UnmarshalJSON has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"infra/conf/common.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f360f752e8ab267bcf68a8e54cabb31cb9b7950e5a12631a77b221ba3b371011"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handlerUDPPayload (cognitive 19): Server.handlerUDPPayload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 1 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal 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":"proxy/shadowsocks/server.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"64502f2752107fbd97e0b6666af9ebf3939f2458a3faba996f586d80559936b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleUDPPayload (cognitive 19): Server.handleUDPPayload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 2 (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal 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":"proxy/socks/server.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2219c0266e2c4b53402826b6885a377d0ea3bada252c44eaae53430fa879d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.Input (cognitive 19): Connection.Input has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, match/switch 6, boolean chains 1, 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":"transport/internet/kcp/connection.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fd57df3930183c2ff0a07879b889bb80f9680eca0da1debc8bfa5e317a43a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicNameServer.Cleanup (cognitive 18): ClassicNameServer.Cleanup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/udpns.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bab830f657c58ac2b9ceb75f19667a37607f5ff330caff95d50ef5b1fce5ea"}},{"ruleId":"D2","level":"warning","message":{"text":"TransportConfig.Build (cognitive 18): TransportConfig.Build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"infra/conf/transport.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"62df8ad0e6e21e2da0b4f41d326e63bba1bd4c81c42fc93ad35a8cef41492d19"}},{"ruleId":"D2","level":"warning","message":{"text":"socks.ClientHandshake (cognitive 18): socks.ClientHandshake has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 2). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/socks/protocol.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c960483eaf8b27e8849e0d48c852fe3ae84df940b12f821c836485665ba9469"}},{"ruleId":"D2","level":"warning","message":{"text":"Handler.generateCommand (cognitive 18): Handler.generateCommand has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 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":"proxy/vmess/inbound/inbound.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f541026b84ac9c45fc5e2d637e4ae6d5ba2576cb76b68751a54fe0874f92ce28"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleConnection (cognitive 18): Server.handleConnection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (nesting depth added 8). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 67, 83). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"testing/servers/tcp/tcp.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"af39c57155e6414618ed1322dd89edbc1fc3ee2ba610ceca8fd64fcac25def34"}},{"ruleId":"D2","level":"warning","message":{"text":"errors.Cause (cognitive 17): errors.Cause has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, jumps 4, match/switch 2, loops 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":"common/errors/errors.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adc3dd4e17c336b2ea6da0a0a33482c732b60a8bd2f6b1893aa42261e5ab4c1"}},{"ruleId":"D2","level":"warning","message":{"text":"conf.ParseIP (cognitive 17): conf.ParseIP has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, match/switch 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":"infra/conf/router.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40302a9502db57d5ed30d842f6d941be8ad065b5c0e3b7d3fc2d2677b57e7bc"}},{"ruleId":"D2","level":"warning","message":{"text":"AckList.Flush (cognitive 17): AckList.Flush has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, 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":"transport/internet/kcp/receiving.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2748902173e0dd986a68175970d16c26b9dc56d196c9f57b87124e23b6c7211"}},{"ruleId":"D2","level":"warning","message":{"text":"dispatcher.sniffer (cognitive 16): dispatcher.sniffer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, match/switch 2, 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":"app/dispatcher/default.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb90df017590ca36e5016002b2ea647b8c9f14b7ccaab313152b8599e9492dd"}},{"ruleId":"D2","level":"warning","message":{"text":"outbound.NewHandler (cognitive 16): outbound.NewHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, match/switch 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/proxyman/outbound/handler.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa100b4384fe8bd5d0e8130259bbb5d3def7f7202b8dfbbb89b5196515b3fd0"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticMuxPicker.PickAvailable (cognitive 16): StaticMuxPicker.PickAvailable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (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":"app/reverse/portal.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2887c41278b149ddc3331a5d5c24f3f9d15ed0fc03054db2cf12f03250e11556"}},{"ruleId":"D2","level":"warning","message":{"text":"DomainMatcherGroup.Match (cognitive 16): DomainMatcherGroup.Match has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 1, match/switch 1 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal 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":"common/strmatcher/domain_matcher.go"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"594363dcaf481e4e8608e10eac386decbb892aced43fed51499965cd3c4f2e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"tls.getGetCertificateFunc (cognitive 16): tls.getGetCertificateFunc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 7). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 97). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/tls/config.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a446b508718e47bf6cea4f8af3e48d51a2242c840fdda2582032a70eee6758d0"}},{"ruleId":"D2","level":"warning","message":{"text":"xtls.getGetCertificateFunc (cognitive 16): xtls.getGetCertificateFunc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 7). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 95). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/xtls/config.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31c7efefc526ad3abe3bac1339225429125f6b0b24f2b239c7c9c13f69103e6"}},{"ruleId":"D2","level":"warning","message":{"text":"resolution.resolve (cognitive 16): resolution.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 5 (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":"v2ray.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"437e76c863febe8e28ff4636740aefe04906a2b7f04d569e66f43b93cd3a582c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): proxy/trojan/server.go:317-334 | proxy/vless/inbound/inbound.go:238-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/trojan/server.go:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/trojan/server.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e084fd0e2850dc13e73ab5b1cdf4522aaf20eadaffe6cec172607e5a34955b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): transport/internet/tls/config.go:139-155 | transport/internet/xtls/config.go:137-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060transport/internet/tls/config.go:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/tls/config.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbdffb73bf130fe42e2d3978cd8a5ee30d03f8a8f669d84aceab1d32eec5b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): infra/conf/shadowsocks.go:113-128 | infra/conf/trojan.go:56-71 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/shadowsocks.go:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/shadowsocks.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b26855b69c77badd4486c4e4e0a727384a33a4b65812f88cdab3e6a8625f657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): transport/internet/tls/config.go:98-113 | transport/internet/xtls/config.go:96-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060transport/internet/tls/config.go:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/tls/config.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a5ba17f195b195f5bdce0f2243030795119334e99bfe009da1d31c7d939ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/dns/dohdns.go:356-370 | app/dns/udpns.go:263-277 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/dohdns.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"310b6884af1987739fd7c7312bc32722827dc129cbaef94b2c957ad4105fdbca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): infra/conf/trojan.go:129-143 | infra/conf/vless.go:84-98 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/trojan.go:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/trojan.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ef998f1652bcb89d4099233536c7b07b99ced709f46f0142e88dd582ed77c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): proxy/trojan/server.go:72-85 | proxy/vless/inbound/inbound.go:109-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/trojan/server.go:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/trojan/server.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6002c376418438e507cd81f1a23bbda970573e5263a5b1344f4bd5b3e6aa4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): proxy/vmess/aead/encrypt.go:38-51 | proxy/vmess/aead/encrypt.go:59-72 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/aead/encrypt.go:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/aead/encrypt.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d68da9517d7162030e8f2ca031ab9437534a0f6b1a82ec068136f827e3d1958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): common/mux/client.go:321-333 | common/mux/server.go:159-171 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/mux/client.go:321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/mux/client.go"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d268b60ea91da75bb07a8fafdb6fe8d9448ac3aaeb1e8e04944326bf2a8cfd90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): infra/control/config.go:72-84 | main/confloader/external/external.go:24-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/control/config.go:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/control/config.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f321c3468908cb7108819851b2c12d1de6d2c1188ecf41a32f76c88a1764c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): infra/control/fetch.go:57-69 | main/confloader/external/external.go:54-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/control/fetch.go:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/control/fetch.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1db28f7a37e13e3410d7c235075c0b39a9b311660bdc6aadea46e05bea44b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): proxy/shadowsocks/client.go:67-79 | proxy/trojan/client.go:66-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/shadowsocks/client.go:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/shadowsocks/client.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f03c33b7f3e40c170ca5efd363dfa5a24b1527b76d628c1e2ad1f06002a711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): infra/conf/transport_internet.go:307-318 | infra/conf/transport_internet.go:382-393 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/transport_internet.go:307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/transport_internet.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce13e08d386890c94289dd80887ce7a50d008d76038edc4dc8ac30366feb6c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): infra/vprotogen/main.go:27-38 | infra/vprotogen/main.go:81-92 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/vprotogen/main.go:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/vprotogen/main.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"030c99fb5413c619f2ee6d7d309e619b48677a89224a91e76123e12ad5b735e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): proxy/http/client.go:52-63 | proxy/socks/client.go:34-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/http/client.go:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/http/client.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8e3d5310a18e5c51caf0cde9a85d488ae1e1dc8a1039a96c6a6b9812596937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): proxy/shadowsocks/client.go:33-44 | proxy/trojan/client.go:34-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/shadowsocks/client.go:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/shadowsocks/client.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2971fa1d6cf1411825a17f9cc79ab03d2c2d7c6ad0861d4f0cfd54c30a1dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): proxy/vless/outbound/outbound.go:62-73 | proxy/vmess/outbound/outbound.go:43-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vless/outbound/outbound.go:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vless/outbound/outbound.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da4d418bc8f99e7a2cadb0f92dea52779790c2aa0dddeafdca8b6be8baf14fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): proxy/vmess/encoding/client.go:284-296 | proxy/vmess/encoding/server.go:320-331 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/client.go:284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b07c455df5b654c19923ff3492558dc5128f861ccee12317feeb9d74f23cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): proxy/vmess/aead/encrypt.go:112-123 | proxy/vmess/aead/encrypt.go:154-165 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/aead/encrypt.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"123d499909e93c664fa3e462b339440d7b5793ea9c01ff711263eae3c219d345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): common/mux/client.go:339-349 | common/mux/server.go:178-188 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/mux/client.go:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/mux/client.go"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"601e5f280bc8b55e558cdc7004d4e30fe8386ecb43f0b48cd1cf8c5789ee5a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): infra/conf/router.go:271-281 | infra/conf/router.go:345-356 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/router.go:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/router.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b22fa75b83ab08ada04543df0d597a93ff67847f918c38d89b0eb9980cccb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): infra/conf/shadowsocks.go:51-61 | infra/conf/shadowsocks.go:100-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/shadowsocks.go:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/shadowsocks.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b871e86214616a9806d1a42bcec1218afc725b09f23aa6206ddd03d00d50d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): infra/conf/transport_authenticators.go:123-133 | infra/conf/transport_authenticators.go:191-201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/transport_authenticators.go:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/transport_authenticators.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14c354f7a7154a21713b8e3d3edd0a4f83aa4cdf6bc4a073551e4792d49e393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): infra/conf/trojan.go:157-167 | infra/conf/vless.go:112-122 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/trojan.go:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/trojan.go"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb1f399a8b71e03ca79b62e3d86ad14e0d879088e3ac8e7e85b751d8dbfa296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): infra/conf/v2ray.go:544-554 | infra/conf/v2ray.go:572-582 \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":"infra/conf/v2ray.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9b2cafa9c201a0b9e2dd737fb34f509821a0436e196bfc9a4e390c687f3857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): proxy/http/client.go:103-113 | proxy/socks/client.go:71-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/http/client.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/http/client.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3cac0a59be157b211e6a9c96d1d3db1b2b06cfeaec29e8f13b4835af9b7476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): proxy/shadowsocks/client.go:52-62 | proxy/trojan/client.go:53-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/shadowsocks/client.go:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/shadowsocks/client.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"186204879297d3eabe19d7d20f431ae8af7fdbc4f924c39bd7fd6be74304db97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): proxy/trojan/client.go:61-71 | proxy/vmess/outbound/outbound.go:59-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/trojan/client.go:61\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/trojan/client.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c6eb91f68f1e630c3b4da3969733665982e759c839354fdec09bbe0ee05889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): proxy/vmess/encoding/client.go:144-154 | proxy/vmess/encoding/server.go:440-451 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/client.go:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6599944720802d280d18484b06390d262febf753e93dfd0c2149d6196cd0d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): proxy/vmess/inbound/inbound.go:202-212 | proxy/vmess/outbound/outbound.go:145-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/inbound/inbound.go:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/inbound/inbound.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b567f49c2262695bee428cc8ad953ceb52a50b4b4d0ab74dc40d8d5f694a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): common/crypto/auth.go:60-69 | common/crypto/auth.go:73-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/crypto/auth.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad9cc10934e4b738dd75aa5e965b82c606aba77dff168816d16c2b80501cfb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): common/mux/client.go:353-362 | common/mux/server.go:192-201 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/mux/client.go:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/mux/client.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8785313fcac5b59d62265675a5dc7b85f2e3820c3ad08b69dbc82cf247e44865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): infra/conf/router.go:111-120 | infra/conf/router.go:127-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/router.go:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/router.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd57cc00c672d208ea716734514f4d2f565ce68329c0beb988a7625f25abad2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): infra/conf/transport_internet.go:270-279 | infra/conf/transport_internet.go:345-354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/transport_internet.go:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/transport_internet.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8646ca895bea84d7319ee8a998a54db940db281df8f08a682d9d53096133483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): proxy/trojan/server.go:404-413 | proxy/vless/inbound/inbound.go:325-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/trojan/server.go:404\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/trojan/server.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"264ad9d2e5d228e9131a8badde3ad1cfb4a2c0686a18c7e7f71db6e7c40dc7a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): proxy/vless/inbound/inbound.go:386-395 | proxy/vless/outbound/outbound.go:144-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vless/inbound/inbound.go:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vless/inbound/inbound.go"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"390fb5a3eeb31d8ad1cc111216b5258a3a42934238e67725656767521b5a6456"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/dns/dohdns.go:146-154 | app/dns/udpns.go:75-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/dns/dohdns.go:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/dohdns.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09c2754bbd4b3b2f5af9c2b8eba6d4db90835d1091a521f595c87d8a2aa4afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/proxyman/inbound/always.go:81-89 | app/proxyman/inbound/dynamic.go:51-59 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/proxyman/inbound/always.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"053a361d6ac62368ae4914c8d6ae2816a177032c28718ae7db56ac892c346188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): infra/conf/v2ray.go:188-196 | infra/conf/v2ray.go:258-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/v2ray.go:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/v2ray.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8b936c6e0280a39ee7fc3faa3147d1731c4b82b3c82a3dfe252c1cd283c053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): proxy/socks/protocol.go:240-248 | proxy/socks/protocol.go:252-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/socks/protocol.go:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/socks/protocol.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"388af0e3ffedb494f3db7adab8241ded7ccab98c96ecc6404bb082056878c473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): proxy/trojan/server.go:96-104 | proxy/vless/inbound/inbound.go:148-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/trojan/server.go:96\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/trojan/server.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e3c520d74d98d6c53ba65c3a4a891925ce9d21355b405035ae5f0453db5681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): proxy/vless/inbound/inbound.go:406-414 | proxy/vmess/inbound/inbound.go:252-260 \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":"proxy/vless/inbound/inbound.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb18dff03e5f36f503a1e29abb44ada6fdf5cddc3d4354be51b8d6fb595bff9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): proxy/vmess/encoding/client.go:308-316 | proxy/vmess/encoding/server.go:463-471 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/client.go:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9b964c517fc386e8f95f0a9bfd5c6bfe0f71715d407044b03e52e04086ed50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): proxy/http/server.go:203-210 | proxy/shadowsocks/server.go:222-229 | proxy/socks/server.go:175-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/http/server.go:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/http/server.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c5f4bc512ecfc07ea2450f7f3c77a14f265c6bc6da4d0b97c0a1a2254212c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/dns/dnscommon.go:134-141 | app/dns/dnscommon.go:150-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/dns/dnscommon.go:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/dnscommon.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7d71ace93848fcd94b207082a7b13daa55211537ede915f927c7e81e634925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): infra/conf/http.go:60-67 | infra/conf/socks.go:79-86 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/http.go:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/http.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f90d835cf9eb63a69b20a709e70f7cf48ec94be2a24f4d44a3e580d2fb1fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): infra/conf/trojan.go:121-128 | infra/conf/vless.go:76-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/trojan.go:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/trojan.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0dcc1c96610b75e43cc90bc7a7d34918cb2c72533f5e630cd62413217678b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): proxy/shadowsocks/protocol.go:108-115 | proxy/shadowsocks/protocol.go:153-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/shadowsocks/protocol.go:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/shadowsocks/protocol.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a29e987b3cd62e098cbbaf37c16cde31b390682617cf189ce5665e9642c0ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): proxy/vless/inbound/inbound.go:349-356 | proxy/vmess/inbound/inbound.go:229-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vless/inbound/inbound.go:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vless/inbound/inbound.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b8b59ff9e545f44aff687c23c3cc08a3b6d65fcdbe823f50a4e0604cbf9616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): proxy/vmess/encoding/client.go:168-175 | proxy/vmess/encoding/server.go:345-353 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/client.go:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e654fe40e649f0f044ead2c87a34a0607ef766eb1e69d10bcbb1f9940fd422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): transport/internet/tls/config.go:60-67 | transport/internet/xtls/config.go:58-65 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/tls/config.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1492b4c40cc1e28e1fa890b731df0f7122f5ac39ddd757cdc48ef0819ce7599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): transport/internet/sockopt_linux.go:45-53 | transport/internet/sockopt_linux.go:74-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060transport/internet/sockopt_linux.go:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/sockopt_linux.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"db39b9e12f2043a316d8e5d471646157e5e859c62c39b4f91d310864c846c0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): proxy/http/client.go:130-136 | proxy/shadowsocks/client.go:130-136 | proxy/trojan/client.go:134-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/http/client.go:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/http/client.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1fca8292cd17cefa83b4cfafe62d496a23408df146b7d8c5c08b46f2c1b626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/dns/dohdns.go:60-67 | app/dns/dohdns.go:93-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/dns/dohdns.go:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dns/dohdns.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8aab23f7bdd8ea6451b3d1a05eb25d7003d9f1237911178ebc04e0d0656070f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): infra/conf/vmess.go:103-109 | infra/conf/vmess.go:147-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/vmess.go:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/vmess.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"acacf09672ba374e0c6c8e615e482192346155f8d13369426cd7847bf847af8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): main/json/config_json.go:16-22 | main/jsonem/jsonem.go:15-21 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060main/json/config_json.go:16\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"main/json/config_json.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3a885bae9bfbadb74c6f803715d5fd984bbb68c9ee0a873aa886835cf7c689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): proxy/dokodemo/dokodemo.go:120-126 | proxy/http/server.go:168-174 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/dokodemo/dokodemo.go:120\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/dokodemo/dokodemo.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"10af4fc7aeabd20bef52fc31d2f211721a9695711a613b998e260e15a0505b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): proxy/vless/inbound/inbound.go:417-423 | proxy/vmess/inbound/inbound.go:276-282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vless/inbound/inbound.go:417\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vless/inbound/inbound.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"faec225baf67ab74ea5e550108b0720f91de2cd181d0376ce1624ea4cf5701d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): proxy/vless/outbound/outbound.go:34-40 | proxy/vmess/outbound/outbound.go:190-196 \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":"proxy/vless/outbound/outbound.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bce564b92a6d7ace6724ea107e49213bb2ed8ac0387cc260aec225da4917b13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): proxy/vmess/encoding/server.go:237-244 | proxy/vless/encoding/encoding.go:112-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/server.go:237\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/server.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa873f085c6d1b8b6cb6080e5dd102e6d53c3fdf7b138aa730491c314806be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): transport/internet/tls/config.go:73-79 | transport/internet/xtls/config.go:71-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060transport/internet/tls/config.go:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transport/internet/tls/config.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b412ea2366af1dd39dc173963b10543f664cc47633b3642f97b8e901ba7671b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): proxy/vmess/encoding/client.go:65-70 | proxy/vmess/encoding/server.go:373-378 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/vmess/encoding/client.go:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed46cf48c6dfea9b4ab59120b483ee5725bbfb12324ad9284c6c58854f1962a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): proxy/vmess/encoding/client.go:217-222 | proxy/vmess/encoding/server.go:415-420 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd19f89e1618519cfb8c3c3b7349f7449843dd5076540e0958dcdc742219fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): proxy/vmess/encoding/server.go:348-353 | proxy/vmess/encoding/server.go:357-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/server.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec805199662bdaaeba893b8f33288b316ca7c2db56af93aa09e292aa9dc7d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): proxy/vmess/encoding/server.go:466-471 | proxy/vmess/encoding/server.go:475-480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/server.go"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"6217dfa4de64773aafe68a7af52fa83e80232784dae281ca922f57df020087b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): infra/conf/mtproto.go:42-46 | infra/conf/vmess.go:101-105 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060infra/conf/mtproto.go:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"infra/conf/mtproto.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed18675cbafbe432a5c2c1249cd4a025e934437938b57e1f879e9b93baead79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): proxy/mtproto/server.go:148-152 | proxy/vmess/inbound/inbound.go:307-311 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060proxy/mtproto/server.go:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/mtproto/server.go"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb73db3a4073938ad5f076e3af26b0933742c3be8ec0f01a4fb8509e6f8bffb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): proxy/vmess/encoding/client.go:196-200 | proxy/vmess/encoding/server.go:399-403 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"proxy/vmess/encoding/client.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad40780a591f255f7100d53b818b9834865dbc9d3668bd579dfce6f05185f93"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 69 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"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":"7dc5db3fb556c21c639c6723ffba8ee9586d32a6587bfd3de87d7f4797dad2e6"},"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":"db572b4b6ebfa4863e9cd49eaf64fa9b025e53e7a748e781dbb52f26b598e054"},"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":"48de7ef42589b8e791c9bbfb8ef9c45e2c46c403d0c718acee2bab1c2000f011"},"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":"eb0a7a97ba16a809a94c29ae7f33cd752468bb6440dd2e177d5ae0778d8ff84c"},"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":"69ed61c1841ffa6a6a5c3bb43b75bccf14eb7c4a7efa4bc7268e5e4a7b0456b5"},"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":"949b3fbf9c591ccb74433368af7631f9bd24db1fb519032a3bc276e135f3d180"},"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":"b401c59b960fbb1af381816ed01b298d6fe2ed58b8aa8e8c43fa964f47526fe0"},"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":"b4c5073d3a1866a5ced66575bed13feae832ca568d38ee4a3389d5f9b32b4173"},"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":"2588249a94babc0835e9842876f3a17a5c12f2c3bfe6425d81eb15186527f81f"},"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":"15a3e15869acd483bc4f475314eaee260ac03ffd6ba57522a400fad412c16cdf"},"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":"d366c3568a005569518add49e9dc938ce8c49de6beb0800e86a8f4d73928a1c7"},"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":"e89034c2b3828134e08493625151a652803a8e7babe90101a2d4b9bd30a52a68"},"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":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"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":"1d7dacf3b55f811d47e0ebc25a7aeae19b56d4a94d2aba14e41747788f20a09f"},"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":"db3964b31f144d0386e7d76242522982e04d69f831396f9ac3cc290ff2a41d86"},"taxa":[{"id":"CWE-338","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":"a4e6f40cb7014ba375028fe8985ffb0370f96eb891fea56b12d6adc578c0ba46"},"taxa":[{"id":"CWE-338","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":"cd49f1416691fb777162e9f0a3615cb4e6856f9f2562679d08f10f9a2f0eb3fa"},"taxa":[{"id":"CWE-328","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":"3d25f4514e0d1c962847cbae77985de6655558ee96064d87b610a4da6315e2d2"},"taxa":[{"id":"CWE-328","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":"fe8a7d511f6937533028e74fbc4cb749c00e8f8e77a76dfe08dee2f7afde9041"},"taxa":[{"id":"CWE-338","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":"9990c8ad1d860c1871b79a67d88e9bc3e56fd5ca391a3d2dc16e3a57cc04710a"},"taxa":[{"id":"CWE-319","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":"afc7390b36101e026bf7d279d9ffddebbc3034c456aba581972744fb3a82c683"},"taxa":[{"id":"CWE-328","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":"267b61ba95a18c452c172072c797ccc482c02eece5e1834cfad4b6feb12d3c28"},"taxa":[{"id":"CWE-328","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":"16b8ae5b6d27143b36036f28a491667cae67ad83650fbfb1045aa5d3821d8852"},"taxa":[{"id":"CWE-328","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":"63d09f6621c5f375d6f19910073d55e3de6971967cd12f8c45c6940be0600e35"},"taxa":[{"id":"CWE-328","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":"4de4d568b4f81cecb13a0c6ac98207d1c5d6911e79675921fa4e824f32aa13e4"},"taxa":[{"id":"CWE-328","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":"e12a84882190c971597e6fbd20b0ba176d8aecdc94273bb5786c72bdc7fb6b8b"},"taxa":[{"id":"CWE-328","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":"37cff2346648b6e871a8b99939587bc5552e23d7a7d1c68a4532c0a5b27acf7e"},"taxa":[{"id":"CWE-328","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":"5326e7ec8b3c72462111270139a651379e599f79fe5104c323ecb2469612bfde"},"taxa":[{"id":"CWE-328","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":"381edc848e7d72aea4753359baa7b5db999ce1d0203e07fa1e3f4ee43f3daebf"},"taxa":[{"id":"CWE-328","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":"4b9432545cbf2f61ce0861c64549c1c0cd6ede70d8029fde33f7488ec8f1405d"},"taxa":[{"id":"CWE-328","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":"e0cd554b6db36541ffb5d334a633e454c213c63b2f0ec479df3b2e4788239d2e"},"taxa":[{"id":"CWE-300","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":"9f5c330975e6294711470643ffd73f928f268a2d3b361f4fabc76258f28d096b"},"taxa":[{"id":"CWE-242","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":"d16413b22c2e158a94a5e507ee2eb766958be202b705b540477183bf249ab7ed"},"taxa":[{"id":"CWE-489","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":"d7080f258e228d823f5d9868f7153fdd9090dd79147a1ee364ef04fc2770112b"},"taxa":[{"id":"CWE-328","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":"6806f4988dd9c72f1d96b152632bb8d574aac62cdbc9d8881b7f0a5e2fe150cb"},"taxa":[{"id":"CWE-242","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":"a41d1f5a72a8cbb9368cbd2b83ee41e5f45f7cd095e53f6a946a66a96b323e2c"},"taxa":[{"id":"CWE-242","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":"857b5ab49c97e242af5402623a5bf3e54e4add77f48211cb643de410c4a886af"},"taxa":[{"id":"CWE-242","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":"fd1039084c08ee168c3c1861044c82c4ddc461f080bdbf9c615d19d2cc979eeb"},"taxa":[{"id":"CWE-242","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":"c0c338bbb2f8dea2d2d375479c3e95a8d0b33245310961bb79c55f5f8d92cdd4"},"taxa":[{"id":"CWE-242","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":"ca02feabd8aa3993580041c8b3ed744087422ee7d99090312c7b6df2852a65bd"},"taxa":[{"id":"CWE-327","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":"81b7b122dd29fa300cc907bb6c67190012ccd02c5ea06ad02dcacb4f073ceaf0"}},{"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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"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":"ae2dfb06bfe0dcadfc949c881aa237cb2a4aac5b1cc69adf101d9e003549ef46"}},{"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 134 of 134 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 134 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8371df9b5f8e9f7b0a69e94227a78d4f41918e9074d23e3cfecdae70e16eaaa"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ctlcmd.go \u2194 main.go: \u0060common/platform/ctlcmd/ctlcmd.go\u0060 (context common) and \u0060main/main.go\u0060 (context main) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/platform/ctlcmd/ctlcmd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb8153a1deef9a089d0dc535a0e38c8ae32a6d094daad68cdbb622daf2d9d1e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ctlcmd.go \u2194 config.go: \u0060common/platform/ctlcmd/ctlcmd.go\u0060 and \u0060infra/control/config.go\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/platform/ctlcmd/ctlcmd.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7d254e87616ac37b0c68c918cc4e4b4b1b16bf38dae8ec37d126ca0440344"}},{"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":"D38","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":"5e3545524e8875b4c7eba7c1011fc73f5980286a976278c5029e01d01e301600"}},{"ruleId":"D38","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":"4b6b5d2627573c9a1561f1157a2d7fa44a4a439ad87ae1369661568fedaa7b18"}},{"ruleId":"D38","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":"4fbd7fd89a832803b8e8e72a0cd05f20b8a0cfe648b7b6adff14a19092928c55"}},{"ruleId":"D38","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":"a9750d8c6cf485adee662175f6b4b5693245b29b4d7ad723467e8375c48fa16a"}},{"ruleId":"D38","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":"3855f72f8b90fe0055386a24c5babe54f436023139b2446c2acf9cd0ed6c49a2"}},{"ruleId":"D38","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":"a2d803812798b8476525dfdf02fd654dfadd2dae10d5321ff30b429b8d116093"}},{"ruleId":"D38","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":"672aecaa50819bb793590a61de4ac91035a82e927bab75d9a757415d2a974ee4"}},{"ruleId":"D38","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":"254a0e32bc9a07d4d58195571bcebc176f5a67813ed4b05cf69a704128e00767"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.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-300","guid":"c5969c2f-022a-5059-bb13-5ac56ccacbd0","name":"CWE-300","shortDescription":{"text":"CWE-300"},"helpUri":"https://cwe.mitre.org/data/definitions/300.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"CWE-327","shortDescription":{"text":"CWE-327"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"CWE-338","shortDescription":{"text":"CWE-338"},"helpUri":"https://cwe.mitre.org/data/definitions/338.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-489","guid":"b1d97a6c-8316-175f-ade8-b1bfbc14619d","name":"CWE-489","shortDescription":{"text":"CWE-489"},"helpUri":"https://cwe.mitre.org/data/definitions/489.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-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-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":59,"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."]}]}